repo.or.cz
/
htmlpurifier.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 2.1.0, merged in 1313 to HEAD.
[htmlpurifier.git]
/
maintenance
/
common.php
blob
d5437b77edcc1e9a7e5a0e63be65e2fd033c30a8
1
<
?php
2
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
;
8
}
9
}