Annotation of /mambo/branches/4.6/index.php
Parent Directory
|
Revision Log
Revision 1369 - (view) (download)
| 1 : | alwarren | 1341 | <?php |
| 2 : | /** | ||
| 3 : | * @package Mambo | ||
| 4 : | * @author Mambo Foundation Inc see README.php | ||
| 5 : | * @copyright Mambo Foundation Inc. | ||
| 6 : | * See COPYRIGHT.php for copyright notices and details. | ||
| 7 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see | ||
| 8 : | * LICENSE.php | ||
| 9 : | * Mambo is free software; you can redistribute it and/or | ||
| 10 : | * modify it under the terms of the GNU General Public License | ||
| 11 : | * as published by the Free Software Foundation; version 2 of the | ||
| 12 : | * License. | ||
| 13 : | */ | ||
| 14 : | |||
| 15 : | /** Set flag that this is a parent file */ | ||
| 16 : | if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); | ||
| 17 : | |||
| 18 : | $dir = isset($adminside)?"../":""; | ||
| 19 : | |||
| 20 : | if ( !file_exists($dir.'configuration.php' ) || filesize( $dir.'configuration.php' ) < 10 ) { | ||
| 21 : | header("Location: ".$dir."installation/index.php"); | ||
| 22 : | exit(); | ||
| 23 : | } | ||
| 24 : | |||
| 25 : | $protects = array('_REQUEST', '_GET', '_POST', '_COOKIE', '_FILES', '_SERVER', '_ENV', 'GLOBALS', '_SESSION'); | ||
| 26 : | foreach ($protects as $protect) { | ||
| 27 : | if ( in_array($protect , array_keys($_REQUEST)) || | ||
| 28 : | in_array($protect , array_keys($_GET)) || | ||
| 29 : | in_array($protect , array_keys($_POST)) || | ||
| 30 : | in_array($protect , array_keys($_COOKIE)) || | ||
| 31 : | in_array($protect , array_keys($_FILES))) { | ||
| 32 : | die("Invalid Request."); | ||
| 33 : | } | ||
| 34 : | } | ||
| 35 : | |||
| 36 : | /** | ||
| 37 : | * used to leave the input element without trim it | ||
| 38 : | */ | ||
| 39 : | define( "_MOS_NOTRIM", 0x0001 ); | ||
| 40 : | /** | ||
| 41 : | * used to leave the input element with all HTML tags | ||
| 42 : | */ | ||
| 43 : | define( "_MOS_ALLOWHTML", 0x0002 ); | ||
| 44 : | /** | ||
| 45 : | * used to leave the input element without convert it to numeric | ||
| 46 : | */ | ||
| 47 : | define( "_MOS_ALLOWRAW", 0x0004 ); | ||
| 48 : | /** | ||
| 49 : | * used to leave the input element without slashes | ||
| 50 : | */ | ||
| 51 : | define( "_MOS_NOMAGIC", 0x0008 ); | ||
| 52 : | |||
| 53 : | /** | ||
| 54 : | * function to sanitize input values from arrays | ||
| 55 : | * | ||
| 56 : | * This function provides a way to sanitize inputs, should be used to obtain values from | ||
| 57 : | * _POST, _GET, _COOKIES, etc; a default value can be passed to be used in case that not | ||
| 58 : | * values are founded to the element, a binary mask can be passed to discard some of test, | ||
| 59 : | *, this value is matched with _MOS_NOTRIM, _MOS_ALLOWHTML and, _MOS_ALLOWRAW, currently | ||
| 60 : | * 3 test are do it, trim, strip html and convert the value to numeric when is possible. | ||
| 61 : | * | ||
| 62 : | * Example of use: | ||
| 63 : | * | ||
| 64 : | * To get task variable from the URL and select the view like default task, you can use: | ||
| 65 : | * | ||
| 66 : | * <code>$task = mosGetParam ($_GET,"task","view");</code> | ||
| 67 : | * | ||
| 68 : | * To get task variable from the URL, select the view like default task, allows HTML and | ||
| 69 : | * without trim you can use : | ||
| 70 : | * | ||
| 71 : | * <code>$task = mosGetParam ($_GET,"task","view",_MOS_NOTRIM+_MOS_ALLOWHTML);</code> | ||
| 72 : | * | ||
| 73 : | * @acces public | ||
| 74 : | * @param array &$arr reference to array which contains the value | ||
| 75 : | * @param string $name name of element searched | ||
| 76 : | * @param mixed $def default value to use if nothing is founded | ||
| 77 : | * @param int $mask mask to select checks that will do it | ||
| 78 : | * @return mixed value from the selected element or default value if nothing was found | ||
| 79 : | */ | ||
| 80 : | function mosGetParam( &$arr, $name, $def=null, $mask=0 ) { | ||
| 81 : | if (isset( $arr[$name] )) { | ||
| 82 : | if (is_array($arr[$name])) foreach ($arr[$name] as $key=>$element) $result[$key] = mosGetParam ($arr[$name], $key, $def, $mask); | ||
| 83 : | else { | ||
| 84 : | $result = $arr[$name]; | ||
| 85 : | if (!($mask&_MOS_NOTRIM)) $result = trim($result); | ||
| 86 : | if (!is_numeric( $result)) { | ||
| 87 : | if (!($mask&_MOS_ALLOWHTML)) $result = strip_tags($result); | ||
| 88 : | if (!($mask&_MOS_ALLOWRAW)) { | ||
| 89 : | if (is_numeric($def)) $result = intval($result); | ||
| 90 : | } | ||
| 91 : | } | ||
| 92 : | if (!get_magic_quotes_gpc()) { | ||
| 93 : | $result = addslashes( $result ); | ||
| 94 : | } | ||
| 95 : | } | ||
| 96 : | return $result; | ||
| 97 : | } else { | ||
| 98 : | return $def; | ||
| 99 : | } | ||
| 100 : | } | ||
| 101 : | |||
| 102 : | |||
| 103 : | /** | ||
| 104 : | * sets or returns the current side (frontend/backend) | ||
| 105 : | * | ||
| 106 : | * This function returns TRUE when the user are in the backend area; this is set to | ||
| 107 : | * TRUE when are invocated /administrator/index.php, /administrator/index2.php | ||
| 108 : | * or /administrator/index3.php, to set this value is not a normal use. | ||
| 109 : | * | ||
| 110 : | * @access public | ||
| 111 : | * @param bool $val value used to set the adminSide value, not planned to be used by users | ||
| 112 : | * @return bool TRUE when the user are in backend area, FALSE when are in frontend | ||
| 113 : | */ | ||
| 114 : | function adminSide($val='') { | ||
| 115 : | static $adminside; | ||
| 116 : | if (is_null($adminside)) { | ||
| 117 : | $adminside = ($val == '') ? 0 : $val; | ||
| 118 : | } else { | ||
| 119 : | $adminside = ($val == '') ? $adminside : $val; | ||
| 120 : | } | ||
| 121 : | return $adminside; | ||
| 122 : | } | ||
| 123 : | |||
| 124 : | |||
| 125 : | /** | ||
| 126 : | * sets or returns the index type | ||
| 127 : | * | ||
| 128 : | * This function returns 1, 2 or 3 depending of called file index.php, index2.php or index3.php. | ||
| 129 : | * | ||
| 130 : | * @access private | ||
| 131 : | * @param int $val value used to set the indexType value, not planned to be used by users | ||
| 132 : | * @return int return 1, 2 or 3 depending of called file | ||
| 133 : | */ | ||
| 134 : | |||
| 135 : | function indexType($val='') | ||
| 136 : | { | ||
| 137 : | static $indextype; | ||
| 138 : | if (is_null($indextype)) { | ||
| 139 : | $indextype = ($val == '') ? 1 : $val; | ||
| 140 : | } else { | ||
| 141 : | $indextype = ($val == '') ? $indextype : $val; | ||
| 142 : | } | ||
| 143 : | return $indextype; | ||
| 144 : | } | ||
| 145 : | |||
| 146 : | if (!isset($adminside)) $adminside = 0; | ||
| 147 : | if (!isset($indextype)) $indextype = 1; | ||
| 148 : | |||
| 149 : | adminSide($adminside); | ||
| 150 : | indexType($indextype); | ||
| 151 : | |||
| 152 : | $adminside = adminSide(); | ||
| 153 : | $indextype = indexType(); | ||
| 154 : | |||
| 155 : | require_once (dirname(__FILE__).'/includes/database.php'); | ||
| 156 : | require_once(dirname(__FILE__).'/includes/core.classes.php'); | ||
| 157 : | alwarren | 1369 | require_once(dirname(__FILE__).'/includes/core.helpers.php'); |
| 158 : | alwarren | 1341 | $configuration =& mamboCore::getMamboCore(); |
| 159 : | $configuration->handleGlobals(); | ||
| 160 : | |||
| 161 : | if (!$adminside) { | ||
| 162 : | $urlerror = 0; | ||
| 163 : | $sefcode = dirname(__FILE__).'/components/com_sef/sef.php'; | ||
| 164 : | if (file_exists($sefcode)) require_once($sefcode); | ||
| 165 : | else require_once(dirname(__FILE__).'/includes/sef.php'); | ||
| 166 : | } | ||
| 167 : | |||
| 168 : | $configuration->fixLanguage(); | ||
| 169 : | |||
| 170 : | require($configuration->rootPath().'/includes/version.php'); | ||
| 171 : | $_VERSION =& new version(); | ||
| 172 : | |||
| 173 : | |||
| 174 : | $version = $_VERSION->PRODUCT .' '. $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' ' | ||
| 175 : | . $_VERSION->DEV_STATUS | ||
| 176 : | .' [ '.$_VERSION->CODENAME .' ] '. $_VERSION->RELDATE .' ' | ||
| 177 : | . $_VERSION->RELTIME .' '. $_VERSION->RELTZ; | ||
| 178 : | |||
| 179 : | if (phpversion() < '4.2.0') require_once( $configuration->rootPath() . '/includes/compat.php41x.php' ); | ||
| 180 : | if (phpversion() < '4.3.0') require_once( $configuration->rootPath() . '/includes/compat.php42x.php' ); | ||
| 181 : | if (phpversion() < '5.0.0') require_once( $configuration->rootPath() . '/includes/compat.php5xx.php' ); | ||
| 182 : | |||
| 183 : | $local_backup_path = $configuration->rootPath().'/administrator/backups'; | ||
| 184 : | $media_path = $configuration->rootPath().'/media/'; | ||
| 185 : | $image_path = $configuration->rootPath().'/images/stories'; | ||
| 186 : | $lang_path = $configuration->rootPath().'/language'; | ||
| 187 : | $image_size = 100; | ||
| 188 : | |||
| 189 : | |||
| 190 : | $database =& mamboDatabase::getInstance(); | ||
| 191 : | // Start NokKaew patch | ||
| 192 : | $mosConfig_nok_content=0; | ||
| 193 : | if (file_exists( $configuration->rootPath().'components/com_nokkaew/nokkaew.php' ) && !$adminside ) { | ||
| 194 : | $mosConfig_nok_content=1; // can also go into the configuration - but this might be overwritten! | ||
| 195 : | require_once( $configuration->rootPath()."administrator/components/com_nokkaew/nokkaew.class.php"); | ||
| 196 : | require_once( $configuration->rootPath()."components/com_nokkaew/classes/nokkaew.class.php"); | ||
| 197 : | } | ||
| 198 : | if( $mosConfig_nok_content ) { | ||
| 199 : | $database = new mlDatabase( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); | ||
| 200 : | } | ||
| 201 : | |||
| 202 : | if ($mosConfig_nok_content) { | ||
| 203 : | $mosConfig_defaultLang = $mosConfig_locale; // Save the default language of the site | ||
| 204 : | $iso_client_lang = NokKaew::discoverLanguage( $database ); | ||
| 205 : | $_NOKKAEW_MANAGER = new NokKaewManager(); | ||
| 206 : | } | ||
| 207 : | // end NokKaew Patch | ||
| 208 : | $database->debug(mamboCore::get('mosConfig_debug')); | ||
| 209 : | |||
| 210 : | /** load html helpers **/ | ||
| 211 : | $html =& mosHtmlHelper::getInstance(); | ||
| 212 : | $html->set( 'doctype', mamboCore::get('mosConfig_doctype') ); | ||
| 213 : | |||
| 214 : | /** retrieve some possible request string (or form) arguments */ | ||
| 215 : | $type = mosGetParam($_REQUEST, 'type', 1); | ||
| 216 : | $act = mosGetParam( $_REQUEST, 'act', '' ); | ||
| 217 : | $do_pdf = mosGetParam( $_REQUEST, 'do_pdf', 0 ); | ||
| 218 : | $id = mosGetParam( $_REQUEST, 'id', 0 ); | ||
| 219 : | $task = mosGetParam($_REQUEST, 'task', ''); | ||
| 220 : | $act = strtolower(mosGetParam($_REQUEST, 'act', '')); | ||
| 221 : | $section = mosGetParam($_REQUEST, 'section', ''); | ||
| 222 : | $no_html = strtolower(mosGetParam($_REQUEST, 'no_html', '')); | ||
| 223 : | $cid = (array) mosGetParam( $_POST, 'cid', array() ); | ||
| 224 : | |||
| 225 : | ini_set('session.use_trans_sid', 0); | ||
| 226 : | ini_set('session.use_cookies', 1); | ||
| 227 : | ini_set('session.use_only_cookies', 1); | ||
| 228 : | |||
| 229 : | |||
| 230 : | /* initialize i18n */ | ||
| 231 : | $lang = $configuration->current_language->name; | ||
| 232 : | $charset = $configuration->current_language->charset; | ||
| 233 : | $gettext =& phpgettext(); | ||
| 234 : | $gettext->debug = $configuration->mosConfig_locale_debug; | ||
| 235 : | $gettext->has_gettext = $configuration->mosConfig_locale_use_gettext; | ||
| 236 : | $language = new mamboLanguage($lang); | ||
| 237 : | $gettext->setlocale($lang, $language->getSystemLocale()); | ||
| 238 : | $gettext->bindtextdomain($lang, $configuration->rootPath().'/language'); | ||
| 239 : | $gettext->bind_textdomain_codeset($lang, $charset); | ||
| 240 : | $gettext->textdomain($lang); | ||
| 241 : | #$gettext =& phpgettext(); dump($gettext); | ||
| 242 : | |||
| 243 : | if ($adminside) { | ||
| 244 : | // Start ACL | ||
| 245 : | require_once($configuration->rootPath().'/includes/gacl.class.php' ); | ||
| 246 : | require_once($configuration->rootPath().'/includes/gacl_api.class.php' ); | ||
| 247 : | $acl = new gacl_api(); | ||
| 248 : | // Handle special admin side options | ||
| 249 : | $option = strtolower(mosGetParam($_REQUEST,'option','com_admin')); | ||
| 250 : | |||
| 251 : | $domain = substr($option, 4); | ||
| 252 : | session_name(md5(mamboCore::get('mosConfig_live_site'))); | ||
| 253 : | session_start(); | ||
| 254 : | // restore some session variables | ||
| 255 : | $my = new mosUser(); | ||
| 256 : | $my->getSession(); | ||
| 257 : | if (mosSession::validate($my)) { | ||
| 258 : | mosSession::purge(); | ||
| 259 : | } else { | ||
| 260 : | mosSession::purge(); | ||
| 261 : | $my = null; | ||
| 262 : | } | ||
| 263 : | if (!$my AND $option == 'login') { | ||
| 264 : | $option='admin'; | ||
| 265 : | require_once($configuration->rootPath().'/includes/authenticator.php'); | ||
| 266 : | $authenticator =& mamboAuthenticator::getInstance(); | ||
| 267 : | $my = $authenticator->loginAdmin($acl); | ||
| 268 : | } | ||
| 269 : | // Handle the remaining special options | ||
| 270 : | elseif ($option == 'logout') { | ||
| 271 : | require($configuration->rootPath().'/administrator/logout.php'); | ||
| 272 : | exit(); | ||
| 273 : | } | ||
| 274 : | // We can now create the mainframe object | ||
| 275 : | $mainframe =& new mosMainFrame($database, $option, '..', true); | ||
| 276 : | // Provided $my is set, we have a valid admin side session and can include remaining code | ||
| 277 : | if ($my) { | ||
| 278 : | mamboCore::set('currentUser', $my); | ||
| 279 : | if ($option == 'simple_mode') $admin_mode = 'on'; | ||
| 280 : | elseif ($option == 'advanced_mode') $admin_mode = 'off'; | ||
| 281 : | else $admin_mode = mosGetParam($_SESSION, 'simple_editing', ''); | ||
| 282 : | $_SESSION['simple_editing'] = mosGetParam($_POST, 'simple_editing', $admin_mode); | ||
| 283 : | require_once($configuration->rootPath().'/administrator/includes/admin.php'); | ||
| 284 : | require_once( $configuration->rootPath().'/includes/mambo.php' ); | ||
| 285 : | require_once ($configuration->rootPath().'/includes/mambofunc.php'); | ||
| 286 : | require_once ($configuration->rootPath().'/includes/mamboHTML.php'); | ||
| 287 : | require_once( $configuration->rootPath().'/administrator/includes/mosAdminMenus.php'); | ||
| 288 : | require_once($configuration->rootPath().'/administrator/includes/admin.php'); | ||
| 289 : | require_once( $configuration->rootPath() . '/includes/cmtclasses.php' ); | ||
| 290 : | require_once( $configuration->rootPath() . '/components/com_content/content.class.php' ); | ||
| 291 : | $_MAMBOTS =& mosMambotHandler::getInstance(); | ||
| 292 : | |||
| 293 : | |||
| 294 : | // If no_html is set, we avoid starting the template, and go straight to the component | ||
| 295 : | if ($no_html) { | ||
| 296 : | if ($path = $mainframe->getPath( "admin" )) require $path; | ||
| 297 : | exit(); | ||
| 298 : | } | ||
| 299 : | $configuration->initGzip(); | ||
| 300 : | // When adminside = 3 we assume that HTML is being explicitly written and do nothing more | ||
| 301 : | if ($adminside != 3) { | ||
| 302 : | $path = $configuration->rootPath().'/administrator/templates/'.$mainframe->getTemplate().'/index.php'; | ||
| 303 : | require_once($path); | ||
| 304 : | $configuration->doGzip(); | ||
| 305 : | } | ||
| 306 : | else { | ||
| 307 : | if (!isset($popup)) { | ||
| 308 : | $pop = mosGetParam($_REQUEST, 'pop', ''); | ||
| 309 : | if ($pop) require($configuration->rootPath()."/administrator/popups/$pop"); | ||
| 310 : | else require($configuration->rootPath()."/administrator/popups/index3pop.php"); | ||
| 311 : | $configuration->doGzip(); | ||
| 312 : | } | ||
| 313 : | } | ||
| 314 : | } | ||
| 315 : | // If $my was not set, the only possibility is to offer a login screen | ||
| 316 : | else { | ||
| 317 : | $configuration->initGzip(); | ||
| 318 : | $path = $configuration->rootPath().'/administrator/templates/'.$mainframe->getTemplate().'/login.php'; | ||
| 319 : | require_once( $path ); | ||
| 320 : | $configuration->doGzip(); | ||
| 321 : | } | ||
| 322 : | } | ||
| 323 : | // Finished admin side; the rest is user side code: | ||
| 324 : | else { | ||
| 325 : | $option = $configuration->determineOptionAndItemid(); | ||
| 326 : | $Itemid = $configuration->get('Itemid'); | ||
| 327 : | |||
| 328 : | $mainframe =& new mosMainFrame($database, $option, '.'); | ||
| 329 : | if ($option == 'login') $configuration->handleLogin(); | ||
| 330 : | elseif ($option == 'logout') $configuration->handleLogout(); | ||
| 331 : | |||
| 332 : | $session =& mosSession::getCurrent(); | ||
| 333 : | $my =& new mosUser(); | ||
| 334 : | $my->getSessionData(); | ||
| 335 : | mamboCore::set('currentUser',$my); | ||
| 336 : | $configuration->offlineCheck($my, $database); | ||
| 337 : | $gid = intval( $my->gid ); | ||
| 338 : | // gets template for page | ||
| 339 : | $cur_template = $mainframe->getTemplate(); | ||
| 340 : | |||
| 341 : | require_once( $configuration->rootPath().'/includes/frontend.php' ); | ||
| 342 : | require_once( $configuration->rootPath().'/includes/mambo.php' ); | ||
| 343 : | require_once ($configuration->rootPath().'/includes/mambofunc.php'); | ||
| 344 : | require_once ($configuration->rootPath().'/includes/mamboHTML.php'); | ||
| 345 : | |||
| 346 : | if ($indextype == 2 AND $do_pdf == 1 ) { | ||
| 347 : | include_once('includes/pdf.php'); | ||
| 348 : | exit(); | ||
| 349 : | } | ||
| 350 : | |||
| 351 : | /** detect first visit */ | ||
| 352 : | $mainframe->detect(); | ||
| 353 : | |||
| 354 : | /** @global mosPlugin $_MAMBOTS */ | ||
| 355 : | $_MAMBOTS =& mosMambotHandler::getInstance(); | ||
| 356 : | require_once( $configuration->rootPath().'/editor/editor.php' ); | ||
| 357 : | require_once( $configuration->rootPath() . '/includes/gacl.class.php' ); | ||
| 358 : | require_once( $configuration->rootPath() . '/includes/gacl_api.class.php' ); | ||
| 359 : | require_once( $configuration->rootPath() . '/components/com_content/content.class.php' ); | ||
| 360 : | $acl = new gacl_api(); | ||
| 361 : | |||
| 362 : | /** Get the component handler */ | ||
| 363 : | require_once( $configuration->rootPath() . '/includes/cmtclasses.php' ); | ||
| 364 : | $c_handler =& mosComponentHandler::getInstance(); | ||
| 365 : | $c_handler->startBuffer(); | ||
| 366 : | |||
| 367 : | if (!$urlerror AND $path = $mainframe->getPath( 'front' )) { | ||
| 368 : | $menuhandler =& mosMenuHandler::getInstance(); | ||
| 369 : | alwarren | 1364 | $ret = $menuhandler->menuCheck($Itemid, $option, $task, $my->getAccessGid()); |
| 370 : | alwarren | 1341 | $menuhandler->setPathway($Itemid); |
| 371 : | if ($ret) { | ||
| 372 : | require ($path); | ||
| 373 : | } | ||
| 374 : | else mosNotAuth(); | ||
| 375 : | } | ||
| 376 : | else { | ||
| 377 : | header ('HTTP/1.1 404 Not Found'); | ||
| 378 : | $mainframe->setPageTitle(T_('404 Error - page not found')); | ||
| 379 : | include ($configuration->rootPath().'/page404.php'); | ||
| 380 : | } | ||
| 381 : | |||
| 382 : | $c_handler->endBuffer(); | ||
| 383 : | |||
| 384 : | /** cache modules output**/ | ||
| 385 : | $m_handler =& mosModuleHandler::getInstance(); | ||
| 386 : | $m_handler->initBuffers(); | ||
| 387 : | |||
| 388 : | $configuration->initGzip(); | ||
| 389 : | |||
| 390 : | $configuration->standardHeaders(); | ||
| 391 : | if (mosGetParam($_GET, 'syndstyle', '') == 'yes') mosMainBody(); | ||
| 392 : | elseif ($indextype == 1) { | ||
| 393 : | // loads template file | ||
| 394 : | if ( !file_exists( 'templates/'. $cur_template .'/index.php' ) ) { | ||
| 395 : | echo '<font color=\"red\"><strong>'.T_('Template File Not Found! Looking for template').'</strong></font>'.$cur_template; | ||
| 396 : | } else { | ||
| 397 : | require_once( 'templates/'. $cur_template .'/index.php' ); | ||
| 398 : | $mambothandler =& mosMambotHandler::getInstance(); | ||
| 399 : | $mambothandler->loadBotGroup('system'); | ||
| 400 : | $mambothandler->trigger('afterTemplate', array($configuration)); | ||
| 401 : | echo "<!-- ".time()." -->"; | ||
| 402 : | } | ||
| 403 : | } | ||
| 404 : | elseif ($indextype == 2) { | ||
| 405 : | if ( $no_html == 0 ) { | ||
| 406 : | // needed to seperate the ISO number from the language file constant _ISO | ||
| 407 : | $iso = split( '=', _ISO ); | ||
| 408 : | // xml prolog | ||
| 409 : | echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; | ||
| 410 : | $html->renderDocType(); | ||
| 411 : | ?> | ||
| 412 : | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 413 : | <head> | ||
| 414 : | <link rel="stylesheet" href="templates/<?php echo $cur_template;?>/css/template_css.css" type="text/css" /> | ||
| 415 : | <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /> | ||
| 416 : | <meta name="robots" content="noindex, nofollow"> | ||
| 417 : | </head> | ||
| 418 : | <body class="contentpane"> | ||
| 419 : | <?php mosMainBody(); ?> | ||
| 420 : | </body> | ||
| 421 : | </html> | ||
| 422 : | <?php | ||
| 423 : | } else { | ||
| 424 : | mosMainBody(); | ||
| 425 : | } | ||
| 426 : | } | ||
| 427 : | |||
| 428 : | $configuration->doGzip(); | ||
| 429 : | } | ||
| 430 : | // displays queries performed for page | ||
| 431 : | if ($configuration->get('mosConfig_debug') AND $adminside != 3) $database->displayLogged(); | ||
| 432 : | |||
| 433 : | andphe | 815 | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

