- Removed old migration scripts for profiles and users to RBAC. - Updated config redirector to utilize environment variables for configuration loading. - Added .gitignore files to firmware, log, and marketing directories to prevent unnecessary file tracking. - Introduced new configuration files for acceptance, development, and production environments with relevant settings. - Enhanced settings files to include exception lists, security keys, and database settings.
112 lines
3.2 KiB
PHP
112 lines
3.2 KiB
PHP
<?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';
|
|
|
|
//------------------------------------------
|
|
// Menusetup & settings
|
|
//------------------------------------------
|
|
require 'settingsmenu.php';
|
|
|
|
//------------------------------------------
|
|
// API BaseUrl
|
|
//------------------------------------------
|
|
$baseurl = 'https://'.$_SERVER['SERVER_NAME'].'/api.php'; //URL of API
|
|
$portalURL = $_SERVER['SERVER_NAME'];
|
|
|
|
//------------------------------------------
|
|
// 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');
|
|
|
|
$curYear = date("Y", time());
|
|
$curMonth = date("m", time());
|
|
$curQuarter = (int)ceil($curMonth / 3);
|
|
$curdateObj = DateTime::createFromFormat('!m', $curMonth);
|
|
$curMonth_name = $curdateObj->format('F');
|
|
|
|
//------------------------------------------
|
|
//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'; |