*/ include("session.php"); require("class_functions.php"); require_once("class_db.php"); $func = new functions(); //$func->show_array($_SESSION['upfile']); if(isset($_SESSION['upfile']['mime']) && isset($_SESSION['upfile']['format']) && $_SESSION['upfile']['error'] <> 1 && $_SESSION['courrier']["w_generate"] <> "Y") { //echo $_SESSION['upfile']['format']; //exit; header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: ".$_SESSION['upfile']['mime']); header("Content-Disposition: inline; filename=".basename('maarch').";"); header("Content-Transfer-Encoding: binary"); $ext = strtolower($_SESSION['upfile']['format']); if(file_exists($_SESSION['config']['tmpdir'].'/tmp_file_'.$_SESSION['user']['UserId'].'.'.$ext)) { $loc = $_SESSION['config']['tmpdir'].'/tmp_file_'.$_SESSION['user']['UserId'].'.'.$ext; header("Content-Length: " . filesize($loc)); readfile($loc); } exit; } elseif($_SESSION['courrier']["w_generate"] == "Y") { if(isset($_REQUEST['content']) && !empty($_REQUEST['content'])) { $_SESSION['model_content'] = stripslashes($_REQUEST['content']); } else { $model = new dbquery(); $model->connect(); $model->query("SELECT CONTENT from ".$_SESSION['tablename']['models']." WHERE LABEL = '".$_SESSION['courrier']["w_model"]."' "); $res_model = $model->fetch_object(); //$_SESSION['model_content'] = '

Notes compl�mentaires :
'; $_SESSION['model_content'] = stripslashes($res_model -> CONTENT); } ?> <?php echo $_SESSION['config']['applicationname']; ?>

<?php echo $_SESSION['config']['applicationname']; ?> return_bytes(ini_get("upload_max_filesize")); echo "

"._ERROR_FILE_UPLOAD_MAX." (".round($filesize/1024,2)."Ko Max)
"; } ?>