@ -335,6 +335,12 @@ function loginStr($str)
return preg_replace($all, '', $str);
}
#
function deworker($str)
{
$work = '/[\._].*$/';
return preg_replace($work, '', $str);
function trn($str)
$rep = str_replace(array('<', '>'), array('<', '>'), $str);
@ -13,6 +13,9 @@ function show_api($info, $page, $menu, $name, $user)
global $fld_sep;
$u = getparam('username', true);
if (nutem($u))
no_api();
$u = deworker($u);
$api = getparam('api', true);