getParameter("defaultpage"); if(! $pageinfo = mysql_fetch_array(mysql_query("SELECT * FROM ".$dmtcms->getTable("pages")." WHERE id='".$_GET['p']."' AND admin>=".$_SESSION[$siteid]['admin']))) { $pageinfo = mysql_fetch_array(mysql_query("SELECT * FROM ".$dmtcms->getTable("pages")." WHERE id='".$dmtcms->getParameter("defaultpage")."'")); } $title = $pageinfo['title']; $page = $pageinfo['path']; // Language initialization ! if($pageinfo['context'] != "dmtcms") { if(preg_match("/mod_/", $pageinfo['context'])) { # Module ? $langfile = "modules/".$pageinfo['context']."/lang/".$_SESSION[$siteid]['language'].".php"; } elseif($pageinfo['context'] == "custom") { # Custom ? $langfile = "custom/lang/".$_SESSION[$siteid]['language'].".php"; } if(file_exists($langfile)) require_once($langfile); # Language file (custom or module) } if (isset($_GET['c']) && $_GET['c'] == "p") // On est dans un page d'article du blog $title = mysql_result(mysql_query("SELECT pst_titre FROM ".$dmtcms->getTable("posts")." WHERE pst_id=".$_GET['id']),0); ?> printStyles(); ?> <? echo $dmtcms->getParameter("headertitle"); ?><? echo $title ?>
getParameter("toptitle"); ?>
Erreur : ".$errors[$_GET['err']]."

" ; } if(isset($_GET['mess'])) { echo "

".$messages[$_GET['mess']]."

" ; } include($page); ?>