/web/admin/lib/radiusMysqlUser.class.php |
---|
229,7 → 229,7 |
public function set($userInfo) //ok |
{ |
/* |
Set a checkItem or replyItem of the user |
Set a value in userInfos |
*/ |
if (array_key_exists($userInfo, $this->userInfos)){ |
$this->userInfos[$userInfo] = $userInfo; |
/web/admin/lib/function.php |
---|
0,0 → 1,15 |
<?php |
/* |
All functions have the al_ (for alcasar) prefix |
*/ |
function al_escape($str){ |
if(!empty($str) && is_string($str)) { |
if (get_magic_quotes_gpc()) { |
$str = stripslashes(str); |
} |
$search=array("\\","\0","\n","\r","\x1a","'",'"'); |
$replace=array("\\\\","\\0","\\n","\\r","\Z","\'",'\"'); |
return str_replace($search,$replace,$str); |
} |
} |
?> |