<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
if (!defined('ADMIN_ALLOW') && !defined('ADMIN_MAX')) {
	die ("Access Denied");
}
if ($acces == 1) {
if($admintest && $adminsecu)  {

$pagetitle = _MODDAZIBAO;
incoh();
if ( ($cookie[1] != $envoi) && (!is_god($admin)) ) {
   redirect_url("".$admin_file.".php");
}
Max_OpenTable();
$did    = $GLOBALS['db']->XMFnum($did);
echo    "<form action=\"".$admin_file.".php\" method=\"post\">";
$result = $GLOBALS['db']->sql_query("select `id`, `titre` from `".TABLE_MAXDAZIBAO."` WHERE `id`='$did' ");
$row    = $GLOBALS['db']->sql_fetchrow($result);
$id     = $GLOBALS['db']->XMFnum($row['id']);
$titre  = stripslashes($row['titre']);

echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
echo "<input type=\"hidden\" name=\"envoi\" value=\"$envoi\" />";
echo "<b>"._MODIFMESSAGE."</b><br />";
echo "<textarea wrap=\"virtual\" cols=\"100\" rows=\"15\" name=\"x_titre\">$titre</textarea>";
br('2');
echo "<input type=\"hidden\" name=\"op\" value=\"UpdDazibao\" /><input type=\"submit\" value=\""._VALIDER."\" /></form>";

$GLOBALS['db']->sql_freeresult($result);
Max_CloseTable();

incof();

}
}else {
	echo "Access Denied";
}