diff options
author | M <m@lfurio.us> | 2015-11-21 21:47:03 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-21 21:47:03 -0500 |
commit | 8449dd601374c503a503b404af7e2b12c355f0e9 (patch) | |
tree | 1df43f64c4cea1ec00934ff474ff6184ca093151 /app | |
parent | c50a6be054db3ddb260585865df8341e1347ad73 (diff) | |
download | scrott-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.php | 9 |
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() |