index 4fa85ce41c677209242014e723958112cf5ee3c0..136dca87ab87c2b393447d2f8f6a5801a04f0673 100644 (file)
public static function is_uid($uid)
{
- global $config;
-
if ($uid == ""){
return (TRUE);
}
/* Simple is domain check, it checks if the given string looks like "string(...).string" */
public static function is_domain($str)
{
- return(preg_match("/^([a-z0-9i\-]*)\.[a-z0-9]*$/i",$str));
+ return(preg_match("/^([a-z0-9\-]*)\.[a-z0-9\-]*$/i",$str));
}
*/
public static function is_ip_range($ip1,$ip2)
{
- if(!is_ip($ip1) || !is_ip($ip2)){
+ if(!tests::is_ip($ip1) || !tests::is_ip($ip2)){
return(FALSE);
}else{
$ar1 = split("\.",$ip1);