mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Notify admins when script access is disabled.
This commit is contained in:
parent
06de1752d4
commit
7952e9188b
@ -5172,6 +5172,16 @@ class e_parse
|
||||
{
|
||||
$this->grantScriptAccess();
|
||||
}
|
||||
elseif(ADMIN && (strpos($html, '</script>') !== false))
|
||||
{
|
||||
$lan1 = defset('LAN_NO_SCRIPT_ACCESS', "You don't have permission to use [script] tags.");
|
||||
$lan2 = defset('', "If you believe this is an error, please ask the main administrator to grant you script access via [b]Preferences > Content Filters[/b]");
|
||||
$srch = ['[', ']'];
|
||||
$repl = ['<b><', '></b>'];
|
||||
|
||||
e107::getMessage()->addWarning(str_replace($srch,$repl,$lan1));
|
||||
e107::getMessage()->addWarning(e107::getParser()->toHTML($lan2,true));
|
||||
}
|
||||
|
||||
// Set it up for processing.
|
||||
|
||||
|
@ -586,3 +586,6 @@ define("LAN_X_CHARS_REMAINING", "[x] chars. remaining");
|
||||
define("LAN_UI_BATCH_NOW", "Current Date/Time");
|
||||
define("LAN_RELATIONSHIP", "Relationship");
|
||||
define("LAN_RELATIONSHIP_HELP", "Optional 'rel' attribute. Comma separated.");
|
||||
|
||||
define("LAN_NO_SCRIPT_ACCESS", "You don't have permission to use [script] tags.");
|
||||
define("LAN_NO_SCRIPT_ACCESS_ASK", "If you believe this is an error, please ask the main administrator to grant you script access via [b]Preferences > Content Filters[/b]");
|
||||
|
Loading…
x
Reference in New Issue
Block a user