5 if (php_sapi_name() !=
'cli' && !getenv(
'PHP_IS_CLI')) {
6 echo 'Script cannot be called from web-browser (if you are indeed calling via cli, 7 set environment variable PHP_IS_CLI to work around this).';
14 return strncmp($comp, $subject, strlen($comp)) === 0;
19 return strlen($subject) < $comp ? false : substr($subject, -strlen($comp)) === $comp;
23 require_once dirname(__FILE__) .
'/../extras/HTMLPurifierExtras.auto.php';
postfix_is($comp, $subject)
prefix_is($comp, $subject)