Added astguiclient_disabled agc/options.php setting, disabled by default
git-svn-id: svn://192.168.202.10@3708 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# astguiclient.php - the web-based version of the astGUIclient client application
|
||||
#
|
||||
# Copyright (C) 2022 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2023 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least
|
||||
# user_level 1 or greater to access this page. Also you need to have the login
|
||||
@@ -73,11 +73,13 @@
|
||||
# 210615-1037 - Default security fixes, CVE-2021-28854
|
||||
# 210616-2053 - Added optional CORS support, see options.php for details
|
||||
# 220220-0938 - Added allow_web_debug system setting
|
||||
# 230418-1009 - Added astguiclient_disabled options.php setting, disabled by default
|
||||
#
|
||||
|
||||
$version = '2.2.6-6';
|
||||
$build = '220220-0938';
|
||||
$version = '2.2.6-7';
|
||||
$build = '230418-1009';
|
||||
$php_script = 'astguiclient.php';
|
||||
$astguiclient_disabled = '1';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
require_once("functions.php");
|
||||
@@ -124,6 +126,12 @@ if (file_exists('options.php'))
|
||||
require_once('options.php');
|
||||
}
|
||||
|
||||
if ($astguiclient_disabled > 0)
|
||||
{
|
||||
echo "astguiclient is disabled on this system\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS AND USER LANGUAGE LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,enable_languages,language_method,default_language,allow_web_debug FROM system_settings;";
|
||||
|
||||
Reference in New Issue
Block a user