Changeset 33 for trunk/dotnode-xml.php
- Timestamp:
- 09/03/05 22:42:52 (6 years ago)
- Files:
-
- 1 modified
-
trunk/dotnode-xml.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dotnode-xml.php
r19 r33 26 26 include('../includes/config/xml.inc.php'); 27 27 28 $_SERVER['HTTP_HOST'] = ereg_replace(":80$", "", $_SERVER["HTTP_HOST"]);29 $requested_site = ereg_replace("^www\.", "", $_SERVER["HTTP_HOST"]);28 $_SERVER['HTTP_HOST'] = ereg_replace(":80$", '', $_SERVER['HTTP_HOST']); 29 $requested_site = ereg_replace("^www\.", '', $_SERVER['HTTP_HOST']); 30 30 ereg("(.*)\.${config['domain']}$", $requested_site, $regs); 31 31 32 $login = $regs[1]; 32 33 … … 34 35 $smarty->template_dir = SMARTYPATH.'/templates_xml/'; 35 36 $smarty->compile_id = 'xml'; 36 $smarty->caching = true ';37 $smarty->caching = true; 37 38 38 39 session_start(); 39 40 40 if( !$smarty->is_cached('index.tpl', $login.'.'.$_SERVER['PHP_SELF'] ))41 if( !$smarty->is_cached('index.tpl',$login.'.'.$_SERVER['PHP_SELF']) ) 41 42 { 42 $token = retreive_url_info($_SERVER[ "PHP_SELF"]);43 $token = retreive_url_info($_SERVER['PHP_SELF']); 43 44 array_splice($token, 0, 1); 44 45
