*/
include("session.php");
require_once("class_functions.php");
require_once("class_folders.php");
require_once("class_db.php");
require_once("class_letterbox.php");
$func = new functions();
$folders = new folders();
if(file_exists($_SESSION['config']['lang'].'.php'))
{
include($_SESSION['config']['lang'].'.php');
}
else
{
$_SESSION['error'] = "Language file missing...
";
}
//A partir de la page de details
if(isset($_GET['id']) && !empty($_GET['id']) )
{
$_SESSION['chosen_doc'] = array();
$_SESSION['chosen_doc'][] = $_GET['id'];
}
//print_r($_SESSION['chosen_doc']);
//ANNULER
if(isset($_REQUEST['cancel']))
{
if ($_SESSION['origin'] == "details")
{
$link = "index.php?page=details&id=".$_SESSION['chosen_doc'][0];
}
elseif($_SESSION['origin'] == "basket")
{
$link = "index.php?page=".$_SESSION['current_basket']['page'];
}
$_SESSION['chosen_doc'] = array();
?>
putFolder($_GET['folder_id'], $_SESSION['chosen_doc'][$i]);
}
if (!isset($_SESSION['error']) || empty($_SESSION['error']))
{
$_SESSION['info'] = _MAIL_CLASSIFIED;
if ($_SESSION['origin'] == "details")
{
$link = "index.php?page=details&id=".$_SESSION['chosen_doc'][0];
}
elseif($_SESSION['origin'] == "basket")
{
$link = "index.php?page=".$_SESSION['current_basket']['page'];
}
$_SESSION['chosen_doc'] = array();
?>
wash($_GET['folder_id'], "no", _THE_FOLDER));
}
$action_link = "folders_put.php?folder_id=".$s_id;
}
$link = "index.php?page=folders&action=".$_GET['action']."&folder_id=".$s_id;
$db = new dbquery();
$db->connect();
?>