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