summaryrefslogtreecommitdiff
path: root/bin/dwpage.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-09-09 11:33:14 +0200
committerchris <chris@jalakai.co.uk>2006-09-09 11:33:14 +0200
commit78ba70a7d736de2f87cfe1b3e9a4022d65977d57 (patch)
treeb47cf6c9fa24556578d27d71a177041fccb4850c /bin/dwpage.php
parent9eb7920d1301744f3f1be8b89fd0e7a63d97c25b (diff)
downloadrpg-78ba70a7d736de2f87cfe1b3e9a4022d65977d57.tar.gz
rpg-78ba70a7d736de2f87cfe1b3e9a4022d65977d57.tar.bz2
add sapi check to scripts in bin directory
darcs-hash:20060909093314-9b6ab-af4fea49bf71b416150132d44534579d751f144b.gz
Diffstat (limited to 'bin/dwpage.php')
-rwxr-xr-xbin/dwpage.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/dwpage.php b/bin/dwpage.php
index a30a28e04..ac344dcdf 100755
--- a/bin/dwpage.php
+++ b/bin/dwpage.php
@@ -1,6 +1,8 @@
#!/usr/bin/php -d short_open_tag=on
<?php
#------------------------------------------------------------------------------
+if ('cli' != php_sapi_name()) die();
+
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
require_once DOKU_INC.'inc/init.php';
require_once DOKU_INC.'inc/common.php';