Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
tienda /
modules /
ps_mainmenu /
[ HOME SHELL ]
Name
Size
Permission
Action
translations
[ DIR ]
drwxrwxrwx
views
[ DIR ]
drwxrwxrwx
config.xml
468
B
-rwxrwxrwx
config_es.xml
532
B
-rwxrwxrwx
index.php
1.24
KB
-rwxrwxrwx
logo.png
3.46
KB
-rwxrwxrwx
ps_mainmenu.php
57.88
KB
-rwxrwxrwx
ps_mainmenu.tpl
828
B
-rwxrwxrwx
ps_menutoplinks.class.php
5.23
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ps_menutoplinks.class.php
<?php /* * 2007-2015 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-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class Ps_MenuTopLinks { public static function gets($id_lang, $id_linksmenutop = null, $id_shop) { $sql = 'SELECT l.id_linksmenutop, l.new_window, s.name, ll.link, ll.label FROM '._DB_PREFIX_.'linksmenutop l LEFT JOIN '._DB_PREFIX_.'linksmenutop_lang ll ON (l.id_linksmenutop = ll.id_linksmenutop AND ll.id_lang = '.(int)$id_lang.' AND ll.id_shop='.(int)$id_shop.') LEFT JOIN '._DB_PREFIX_.'shop s ON l.id_shop = s.id_shop WHERE 1 '.((!is_null($id_linksmenutop)) ? ' AND l.id_linksmenutop = "'.(int)$id_linksmenutop.'"' : '').' AND l.id_shop IN (0, '.(int)$id_shop.')'; return Db::getInstance()->executeS($sql); } public static function get($id_linksmenutop, $id_lang, $id_shop) { return self::gets($id_lang, $id_linksmenutop, $id_shop); } public static function getLinkLang($id_linksmenutop, $id_shop) { $ret = Db::getInstance()->executeS(' SELECT l.id_linksmenutop, l.new_window, ll.link, ll.label, ll.id_lang FROM '._DB_PREFIX_.'linksmenutop l LEFT JOIN '._DB_PREFIX_.'linksmenutop_lang ll ON (l.id_linksmenutop = ll.id_linksmenutop AND ll.id_shop='.(int)$id_shop.') WHERE 1 '.((!is_null($id_linksmenutop)) ? ' AND l.id_linksmenutop = "'.(int)$id_linksmenutop.'"' : '').' AND l.id_shop IN (0, '.(int)$id_shop.') '); $link = array(); $label = array(); $new_window = false; foreach ($ret as $line) { $link[$line['id_lang']] = Tools::safeOutput($line['link']); $label[$line['id_lang']] = Tools::safeOutput($line['label']); $new_window = (bool)$line['new_window']; } return array('link' => $link, 'label' => $label, 'new_window' => $new_window); } public static function updateUrl($link) { for($i = 1; $i <= count($link); $i++) { if (substr($link[$i], 0, 7) !== "http://" && substr($link[$i], 0, 8) !== "https://") { $link[$i] = "http://" . $link[$i]; } } return $link; } public static function add($link, $label, $newWindow = 0, $id_shop) { if (!is_array($label)) { return false; } if (!is_array($link)) { return false; } $link = self::updateUrl($link); Db::getInstance()->insert( 'linksmenutop', array( 'new_window'=>(int)$newWindow, 'id_shop' => (int)$id_shop ) ); $id_linksmenutop = Db::getInstance()->Insert_ID(); $result = true; foreach ($label as $id_lang=>$label) { $result &= Db::getInstance()->insert( 'linksmenutop_lang', array( 'id_linksmenutop'=>(int)$id_linksmenutop, 'id_lang'=>(int)$id_lang, 'id_shop'=>(int)$id_shop, 'label'=>pSQL($label), 'link'=>pSQL($link[$id_lang]) ) ); } return $result; } public static function update($link, $labels, $newWindow = 0, $id_shop, $id_link) { if (!is_array($labels)) { return false; } if (!is_array($link)) { return false; } $link = self::updateUrl($link); Db::getInstance()->update( 'linksmenutop', array( 'new_window'=>(int)$newWindow, 'id_shop' => (int)$id_shop ), 'id_linksmenutop = '.(int)$id_link ); foreach ($labels as $id_lang => $label) { Db::getInstance()->update( 'linksmenutop_lang', array( 'id_shop'=>(int)$id_shop, 'label'=>pSQL($label), 'link'=>pSQL($link[$id_lang]) ), 'id_linksmenutop = '.(int)$id_link.' AND id_lang = '.(int)$id_lang ); } } public static function remove($id_linksmenutop, $id_shop) { $result = true; $result &= Db::getInstance()->delete('linksmenutop', 'id_linksmenutop = '.(int)$id_linksmenutop.' AND id_shop = '.(int)$id_shop); $result &= Db::getInstance()->delete('linksmenutop_lang', 'id_linksmenutop = '.(int)$id_linksmenutop); return $result; } }
Close