Differences
This shows you the differences between two versions of the page.
| Both sides next revision | |||
| code:dokuwiki-sql [2020/02/12 21:48] 84.186.32.111 created | code:dokuwiki-sql [2020/02/12 21:53] (current) 84.186.32.111 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | sample preload.php snippet | ||
| + | <file php preload.php> | ||
| + | $http_host | ||
| + | if( strpos( $http_host, ':' | ||
| + | list( $http_host, $http_port ) = explode( ':', | ||
| + | } | ||
| + | $animal | ||
| + | $request_id = $_SERVER[' | ||
| + | |||
| + | require_once( $farmbasedir.'/ | ||
| + | |||
| + | $farmdir | ||
| + | if( !$animal || !is_dir( $farmdir )) { | ||
| + | $animal | ||
| + | $farmdir | ||
| + | |||
| + | if( !is_dir( $farmdir )) { die( ' | ||
| + | define( ' | ||
| + | |||
| + | if( !defined( ' | ||
| + | if( !defined( ' | ||
| + | if( !defined( ' | ||
| + | |||
| + | if( !defined( ' | ||
| + | if( !defined( ' | ||
| + | |||
| + | require_once( $farmbasedir.'/ | ||
| + | require_once( $farmbasedir.'/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | sample farm.protected.php snippet | ||
| <code php> | <code php> | ||
| $conf[' | $conf[' | ||