comparison admajax.js.php @ 1071:76e11ae923a7

Use long tags.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 24 Jan 2017 17:44:50 +0200
parents e23057465ca2
children 08900352f420
comparison
equal deleted inserted replaced
1070:e23057465ca2 1071:76e11ae923a7
8 header("Content-Type: application/javascript"); 8 header("Content-Type: application/javascript");
9 require_once "mconfig.inc.php"; 9 require_once "mconfig.inc.php";
10 require_once "msite.inc.php"; 10 require_once "msite.inc.php";
11 require_once "msession.inc.php"; 11 require_once "msession.inc.php";
12 12
13
13 // Initiate SQL database connection 14 // Initiate SQL database connection
14 if (!stConnectSQLDB()) 15 if (!stConnectSQLDB())
15 { 16 {
16 // Error occured, bail out early 17 // Error occured, bail out early
17 cmPrintPageFooter(); 18 cmPrintPageFooter();
23 24
24 // Check if sessions are enabled 25 // Check if sessions are enabled
25 if (!stChkSetting("admPassword") || !stAdmSessionAuth(FALSE)) 26 if (!stChkSetting("admPassword") || !stAdmSessionAuth(FALSE))
26 exit; 27 exit;
27 28
29
30 // Output JavaScript settings
28 echo 31 echo
29 "\n". 32 "\n".
30 "var jsSettingsArgs = [];\n"; 33 "var jsSettingsArgs = [];\n";
31 34
32 foreach (stExecSQL("SELECT * FROM settings_groups") as $group) 35 foreach (stExecSQL("SELECT * FROM settings_groups") as $group)