'."\n". ''."\n". "\n". ' '.$title.' - '.dc_blog_name.' - DotClear '.DC_VERSION.''."\n". ' \n". ' '."\n". $head. "\n". "\n"; $myMenu->addItem( __('Entries'),'index.php','', (preg_match('/^index.php|poster.php|images.php|trackback.php$/',basename($_SERVER['PHP_SELF']))), true,'menuBillets'); $myMenu->addItem( __('Comments'),'comments.php','', (preg_match('/^comment/',basename($_SERVER['PHP_SELF']))), true,'menuComments'); $myMenu->addItem( __('Categories'),'cat_list.php','', (preg_match('/^cat/',basename($_SERVER['PHP_SELF']))), $auth->userLevel(5),'menuCategories'); $myMenu->addItem( __('Editors'),'redac_list.php','', (preg_match('/^redac/',basename($_SERVER['PHP_SELF']))), $auth->userLevel(9),'menuUsers'); $myMenu->addItem( __('Preferences'),'user_prefs.php','', (basename($_SERVER['PHP_SELF']) == 'user_prefs.php'), true,'menuPref'); $myMenu->addItem( __('Tools'),'tools.php','', (basename($_SERVER['PHP_SELF']) == 'tools.php'), $auth->userLevel(9),'menuTools'); echo ''."\n". '
'."\n". $mySubMenu->draw()."\n". '
'."\n". ''. "\n"; if(!empty($_GET['msg'])) { echo '

'.strip_tags($_GET['msg']).'

'; } } function closePage() { global $con; echo "
\n". ''."\n". "
\n". ''."\n"; # URL de la page avec sessions /* if (defined('DEBUG') && DEBUG) { $page_uri = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $valid_separator = (strpos($page_uri,'?')) ? '&' : '?'; $page_uri = $t_uri = $page_uri.$valid_separator.session_name().'='.session_id(); $page_uri = htmlspecialchars('http://'.$page_uri); echo '

'.$page_uri.'

'; } //*/ echo ''; if (isset($_SESSION)) { session_write_close(); } if (!empty($con) && is_object($con)) { $con->close(); } } /* Popup */ function openPopup($title='',$encoding='') { commonHeaders($encoding); echo ''."\n". ''."\n". "\n". ''.$title.' - DotClear'."\n". ''."\n". ''."\n". "\n". ''."\n". '
'."\n". '
'."\n"; } function closePopup() { global $con; echo "
\n". '

'.__('Close this window').'

'."\n". "
\n". ''."\n". "\n". "\n"; # Fermeture de la connexion if (isset($_SESSION)) { session_write_close(); } if (!empty($con) && is_object($con)) { $con->close(); } } function commonHeaders($encoding='') { if ($encoding == '') { $encoding = dc_encoding; } header('Content-Type: text/html; charset='.$encoding); header('Content-Script-Type: text/javascript'); header('Content-Style-Type: text/css'); header('Content-Language: '.DC_LANG); } function helpLink($section,$id='',$str='(?)') { $id = (trim($id)!='') ? '#'.$id : ''; return ''.$str.''; } ?>