From 93e0fc9705ec2fa8210748be1a56028c0d7c4379 Mon Sep 17 00:00:00 2001 From: Angelo Cuccato Date: Wed, 13 Jan 2010 00:07:42 +0100 Subject: add group functions --- www-ssl/admin/userDefaultSetting.php | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'www-ssl/admin/userDefaultSetting.php') diff --git a/www-ssl/admin/userDefaultSetting.php b/www-ssl/admin/userDefaultSetting.php index 3c47ebc7..09c62a15 100755 --- a/www-ssl/admin/userDefaultSetting.php +++ b/www-ssl/admin/userDefaultSetting.php @@ -46,7 +46,7 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) "[". mysql_error(). "]

"; break; case "SetForAllUser": - $SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "`='". $_GET["Default"]. "'"; + $SQL = "UPDATE `UserCVS` SET `". $_GET["Field"]. "`='". $_GET["Default"]. "' WHERE UID>0"; $Erg = mysql_query( $SQL, $con); if( $Erg == 1) echo "

UPDATE ".$_GET["Field"]. " = ". $_GET["Default"]. " for all Users succesfull

\n"; @@ -70,20 +70,30 @@ if( isset( $_GET["Field"]) && isset( $_GET["Default"]) && isset( $_GET["Send"])) $erg = mysql_query("SHOW COLUMNS FROM `UserCVS`"); echo mysql_error(); -for( $i=1; $i\n"; echo "\t\t
\n"; echo "\t\t\t\n"; echo "\t\t\t". mysql_result( $erg, $i, "Field"). "\n"; - echo "\t\t\t"; + echo "\t\t\t\n"; + + echo "\t\t\t\tY\n". - "\t\t\t N"; - else - echo "Y\n". - "\t\t\t N"; - echo "\n"; + echo " checked"; + echo ">allow\n"; + + echo "\t\t\t\tdenied\n"; + + echo "\t\t\t\tgroup-setting\n"; + + echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t \n"; echo "\t\t\t \n"; @@ -95,8 +105,11 @@ echo "\t\n"; echo "\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; -echo "\t\t\tY\t". - "\t\t\t\tN\n"; +echo "\t\t\t\n"; +echo "\t\t\t\tallow\n"; +echo "\t\t\t\tdenied\n"; +echo "\t\t\t\tgroup-setting\n"; +echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t
\n"; echo "\t\n"; -- cgit v1.2.3-54-g00ecf