fixed formatting inconsistencies and spelling mistakes in admin scripts

added new permission enforcement to admin scripts

git-svn-id: svn://192.168.202.10@480 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2007-01-24 19:00:41 +00:00
parent d6e27cb0f2
commit c5992fbfe8
30 changed files with 225 additions and 229 deletions
@@ -37,7 +37,7 @@ if (!isset($RR)) {$gRRroup=4;}
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6;";
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 6 and view_reports='1';";
if ($DB) {echo "|$stmt|\n";}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);