* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!function_exists('AuthenthificationProcess')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// //////////// Check Droits utilisateur //////////// if (!IsSuperAdmin()) ReloadIndex('admin'); //////////// if(isset($_POST['id'])) $id=$_POST['id']; if(isset($_GET['id'])) $id=$_GET['id']; $link_det=$rub_link."&todo=det&id=".$id; if(isset($_POST['valider'])) { $project_object = new project; $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; $result=$project_object->DeleteProject($id, $sql_object); if($result) header("Location: ".$link_confirm); else system_error(); } $query= SQL_getProjectName($id); $result=$sql_object->DBSelect($query); $project_name=FormatText($result[0]['project_name']); $project_owner=FormatText($result[0]['project_posted_by']); //////////// Check Droits utilisateur //////////// if (!HaveRight('project')) ReloadIndex('admin'); if (GetSessionElement('id')!= $project_owner && !IsSuperAdmin()) ReloadIndex('admin'); //////////// ?>