CMXX - Admin cleanup

This commit is contained in:
“VeLiTi”
2025-02-22 15:50:27 +01:00
parent 8bb78d2a08
commit 0b2ee8c3ce
27 changed files with 67 additions and 2698 deletions

View File

@@ -22,8 +22,8 @@ include 'functions.php';
//TRANSLATION FILE LOCATION
if (isset($_GET['language']) && $_GET['language'] !=''){
//INCLUDE LANGUAGE FILE
$file_language = './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
if (file_exists($api_file_language)){
$file_language = './custom/translations/translations_'.strtoupper($_GET['language']).'.php';
if (file_exists($file_language)){
include $file_language; //Include the code
//DEFINE LANGUAGE
$_SESSION['country_code'] = trim($_GET['language']);
@@ -35,7 +35,7 @@ if (isset($_GET['language']) && $_GET['language'] !=''){
}
}
elseif(isset($_SESSION['country_code'])){
$file_language = './settings/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
$file_language = './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
if (file_exists($file_language)){
include $file_language; //Include the code
}
@@ -48,6 +48,7 @@ elseif(isset($_SESSION['country_code'])){
$_SESSION['country_code'] = language_code;
}
$pdo = pdo_connect_mysql();
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
//LOGIN TO API
//+++++++++++++++++++++++++++++++++++++++++++++++++++++