Parent Directory
|
Revision Log
|
Revision Graph
initial checkin
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * Make 'base_path' absolute right away so that all uses of base_path() will return the absolute value. |
| 5 | */ |
| 6 | function absolute_urls_init() { |
| 7 | $GLOBALS['base_path'] = 'http' . |
| 8 | ($_SERVER['HTTPS'] ? 's' : '') . |
| 9 | '://' |
| 10 | . $_SERVER['SERVER_NAME'] . |
| 11 | ($_SERVER['SERVER_PORT'] != 80 ? ':' . $_SERVER['SERVER_PORT'] : '') . |
| 12 | $GLOBALS['base_path']; |
| 13 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |