*/
include("session.php");
require_once("class_functions.php");
require_once("class_db.php");
require_once("class_folders.php");
if(file_exists($_SESSION['config']['lang'].'.php'))
{
include($_SESSION['config']['lang'].'.php');
}
else
{
$_SESSION['error'] = "Language file missing...
";
}
$func = new functions();
$db = new dbquery();
$folders = new folders();
$db->connect();
///The Fileplan
if(isset($_REQUEST['fileplan_id']))
{
$fileplanId = addslashes($func->wash($_REQUEST['fileplan_id'], "no", _FILEPLAN));
}
else
{
$fileplanId = "";
}
//The folder
if(!isset($_REQUEST['folder_id']) || empty($_REQUEST['folder_id']))
{
$_SESSION['error'] = _SELECT_FOLDER_FIRST;
}
else
{
$s_id = addslashes($func->wash($_REQUEST['folder_id'], "no", _THE_FOLDER));
}
//The mode: flush or delete
if(!isset($_REQUEST['mode']) || empty($_REQUEST['mode']))
{
$mode = "FLH"; //Flush the folder is the default action
}
else
{
$mode = $_REQUEST['mode'];
}
//Action
$action = $_GET['action'];
?>