summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-03 17:09:05 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-03 17:09:05 +1000
commitf4f76bf3c6824dcd3339c3616ab1c14ceb1c8f7b (patch)
treec535126f6d7b07fbe7f937181240fb144b908033
parentf25ddbb3a623fd4d314ecdf389568b417791f1cb (diff)
check if configured before running
-rwxr-xr-xkusabax.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/kusabax.php b/kusabax.php
index 4d8637e8..e70f1f1e 100755
--- a/kusabax.php
+++ b/kusabax.php
@@ -18,6 +18,8 @@
/* End Config */
+ if(empty($kusabaxc['db']['user']))
+ error('Did you forget to configure the script?');
// KusabaX functions
function md5_decrypt($enc_text, $password, $iv_len = 16) {