diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-02-14 18:22:16 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-02-14 18:22:16 +0000 |
commit | 9aee838d110807dcd054eef278e34471ac06dfd1 (patch) | |
tree | bff64ffcc21c1c2c56cbf207e95e7cb28d1ab1b6 /engine | |
parent | e0c5ffc792657f5fb3ff1f0774cfcd18befb8175 (diff) | |
download | elgg-9aee838d110807dcd054eef278e34471ac06dfd1.tar.gz elgg-9aee838d110807dcd054eef278e34471ac06dfd1.tar.bz2 |
Some further installation tweaks
git-svn-id: https://code.elgg.org/elgg/trunk@35 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-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 |