*/
include("session.php");
if(file_exists($_SESSION['config']['lang'].'.php'))
{
include($_SESSION['config']['lang'].'.php');
}
else
{
$_SESSION['error'] = "Language file missing...
";
}
$erreur = '';
if(isset($_GET['id']) && !empty($_GET['id']))
{
if(ereg('^[0-9]*$', $_GET['id']))
{
$id = $_GET['id'];
}
else
{
$erreur = _THE_ID._WRONG_FORMAT.".
";
}
}
else
{
$erreur = _MAIL_ID_UNDEFINED.".
";
}
if(!empty($id) && empty($erreur))
{
require("class_functions.php");
require_once("class_db.php");
$db = new dbquery();
$db->connect();
//$db->query("select CUSTOM_T10, CUSTOM_T11, CUSTOM_T12, CUSTOM_T13, CUSTOM_T14 from res_x where RES_ID = ".$id);
$db->query("select CUSTOM_T10, CUSTOM_T11, CUSTOM_T12, CUSTOM_T13, CUSTOM_T14, CUSTOM_T9, AUTHOR, CUSTOM_T4, CUSTOM_T3, CUSTOM_T18, CUSTOM_T19, CUSTOM_T20, CUSTOM_T21 from res_x where RES_ID = ".$id);
if($db->nb_result() < 1)
{
$erreur = _NO_DOCUMENT_CORRESPOND_TO_IDENTIFIER.".
";
}
else
{
$res = $db->fetch_object();
$quartier = stripslashes($res->CUSTOM_T14);
$num = stripslashes($res->CUSTOM_T10);
$rue = stripslashes($res->CUSTOM_T11);
$ville = stripslashes($res->CUSTOM_T12);
$cp = $res->CUSTOM_T13;
$civilite = stripslashes($res->CUSTOM_T3);
$nom = stripslashes($res->AUTHOR);
$prenom = stripslashes($res->CUSTOM_T4);
$qualite = stripslashes($res->CUSTOM_T9);
$arrondissement = stripslashes($res->CUSTOM_T18);
$canton = stripslashes($res->CUSTOM_T19);
$epci = stripslashes($res->CUSTOM_T20);
$epci_type = stripslashes($res->CUSTOM_T21);
}
}
$func = new functions();
$time = $func->get_session_time_expire();
?>