Index: branches/REL1_19/phase3/maintenance/dev/includes/router.php |
— | — | @@ -3,6 +3,10 @@ |
4 | 4 | # Router for the php cli-server built-in webserver |
5 | 5 | # http://ca2.php.net/manual/en/features.commandline.webserver.php |
6 | 6 | |
| 7 | +if ( php_sapi_name() != 'cli-server' ) { |
| 8 | + die( "This script can only be run by php's cli-server sapi." ); |
| 9 | +} |
| 10 | + |
7 | 11 | ini_set('display_errors', 1); |
8 | 12 | error_reporting(E_ALL); |
9 | 13 | |