summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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__).'/../').'/');