summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-11-21 21:47:03 -0500
committerM <m@lfurio.us>2015-11-21 21:47:03 -0500
commit8449dd601374c503a503b404af7e2b12c355f0e9 (patch)
tree1df43f64c4cea1ec00934ff474ff6184ca093151 /app
parentc50a6be054db3ddb260585865df8341e1347ad73 (diff)
downloadscrott-8449dd601374c503a503b404af7e2b12c355f0e9.tar.gz
scrott-8449dd601374c503a503b404af7e2b12c355f0e9.zip
+ Defined function to check if scrott.conf.php file exists
Diffstat (limited to 'app')
-rw-r--r--app/class/framework.class.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/class/framework.class.php b/app/class/framework.class.php
index e20be7f..5232135 100644
--- a/app/class/framework.class.php
+++ b/app/class/framework.class.php
@@ -10,6 +10,15 @@ is_file("scrott.conf.php") &&
abstract class Framework
{
/*
+ * Check for the existence of Scrott's system-level config
+ */
+ function scrottConfExists()
+ {
+ global $_SCROTT;
+ return isset($_SCROTT['conf']);
+ }
+
+ /*
* Get the absolute path on this server for the root of this app
*/
function ar()