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

Armor maintenance script by testing for CLI.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1080 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2007-05-20 20:05:52 +00:00
parent 23ef535043
commit 71326abec1

View File

@ -6,6 +6,11 @@
* 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.';
exit;
}
chdir( dirname(__FILE__) );
// here's where the entity files are located, assuming working directory