mirror of
https://github.com/e107inc/e107.git
synced 2025-05-10 22:25:37 +02:00
Experimental "code" data format added to adminUI. PHP Notice removal.
This commit is contained in:
parent
403fcf5421
commit
160d8522b0
@ -1488,7 +1488,7 @@ class e_admin_dispatcher
|
|||||||
$tmp = explode('/', trim($key, '/'), 3);
|
$tmp = explode('/', trim($key, '/'), 3);
|
||||||
|
|
||||||
// sync with mode/route access
|
// sync with mode/route access
|
||||||
if(!$this->checkModeAccess($tmp[0]) || !$this->checkRouteAccess($tmp[0].'/'.$tmp[1]))
|
if(!$this->checkModeAccess($tmp[0]) || !$this->checkRouteAccess($tmp[0].'/'.varset($tmp[1])))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -4181,6 +4181,11 @@ TMPL;
|
|||||||
echo "<h3>User-input ≫ toDb(\$text, true, false, 'no_html')</h3>";
|
echo "<h3>User-input ≫ toDb(\$text, true, false, 'no_html')</h3>";
|
||||||
print_a($dbText2);
|
print_a($dbText2);
|
||||||
|
|
||||||
|
echo "<div class='alert alert-warning'>";
|
||||||
|
$dbText3 = $tp->toDB($text, false, false, 'pReFs');
|
||||||
|
echo "<h3>User-input ≫ toDb(\$text, false, false, 'pReFs')</h3>";
|
||||||
|
print_a($dbText3);
|
||||||
|
|
||||||
// toClean
|
// toClean
|
||||||
$filter3 = $tp->filter($text, 'wds');
|
$filter3 = $tp->filter($text, 'wds');
|
||||||
echo "<h3>User-input ≫ filter(\$text, 'wds')</h3>";
|
echo "<h3>User-input ≫ filter(\$text, 'wds')</h3>";
|
||||||
|
@ -2657,6 +2657,10 @@ class e_front_model extends e_model
|
|||||||
return $tp->toDB($value);
|
return $tp->toDB($value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'code':
|
||||||
|
return $tp->toDB($value, false, false, 'pReFs');
|
||||||
|
break;
|
||||||
|
|
||||||
case 'float':
|
case 'float':
|
||||||
return $this->toNumber($value);
|
return $this->toNumber($value);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user