[ Index ] |
PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2012 Oliver Georgi <oliver@phpwcms.de> // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 // set page processiong start time 24 list($usec, $sec) = explode(' ', microtime()); 25 $phpwcms_rendering_start = $usec + $sec; 26 27 session_start(); 28 29 //define used var names 30 $body_onload = ''; 31 $forward_to_message_center = false; 32 $wcsnav = array(); 33 $indexpage = array(); 34 $phpwcms = array(); 35 $BL = array(); 36 $BE = array('HTML' => '', 'BODY_OPEN' => array(), 'BODY_CLOSE' => array(), 'HEADER' => array(), 'LANG' => 'en'); 37 38 // check against user's language 39 if(!empty($_SESSION["wcs_user_lang"]) && preg_match('/[a-z]{2}/i', $_SESSION["wcs_user_lang"])) { 40 $BE['LANG'] = $_SESSION["wcs_user_lang"]; 41 } 42 43 require_once ('config/phpwcms/conf.inc.php'); 44 require_once ('include/inc_lib/default.inc.php'); 45 require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php'); 46 require_once (PHPWCMS_ROOT.'/include/inc_lib/general.inc.php'); 47 checkLogin(); 48 require_once (PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php'); 49 require_once (PHPWCMS_ROOT.'/include/inc_lib/default.backend.inc.php'); 50 51 //load default language EN 52 require_once (PHPWCMS_ROOT.'/include/inc_lang/backend/en/lang.inc.php'); 53 $BL['modules'] = array(); 54 55 if(!empty($_SESSION["wcs_user_lang_custom"])) { 56 //use custom lang if available -> was set in login.php 57 $BL['merge_lang_array'][0] = $BL['be_admin_optgroup_label']; 58 $BL['merge_lang_array'][1] = $BL['be_cnt_field']; 59 include(PHPWCMS_ROOT.'/include/inc_lang/backend/'. $BE['LANG'] .'/lang.inc.php'); 60 $BL['be_admin_optgroup_label'] = array_merge($BL['merge_lang_array'][0], $BL['be_admin_optgroup_label']); 61 $BL['be_cnt_field'] = array_merge($BL['merge_lang_array'][1], $BL['be_cnt_field']); 62 unset($BL['merge_lang_array']); 63 } 64 65 require_once (PHPWCMS_ROOT.'/include/inc_lib/navi_text.inc.php'); 66 require_once (PHPWCMS_ROOT.'/include/inc_lib/checkmessage.inc.php'); 67 require_once (PHPWCMS_ROOT.'/config/phpwcms/conf.template_default.inc.php'); 68 require_once (PHPWCMS_ROOT.'/config/phpwcms/conf.indexpage.inc.php'); 69 require_once (PHPWCMS_ROOT.'/include/inc_lib/imagick.convert.inc.php'); 70 71 // check modules 72 require_once (PHPWCMS_ROOT.'/include/inc_lib/modules.check.inc.php'); 73 74 $BL['be_admin_struct_index'] = html_specialchars($indexpage['acat_name']); 75 76 77 $subnav = ''; //Sub Navigation 78 $p = isset($_GET["p"]) ? intval($_GET["p"]) : 0; //which page should be opened 79 $do = isset($_GET["do"]) ? $_GET["do"] : 'default'; //which backend section and which $do action 80 $module = isset($_GET['module']) ? clean_slweg($_GET['module']) : ''; //which module 81 $phpwcms['be_parse_lang_process'] = false; // limit parsing for BBCode/BraceCode languages only to some sections 82 83 switch ($do) { 84 85 case "articles": //articles 86 include (PHPWCMS_ROOT.'/include/inc_lib/admin.functions.inc.php'); 87 $wcsnav["articles"] = "<strong class=\"navtexta\">".$wcsnav["articles"]."</strong>"; 88 include (PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'); //load array with actual content types 89 include (PHPWCMS_ROOT.'/include/inc_lib/article.functions.inc.php'); //load article funtions 90 $subnav .= subnavtext($BL['be_subnav_article_center'], "phpwcms.php?do=articles", $p, "", 0); 91 $subnav .= subnavtext($BL['be_subnav_article_new'], "phpwcms.php?do=articles&p=1&struct=0", $p, "1", 0); 92 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n"; 93 $subnav .= subnavtext($BL['be_news'], "phpwcms.php?do=articles&p=3", $p, "3", 0); 94 break; 95 96 case "files": //files 97 $wcsnav["files"] = "<strong class=\"navtexta\">".$wcsnav["files"]."</strong>"; 98 $subnav .= subnavtext($BL['be_subnav_file_center'], "phpwcms.php?do=files", $p, "", 0); 99 $subnav .= subnavtext($BL['be_subnav_file_ftptakeover'], "phpwcms.php?do=files&p=8", $p, "8", 0); 100 $subnav .= subnavtext($BL['be_file_multiple_upload'], "phpwcms.php?do=files&p=9", $p, "9", 0); 101 break; 102 103 case "modules": //modules 104 $wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>"; 105 106 foreach($phpwcms['modules'] as $value) { 107 108 $subnav .= subnavtext($BL['modules'][ $value['name'] ]['backend_menu'], 'phpwcms.php?do=modules&module='.$value['name'], $module, $value['name'], 0); 109 110 } 111 112 break; 113 114 case "messages": //messages 115 $wcsnav["messages"] = "<strong class=\"navtexta\">".$wcsnav["messages"]."</strong>"; 116 if(isset($_SESSION["wcs_user_admin"]) && $_SESSION["wcs_user_admin"] == 1) { 117 $subnav .= subnavtext($BL['be_subnav_msg_newslettersend'], "phpwcms.php?do=messages&p=3", $p, "3", 0); 118 $subnav .= subnavtext($BL['be_subnav_msg_subscribers'], "phpwcms.php?do=messages&p=4", $p, "4", 0); 119 $subnav .= subnavtext($BL['be_subnav_msg_newsletter'], "phpwcms.php?do=messages&p=2", $p, "2", 0); 120 121 if(!empty($phpwcms['enable_messages'])) { 122 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n"; 123 } 124 } 125 if(!empty($phpwcms['enable_messages'])) { 126 $subnav .= subnavtext($BL['be_subnav_msg_center'], "phpwcms.php?do=messages", $p, "", 0); 127 $subnav .= subnavtext($BL['be_subnav_msg_new'], "phpwcms.php?do=messages&p=1", $p, "1", 0); 128 } 129 break; 130 131 case "discuss": //discuss 132 $wcsnav["discuss"] = "<strong class=\"navtexta\">".$wcsnav["discuss"]."</strong>"; 133 break; 134 135 case "chat": //chat 136 $wcsnav["chat"] = "<strong class=\"navtexta\">".$wcsnav["chat"]."</strong>"; 137 $subnav .= subnavtext($BL['be_subnav_chat_main'], "phpwcms.php?do=chat", $p, "", 0); 138 $subnav .= subnavtext($BL['be_subnav_chat_internal'], "phpwcms.php?do=chat&p=1", $p, "1", 0); 139 break; 140 141 case "profile": //profile 142 $wcsnav["profile"] = "<strong class=\"navtexta\">".$wcsnav["profile"]."</strong>"; 143 if(!empty($_POST["form_aktion"])) { 144 switch($_POST["form_aktion"]) { //Aktualisieren der wcs account & profile Daten 145 case "update_account": include (PHPWCMS_ROOT.'/include/inc_lib/profile.updateaccount.inc.php'); 146 break; 147 case "update_detail": include (PHPWCMS_ROOT.'/include/inc_lib/profile.update.inc.php'); 148 break; 149 case "create_detail": include (PHPWCMS_ROOT.'/include/inc_lib/profile.create.inc.php'); 150 break; 151 } 152 } 153 $subnav .= subnavtext($BL['be_subnav_profile_login'], "phpwcms.php?do=profile", $p, "", 0); 154 $subnav .= subnavtext($BL['be_subnav_profile_personal'], "phpwcms.php?do=profile&p=1", $p, "1", 0); 155 break; 156 157 case "logout": //Logout 158 $sql = "UPDATE ".DB_PREPEND."phpwcms_userlog SET "; 159 $sql .= "logged_change=".time().", logged_in=0 "; 160 $sql .= "WHERE logged_user='".$_SESSION["wcs_user"]."' AND logged_in=1"; 161 @mysql_query($sql, $db); 162 session_destroy(); 163 headerRedirect(PHPWCMS_URL.get_login_file()); 164 break; 165 166 case "admin": //Admin 167 if(isset($_SESSION["wcs_user_admin"]) && $_SESSION["wcs_user_admin"] == 1) { 168 include (PHPWCMS_ROOT.'/include/inc_lib/admin.functions.inc.php'); 169 $subnav .= subnavtext($BL['be_subnav_admin_sitestructure'], "phpwcms.php?do=admin&p=6", $p, "6", 0); 170 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n"; 171 $subnav .= subnavtext($BL['be_subnav_admin_pagelayout'], "phpwcms.php?do=admin&p=8", $p, "8", 0); 172 $subnav .= subnavtext($BL['be_subnav_admin_templates'], "phpwcms.php?do=admin&p=11", $p, "11", 0); 173 $subnav .= subnavtext($BL['be_subnav_admin_css'], "phpwcms.php?do=admin&p=10", $p, "10", 0); 174 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n"; 175 $subnav .= subnavtext($BL['be_subnav_admin_users'], "phpwcms.php?do=admin", $p, "", 0); 176 //$subnav .= subnavtext($BL['be_subnav_admin_groups'], "phpwcms.php?do=admin&p=1", $p, "1", 0); 177 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="15" width="1" alt="" /></td></tr>'."\n"; 178 //$subnav .= subnavtext($BL['be_admin_keywords'], "phpwcms.php?do=admin&p=5", $p, "5", 0); 179 $subnav .= subnavtext($BL['be_subnav_admin_filecat'], "phpwcms.php?do=admin&p=7", $p, "7", 0); 180 $subnav .= subnavtext($BL['be_subnav_admin_starttext'], "phpwcms.php?do=admin&p=12", $p, "12", 0); 181 $subnav .= subnavtext($BL['be_article_urlalias'].' ('.$BL['be_ftptakeover_active'].')', 'phpwcms.php?do=admin&p=13', $p, "4", 0); 182 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="15" width="1" alt="" /></td></tr>'."\n"; 183 //$subnav .= subnavtext($BL['be_cnt_cache_update'], 'include/inc_act/act_cache.php', 1, 0, 0); 184 //$subnav .= subnavtext($BL['be_cnt_cache_delete'], 'include/inc_act/act_cache.php?do=9', 1, 0, 0, 'onclick="return confirm(\''.$BL['be_cnt_cache_delete_msg'].'\');" '); 185 $subnav .= subnavtext($BL['be_cnt_move_deleted'], 'include/inc_act/act_file.php?movedeletedfiles='. $_SESSION["wcs_user_id"], 1, 0, 0, 'onclick="return confirm(\''.$BL['be_cnt_move_deleted_msg'].'\');" '); 186 $subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="15" width="1" alt="" /></td></tr>'."\n"; 187 $subnav .= subnavtextext('phpinfo()', 'include/inc_act/act_phpinfo.php', '_blank', 0); 188 if($phpwcms["phpmyadmin"]) { 189 $subnav .= subnavtextext('phpMyAdmin', 'include/inc_ext/phpMyAdmin/', '_blank', 0); 190 } 191 } 192 break; 193 194 default: include (PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'); //loading array with actual content types 195 196 } //Ende Auswahl Aktion 197 198 199 //Subnav Wrap Text Tabelle 200 if($subnav) { 201 $subnav = '<table border="0" cellpadding="0" cellspacing="0" summary="">'.LF.$subnav; 202 $subnav .= "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" width=\"1\" height=\"15\" alt=\"\" /></td></tr>\n</table>"; 203 } 204 205 //Wenn der User kein Admin ist, anderenfalls 206 if(empty($_SESSION["wcs_user_admin"])) { 207 unset($wcsnav["admin"]); 208 } elseif($do == "admin") { 209 $wcsnav["admin"] = '<strong class="navtexta">'.$wcsnav["admin"].'</strong>'; 210 } 211 212 //script chaching to allow header redirect 213 ob_start(); //without Compression 214 215 // set correct content type for backend 216 header('Content-Type: text/html; charset='.PHPWCMS_CHARSET); 217 218 ?> 219 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 220 <html> 221 <head> 222 <title><?php echo $BL['be_page_title'].' - '.PHPWCMS_HOST ?></title> 223 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo PHPWCMS_CHARSET ?>"> 224 <link href="include/inc_css/phpwcms.css" rel="stylesheet" type="text/css"> 225 <link href="include/inc_css/additional.css" rel="stylesheet" type="text/css"> 226 <meta name="robots" content="noindex, nofollow"> 227 <?php 228 229 initMootools(); 230 $BE['HEADER']['phpwcms.js'] = getJavaScriptSourceLink('include/inc_js/phpwcms.js'); 231 232 233 if($do == "messages" && $p == 1) { 234 235 include (PHPWCMS_ROOT.'/include/inc_lib/message.sendjs.inc.php'); 236 237 } elseif($do == "articles") { 238 239 if($p == 2 && isset($_GET["aktion"]) && intval($_GET["aktion"]) == 2) { 240 initJsOptionSelect(); 241 } 242 if(($p == 1) || ($p == 2 && isset($_GET["aktion"]) && intval($_GET["aktion"]) == 1)) { 243 initJsCalendar(); 244 } 245 246 } elseif($do == 'admin' && ($p == 6 || $p == 11)) { 247 248 // struct editor 249 initJsOptionSelect(); 250 251 } 252 253 if($BE['LANG'] == 'ar') { 254 $BE['HEADER'][] = '<style type="text/css">' . LF . '<!--' . LF . '* {direction: rtl;}' . LF . '// -->' . LF . '</style>'; 255 } 256 257 ?> 258 <!-- phpwcms HEADER --> 259 </head> 260 261 <body<?php echo $body_onload ?>><!-- phpwcms BODY_OPEN --> 262 <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" summary="main layout structure"> 263 <tr> 264 <td colspan="6"><img src="img/leer.gif" alt="" width="1" height="7"></td> 265 </tr> 266 <tr> 267 <td colspan="6"> 268 <div style="position:relative"> 269 <a href="phpwcms.php" target="_top"><img src="img/backend/backend_r1_c3.jpg" alt="phpwcms v<?php echo html_specialchars(PHPWCMS_VERSION); ?>" width="95" height="24" border="0" hspace="15"></a> 270 <a href="<?php echo PHPWCMS_URL ?>" class="v10" style="position:absolute;right:15px;bottom:4px;color:#FFFFFF" target="_blank"><?php echo PHPWCMS_HOST ?></a> 271 </div> 272 </td> 273 </tr> 274 <tr> 275 <td colspan="6"><img src="img/leer.gif" alt="" width="1" height="7"></td> 276 </tr> 277 <tr bgcolor="#FFFFFF"> 278 <td valign="top" style="background-image:url(img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><img src="img/backend/backend_r3_c1.jpg" alt="" width="15" height="40"></td> 279 <td colspan="4" valign="top" style="background-image:url(img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><table width="740" border="0" cellpadding="0" cellspacing="0" summary="sub structure"> 280 <tr> 281 <td colspan="2"><img src="img/leer.gif" alt="" width="1" height="9"></td> 282 </tr> 283 <tr> 284 <td valign="top" class="navtext"><?php 285 286 // create backend main navigation 287 if($do == 'default') { 288 echo '<strong class="navtexta"><a href="phpwcms.php">HOME</a></strong> '; 289 } else { 290 echo '<a href="phpwcms.php">HOME</a> '; 291 } 292 echo implode(' ', $wcsnav); 293 294 295 ?></td> 296 <td align="right" valign="top" class="navtext"><a href="phpwcms.php?do=logout" target="_top"><?php echo $BL['be_nav_logout'] ?></a></td> 297 </tr> 298 </table></td> 299 <td valign="top" style="background-image:url(img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><img src="img/backend/backend_r3_c7.jpg" alt="" width="15" height="40"></td> 300 </tr> 301 <tr bgcolor="#FFFFFF"> 302 <td width="15" bgcolor="#FFFFFF" style="background-image:url(img/backend/preinfo2_r7_c2.gif);background-repeat:repeat-y;"><img src="img/leer.gif" alt="" width="15" height="1"></td> 303 <td width="175" valign="top" bgcolor="#FFFFFF"><?php 304 305 echo $subnav . LF; 306 echo '<img src="img/leer.gif" width="1" height="5" alt="" /><br /><span class="title">'; 307 echo $BL['usr_online']; 308 echo '</span><br /><img src="img/leer.gif" width="1" height="3" alt="" /><br />'; 309 echo online_users($db, "<br />", "<span class=\"subnavinactive\">|</span>"); 310 311 ?><img src="img/leer.gif" alt="" width="175" height="1"></td> 312 <td width="10" bgcolor="#FFFFFF"><img src="img/leer.gif" alt="" width="10" height="1"></td> 313 <td width="15" bgcolor="#FFFFFF" style="background-image:url(img/backend/dividerA.gif);background-repeat:repeat-y;"><img src="img/leer.gif" alt="" width="15" height="200"></td> 314 <td width="540" valign="top" bgcolor="#FFFFFF" class="v11b width540" id="be_main_content">{STATUS_MESSAGE}{BE_PARSE_LANG}<!--BE_MAIN_CONTENT_START//--> 315 <?php 316 317 switch($do) { 318 319 case "profile": //Profile 320 switch($p) { 321 case 1: include (PHPWCMS_ROOT.'/include/inc_tmpl/profile.data.tmpl.php'); 322 break; 323 default: include (PHPWCMS_ROOT.'/include/inc_tmpl/profile.account.tmpl.php'); 324 } 325 break; 326 327 case 'filecenter': 328 include(PHPWCMS_ROOT.'/include/inc_tmpl/filecenter.tmpl.php'); 329 330 break; 331 332 case "files": //Hochladen sowie Downloaden und Verwalten von Dateien 333 switch($p) { 334 case 8: //FTP File upload 335 include (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php'); 336 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.ftptakeover.tmpl.php'); 337 break; 338 339 // Multiple, queued file upload 340 case 9: include (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php'); 341 include (PHPWCMS_ROOT.'/include/inc_lib/files.multipleupload.inc.php'); 342 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.multipleupload.tmpl.php'); 343 break; 344 345 default: include (PHPWCMS_ROOT.'/include/inc_tmpl/files.reiter.tmpl.php'); //Files Navigation/Reiter 346 switch($files_folder) { 347 case 0: //Listing der Privaten Dateien 348 if(isset($_GET["mkdir"]) || (isset($_POST["dir_aktion"]) && intval($_POST["dir_aktion"]) == 1) ) { 349 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.newdir.tmpl.php'); 350 } 351 if(isset($_GET["editdir"]) || (isset($_POST["dir_aktion"]) && intval($_POST["dir_aktion"]) == 2) ) { 352 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.editdir.tmpl.php'); 353 } 354 if(isset($_GET["upload"]) || (isset($_POST["file_aktion"]) && intval($_POST["file_aktion"]) == 1) ) { 355 include (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php'); 356 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.upload.tmpl.php'); 357 } 358 if(isset($_GET["editfile"]) || (isset($_POST["file_aktion"]) && intval($_POST["file_aktion"]) == 2) ) { 359 include (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php'); 360 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.editfile.tmpl.php'); 361 } 362 include (PHPWCMS_ROOT.'/include/inc_lib/files.private-functions.inc.php'); //Listing-Funktionen einfügen 363 include (PHPWCMS_ROOT.'/include/inc_lib/files.private.additions.inc.php'); //Zusätzliche Private Funktionen 364 break; 365 case 1: //Funktionen zum Listen von Public Files 366 include (PHPWCMS_ROOT.'/include/inc_lib/files.public-functions.inc.php'); //Public Listing-Funktionen einfügen 367 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.public.list.tmpl.php'); //Elemetares für Public Listing 368 break; 369 case 2: //Dateien im Papierkorb 370 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.trash.tmpl.php'); 371 break; 372 case 3: //Dateisuche 373 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.search.tmpl.php'); 374 break; 375 } 376 include (PHPWCMS_ROOT.'/include/inc_tmpl/files.abschluss.tmpl.php'); //Abschließende Tabellenzeile = dicke Linie 377 } 378 break; 379 380 case "chat": //Chat 381 switch($p) { 382 case 0: include (PHPWCMS_ROOT.'/include/inc_tmpl/chat.main.tmpl.php'); break; //Chat Startseite 383 case 1: include (PHPWCMS_ROOT.'/include/inc_tmpl/chat.list.tmpl.php'); break; //Chat/Listing 384 } 385 break; 386 387 case "messages": //Messages 388 switch($p) { 389 case 0: include (PHPWCMS_ROOT.'/include/inc_tmpl/message.center.tmpl.php'); break; //Messages Overview 390 case 1: include (PHPWCMS_ROOT.'/include/inc_tmpl/message.send.tmpl.php'); break; //New Message 391 case 2: //Newsletter subscription 392 if($_SESSION["wcs_user_admin"] == 1) include (PHPWCMS_ROOT.'/include/inc_tmpl/message.subscription.tmpl.php'); 393 break; 394 case 3: //Newsletter 395 if($_SESSION["wcs_user_admin"] == 1) include (PHPWCMS_ROOT.'/include/inc_tmpl/newsletter.list.tmpl.php'); 396 break; 397 case 4: //Newsletter subscribers 398 if($_SESSION["wcs_user_admin"] == 1) { 399 include (PHPWCMS_ROOT.'/include/inc_tmpl/message.subscribers.tmpl.php'); 400 } 401 break; 402 } 403 break; 404 405 case "modules": //Modules 406 407 // if a module is selected 408 if(isset($phpwcms['modules'][$module])) { 409 410 include($phpwcms['modules'][$module]['path'].'backend.default.php'); 411 412 } 413 414 break; 415 416 case "admin": //Administration 417 if($_SESSION["wcs_user_admin"] == 1) { 418 switch($p) { 419 case 0: //User Administration 420 switch(!empty($_GET['s']) ? intval($_GET["s"]) : 0) { 421 case 1: include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.newuser.tmpl.php'); break; //New User 422 case 2: include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.edituser.tmpl.php'); break; //Edit User 423 } 424 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.listuser.tmpl.php'); 425 break; 426 427 case 1: //Users and Groups 428 include(PHPWCMS_ROOT.'/include/inc_lib/admin.groups.inc.php'); 429 include(PHPWCMS_ROOT.'/include/inc_tmpl/admin.groups.'.$_entry['mode'].'.tmpl.php'); 430 break; 431 432 case 2: //Settings 433 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.settings.tmpl.php'); 434 break; 435 436 case 5: //Keywords 437 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.keyword.tmpl.php'); 438 break; 439 440 case 6: //article structure 441 442 include (PHPWCMS_ROOT.'/include/inc_lib/admin.structure.inc.php'); 443 if(isset($_GET["struct"])) { 444 include (PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'); //loading array with actual content types 445 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.structform.tmpl.php'); 446 } else { 447 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.structlist.tmpl.php'); 448 $phpwcms['be_parse_lang_process'] = true; 449 } 450 break; 451 452 case 7: //File Categories 453 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.filecat.tmpl.php'); 454 break; 455 456 case 8: //Page Layout 457 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.pagelayout.tmpl.php'); 458 break; 459 460 case 10: //Frontend CSS 461 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.frontendcss.tmpl.php'); 462 break; 463 464 case 11: //Templates 465 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.templates.tmpl.php'); 466 break; 467 468 case 12: //Default backend starup HTML 469 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.startup.tmpl.php'); 470 break; 471 472 //Default backend sitemap HTML 473 case 13: 474 include (PHPWCMS_ROOT.'/include/inc_tmpl/admin.aliaslist.tmpl.php'); 475 break; 476 477 } 478 } 479 break; 480 481 // articles 482 case "articles": 483 $_SESSION['image_browser_article'] = 0; //set how image file browser should work 484 switch($p) { 485 486 // List articles 487 case 0: 488 include (PHPWCMS_ROOT.'/include/inc_tmpl/article.structlist.tmpl.php'); 489 $phpwcms['be_parse_lang_process'] = true; 490 break; 491 492 // Edit/create article 493 case 1: 494 case 2: 495 include (PHPWCMS_ROOT.'/include/inc_lib/article.editcontent.inc.php'); 496 break; 497 498 // News 499 case 3: 500 include (PHPWCMS_ROOT.'/include/inc_lib/news.inc.php'); 501 include (PHPWCMS_ROOT.'/include/inc_tmpl/news.tmpl.php'); 502 break; 503 } 504 break; 505 506 // about phpwcms 507 case "about": 508 include (PHPWCMS_ROOT.'/include/inc_tmpl/about.tmpl.php'); 509 break; 510 511 // start 512 default: 513 include (PHPWCMS_ROOT.'/include/inc_tmpl/be_start.tmpl.php'); 514 include(PHPWCMS_TEMPLATE.'inc_default/startup.php'); 515 $phpwcms['be_parse_lang_process'] = true; 516 517 } 518 519 ?> 520 521 <!--BE_MAIN_CONTENT_END//--></td> 522 <td width="15" bgcolor="#FFFFFF" style="background-image:url(img/backend/preinfo2_r7_c7.gif);background-repeat:repeat-y;background-position:right;"><img src="img/leer.gif" alt="" width="15" height="1"></td> 523 </tr> 524 <tr> 525 <td><img src="img/backend/backend_a_r1_c1.gif" alt="" width="15" height="15" border="0"></td> 526 <td colspan="4" valign="bottom" bgcolor="#FFFFFF" class="navtext"><img src="img/backend/backend_r6_c2.jpg" alt="" width="740" height="15" border="0"></td> 527 <td valign="bottom" class="navtext"><img src="img/backend/backend_a_r1_c7.gif" alt="" width="15" height="15" border="0"></td> 528 </tr> 529 <tr> 530 <td width="15"><img src="img/leer.gif" alt="" width="14" height="17"></td> 531 <td colspan="5" valign="bottom" class="navtext" style="padding: 8px 0 15px 0;"> 532 <a href="phpwcms.php?do=about" title="<?php echo $BL['be_aboutlink_title'] ?>">phpwcms <?php echo PHPWCMS_VERSION ?> 533 © 2002—<?php echo date('Y'); ?> Oliver Georgi. Licensed under GPL. Extensions are copyright 534 of their respective owners.</a></td> 535 </tr> 536 </table> 537 <?php 538 539 //Set Focus for chat insert filed 540 set_chat_focus($do, $p); 541 542 //If new message was sent -> automatic forwarding to message center 543 forward_to($forward_to_message_center, PHPWCMS_URL."phpwcms.php?do=messages", 2500); 544 545 $BE['BODY_CLOSE']['wz_tooltip.js'] = getJavaScriptSourceLink('include/inc_js/wz_tooltip.js', ''); 546 547 ?> 548 <!-- phpwcms BODY_CLOSE --> 549 </body> 550 </html> 551 <?php 552 553 // retrieve complete processing time 554 list($usec, $sec) = explode(' ', microtime()); 555 header('X-phpwcms-Page-Processed-In: ' . number_format(1000*($usec + $sec - $phpwcms_rendering_start), 3) .' ms'); 556 557 $BE['HTML'] = ob_get_clean(); 558 559 // parse for backend languages 560 backend_language_parser(); 561 562 // replace special backend sections -> good for additional code like custom JavaScript, CSS and so on 563 // <!-- phpwcms BODY_CLOSE --> 564 // <!-- phpwcms BODY_OPEN --> 565 // <!-- phpwcms HEADER --> 566 567 // special body onload JavaScript 568 if($body_onload) { 569 $BE['HTML'] = str_replace('<body>', '<body '.$body_onload.'>', $BE['HTML']); 570 } 571 572 $BE['HEADER'][] = ' <!--[if lte IE 7]><style type="text/css">body{behavior:url("'.TEMPLATE_PATH.'inc_css/specific/csshover3.htc");}</style><![endif]-->'; 573 574 // html head section 575 $BE['HTML'] = str_replace('<!-- phpwcms HEADER -->', implode(LF, $BE['HEADER']), $BE['HTML']); 576 577 // body open area 578 $BE['HTML'] = str_replace('<!-- phpwcms BODY_OPEN -->', implode(LF, $BE['BODY_OPEN']), $BE['HTML']); 579 580 // body close area 581 $BE['HTML'] = str_replace('<!-- phpwcms BODY_CLOSE -->', implode(LF, $BE['BODY_CLOSE']), $BE['HTML']); 582 583 // Show global system status message 584 $BE['HTML'] = str_replace('{STATUS_MESSAGE}', show_status_message(true), $BE['HTML']); 585 586 // return all 587 echo $BE['HTML']; 588 589 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Jan 29 16:31:14 2012 | Cross-referenced by PHPXref 0.7.1 |