* @author Loic Vinet */ include("session.php"); require_once("class_functions.php"); require_once("class_db.php"); if(file_exists($_SESSION['config']['lang'].'.php')) { include($_SESSION['config']['lang'].'.php'); } else { $_SESSION['error'] = "Language file missing...
"; } $func = new functions(); $users = array(); $what = "A"; $where = ""; // Skip missing user from list $db_abs = new dbquery(); $db_abs->connect(); $db_abs->query("select distinct USER_ABS from ".$_SESSION['tablename']['missing_user']); //$db_abs->show(); $j=0; while($line = $db_abs->fetch_object()) { $user_abs[$j] = $line->USER_ABS; $j++; } if(isset($_GET['what']) && !empty($_GET['what'])) { $this_user = $_SESSION['user']['UserId']; if ($_GET['specified_user'] <> "") { $this_user = $_GET['specified_user']; } $what = addslashes($func->wash($_GET['what'], "no", "", "no")); if($_GET['service'] == "true") { if($what == "all") { $where = " where USER_ID <> '".$this_user."' order by DEPARTMENT, LastName "; } else { $where = "where USER_ID <> '".$this_user."' and DEPARTMENT like '".strtolower($what)."%' or DEPARTMENT like '".strtoupper($what)."%' order by DEPARTMENT, LastName "; } } else { if($what == "all") { $where = " where USER_ID <> '".$this_user."' order by LastName "; } else { $where = "where USER_ID <> '".$this_user."' and LastName like '".strtolower($what)."%' or LastName like '".strtoupper($what)."%' order by LastName"; } } } $db = new dbquery(); $db->connect(); $db->query("select USER_ID, FIRSTNAME, LASTNAME, DEPARTMENT, MAIL from ".$_SESSION['tablename']['users']." ".$where); //$db->show(); $i=1; while($line = $db->fetch_object()) { $users[$i] = array("ID" => $line->USER_ID, "PRENOM" => $line->FIRSTNAME, "NOM" => $line->LASTNAME, "DEP" => $line->DEPARTMENT, "MAIL" => $line->MAIL); $i++; } $new_user = ""; if($_GET['action'] == "choose" && !empty($_GET['ind'])) { $new_user = $_GET['ind']; $id_new_user = $_GET['ind2']; } if($_POST['redirect_abs']) { $table = 'user_abs'; $this_user = $_SESSION['user']['UserId']; if ($_POST['specified_user'] <> "") { $this_user = $_POST['specified_user']; } $db->query("INSERT INTO `".$_SESSION['tablename']['missing_user']."` ( `USER_ABS` , `NEW_USER` ) VALUES ('".$this_user."', '".$id_new_user."');"); //$db->show(); //Manage Abs when user is already missing $db->query("UPDATE ".$_SESSION['tablename']['missing_user']." SET NEW_USER = '".$id_new_user."' WHERE NEW_USER ='".$this_user."'"); //$db->show(); if($_SESSION['history']['userabs'] == "true") { require_once("class_history.php"); $history = new history(); $history->add($table,$this_user,"ABS",_REDIRECT_MAIL_OF." ".$this_user." vers ".$id_new_user."."); } ?> get_session_time_expire(); ?> <? echo _REDIRECTION;?> "") { $spec_user = "&specified_user=".$_GET['specified_user']; } ?>
:  
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z -
:  
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - >


>
 


:


.
.