summaryrefslogtreecommitdiff
path: root/www-ssl/admin/user2.php
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-01-13 00:07:42 +0100
committerAngelo Cuccato <cuccato@web.de>2010-01-13 00:07:42 +0100
commit93e0fc9705ec2fa8210748be1a56028c0d7c4379 (patch)
tree439ca9216a47f8eb3bf9534426c458775e2afe71 /www-ssl/admin/user2.php
parent49858dba14bfecc60f107b2ab448b69d967f5c2e (diff)
add group functions
Diffstat (limited to 'www-ssl/admin/user2.php')
-rwxr-xr-xwww-ssl/admin/user2.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/www-ssl/admin/user2.php b/www-ssl/admin/user2.php
index b4647da5..229a4cdc 100755
--- a/www-ssl/admin/user2.php
+++ b/www-ssl/admin/user2.php
@@ -54,10 +54,17 @@ if (IsSet($_GET["action"]))
$CVS_Data_i = 1;
foreach ($CVS_Data as $CVS_Data_Name => $CVS_Data_Value)
{
- if( ($CVS_Data_i+1)%2 && $CVS_Data_Name!="UID")
- $SQL2.= "`$CVS_Data_Name` = '". $_POST[$CVS_Data_i]."', ";
- $CVS_Data_i++;
+ if( ($CVS_Data_i+1)%2 && $CVS_Data_Name!="UID") {
+ if( $CVS_Data_Name == "GroupID")
+ {
+ if( $_POST["enterUID"] > 0 )
+ $SQL2.= "`$CVS_Data_Name` = ". $_POST["GroupID"].", ";
+ } else {
+ $SQL2.= "`$CVS_Data_Name` = '". $_POST[$CVS_Data_i]."', ";
+ }
}
+ $CVS_Data_i++;
+ }
$SQL2 = substr( $SQL2, 0, strlen($SQL2)-2 );
$SQL2.= " WHERE `UID`='". $_POST["enterUID"]. "' LIMIT 1;";
echo "<br>Secure-";