Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
a2-optimized /
prestashop /
a2hosting /
Delete
Unzip
Name
Size
Permission
Date
Action
backward_compatibility
[ DIR ]
drwxr-xr-x
2025-04-30 04:08
views
[ DIR ]
drwxr-xr-x
2025-04-30 04:08
a2hosting.php
6.29
KB
-rw-r--r--
2025-04-29 15:41
config.xml
464
B
-rw-r--r--
2025-04-29 15:41
de.php
1.97
KB
-rw-r--r--
2025-04-29 15:41
es.php
2
KB
-rw-r--r--
2025-04-29 15:41
fr.php
1.99
KB
-rw-r--r--
2025-04-29 15:41
index.php
1.24
KB
-rw-r--r--
2025-04-29 15:41
it.php
1.95
KB
-rw-r--r--
2025-04-29 15:41
logo.gif
561
B
-rw-r--r--
2025-04-29 15:41
logo.png
1.65
KB
-rw-r--r--
2025-04-29 15:41
pl.php
1.97
KB
-rw-r--r--
2025-04-29 15:41
pt.php
1.96
KB
-rw-r--r--
2025-04-29 15:41
ru.php
2.29
KB
-rw-r--r--
2025-04-29 15:41
swiftcache.png
6.14
KB
-rw-r--r--
2025-04-29 15:41
turbo.png
9.79
KB
-rw-r--r--
2025-04-29 15:41
Save
Rename
<?php /** * 2015 A2 Hosting, Inc. * * 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 Benjamin Cool <support@a2hosting.com> * @copyright 2015 A2 Hosting, Inc. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ /** * 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 */ if (!defined('_PS_VERSION_')) exit; class A2Hosting extends Module { protected $config_form = false; public function __construct() { $this->name = 'a2hosting'; $this->tab = 'others'; $this->version = '1.0.0'; $this->author = 'PrestaShop'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('A2 Hosting with TurboCache'); $this->description = $this->l('24/7/365 Support. Ultra Reliable. High Performance Hosting Solution'); if (_PS_VERSION_ < '1.5') require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php'); } public function install() { return parent::install() && $this->registerHook('backOfficeHeader') && $this->registerHook('header') && $this->registerHook('actionAuthentication') && $this->registerHook('actionCartSave') && $this->registerHook('displayHeader') && (bool)true; } public function update() { return $this->registerHook('backOfficeHeader') && $this->registerHook('header') && $this->registerHook('actionAuthentication') && $this->registerHook('actionCartSave') && $this->registerHook('displayHeader') && (bool)true; } public function hookBackOfficeHeader() { if (strcmp(Tools::getValue('configure'), $this->name) === 0) { if (version_compare(_PS_VERSION_, '1.5', '>') == true) { $this->context->controller->addCSS($this->_path.'views/css/configure.css'); if (version_compare(_PS_VERSION_, '1.6', '<') == true) $this->context->controller->addCSS($this->_path.'views/css/configure-nobootstrap.css'); } else { $html = '<link rel="stylesheet" href="'.$this->_path.'views/css/configure.css" type="text/css" />'; $html .= '<link rel="stylesheet" href="'.$this->_path.'views/css/configure-nobootstrap.css" type="text/css" />'; return $html; } } } public function getContent() { $this->context->smarty->assign(array( 'module_dir' => $this->_path, 'server_type' => $this->getServerType() )); return $this->display(__FILE__, 'views/templates/admin/configure.tpl' ); } protected function getServerType(){ if( !$this->isHosted() ) { return 'Elsewhere'; } else if( $this->isTurbo() ) { return 'Turbo'; } else { return 'NotTurbo'; } } protected function isHosted() { return is_dir("/var/softaculous/a2wp"); } protected function isTurbo() { return is_dir("/usr/local/lsws"); } public function hookActionAuthentication() { if ($this->context->cookie->logged) setcookie('logged', true, time() + ( 365 * 86400 ), '/'); else setcookie('logged', false, time() - 86400, '/'); } public function hookActionCartSave($params) { if (!isset($params['cart'])) return; $cart = $params['cart']; // Get current products $products = $cart->getProducts(); if (count($products) == 0) { if (isset($_COOKIE['cart'])) setcookie('cart', false, time() - 86400, '/'); } else setcookie('cart', true, time() + ( 365 * 86400 ), '/'); return true; } public function hookDisplayHeader() { if ($this->context->cookie->logged) setcookie('logged', true, time() + ( 365 * 86400 ), '/'); else { if (isset($_COOKIE['logged'])) setcookie('logged', false, time() - 86400, '/'); } if (isset($this->context->cart)) { // Get current products $products = $this->context->cart->getProducts(); if (count($products) == 0) { if (isset($_COOKIE['cart'])) setcookie('cart', false, time() - 86400, '/'); } else setcookie('cart', true, time() + ( 365 * 86400 ), '/'); } else { if (isset($_COOKIE['cart'])) setcookie('cart', false, time() - 86400, '/'); } } }