Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
asiafoodco.com /
shop /
classes /
order /
Delete
Unzip
Name
Size
Permission
Date
Action
Order.php
63.71
KB
-rwxr-x---
2018-05-03 14:19
OrderCarrier.php
2.49
KB
-rwxr-x---
2018-05-03 14:19
OrderCartRule.php
2.41
KB
-rwxr-x---
2018-05-03 14:19
OrderDetail.php
25.33
KB
-rwxr-x---
2018-05-03 14:19
OrderDiscount.php
1.63
KB
-rwxr-x---
2018-05-03 14:19
OrderHistory.php
18.28
KB
-rwxr-x---
2018-05-03 14:19
OrderInvoice.php
21.03
KB
-rwxr-x---
2018-05-03 14:19
OrderMessage.php
2.27
KB
-rwxr-x---
2018-05-03 14:19
OrderPayment.php
4.42
KB
-rwxr-x---
2018-05-03 14:19
OrderReturn.php
9.31
KB
-rwxr-x---
2018-05-03 14:19
OrderReturnState.php
2.05
KB
-rwxr-x---
2018-05-03 14:19
OrderSlip.php
12.25
KB
-rwxr-x---
2018-05-03 14:19
OrderState.php
4.55
KB
-rwxr-x---
2018-05-03 14:19
index.php
1.24
KB
-rwxr-x---
2018-05-03 14:19
Save
Rename
<?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 OrderStateCore extends ObjectModel { /** @var string Name */ public $name; /** @var string Template name if there is any e-mail to send */ public $template; /** @var boolean Send an e-mail to customer ? */ public $send_email; public $module_name; /** @var boolean 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 boolean Log authorization */ public $logable; /** @var boolean Delivery */ public $delivery; /** @var boolean Hidden */ public $hidden; /** @var boolean Shipped */ public $shipped; /** @var boolean Paid */ public $paid; /** @var boolean True if carrier has been deleted (staying in database as deleted) */ public $deleted = 0; /** * @see ObjectModel::$definition */ public static $definition = array( 'table' => 'order_state', 'primary' => 'id_order_state', 'multilang' => true, 'fields' => array( 'send_email' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'module_name' => array('type' => self::TYPE_STRING, 'validate' => 'isModuleName'), 'invoice' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'color' => array('type' => self::TYPE_STRING, 'validate' => 'isColor'), 'logable' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'shipped' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'unremovable' =>array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'delivery' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'hidden' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'paid' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), // Lang fields 'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 64), 'template' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isTplName', 'size' => 64), ), ); protected $webserviceParameters = array( 'fields' => array( 'unremovable' => array(), 'delivery' => array(), 'hidden' => array(), ), ); 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 integer $id_lang Language id for status name * @return array Order statuses */ public static function getOrderStates($id_lang) { $cache_id = 'OrderState::getOrderStates_'.(int)$id_lang; 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.') WHERE deleted = 0 ORDER BY `name` ASC'); Cache::store($cache_id, $result); } return Cache::retrieve($cache_id); } /** * Check if we can make a invoice when order is in this state * * @param integer $id_order_state State ID * @return boolean 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); } }