Add settings to GIT
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,5 @@ log_22.txt
|
||||
marketing/
|
||||
firmware/
|
||||
log/
|
||||
settings/settings.php
|
||||
settings/config.php
|
||||
|
||||
|
||||
271
settings/settings.php
Normal file
271
settings/settings.php
Normal file
@@ -0,0 +1,271 @@
|
||||
<?php
|
||||
//------------------------------------------
|
||||
//EXCEPTION LIST
|
||||
//------------------------------------------
|
||||
$serialnumber_exceptions = array("22050695","22110095");
|
||||
|
||||
//------------------------------------------
|
||||
// Security
|
||||
//------------------------------------------
|
||||
$security_key = 'secure_34563$52';
|
||||
|
||||
//------------------------------------------
|
||||
// Base color
|
||||
//------------------------------------------
|
||||
$color = '#005655';//'#0b1054';
|
||||
$color_accent = '#2FAC66'; //'#ececec';
|
||||
|
||||
//------------------------------------------
|
||||
// Database settings
|
||||
//------------------------------------------
|
||||
|
||||
require '/var/www/vhosts/veliti.nl/settings/portalsettings-acc.php';
|
||||
|
||||
//------------------------------------------
|
||||
// Define all the routes for all pages
|
||||
//------------------------------------------
|
||||
|
||||
//Menu Setup
|
||||
$main_menu = array ('dashboard','sales','buid','marketing','equipments','products','admin','settings');
|
||||
|
||||
//Sub menus
|
||||
$equipments_sub = array('equipments','servicereports','histories','firmwaretool','equipments_mass_update');
|
||||
$sales_sub = array('accounts','contracts');
|
||||
$admin_sub = array('users','communications','partners');
|
||||
$settings_sub = array('config','language','log');
|
||||
|
||||
//URLS
|
||||
$urls = array(
|
||||
"dashboard" => array(
|
||||
"url" => "dashboard",
|
||||
"selected" => "dashboard",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_dashboard"
|
||||
),
|
||||
"equipments" => array(
|
||||
"url" => "equipments",
|
||||
"selected" => "assets",
|
||||
"icon" => "fa-solid fa-database",
|
||||
"name" => "menu_assets"
|
||||
),
|
||||
"servicereports" => array(
|
||||
"url" => "servicereports",
|
||||
"selected" => "servicereports",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_service_reports"
|
||||
),
|
||||
"histories" => array(
|
||||
"url" => "histories",
|
||||
"selected" => "histories",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_history"
|
||||
),
|
||||
"firmwaretool" => array(
|
||||
"url" => "firmwaretool",
|
||||
"selected" => "firmwaretool",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_firmwaretool"
|
||||
),
|
||||
"equipments_mass_update" => array(
|
||||
"url" => "equipments_mass_update",
|
||||
"selected" => "equipments_mass_update",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_equipments_mass_update"
|
||||
),
|
||||
"products" => array(
|
||||
"url" => "products&status=1",
|
||||
"selected" => "products",
|
||||
"icon" => "fas fa-box-open",
|
||||
"name" => "menu_products"
|
||||
),
|
||||
"sales" => array(
|
||||
"url" => "accounts",
|
||||
"selected" => "accounts",
|
||||
"icon" => "fa-solid fa-bars",
|
||||
"name" => "menu_sales"
|
||||
),
|
||||
"accounts" => array(
|
||||
"url" => "accounts",
|
||||
"selected" => "accounts",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_sales_accounts"
|
||||
),
|
||||
"contracts" => array(
|
||||
"url" => "contracts",
|
||||
"selected" => "contracts",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_sales_contracts"
|
||||
),
|
||||
"admin" => array(
|
||||
"url" => "partners",
|
||||
"selected" => "partners",
|
||||
"icon" => "fa-solid fa-bars",
|
||||
"name" => "menu_admin"
|
||||
),
|
||||
"users" => array(
|
||||
"url" => "users",
|
||||
"selected" => "users",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_admin_users"
|
||||
),
|
||||
"communications" => array(
|
||||
"url" => "communications",
|
||||
"selected" => "communications",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_admin_communications"
|
||||
),
|
||||
"partners" => array(
|
||||
"url" => "partners",
|
||||
"selected" => "partners",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_admin_partners"
|
||||
),
|
||||
"settings" => array(
|
||||
"url" => "settings",
|
||||
"selected" => "settings",
|
||||
"icon" => "fas fa-tools",
|
||||
"name" => "menu_settings"
|
||||
),
|
||||
"config" => array(
|
||||
"url" => "settings",
|
||||
"selected" => "settings",
|
||||
"icon" => "fas fa-tools",
|
||||
"name" => "menu_config"
|
||||
),
|
||||
"language" => array(
|
||||
"url" => "language",
|
||||
"selected" => "language",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_language"
|
||||
),
|
||||
"log" => array(
|
||||
"url" => "logfile",
|
||||
"selected" => "logfile",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_log"
|
||||
),
|
||||
"marketing" => array(
|
||||
"url" => "marketing&product_group=Emergency_Plug&product_content=Images",
|
||||
"selected" => "marketing",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_marketing"
|
||||
),
|
||||
"Build" => array(
|
||||
"url" => "buildtool",
|
||||
"selected" => "buildtoo",
|
||||
"icon" => "fas fa-tachometer-alt",
|
||||
"name" => "menu_build"
|
||||
)
|
||||
);
|
||||
|
||||
$routes = array(
|
||||
'/' => 'equipments.php',
|
||||
'equipments' => 'equipments.php',
|
||||
'products' => 'products.php',
|
||||
'logout' => 'logout.php'
|
||||
);
|
||||
|
||||
//------------------------------------------
|
||||
// API BaseUrl
|
||||
//------------------------------------------
|
||||
$baseurl = 'https://'.$_SERVER['SERVER_NAME'].'/api.php'; //URL of API
|
||||
$portalURL = $_SERVER['SERVER_NAME'];
|
||||
|
||||
//------------------------------------------
|
||||
// Paging
|
||||
//------------------------------------------
|
||||
$page_rows_equipment = 25; //list Equipment
|
||||
$page_rows_history = 15; //list History
|
||||
$page_rows_products = 10;//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
|
||||
|
||||
//------------------------------------------
|
||||
// Equipmentdetails
|
||||
//------------------------------------------
|
||||
$servicedate = date("Y-m-d", strtotime("-365 days"));
|
||||
$warrantydate = date("Y-m-d", strtotime("-365 days"));
|
||||
$warranty_extended = date("Y-m-d", strtotime("+365 days"));
|
||||
$date = date('Y-m-d H:i:s');
|
||||
|
||||
//------------------------------------------
|
||||
//History Type
|
||||
//------------------------------------------
|
||||
$type1 = 'General';
|
||||
$type2 = 'Customer';
|
||||
$type3 = 'Service';
|
||||
$type4 = 'Testing';
|
||||
$type5 = 'Data';
|
||||
$type6 = 'Other';
|
||||
$type7 = 'Internal';
|
||||
$type8 = 'Ignore';
|
||||
$type9 = 'Warranty';
|
||||
$type10 = 'Contract';
|
||||
$type11 = 'Warranty-Expired';
|
||||
$type12 = 'Contract-Expired';
|
||||
$type13 = "Order";
|
||||
$type14 = "ServiceReport";
|
||||
$type15 = "SRIncluded";
|
||||
$type16 = "Notes";
|
||||
$type17 = "Visual";
|
||||
|
||||
$HistoryType_1 = 'Bootloader';
|
||||
$HistoryType_2 = 'Firmware';
|
||||
$HistoryType_3 = 'SerialNumber';
|
||||
$HistoryType_4 = 'Visual_Test';
|
||||
$HistoryType_5 = 'Maintenance_Test';
|
||||
$HistoryType_6 = 'Assembly_Test';
|
||||
$HistoryType_7 = 'ProductNumber';
|
||||
$HistoryType_8 = 'Visual';
|
||||
$HistoryType_9 = 'ServiceReport';
|
||||
//------------------------------------------
|
||||
//Permissions CRUD
|
||||
//------------------------------------------
|
||||
$permission_4 = 'CRUD'; //Admin+
|
||||
$permission_3 = 'CRUD'; //Admin
|
||||
$permission_2 = 'CRU'; //SuperUser
|
||||
$permission_1 = 'CRU'; //CreateUpdate
|
||||
$permission_0 = 'R'; //Readonly
|
||||
|
||||
$permissionlabel1 = 'Permission';
|
||||
$permission1 = 'Superuser'; #1
|
||||
$permission2 = 'Create & Update'; #2
|
||||
$permission3 = 'read-only'; // #3
|
||||
$permission4 = 'Admin'; //#4
|
||||
$permission5 = 'Admin+'; // #5
|
||||
|
||||
$settingslabel1 = 'profile';
|
||||
$setting1 = 'firmware'; //Fix
|
||||
$setting2 = 'service';
|
||||
$setting3 = 'build'; //Fix
|
||||
$setting4 = 'distribution';
|
||||
$setting5 = '';
|
||||
$setting6 = '';
|
||||
$setting7 = ''; //Fix
|
||||
$setting8 = 'interface';
|
||||
|
||||
//------------------------------------------
|
||||
//Partners
|
||||
//------------------------------------------
|
||||
$partnertype1 = 'SalesID';
|
||||
$partnertype2 = 'SoldTo';
|
||||
$partnertype3 = 'ShipTo';
|
||||
$partnertype4 = 'Location';
|
||||
$partnertype5 = 'Section';
|
||||
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
// Marketing +++++++++++++++++++++++++++++++++++++
|
||||
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
$main_marketing_dir = './marketing/';
|
||||
|
||||
$marketing_structure = array(
|
||||
"Emergency_Plug" => array(
|
||||
"Documents",
|
||||
"Images",
|
||||
"Video"
|
||||
)
|
||||
);
|
||||
@@ -19,6 +19,7 @@ $menu_config = 'Config';
|
||||
$menu_language = 'Taal';
|
||||
$menu_log = 'Log';
|
||||
$menu_marketing = 'Marketing';
|
||||
$menu_build = 'Build';
|
||||
|
||||
//TABS
|
||||
$tab1 = 'Algemeen';
|
||||
|
||||
@@ -19,6 +19,7 @@ $menu_config = 'Config';
|
||||
$menu_language = 'Language';
|
||||
$menu_log = 'Log';
|
||||
$menu_marketing = 'Marketing';
|
||||
$menu_build = 'Build';
|
||||
|
||||
//TABS
|
||||
$tab1 = 'General';
|
||||
|
||||
Reference in New Issue
Block a user