Diff of /mambo/branches/4.5.3h/globals.php
Parent Directory
|
Revision Log
|
Patch
| revision 26, Sun Dec 18 12:45:04 2005 UTC | revision 27, Sun Dec 18 22:53:47 2005 UTC | |
|---|---|---|
| # | Line 14 | Line 14 |
| 14 | if (is_null($register_globals)) { | if (is_null($register_globals)) { |
| 15 | $config = implode(",", file(dirname(__FILE__).DIRECTORY_SEPARATOR.'configuration.php')); | $config = implode(",", file(dirname(__FILE__).DIRECTORY_SEPARATOR.'configuration.php')); |
| 16 | preg_match('/\$mosConfig_register_globals\s*=\s*\'([0-1]?)\'/', $config, $matches); | preg_match('/\$mosConfig_register_globals\s*=\s*\'([0-1]?)\'/', $config, $matches); |
| 17 | $register_globals = isset($matches[1]) ? (int) $matches[1] : 0; | $register_globals = isset($matches[1]) ? (int) $matches[1] : 1; |
| 18 | } | } |
| 19 | return $register_globals; | return $register_globals; |
| 20 | } | } |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

