* @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'); } //////////// 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'])) { $news_object = new news; $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; $result=$news_object->DeleteNews($id, $sql_object); if($result) header("Location: ".$link_confirm); else system_error(); } $requete= SQL_getNewsTitle($id); $result=$sql_object->DBSelect($requete); $news_title=FormatText($result[0]['news_title']); $news_owner=FormatText($result[0]['news_posted_by']); //////////// Check Droits utilisateur //////////// if (!HaveRight('news')) ReloadIndex('admin'); if (GetSessionElement('id')!=$news_owner && !IsSuperAdmin()) ReloadIndex('admin'); //////////// ?>