Revision a9e1725f
Added by Scott Ullrich over 19 years ago
usr/local/www/preload.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
/* make sure we are coming from 127.0.0.1 */ |
|
4 |
$ip = getenv('REMOTE_ADDR'); |
|
5 |
if($ip <> "127.0.0.1") |
|
6 |
exit; |
|
7 |
|
|
8 |
/* preload */ |
|
9 |
require("config.inc"); |
|
10 |
require("functions.inc"); |
|
11 |
require("auth.inc"); |
|
12 |
|
|
13 |
?> |
Also available in: Unified diff
Add a preload script that we will call from rc to preload all the php stuff into APC