diff options
Diffstat (limited to 'engine/lib/install.php')
-rw-r--r-- | engine/lib/install.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php new file mode 100644 index 000000000..79b170842 --- /dev/null +++ b/engine/lib/install.php @@ -0,0 +1,45 @@ +<?php
+
+ /**
+ * Elgg installation
+ * Various functions to assist with installing and upgrading the system
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ /**
+ * Returns whether or not the database has been installed
+ *
+ * @return true|false Whether the database has been installed
+ */
+ function is_db_installed() {
+
+ $tables = get_db_tables();
+ if (!$tables) {
+ return false;
+ }
+ return true;
+
+ }
+
+ /**
+ * Returns whether or not other settings have been set
+ *
+ * @return true|false Whether or not the rest of the installation has been followed through with
+ */
+ function is_installed() {
+
+ global $CONFIG;
+ if (!empty($CONFIG->path))
+ return true;
+
+ return false;
+
+ }
+
+?>
\ No newline at end of file |