summaryrefslogtreecommitdiff
path: root/bin/dumpschema.php
diff options
context:
space:
mode:
authortill <till@php.net>2009-01-09 21:13:00 +0000
committertill <till@php.net>2009-01-09 21:13:00 +0000
commitd4847048a18b0f51107a078add14563ecadf4701 (patch)
tree0b0680bee439cc0ce2f55d995655f737bd42fc05 /bin/dumpschema.php
parent64c52c63ad42301ece004f51c1dc6abc4c84ce97 (diff)
* let's not discriminate unix :) (= generalized paths)
* added checks so all scripts are only executable from CLI
Diffstat (limited to 'bin/dumpschema.php')
-rw-r--r--bin/dumpschema.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/dumpschema.php b/bin/dumpschema.php
index cbadb00f6..9557c4b15 100644
--- a/bin/dumpschema.php
+++ b/bin/dumpschema.php
@@ -1,6 +1,6 @@
+#!/usr/bin/env php
<?php
/*
- #!/usr/bin/php
+-----------------------------------------------------------------------+
| bin/dumpschema.php |
@@ -20,6 +20,10 @@
*/
+if (php_sapi_name() != 'cli') {
+ die('Not on the "shell" (php-cli).');
+}
+
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
require INSTALL_PATH.'program/include/iniset.php';