mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Added useful function 'is_metaconsole' in functions.php
This commit is contained in:
parent
57e64d4a8a
commit
f3d6513c65
@ -1315,6 +1315,15 @@ function safe_sql_string($string) {
|
||||
}
|
||||
}
|
||||
|
||||
function is_metaconsole() {
|
||||
global $config;
|
||||
|
||||
if ($config['metaconsole'])
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if current execution is under an AJAX request.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user