summaryrefslogtreecommitdiff
path: root/bin
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
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')
-rwxr-xr-xbin/dwpage.php2
-rwxr-xr-xbin/indexer.php1
-rwxr-xr-xbin/wantedpages.php2
3 files changed, 5 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';
diff --git a/bin/indexer.php b/bin/indexer.php
index aa7a2fc5f..769cecffe 100755
--- a/bin/indexer.php
+++ b/bin/indexer.php
@@ -1,5 +1,6 @@
#!/usr/bin/php
<?php
+if ('cli' != php_sapi_name()) die();
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
require_once(DOKU_INC.'inc/init.php');
diff --git a/bin/wantedpages.php b/bin/wantedpages.php
index b75b2baa3..b94539373 100755
--- a/bin/wantedpages.php
+++ b/bin/wantedpages.php
@@ -1,5 +1,7 @@
#!/usr/bin/php -d short_open_tag=on
<?php
+if ('cli' != php_sapi_name()) die();
+
#------------------------------------------------------------------------------
ini_set('memory_limit','128M');
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');