* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')) { include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// //////////// Check Droits utilisateur //////////// if (!$l21auth->isSuperAdmin()) ReloadIndex('admin'); //////////// if (isset($_GET['id'])) $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; $req_det = SQL_getoneCompletePage($id); $result = $sql_object->DBSelect($req_det); // Do record exists? if(!isset($result[0]['page_title'])) redirect_to('@module_default'); $display_title = formatText($result[0]['page_title'], '2HTML'); $display_header = linkin_content(formatText(empty_none($result[0]['page_header']), '2HTML')); $display_body = linkin_content(formatText($result[0]['page_body'], '2HTML')); $display_user = formatText($result[0]['user_login'], '2HTML'); $display_date_crea = $result[0]['page_date_crea_display']; $display_last_modify = $result[0]['page_last_modify_display']; $page_owner = $result[0]['page_posted_by']; if($result[0]['page_homepage']=='Y') { $display_homepage = _t('divers', 'yes'); } else { $display_homepage = _t('divers', 'no'); } $display_statut = display_statut($result[0]['page_status']); if ($result[0]['page_published_date_display'] == '01-01-0001') $display_published_date = mb_ucfirst(_t('statut','draft')); else $display_published_date = $result[0]['page_published_date_display']; $link_sup = $rub_link . "&todo=sup&id="; $link_mod = $rub_link . "&todo=mod&id="; ?>
"; echo formatTitleh2($display_title); echo "\n"; echo "\t" . _t('page','sup') . "\n"; echo "\t" . _t('page','mod') . "\n"; echo "
\n"; echo "
" . mb_ucfirst(_t('page','title')) . " :
\n"; echo "
" . $display_title . "
\n"; echo "
" . mb_ucfirst(_t('page','header')) . " :
\n"; echo "
" . $display_header . "
\n"; echo "
" . mb_ucfirst(_t('page','body')) . " :
\n"; echo "
" . $display_body . "
\n"; echo "
" . mb_ucfirst(_t('page','author')) . " :
\n"; echo '
' . $display_user . '
'.PHP_EOL; echo "
" . mb_ucfirst(_t('page','is_homepage'))." :
\n"; echo "
" . $display_homepage."
\n"; echo "
" . mb_ucfirst(_t('statut','published_on')) . " :
\n"; echo "
" . $display_published_date . "
\n"; echo "
" . mb_ucfirst(_t('divers','date_crea')) . " :
\n"; echo "
" . $display_date_crea . "
\n"; echo "
" . mb_ucfirst(_t('divers','last_modify')) . " :
\n"; echo "
" . $display_last_modify . "
\n"; echo "
" . mb_ucfirst(_t('divers','statut')) . " :
\n"; echo "
" . $display_statut . "
\n"; echo "
\n"; ?>