0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-08 14:58:42 +00:00

Update maintenance files with cgi-fcgi compiled PHP executable workaround.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1342 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2007-08-02 12:40:54 +00:00
parent 08e32597df
commit 0b743fb2db
2 changed files with 6 additions and 4 deletions

View File

@ -7,8 +7,9 @@
* the caches.
*/
if (php_sapi_name() != 'cli') {
echo 'Script cannot be called from web-browser.';
if (php_sapi_name() != 'cli' && !getenv('PHP_IS_CLI')) {
echo 'Script cannot be called from web-browser (if you are calling via cli,
set environment variable PHP_IS_CLI to work around this).';
exit;
}

View File

@ -6,8 +6,9 @@
* writes the whole kaboodle to a file. The resulting file should be versioned.
*/
if (php_sapi_name() != 'cli') {
echo 'Script cannot be called from web-browser.';
if (php_sapi_name() != 'cli' && !getenv('PHP_IS_CLI')) {
echo 'Script cannot be called from web-browser. (if you are calling via cli,
set environment variable PHP_IS_CLI to work around this).';
exit;
}