Ignore test-settings.php
[htmlpurifier.git] / maintenance / common.php
blobeb57300e25547d6e07e5ea5f0adc4136baec00bb
1 <?php
3 function assertCli() {
4 if (php_sapi_name() != 'cli' && !getenv('PHP_IS_CLI')) {
5 echo 'Script cannot be called from web-browser (if you are indeed calling via cli,
6 set environment variable PHP_IS_CLI to work around this).';
7 exit(1);
11 // Load useful stuff like FSTools
12 require_once '../extras/HTMLPurifierExtras.auto.php';