User ".$a['login']." supprimé.
\n"; } else { if(isset($_GET['group'])) { pg_query("UPDATE cam_user SET groupe = ".$_GET['group']." WHERE iduser = ".$a['iduser']); $a['groupe'] = $_GET['group']; // insertion dans la trésorerie $roles2 = array(); $r = pg_query("SELECT login FROM cam_user WHERE iduser = ".$a['iduser']); $login = pg_fetch_array($r); get_roles($login[0], $roles2); if ($roles2['inscription']) { $r = pg_query("SELECT * FROM account WHERE iduser = ".$a['iduser']); // si n'existe pas déjà dans la trésorerie if (! $a2 = pg_fetch_array($r)) { $r = pg_query("SELECT iduser FROM id WHERE idcam_user = ".$a['iduser']); if ($a3 = pg_fetch_array($r)) { $r = pg_query("SELECT nom, prenom FROM user_pac WHERE iduser = ".$a3['iduser']); $a4 = pg_fetch_array($r); pg_query("INSERT INTO account(iduser, nom, prenom, amount) VALUES('".$a['iduser']."', '".$a4['nom']."', '".$a4['prenom']."', 0)"); } // else wtf !? } } } echo "\n"; } } else echo "
Cet id n'existe pas
\n"; } ?>\n"; } ?>
id login chambre groupe suppr ".$a['iduser']." ".$a['login']." ".$a2['name']." ".$a['name']." "; echo "suppr \n"; $a = pg_fetch_array($r); $bline = !$bline; } echo "