CMXX - Custom folder
This commit is contained in:
@@ -25,7 +25,7 @@ function getDomain($hostname) {
|
||||
}
|
||||
|
||||
$domain = getDomain($_SERVER['SERVER_NAME']);
|
||||
$config_location = ((file_exists(dirname(__FILE__).'/'.$domain.'/'.$domain.'_config.php')) ? dirname(__FILE__).'/'.$domain.'/'.$domain.'_config.php' : dirname(__FILE__).'/config.php');
|
||||
$config_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$domain.'/settings/'.$domain.'_config.php')) ? dirname(__FILE__,2).'/custom/'.$domain.'/settings/'.$domain.'_config.php' : dirname(__FILE__).'/config.php');
|
||||
|
||||
include $config_location;
|
||||
?>
|
||||
@@ -22,7 +22,7 @@
|
||||
$domain = $hostname;
|
||||
}
|
||||
|
||||
$settings_location = ((file_exists(dirname(__FILE__).'/'.$domain.'/'.$domain.'_settings.php')) ? dirname(__FILE__).'/'.$domain.'/'.$domain.'_settings.php' : dirname(__FILE__).'/settings.php');
|
||||
$settings_location = ((file_exists(dirname(__FILE__,2).'/custom/'.$domain.'/style/'.$domain.'_settings.php')) ? dirname(__FILE__,2).'/custom/'.$domain.'/style/'.$domain.'_settings.php' : dirname(__FILE__).'/settings.php');
|
||||
|
||||
include $settings_location;
|
||||
?>
|
||||
@@ -1,348 +0,0 @@
|
||||
<?php
|
||||
|
||||
//------------------------------------------
|
||||
// Menusetup and settings
|
||||
//
|
||||
//
|
||||
// Each Menu name in urls array requires reference
|
||||
// into translation files and corresponding profile
|
||||
//------------------------------------------
|
||||
$main_menu = [
|
||||
"dashboard" => [
|
||||
"main_menu" => [
|
||||
"url" => "dashboard",
|
||||
"selected" => "dashboard",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_dashboard"
|
||||
]
|
||||
],
|
||||
"sales" => [
|
||||
"main_menu" => [
|
||||
"url" => "contracts",
|
||||
"selected" => "contracts",
|
||||
"icon" => "fa-solid fa-bars",
|
||||
"name" => "menu_sales"
|
||||
],
|
||||
"accounts" => [
|
||||
"url" => "accounts",
|
||||
"selected" => "accounts",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_sales_accounts"
|
||||
],
|
||||
"catalog" => [
|
||||
"url" => "catalog",
|
||||
"selected" => "catalog",
|
||||
"icon" => "fa-solid fa-photo-film",
|
||||
"name" => "menu_catalog"
|
||||
],
|
||||
"contracts" => [
|
||||
"url" => "contracts",
|
||||
"selected" => "contracts",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_sales_contracts"
|
||||
],
|
||||
"orders" => [
|
||||
"url" => "orders",
|
||||
"selected" => "orders",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_sales_orders"
|
||||
],
|
||||
"identity" => [
|
||||
"url" => "identity",
|
||||
"selected" => "identity",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_identity"
|
||||
]
|
||||
],
|
||||
"buildtool" => [
|
||||
"main_menu" => [
|
||||
"url" => "buildtool",
|
||||
"selected" => "buildtool",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_build"
|
||||
]
|
||||
],
|
||||
"cartests" => [
|
||||
"main_menu" => [
|
||||
"url" => "cartests",
|
||||
"selected" => "cartests",
|
||||
"icon" => "fa-solid fa-car",
|
||||
"name" => "menu_cartest"
|
||||
]
|
||||
],
|
||||
"marketing" => [
|
||||
"main_menu" => [
|
||||
"url" => "marketing&product_group=Emergency_Plug&product_content=Images",
|
||||
"selected" => "marketing",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_marketing"
|
||||
]
|
||||
],
|
||||
"equipments" => [
|
||||
"main_menu" => [
|
||||
"url" => "equipments",
|
||||
"selected" => "assets",
|
||||
"icon" => "fa-solid fa-database",
|
||||
"name" => "menu_assets"
|
||||
],
|
||||
"equipments" =>[
|
||||
"url" => "equipments",
|
||||
"selected" => "assets",
|
||||
"icon" => "fa-solid fa-database",
|
||||
"name" => "menu_assets"
|
||||
],
|
||||
"servicereports" => [
|
||||
"url" => "servicereports",
|
||||
"selected" => "servicereports",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_service_reports"
|
||||
],
|
||||
"rmas" => [
|
||||
"url" => "rmas",
|
||||
"selected" => "rmas",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_rmas"
|
||||
],
|
||||
"histories" => [
|
||||
"url" => "histories",
|
||||
"selected" => "histories",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_history"
|
||||
],
|
||||
"firmwaretool" => [
|
||||
"url" => "firmwaretool",
|
||||
"selected" => "firmwaretool",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_firmwaretool"
|
||||
] ,
|
||||
"equipments_mass_update" => [
|
||||
"url" => "equipments_mass_update",
|
||||
"selected" => "equipments_mass_update",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_equipments_mass_update"
|
||||
]
|
||||
],
|
||||
"products" => [
|
||||
"main_menu" => [
|
||||
"url" => "products&status=1",
|
||||
"selected" => "products",
|
||||
"icon" => "fas fa-box-open",
|
||||
"name" => "menu_products"
|
||||
],
|
||||
"products" => [
|
||||
"url" => "products&status=1",
|
||||
"selected" => "products",
|
||||
"icon" => "fas fa-box-open",
|
||||
"name" => "menu_products"
|
||||
],
|
||||
"products_attributes" => [
|
||||
"url" => "products_attributes",
|
||||
"selected" => "products_attributes",
|
||||
"icon" => "fas fa-box-open",
|
||||
"name" => "menu_products_attributes"
|
||||
],
|
||||
"pricelists" => [
|
||||
"url" => "pricelists",
|
||||
"selected" => "pricelists",
|
||||
"icon" => "fa-solid fa-coins",
|
||||
"name" => "menu_pricelists"
|
||||
]
|
||||
],
|
||||
"reporting" => [
|
||||
"main_menu" => [
|
||||
"url" => "report_build",
|
||||
"selected" => "report_build",
|
||||
"icon" => "fa-solid fa-magnifying-glass-chart",
|
||||
"name" => "menu_report_main"
|
||||
],
|
||||
"report_build" => [
|
||||
"url" => "report_build",
|
||||
"selected" => "report_build",
|
||||
"icon" => "fa-solid fa-magnifying-glass-chart",
|
||||
"name" => "menu_report_build"
|
||||
],
|
||||
"report_contracts_billing" => [
|
||||
"url" => "report_contracts_billing",
|
||||
"selected" => "report_contracts_billing",
|
||||
"icon" => "fa-solid fa-magnifying-glass-chart",
|
||||
"name" => "menu_report_contracts_billing"
|
||||
],
|
||||
"report_healthindex" => [
|
||||
"url" => "report_healthindex",
|
||||
"selected" => "report_healthindex",
|
||||
"icon" => "fa-solid fa-magnifying-glass-chart",
|
||||
"name" => "menu_report_healthindex"
|
||||
],
|
||||
"report_usage" => [
|
||||
"url" => "report_usage",
|
||||
"selected" => "report_usage",
|
||||
"icon" => "fa-solid fa-magnifying-glass-chart",
|
||||
"name" => "menu_report_usage"
|
||||
]
|
||||
],
|
||||
"admin" =>[
|
||||
"main_menu" => [
|
||||
"url" => "partners",
|
||||
"selected" => "partners",
|
||||
"icon" => "fa-solid fa-bars",
|
||||
"name" => "menu_admin"
|
||||
],
|
||||
"partners" => [
|
||||
"url" => "partners",
|
||||
"selected" => "partners",
|
||||
"icon" => "fa-solid fa-bars",
|
||||
"name" => "menu_admin_partners"
|
||||
],
|
||||
"users" => [
|
||||
"url" => "users",
|
||||
"selected" => "users",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_admin_users"
|
||||
],
|
||||
"communications" => [
|
||||
"url" => "communications",
|
||||
"selected" => "communications",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_admin_communications"
|
||||
],
|
||||
"media" => [
|
||||
"url" => "media",
|
||||
"selected" => "media",
|
||||
"icon" => "fa-solid fa-photo-film",
|
||||
"name" => "menu_media"
|
||||
],
|
||||
"categories" => [
|
||||
"url" => "categories",
|
||||
"selected" => "categories",
|
||||
"icon" => "fa-solid fa-photo-film",
|
||||
"name" => "menu_categories"
|
||||
],
|
||||
"discounts" => [
|
||||
"url" => "discounts",
|
||||
"selected" => "discounts",
|
||||
"icon" => "fa-solid fa-photo-film",
|
||||
"name" => "menu_discounts"
|
||||
],
|
||||
"shipping" => [
|
||||
"url" => "shipping",
|
||||
"selected" => "shipping",
|
||||
"icon" => "fa-solid fa-truck-fast",
|
||||
"name" => "menu_shipping"
|
||||
]
|
||||
],
|
||||
"settings" => [
|
||||
"main_menu" => [
|
||||
"url" => "settings",
|
||||
"selected" => "settings",
|
||||
"icon" => "fas fa-tools",
|
||||
"name" => "menu_settings"
|
||||
],
|
||||
"config" => [
|
||||
"url" => "settings",
|
||||
"selected" => "settings",
|
||||
"icon" => "fas fa-tools",
|
||||
"name" => "menu_config"
|
||||
],
|
||||
"translations" => [
|
||||
"url" => "translations",
|
||||
"selected" => "translations",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_translations"
|
||||
],
|
||||
"uploader" => [
|
||||
"url" => "uploader",
|
||||
"selected" => "uploader",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_uploader"
|
||||
],
|
||||
"logfile" => [
|
||||
"url" => "logfile",
|
||||
"selected" => "logfile",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_logfile"
|
||||
],
|
||||
"maintenance" => [
|
||||
"url" => "maintenance",
|
||||
"selected" => "maintenance",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_maintenance"
|
||||
],
|
||||
"profiles" => [
|
||||
"url" => "profiles",
|
||||
"selected" => "profiles",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_profiles"
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
$routes = array(
|
||||
'/' => 'equipments.php',
|
||||
'equipments' => 'equipments.php',
|
||||
'products' => 'products.php',
|
||||
'logout' => 'logout.php'
|
||||
);
|
||||
|
||||
//------------------------------------------
|
||||
// Paging
|
||||
//------------------------------------------
|
||||
$page_rows_equipment = 25; //list Equipment
|
||||
$page_rows_history = 15; //list History
|
||||
$page_rows_products = 25;//list producst
|
||||
$page_rows_users = 15;//list users
|
||||
$page_rows_partners = 15;//list partners
|
||||
$page_rows_communication = 25; //list communications
|
||||
$page_rows_accounts = 25 ;// list accounts
|
||||
$page_rows_contracts = 25 ;// list contracts
|
||||
$page_rows_cartest = 25 ;// list contracts
|
||||
$page_rows_equipment_servicereporst = 5 ;// Number of service reports on equipment
|
||||
$page_rows_changelog = 50 ;// Number of changelogs returned
|
||||
$page_rows_rma = 25; // list RMA
|
||||
$page_rows_translations = 50; //list translation variables
|
||||
$page_rows_products_attributes = 50; //list product attributes
|
||||
$page_rows_media = 25; // list media
|
||||
$page_rows_pricelists = 50;//pricelists
|
||||
$page_rows_categories = 25;//categories
|
||||
$page_rows_discounts = 25;//discounts
|
||||
$page_rows_shipping = 25;//discounts
|
||||
$page_rows_transactions = 25; //transactions
|
||||
$page_rows_invoice = 25; //invoices
|
||||
//------------------------------------------
|
||||
// Languages supported
|
||||
//------------------------------------------
|
||||
$supportedLanguages = ['US', 'NL', 'DE', 'ES','PT'];
|
||||
|
||||
//------------------------------------------
|
||||
// Pricing
|
||||
//------------------------------------------
|
||||
$supportedCurrencies = ["0" =>"euro", "1"=>"dollar"];
|
||||
|
||||
$supportedModifiers = ["0" =>"subtract", "1"=>"add"];
|
||||
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
// All individual views and APIs - Profile ++++++++++++++
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
$all_profiles = [
|
||||
"build",
|
||||
"commerce",
|
||||
"distribution",
|
||||
"firmware",
|
||||
"garage",
|
||||
"interface",
|
||||
"service",
|
||||
"other"
|
||||
];
|
||||
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
// Marketing +++++++++++++++++++++++++++++++++++++
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
$main_marketing_dir = './marketing/';
|
||||
|
||||
$marketing_structure = array(
|
||||
"Emergency_Plug" => array(
|
||||
"Documents",
|
||||
"Images",
|
||||
"Video"
|
||||
)
|
||||
);
|
||||
@@ -1,27 +0,0 @@
|
||||
<?php
|
||||
/*Standard*/
|
||||
define('standard_profile','dashboard,profile,equipments,equipment,histories,history,firmwaretool,products_software,servicereports,servicereport,application');
|
||||
/*Superuser*/
|
||||
define('superuser_profile','dashboard,profile,assets,equipments,equipment,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,products,products_versions,products_software,product,product_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,marketing,application');
|
||||
/*Admin*/
|
||||
define('admin_profile','dashboard,profile,buildtool,sales,accounts,account,contracts,contract,contract_manage,cartests,cartest,cartest_manage,assets,equipments,equipment,equipment_healthindex,equipment_data,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,rmas,rma,rma_manage,rma_history,rma_history_manage,buildtool,products,products_versions,products_software,product,product_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,communications,communication,communication_send,marketing,reporting,report_build,report_contracts_billing,report_healthindex,changelog,application');
|
||||
/*AdminPlus*/
|
||||
define('adminplus_profile','dashboard,profile,buildtool,sales,accounts,account,contracts,contract,contract_manage,billing,cartests,cartest,cartest_manage,assets,equipments,equipment,equipment_healthindex,equipment_data,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,rmas,rma,rma_manage,rma_history,rma_history_manage,buildtool,products,products_versions,products_software,products_attributes,products_attributes_items,products_attributes_manage,products_configurations,products_categories,products_media,product,product_manage,pricelists,pricelists_items,pricelists_manage,catalog,categories,category,discounts,discount,shipping,shipping_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,communications,communication,communication_send,marketing,reporting,report_build,report_contracts_billing,report_healthindex,report_usage,config,settings,logfile,changelog,language,translations,translations_details,translation_manage,media,media_manage,application,maintenance,uploader,profiles,vin,shopping_cart,checkout,placeorder,taxes,transactions,transactions_items,invoice,order,orders,identity');
|
||||
/*Build*/
|
||||
define('build','dashboard,profile,buildtool,firmwaretool,buildtool,products_software,application');
|
||||
/*Commerce*/
|
||||
define('commerce','dashboard,profile,products,products_versions,products_software,products_attributes,products_attributes_items,products_attributes_manage,products_configurations,products_categories,products_media,product,product_manage,pricelists,pricelists_items,pricelists_manage,catalog,categories,category,discounts,discount,shipping,shipping_manage,admin,partners,partner,users,user,user_manage,translations,translations_details,translation_manage,media,media_manage,application,uploader,shopping_cart,checkout,placeorder,taxes,transactions,transactions_items,invoice,order,orders,identity');
|
||||
/*Distribution*/
|
||||
define('distribution','dashboard,profile,assets,equipments,equipment,equipment_manage,equipment_manage_edit,equipments_mass_update,histories,history,history_manage,firmwaretool,products,products_versions,products_software,product,product_manage,servicereports,servicereport,admin,partners,partner,users,user,user_manage,marketing,application');
|
||||
/*Firmware*/
|
||||
define('firmware','firmwaretool,products_software,application');
|
||||
/*Garage*/
|
||||
define('garage','dashboard,profile,cartests,cartest,cartest_manage,products_versions,application');
|
||||
/*Interface*/
|
||||
define('interface','contracts,contract,equipments,equipment_manage,firmwaretool,products_versions,products_software,users,application');
|
||||
/*Service*/
|
||||
define('service','dashboard,profile,assets,equipments,equipment,equipment_manage,histories,history,history_manage,firmwaretool,products_software,servicereports,servicereport,admin,partners,partner,users,user,user_manage,marketing,application');
|
||||
/*Other*/
|
||||
define('other','dashboard,profile,assets,equipments,equipment,equipment_manage,histories,history,history_manage,firmwaretool,products_software,servicereports,servicereport,admin,partners,partner,marketing,application');
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user