CMXX - Admin cleanup
This commit is contained in:
@@ -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
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
Reference in New Issue
Block a user