1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-05 03:38:29 +02:00

Experimental "code" data format added to adminUI. PHP Notice removal.

This commit is contained in:
Cameron 2016-11-04 17:49:22 -07:00
parent 403fcf5421
commit 160d8522b0
3 changed files with 10 additions and 1 deletions

View File

@ -1488,7 +1488,7 @@ class e_admin_dispatcher
$tmp = explode('/', trim($key, '/'), 3);
// 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;
}

View File

@ -4181,6 +4181,11 @@ TMPL;
echo "<h3>User-input &gg; toDb(\$text, true, false, 'no_html')</h3>";
print_a($dbText2);
echo "<div class='alert alert-warning'>";
$dbText3 = $tp->toDB($text, false, false, 'pReFs');
echo "<h3>User-input &gg; toDb(\$text, false, false, 'pReFs')</h3>";
print_a($dbText3);
// toClean
$filter3 = $tp->filter($text, 'wds');
echo "<h3>User-input &gg; filter(\$text, 'wds')</h3>";

View File

@ -2657,6 +2657,10 @@ class e_front_model extends e_model
return $tp->toDB($value);
break;
case 'code':
return $tp->toDB($value, false, false, 'pReFs');
break;
case 'float':
return $this->toNumber($value);
break;