Release 2.1.0, merged in 1313 to HEAD.
[htmlpurifier.git] / maintenance / common.php
blobd5437b77edcc1e9a7e5a0e63be65e2fd033c30a8
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 calling via cli,
6 set environment variable PHP_IS_CLI to work around this).';
7 exit;