mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 16:31:53 +00:00
1d25be875d
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1640 48356398-32a2-884e-a903-53898d9a118a
13 lines
356 B
PHP
13 lines
356 B
PHP
<?php
|
|
|
|
function assertCli() {
|
|
if (php_sapi_name() != 'cli' && !getenv('PHP_IS_CLI')) {
|
|
echo 'Script cannot be called from web-browser (if you are indeed calling via cli,
|
|
set environment variable PHP_IS_CLI to work around this).';
|
|
exit(1);
|
|
}
|
|
}
|
|
|
|
// Load useful stuff like FSTools
|
|
require_once '../extras/HTMLPurifierExtras.auto.php';
|