*/
include("session.php");
include($_SESSION['config']['lang'].'.php');
require("class_functions.php");
require_once("class_db.php");
$func = new functions();
$db = new dbquery();
$db->connect();
$db_generate = new dbquery();
$db_generate->connect();
$_SESSION['error'] = '';
?>
'' && $_FILES['file']['error'] <> 1)
{
//echo "OK";
$extension = explode(".",$_FILES['file']['name']);
$count_level = count($extension)-1;
$the_ext = $extension[$count_level];
$the_ext = strtolower($the_ext);
if(!is_uploaded_file($_FILES['file']['tmp_name']))
{
$_SESSION['error'] = _FILE_NOT_SEND.". "._TRY_AGAIN.". "._MORE_INFOS." (".$_SESSION['config']['adminname'].")";
//header("location: enregistrement_doc.php");
//exit();
?>
".$_SESSION['config']['adminname'].")";
//header("location: enregistrement_doc.php");
//exit();
?>
query("SELECT GENERATE, MODEL from ".$_SESSION['tablename']['doctypes']." WHERE TYPE_ID = '".$_SESSION['courrier']['type_courrier']."' ");
$res_type = $db->fetch_object();
if( isset($_SESSION['courrier']["type_courrier"]) && !empty($_SESSION['courrier']["type_courrier"]) && $res_type->GENERATE <> "Y")
{?>
GENERATE == "Y")
{
}
?>