diff options
Diffstat (limited to 'engine/lib/install.php')
| -rw-r--r-- | engine/lib/install.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php deleted file mode 100644 index f36b528da..000000000 --- a/engine/lib/install.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php - -/** - * Elgg installation - * Various functions to assist with installing and upgrading the system - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @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() { - global $CONFIG; - - if (isset($CONFIG->db_installed)) { - return $CONFIG->db_installed; - } - - if ($dblink = get_db_link('read')) { - mysql_query("select name from {$CONFIG->dbprefix}datalists limit 1", $dblink); - if (mysql_errno($dblink) > 0) { - return false; - } - } else { - return false; - } - - // Set flag if db is installed (if false then we want to check every time) - $CONFIG->db_installed = true; - - 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; - return datalist_get('installed'); -} - -function verify_installation() { - $installed = FALSE; - try { - $installed = is_installed(); - } catch (DatabaseException $e) {} - if (!$installed) { - throw new InstallationException(elgg_echo('InstallationException:SiteNotInstalled')); - } -} |
