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 : AdminTaxRulesGroupController.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 AdminTaxRulesGroupControllerCore extends AdminController { public $tax_rule; public $selected_countries = array(); public $selected_states = array(); public $errors_tax_rule; public function __construct() { $this->bootstrap = true; $this->table = 'tax_rules_group'; $this->className = 'TaxRulesGroup'; $this->lang = false; $this->context = Context::getContext(); $this->fields_list = array( 'id_tax_rules_group' => array( 'title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name') ), 'active' => array( 'title' => $this->l('Enabled'), 'active' => 'status', 'type' => 'bool', 'orderby' => false, 'align' => 'center', 'class' => 'fixed-width-sm' ) ); $this->bulk_actions = array( 'delete' => array( 'text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash' ) ); parent::__construct(); } public function initPageHeaderToolbar() { if (empty($this->display)) $this->page_header_toolbar_btn['new_tax_rules_group'] = array( 'href' => self::$currentIndex.'&addtax_rules_group&token='.$this->token, 'desc' => $this->l('Add new tax rules group', null, null, false), 'icon' => 'process-icon-new' ); parent::initPageHeaderToolbar(); } public function renderList() { $this->addRowAction('edit'); $this->addRowAction('delete'); return parent::renderList(); } public function initRulesList($id_group) { $this->table = 'tax_rule'; $this->list_id = 'tax_rule'; $this->identifier = 'id_tax_rule'; $this->className = 'TaxRule'; $this->lang = false; $this->list_simple_header = false; $this->toolbar_btn = null; $this->list_no_link = true; $this->bulk_actions = array( 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash') ); $this->fields_list = array( 'country_name' => array( 'title' => $this->l('Country') ), 'state_name' => array( 'title' => $this->l('State') ), 'zipcode' => array( 'title' => $this->l('Zip/Postal code'), 'class' => 'fixed-width-md' ), 'behavior' => array( 'title' => $this->l('Behavior') ), 'rate' => array( 'title' => $this->l('Tax'), 'class' => 'fixed-width-sm' ), 'description' => array( 'title' => $this->l('Description') ) ); $this->addRowAction('edit'); $this->addRowAction('delete'); $this->_select = ' c.`name` AS country_name, s.`name` AS state_name, CONCAT_WS(" - ", a.`zipcode_from`, a.`zipcode_to`) AS zipcode, t.rate'; $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'country_lang` c ON (a.`id_country` = c.`id_country` AND id_lang = '.(int)$this->context->language->id.') LEFT JOIN `'._DB_PREFIX_.'state` s ON (a.`id_state` = s.`id_state`) LEFT JOIN `'._DB_PREFIX_.'tax` t ON (a.`id_tax` = t.`id_tax`)'; $this->_where = 'AND `id_tax_rules_group` = '.(int)$id_group; $this->show_toolbar = false; $this->tpl_list_vars = array('id_tax_rules_group' => (int)$id_group); return parent::renderList(); } public function renderForm() { $this->fields_form = array( 'legend' => array( 'title' => $this->l('Tax Rules'), 'icon' => 'icon-money' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Name'), 'name' => 'name', 'required' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), array( 'type' => 'switch', 'label' => $this->l('Enable'), 'name' => 'active', 'required' => false, 'is_bool' => true, 'values' => array( array( 'id' => 'active_on', 'value' => 1, 'label' => $this->l('Enabled') ), array( 'id' => 'active_off', 'value' => 0, 'label' => $this->l('Disabled') ) ) ) ), 'submit' => array( 'title' => $this->l('Save and stay'), 'stay' => true ) ); if (Shop::isFeatureActive()) { $this->fields_form['input'][] = array( 'type' => 'shop', 'label' => $this->l('Shop association'), 'name' => 'checkBoxShopAsso', ); } if (!($obj = $this->loadObject(true))) return; if (!isset($obj->id)) { $this->no_back = false; $content = parent::renderForm(); } else { $this->no_back = true; $this->page_header_toolbar_btn['new'] = array( 'href' => '#', 'desc' => $this->l('Add a new tax rule') ); $content = parent::renderForm(); $this->tpl_folder = 'tax_rules/'; $content .= $this->initRuleForm(); // We change the variable $ tpl_folder to avoid the overhead calling the file in list_action_edit.tpl in intList (); $content .= $this->initRulesList((int)$obj->id); } return $content; } public function initRuleForm() { $this->fields_form[0]['form'] = array( 'legend' => array( 'title' => $this->l('New tax rule'), 'icon' => 'icon-money' ), 'input' => array( array( 'type' => 'select', 'label' => $this->l('Country'), 'name' => 'country', 'id' => 'country', 'options' => array( 'query' => Country::getCountries($this->context->language->id), 'id' => 'id_country', 'name' => 'name', 'default' => array( 'value' => 0, 'label' => $this->l('All') ) ) ), array( 'type' => 'select', 'label' => $this->l('State'), 'name' => 'states[]', 'id' => 'states', 'multiple' => true, 'options' => array( 'query' => array(), 'id' => 'id_state', 'name' => 'name', 'default' => array( 'value' => 0, 'label' => $this->l('All') ) ) ), array( 'type' => 'hidden', 'name' => 'action' ), array( 'type' => 'hidden', 'name' => 'id_tax_rules_group' ), array( 'type' => 'text', 'label' => $this->l('Zip/postal code range'), 'name' => 'zipcode', 'required' => false, 'hint' => $this->l('You can define a range of Zip/postal codes (e.g., 75000-75015) or simply use one Zip/postal code.') ), array( 'type' => 'select', 'label' => $this->l('Behavior'), 'name' => 'behavior', 'required' => false, 'options' => array( 'query' => array( array( 'id' => 0, 'name' => $this->l('This tax only') ), array( 'id' => 1, 'name' => $this->l('Combine') ), array( 'id' => 2, 'name' => $this->l('One after another') ) ), 'id' => 'id', 'name' => 'name' ), 'hint' => array( $this->l('You must define the behavior if an address matches multiple rules:').'<br>', $this->l('- This tax only: Will apply only this tax').'<br>', $this->l('- Combine: Combine taxes (e.g.: 10% + 5% = 15%)').'<br>', $this->l('- One after another: Apply taxes one after another (e.g.: 0 + 10% = 0 + 5% = 5.5)') ) ), array( 'type' => 'select', 'label' => $this->l('Tax'), 'name' => 'id_tax', 'required' => false, 'options' => array( 'query' => Tax::getTaxes((int)$this->context->language->id), 'id' => 'id_tax', 'name' => 'name', 'default' => array( 'value' => 0, 'label' => $this->l('No Tax') ) ), 'hint' => sprintf($this->l('(Total tax: %s)'), '9%') ), array( 'type' => 'text', 'label' => $this->l('Description'), 'name' => 'description', ) ), 'submit' => array( 'title' => $this->l('Save and stay'), 'stay' => true ) ); if (!($obj = $this->loadObject(true))) return; $this->fields_value = array( 'action' => 'create_rule', 'id_tax_rules_group' => $obj->id, 'id_tax_rule' => '' ); $this->getlanguages(); $helper = new HelperForm(); $helper->override_folder = $this->tpl_folder; $helper->currentIndex = self::$currentIndex; $helper->token = $this->token; $helper->table = 'tax_rule'; $helper->identifier = 'id_tax_rule'; $helper->id = $obj->id; $helper->toolbar_scroll = true; $helper->show_toolbar = true; $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($this->object); $helper->toolbar_btn['save_new_rule'] = array( 'href' => self::$currentIndex.'&id_tax_rules_group='.$obj->id.'&action=create_rule&token='.$this->token, 'desc' => 'Save tax rule', 'class' => 'process-icon-save' ); $helper->submit_action = 'create_rule'; return $helper->generateForm($this->fields_form); } public function initProcess() { if (Tools::isSubmit('deletetax_rule')) { if ($this->tabAccess['delete'] === '1') $this->action = 'delete_tax_rule'; else $this->errors[] = Tools::displayError('You do not have permission to delete this.'); } else if (Tools::isSubmit('submitBulkdeletetax_rule')) { if ($this->tabAccess['delete'] === '1') $this->action = 'bulk_delete_tax_rules'; else $this->errors[] = Tools::displayError('You do not have permission to delete this.'); } else if (Tools::getValue('action') == 'create_rule') { if ($this->tabAccess['add'] === '1') $this->action = 'create_rule'; else $this->errors[] = Tools::displayError('You do not have permission to add this.'); } else parent::initProcess(); } protected function processCreateRule() { $zip_code = Tools::getValue('zipcode'); $id_rule = (int)Tools::getValue('id_tax_rule'); $id_tax = (int)Tools::getValue('id_tax'); $id_tax_rules_group = (int)Tools::getValue('id_tax_rules_group'); $behavior = (int)Tools::getValue('behavior'); $description = pSQL(Tools::getValue('description')); if ((int)($id_country = Tools::getValue('country')) == 0) { $countries = Country::getCountries($this->context->language->id); $this->selected_countries = array(); foreach ($countries as $country) $this->selected_countries[] = (int)$country['id_country']; } else $this->selected_countries = array($id_country); $this->selected_states = Tools::getValue('states'); if (empty($this->selected_states) || count($this->selected_states) == 0) $this->selected_states = array(0); $tax_rules_group = new TaxRulesGroup((int)$id_tax_rules_group); foreach ($this->selected_countries as $id_country) { foreach ($this->selected_states as $id_state) { if ($tax_rules_group->hasUniqueTaxRuleForCountry($id_country, $id_state, $id_rule)) { $this->errors[] = Tools::displayError('A tax rule already exists for this country/state with tax only behavior.'); continue; } $tr = new TaxRule(); // update or creation? if (isset($id_rule)) $tr->id = $id_rule; $tr->id_tax = $id_tax; $tr->id_tax_rules_group = (int)$id_tax_rules_group; $tr->id_country = (int)$id_country; $tr->id_state = (int)$id_state; list($tr->zipcode_from, $tr->zipcode_to) = $tr->breakDownZipCode($zip_code); // Construct Object Country $country = new Country((int)$id_country, (int)$this->context->language->id); if ($zip_code && $country->need_zip_code) { if ($country->zip_code_format) { foreach (array($tr->zipcode_from, $tr->zipcode_to) as $zip_code) if ($zip_code) if (!$country->checkZipCode($zip_code)) { $this->errors[] = sprintf( Tools::displayError('The Zip/postal code is invalid. It must be typed as follows: %s for %s.'), str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format))), $country->name ); } } } $tr->behavior = (int)$behavior; $tr->description = $description; $this->tax_rule = $tr; $_POST['id_state'] = $tr->id_state; $this->errors = array_merge($this->errors, $this->validateTaxRule($tr)); if (count($this->errors) == 0) if (!$tr->save()) $this->errors[] = Tools::displayError('An error has occurred: Cannot save the current tax rule.'); } } if (count($this->errors) == 0) Tools::redirectAdmin( self::$currentIndex.'&'.$this->identifier.'='.(int)$id_tax_rules_group.'&conf=4&update'.$this->table.'&token='.$this->token ); else $this->display = 'edit'; } protected function processBulkDeleteTaxRules() { $this->deleteTaxRule(Tools::getValue('tax_ruleBox')); } protected function processDeleteTaxRule() { $this->deleteTaxRule(array(Tools::getValue('id_tax_rule'))); } protected function deleteTaxRule(array $id_tax_rule_list) { $result = true; foreach ($id_tax_rule_list as $id_tax_rule) { $tax_rule = new TaxRule((int)$id_tax_rule); if (Validate::isLoadedObject($tax_rule)) $result &= $tax_rule->delete(); } Tools::redirectAdmin( self::$currentIndex.'&'.$this->identifier.'='.(int)$tax_rule->id_tax_rules_group.'&conf=4&update'.$this->table.'&token='.$this->token ); } /** * check if the tax rule could be added in the database * @param TaxRule $tr */ protected function validateTaxRule(TaxRule $tr) { // TODO: check if the rule already exists return $tr->validateController(); } protected function displayAjaxUpdateTaxRule() { if ($this->tabAccess['view'] === '1') { $id_tax_rule = Tools::getValue('id_tax_rule'); $tax_rules = new TaxRule((int)$id_tax_rule); $output = array(); foreach ($tax_rules as $key => $result) $output[$key] = $result; die(Tools::jsonEncode($output)); } } }
Close