Diff of /mambo/branches/4.6/index.php
Parent Directory
|
Revision Log
|
Patch
| revision 172, Tue Jan 24 09:23:40 2006 UTC | revision 173, Tue Jan 24 10:12:48 2006 UTC | |
|---|---|---|
| # | Line 131 | Line 131 |
| 131 | } | } |
| 132 | fclose($f); | fclose($f); |
| 133 | eval($code); | eval($code); |
| 134 | $subdir = dirname($_SERVER['PHP_SELF']); | $subdir = substr(dirname(__FILE__), strlen($_SERVER['DOCUMENT_ROOT'])); |
| 135 | if ($subdir == '/' OR $subdir == '\\') $subdir = ''; | $subdir = str_replace('\\', '/', $subdir); |
| 136 | //$this->mosConfig_live_site = 'http://'.$_SERVER['SERVER_NAME'].$subdir; | $this->mosConfig_live_site = 'http://'.$_SERVER['SERVER_NAME'].$subdir; |
| $this->mosConfig_live_site = str_replace('/administrator', '', 'http://'.$_SERVER['HTTP_HOST'].'/'.$subdir); | ||
| 137 | preg_match_all('/\$this\-\>([A-Za-z_][A-Za-z0-9_]*)/', $code, $matches); | preg_match_all('/\$this\-\>([A-Za-z_][A-Za-z0-9_]*)/', $code, $matches); |
| 138 | foreach ($matches[1] as $match) $GLOBALS[$match] = $this->$match; | foreach ($matches[1] as $match) $GLOBALS[$match] = $this->$match; |
| 139 | if (!isset($this->mosConfig_register_globals)) { | if (!isset($this->mosConfig_register_globals)) { |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

