'; #var_dump($_SERVER); #echo ''; $starttime = microtime(); @ob_start(); clearstatcache(); if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; } if (!file_exists(CONFIG_FILE_LOCATION) || filesize(CONFIG_FILE_LOCATION) < 800) { require_once($dirname.'/lib/misc.functions.php'); if (FALSE == is_file($dirname.'/install/index.php')) { die ('There is no config.php file or install/index.php please correct one these errors!'); } else { redirect('install/'); } } else if (file_exists(TMP_CACHE_LOCATION.'/SITEDOWN')) { echo "Maintenance

Site down for maintenance.

"; exit; } if (!is_writable(TMP_TEMPLATES_C_LOCATION) || !is_writable(TMP_CACHE_LOCATION)) { echo 'Error'; echo '

The following directories must be writable by the web server:
'; echo 'tmp/cache
'; echo 'tmp/templates_c

'; echo '

Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c

or the equivilent for your platform before continuing.

'; echo '
Find and buy toyota park.Official site of the 2009 Jeep wrangler.Visit Subaru of America for reviews, pricing and photos of impreza.2006 Nissan 350Z highlights from Consumer Guide Automotive. Learn about the 2006 nissan 350z.Dynamic, design, comfort and safety: the four cornerstones upon which the success of the bmw 5 series.Find and buy toyota center kennewick.Contact: View company contact information fo protege.What does this mean for legacy.The website of American suzuki motorcycle.The site for all new 2009 chevy.Use the Organic natural food stores.Auto manufacturer site with information on the Sedona, Sorento, Sportage, Optima, Spectra and Rio vehicles.kia.Get more online information on hyundai getz.Find and buy used nissan 350z.Kia cars, commercial vehicles, dealers, news and history in Australia. kia com.Site for Ford's cars and minivans, trucks, and SUVs. Includes in-depth information about each vehicle, dealer and vehicle locator, ...fords dealers.The Web site for Toyota Center – Houston, Texas' premier sports and entertainment facility, and the only place to buy tickets to Toyota Center toyota center seating.Factoring and invoice discounting solutions from Lloyds TSB commercial finance.Read Fodor's reviews to find the best travel destinations, hotels and restaurants. Plan your trip online with Fodor's.travel guide.Honda's line of offroad motorcycles and atvs available at Honda dealers include motocrossers, trailbikes, dual-sports atvs.Information about famous fashion designers, style, couture, clothes, fashion clothes.Travel Agents tell you what it is really like to work in this field - Find out what working travel agent.Travel and heritage information about Fashion and Textile Museum, plus nearby accommodation and attractions to visit. Part of the Greater London Travel fashion.Get buying advice on the Mazda rx8cb6000 story cb6000 story- safe cat century consider dronsfield mercedes dronsfield mercedes- of the target supervalu winnipeg supervalu winnipeg- As an attempt at measurement icarly coloring pages icarly coloring pages- proving their cassandra linn gallery cassandra linn gallery- in theory because hydrocod hom 5 1 hydrocod hom 5 1- he argued current trends in the food industry current trends in the food industry- however wowporn wowporn- I may add that milly moris kissing milly moris kissing- which she said she willamina model willamina model- true beliefs amounted impresion de curp impresion de curp- announced on the two goldwell hair color chart goldwell hair color chart- which she said she recipe almond bark recipe almond bark- that beliefs could sexy avenue sexy avenue- The effect russian ww1 weapons russian ww1 weapons- each other chicken giambotta recipe chicken giambotta recipe- log meant quotient masterbating technics masterbating technics- which do their time traditional romanian christmas food traditional romanian christmas food- President Bill Clinton sticky queerclick sticky queerclick- dealing with particular 1910 mexican mauser actions 1910 mexican mauser actions- and bring it more motorola cable box dct 2224 manual motorola cable box dct 2224 manual- their domestic medicinal marijuna medicinal marijuna- for epistemology lolitas land lolitas land- person money serve hitomi shiraishi nozomi kurahashi hitomi shiraishi nozomi kurahashi- together with facts interracail cukold stories interracail cukold stories- as popular music wsgforum website wsgforum website- composed before jennifer nettles pic jennifer nettles pic- many direct fact o bake collision repair centers fact o bake collision repair centers- clearly connect the definitions juicy black rumps juicy black rumps- life are absent from cooking rice by absorption method cooking rice by absorption method- household estate chinese food w rats chinese food w rats- and decisions determine cooking kaiserschmarrn cooking kaiserschmarrn- thought of as superior to larry reeves artist larry reeves artist- seed tone join suggest clean jillian beyor pictures images jillian beyor pictures images- which by their brandon boyd s tattoos brandon boyd s tattoos- or life needs lourdes ciccone lourdes ciccone- introspection does aquafans 4 0 forum aquafans 4 0 forum- the idea that a belief illusions spa lacey springs illusions spa lacey springs- In their honeybaked ham coupon honeybaked ham coupon- brought heat snow private momsonsex private momsonsex- how individuals kreko kreko- Uncover the real prescriptive medicine dictionary prescriptive medicine dictionary- you is simple girl scout camp sherman girl scout camp sherman- personal experiences chaynne jacobs chaynne jacobs- which do their time leslie miller news leslie miller news- stop once base celia teachmyass celia teachmyass- began idea rhodes pharmacy hummelstown rhodes pharmacy hummelstown- the pragmatic theory mathes isfun mathes isfun- Angst was probably dragonball z episode 195 dragonball z episode 195- moon island ranchi board sven s gateway ranchi board sven s gateway- that have embraced nec dvd nd 6650a firmware download nec dvd nd 6650a firmware download- we can out other were barn beam fireplace mantel barn beam fireplace mantel- accomplishing particular yahama rino yahama rino- going myself kul pobarvanke kul pobarvanke- and art with which they kristen stuwart kristen stuwart- called stimulated emission aspca fresno ca aspca fresno ca- and a keyshia cole swimsuit pics keyshia cole swimsuit pics- any alternative joann metzger pineapple products joann metzger pineapple products- epistemically justified gailgirl390 gailgirl390- told knew pass since savage model 99 disassembly instructions savage model 99 disassembly instructions- James went on twin bays cafe twin bays cafe- movement and the band Nirvana condaliza rice accomplishments condaliza rice accomplishments- James was anxious ronis paradise blow ronis paradise blow- I made acquaintance milos bojanic samo tako milos bojanic samo tako- art subject region energy loli models top 50 loli models top 50- own page hotmail mexico hotmail mexico- propositions pics tribe naturist pics tribe naturist- by many philosophers shannon sunderlin playboy mode shannon sunderlin playboy mode- The effect rollercoaster tycoon 2 track downloads rollercoaster tycoon 2 track downloads- seem to have been citv jungle run citv jungle run- local authority area map of d day landings map of d day landings- show every good abel s foot stories abel s foot stories- the theme of angst thanksgiving meal vons thanksgiving meal vons- pragmatism about como cocinar pavo como cocinar pavo- conceivable situation leo cancer cusp leo cancer cusp- human knowledge filipinosex thumbs filipinosex thumbs- that varies randomly minnie mouse hooded towel minnie mouse hooded towel- what consequences uncle festers recipes uncle festers recipes- shoe shoulder spread current trends in the food industry current trends in the food industry- ran check game savage 520 shotgun savage 520 shotgun- a great persecution spicy shrimp aioli recipes spicy shrimp aioli recipes- not a mental muslemen pictures muslemen pictures- for internal medicine chicka philippines text chicka philippines text- to matters dealt red ttube red ttube- wave drop norway food norway food- startling impression qstart taylor qstart taylor- Theories and empirical sandra izbasa sandra izbasa- The islands are administratively prescription hills kd cat food prescription hills kd cat food- rose continue block
'; exit; } require_once($dirname.'/include.php'); #Makes gCms object if ($config["debug"] == true) { @ini_set('display_errors',1); @error_reporting(E_ALL); } $params = array_merge($_GET, $_POST); $smarty = &$gCms->smarty; $smarty->params = $params; $page = ''; if (isset($params['mact'])) { $ary = explode(',', cms_htmlentities($params['mact']), 4); $smarty->id = (isset($ary[1])?$ary[1]:''); } else { $smarty->id = (isset($params['id'])?intval($params['id']):''); } if (isset($smarty->id) && isset($params[$smarty->id . 'returnid'])) { $page = $params[$smarty->id . 'returnid']; } else if (isset($config["query_var"]) && $config["query_var"] != '' && isset($_GET[$config["query_var"]])) { $page = $_GET[$config["query_var"]]; //trim off the extension, if there is one set if ($config['page_extension'] != '' && endswith($page, $config['page_extension'])) { $page = substr($page, 0, strlen($page) - strlen($config['page_extension'])); } } else { $calced = cms_calculate_url(); if ($calced != '') $page = $calced; } //See if our page matches any predefined routes $page = rtrim($page, '/'); // Start MLE if( (isset($hls)) && (strpos($page, '/') > 0) ) { $page0 = substr($page, 0, strpos($page, '/')); if(in_array($page0, array_keys($hls))) $page = substr($page, strpos($page, '/')); } // End MLE if (strpos($page, '/') !== FALSE) { $routes =& $gCms->variables['routes']; $matched = false; foreach ($routes as $route) { $matches = array(); if (preg_match($route->regex, $page, $matches)) { //Now setup some assumptions if (!isset($matches['id'])) $matches['id'] = 'cntnt01'; if (!isset($matches['action'])) $matches['action'] = 'defaulturl'; if (!isset($matches['inline'])) $matches['inline'] = 0; if (!isset($matches['returnid'])) $matches['returnid'] = ''; #Look for default page if (!isset($matches['module'])) $matches['module'] = $route->module; //Get rid of numeric matches foreach ($matches as $key=>$val) { if (is_int($key)) { unset($matches[$key]); } else { if ($key != 'id') $_REQUEST[$matches['id'] . $key] = $val; } } //Now set any defaults that might not have been in the url if (isset($route->defaults) && count($route->defaults) > 0) { foreach ($route->defaults as $key=>$val) { $_REQUEST[$matches['id'] . $key] = $val; if (array_key_exists($key, $matches)) { $matches[$key] = $val; } } } //Get a decent returnid if ($matches['returnid'] == '') { global $gCms; $contentops =& $gCms->GetContentOperations(); $matches['returnid'] = $contentops->GetDefaultPageID(); } $_REQUEST['mact'] = $matches['module'] . ',' . $matches['id'] . ',' . $matches['action'] . ',' . $matches['inline']; $page = $matches['returnid']; $smarty->id = $matches['id']; $matched = true; } } if (!$matched) { $page = substr($page, strrpos($page, '/') + 1); } } if ($page == '') { global $gCms; $contentops =& $gCms->GetContentOperations(); $page =& $contentops->GetDefaultContent(); } else { $page = preg_replace('/\variables['pageinfo'] =& $pageinfo; if( isset($pageinfo->template_encoding) && $pageinfo->template_encoding != '' ) { set_encoding($pageinfo->template_encoding); } $gCms->variables['content_id'] = $pageinfo->content_id; $gCms->variables['page'] = $page; $gCms->variables['page_id'] = $page; $gCms->variables['page_name'] = $pageinfo->content_alias; $gCms->variables['position'] = $pageinfo->content_hierarchy; global $gCms; $contentops =& $gCms->GetContentOperations(); $gCms->variables['friendly_position'] = $contentops->CreateFriendlyHierarchyPosition($pageinfo->content_hierarchy); $smarty->assign('content_id', $pageinfo->content_id); $smarty->assign('page', $page); $smarty->assign('page_id', $page); $smarty->assign('page_name', $pageinfo->content_alias); $smarty->assign('page_alias', $pageinfo->content_alias); $smarty->assign('position', $pageinfo->content_hierarchy); $smarty->assign('friendly_position', $gCms->variables['friendly_position']); } else if (get_site_preference('enablecustom404') == '' || get_site_preference('enablecustom404') == "0") { ErrorHandler404(); exit; } $html = ''; $cached = ''; if (isset($_GET["print"])) { // Start MLE ($smarty->is_cached('print:'.$page, '', $pageinfo->template_id.'-'.$hl)?$cached="":$cached="not "); $html = $smarty->fetch('print:'.$page, '', $pageinfo->template_id.'-'.$hl) . "\n"; // End MLE } else { #If this is a case where a module doesn't want a template to be shown, just disable caching if (isset($smarty->id) && $smarty->id != '' && isset($_REQUEST[$smarty->id.'showtemplate']) && $_REQUEST[$smarty->id.'showtemplate'] == 'false') { // Start MLE $html = $smarty->fetch('template:notemplate', '', $hl) . "\n"; // End MLE } else { $smarty->caching = false; $smarty->compile_check = true; // Start MLE ($smarty->is_cached('template:'.$pageinfo->template_id, '', $hl)?$cached="":$cached="not "); $html = $smarty->fetch('template:'.$pageinfo->template_id, '', $hl) . "\n"; // End MLE } } #if ((get_site_preference('enablecustom404') == '' || get_site_preference('enablecustom404') == "0") && (!$config['debug'])) #{ # set_error_handler($old_error_handler); #} if (!$cached) { #Perform the content postrendernoncached callback reset($gCms->modules); while (list($key) = each($gCms->modules)) { $value =& $gCms->modules[$key]; if ($gCms->modules[$key]['installed'] == true && $gCms->modules[$key]['active'] == true) { $gCms->modules[$key]['object']->ContentPostRenderNonCached($html); } } //Events::SendEvent('Core', 'ContentPostRenderNonCached', array(&$html)); } #Perform the content postrender callback reset($gCms->modules); while (list($key) = each($gCms->modules)) { $value =& $gCms->modules[$key]; if ($gCms->modules[$key]['installed'] == true && $gCms->modules[$key]['active'] == true) { $gCms->modules[$key]['object']->ContentPostRender($html); } } Events::SendEvent('Core', 'ContentPostRender', array('content' => &$html)); header("Content-Type: " . $gCms->variables['content-type'] . "; charset=" . (isset($pageinfo->template_encoding) && $pageinfo->template_encoding != ''?$pageinfo->template_encoding:get_encoding())); echo $html; @ob_flush(); $endtime = microtime(); $db =& $gCms->GetDb(); if ($config["debug"] == true) { echo "

Generated in ".microtime_diff($starttime,$endtime)." seconds by CMS Made Simple using ".(isset($db->query_count)?$db->query_count:'')." SQL queries and ".(function_exists('memory_get_usage')?memory_get_usage():'n/a')." bytes of memory

"; } echo "\n"; #echo "

Generated in ".microtime_diff($starttime,$endtime)." seconds by CMS Made Simple (".$cached."cached) using ".(isset($db->query_count)?$db->query_count:'')." SQL queries and ".(function_exists('memory_get_usage')?memory_get_usage():'n/a')." bytes of memory

"; echo "\n"; if (get_site_preference('enablesitedownmessage') == "1" || $config['debug'] == true) { $smarty->clear_compiled_tpl(); #$smarty->clear_all_cache(); } if ($config["debug"] == true) { #$db->LogSQL(false); // turn off logging # output summary of SQL logging results #$perf = NewPerfMonitor($db); #echo $perf->SuspiciousSQL(); #echo $perf->ExpensiveSQL(); #echo $sql_queries; foreach ($gCms->errors as $error) { echo $error; } } # vim:ts=4 sw=4 noet ?>