[ Index ] |
|
Code source de CMS made simple 1.0.5 |
1 <?php 2 3 if (!(isset($USE_OUTPUT_BUFFERING) && $USE_OUTPUT_BUFFERING == false)) 4 { 5 @ob_start(); 6 } 7 8 include_once ("../lib/classes/class.admintheme.inc.php"); 9 10 if (isset($USE_THEME) && $USE_THEME == false) 11 { 12 echo '<!-- admin theme disabled -->'; 13 } 14 else 15 { 16 $themeName=get_preference(get_userid(), 'admintheme', 'default'); 17 $themeObjectName = $themeName."Theme"; 18 $userid = get_userid(); 19 20 if (file_exists(dirname(__FILE__)."/themes/$themeName}/$themeObjectName}.php")) 21 { 22 include(dirname(__FILE__)."/themes/$themeName}/$themeObjectName}.php"); 23 $themeObject = new $themeObjectName($gCms, $userid, $themeName); 24 } 25 else 26 { 27 $themeObject = new AdminTheme($gCms, $userid, $themeName); 28 } 29 30 $gCms->variables['admintheme']=&$themeObject; 31 if (isset($gCms->config['admin_encoding']) && $gCms->config['admin_encoding'] != '') 32 { 33 $themeObject->SendHeaders(isset($charsetsent), $gCms->config['admin_encoding']); 34 } 35 else 36 { 37 $themeObject->SendHeaders(isset($charsetsent), get_encoding('', false)); 38 } 39 $themeObject->PopulateAdminNavigation(isset($CMS_ADMIN_SUBTITLE)?$CMS_ADMIN_SUBTITLE:''); 40 41 $themeObject->DisplayDocType(); 42 $themeObject->DisplayHTMLStartTag(); 43 $themeObject->DisplayHTMLHeader(false, isset($headtext)?$headtext:''); 44 $themeObject->DisplayBodyTag(); 45 $themeObject->DoTopMenu(); 46 $themeObject->DisplayMainDivStart(); 47 // we've removed the Recent Pages stuff, but other things could go in this box 48 // so I'll leave some of the logic there. We can remove it later if it makes sense. SjG 49 $marks = get_preference($userid, 'bookmarks'); 50 if ($marks) 51 { 52 $themeObject->StartRighthandColumn(); 53 if ($marks) 54 { 55 $themeObject->DoBookmarks(); 56 } 57 58 $themeObject->EndRighthandColumn(); 59 } 60 } 61 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |