119 lines
3.2 KiB
PHP
119 lines
3.2 KiB
PHP
<?php
|
|
/**
|
|
* admin.conf.php file defines all needed constants and variables for admin context
|
|
*/
|
|
|
|
/* include common conf */
|
|
require_once('common.conf.php');
|
|
|
|
/* defines admin library path
|
|
* uses => to include class files
|
|
*/
|
|
define('_OTPR_PATH_LIB_ADMIN', _OTPR_PATH_LIB . 'admin/');
|
|
|
|
/* defines admin path tpl
|
|
* uses => to set good relative path
|
|
*/
|
|
define('_OTPR_TPL_ADMIN_PATH', 'admin/');
|
|
|
|
/* defines header tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_HEADER', 'header.tpl');
|
|
|
|
/* defines confirm tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_CONFIRM', 'confirm.tpl');
|
|
|
|
/* defines basic settings tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_SETTINGS', 'basic-settings.tpl');
|
|
|
|
/* defines module update tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_MODULE_UPDATE', 'module-update.tpl');
|
|
|
|
/* defines registered orders tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_REGISTER_ORDERS', 'register-orders.tpl');
|
|
|
|
/* defines multi shop config tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_MULTI_SHOP', 'multi-shop-config.tpl');
|
|
|
|
/* defines admin tab path tpl
|
|
* uses => to set good relative path
|
|
*/
|
|
define('_OTPR_TPL_ADMIN_TAB_PATH', _OTPR_TPL_ADMIN_PATH . 'tab/');
|
|
|
|
/* defines form tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_FORM', _OTPR_TPL_ADMIN_TAB_PATH . 'form.tpl');
|
|
|
|
/* defines html report tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_REPORT_HTML', _OTPR_TPL_ADMIN_TAB_PATH . 'report-html.tpl');
|
|
|
|
/* defines csv report tpl
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_TPL_REPORT_CSV', _OTPR_TPL_ADMIN_TAB_PATH . 'report-csv.tpl');
|
|
|
|
/* defines voucher's update sql file
|
|
* uses => only with DB update action
|
|
*/
|
|
define('_OTPR_UPDATE_SQL_FILE', 'update.sql');
|
|
|
|
/* defines constant to use or not js on submit action
|
|
* uses => only in debug mode - test checking control on server side
|
|
*/
|
|
define('_OTPR_USE_JS', true);
|
|
|
|
/* defines constant to use temporary file
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_UPLOAD_REPORT_FILE', 'report');
|
|
|
|
/* defines constant for external BT API URL
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_BT_API_MAIN_URL', 'https://api.businesstech.fr:441/prestashop-modules/');
|
|
|
|
/* defines constant for external BT API URL
|
|
* uses => with display admin interface
|
|
*/
|
|
define('_OTPR_BT_FAQ_MAIN_URL', 'http://faq.businesstech.fr/');
|
|
|
|
/* defines variable for translating js msg
|
|
* uses => with admin interface - declare all displayed error messages
|
|
*/
|
|
$GLOBALS[_OTPR_MODULE_NAME . '_JS_MSG'] = array();
|
|
|
|
/* defines variable for date type used in export
|
|
* uses => with admin interface, see translation in module-tools_class.php
|
|
*/
|
|
$GLOBALS[_OTPR_MODULE_NAME . '_DATE_TYPE'] = array('invoice' => '', 'delivery' => '', 'credit' => '', 'order' => '');
|
|
|
|
/* defines variable for export type
|
|
* uses => with admin interface
|
|
*/
|
|
$GLOBALS[_OTPR_MODULE_NAME . '_EXPORT_TYPE'] = array('html', 'csv');
|
|
|
|
/* defines variable for sql update
|
|
* uses => with admin
|
|
*/
|
|
$GLOBALS[_OTPR_MODULE_NAME . '_SQL_UPDATE'] = array(
|
|
'table' => array(
|
|
'wholesale_price' => _OTPR_UPDATE_SQL_FILE,
|
|
),
|
|
// 'field' => array(
|
|
// 'VCHR_ID' => array('table' => 'voucher', 'file' => _GSR_VOUCHER_SQL_FILE),
|
|
// )
|
|
); |