&check_cookie; &check_login; if($url_to_common){$com_path=$url_to_common;$com_path=~s!http://.+?/!$path_to_domain/!i;} $users_path=$user_root; $users_path=~s!/$!!;$users_path.="/"; $ptdr=$path_to_domain;$ptdr=~s!/$!!;$ptdr.="/"; $users_path =~ s`http://.+?/`$ptdr`i; if($_[0] !~ /$users_path/ && $_[0] !~ /$com_path/){error("$com_privilege")} if($_[1] && $_[1] !~ /$user_root/){error("$com_no_privilege")} 1;