summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-09-14 19:19:11 +1200
committerBrenda Wallace <shiny@cpan.org>2009-09-14 19:19:11 +1200
commit5ca90e2c8cbc76693cf0f2278d14f2a35da7e34e (patch)
treec4785fd716d3ba3698c549bf66d526d2aa808015 /install.php
parent87c59fe8734479046c8433f74787f615484b3df7 (diff)
pulled @author from git logs
Conflicts: install.php
Diffstat (limited to 'install.php')
-rw-r--r--install.php21
1 files changed, 16 insertions, 5 deletions
diff --git a/install.php b/install.php
index dea03fc5e..07a7bfaaf 100644
--- a/install.php
+++ b/install.php
@@ -18,12 +18,22 @@
*
* @category Installation
* @package Installation
- * @license GNU Affero General Public License http://www.gnu.org/licenses/
*
+ * @author Adrian Lang <mail@adrianlang.de>
+ * @author Brenda Wallace <shiny@cpan.org>
+ * @author Brett Taylor <brett@webfroot.co.nz>
+ * @author Brion Vibber <brion@pobox.com>
+ * @author CiaranG <ciaran@ciarang.com>
+ * @author Craig Andrews <candrews@integralblue.com>
+ * @author Eric Helgeson <helfire@Erics-MBP.local>
+ * @author Evan Prodromou <evan@controlyourself.ca>
+ * @author Evan Prodromou <evan@status.net>
+ * @author Robin Millette <millette@controlyourself.ca>
+ * @author Sarven Capadisli <csarven@controlyourself.ca>
+ * @author Tom Adams <tom@holizz.com>
+ * @license GNU Affero General Public License http://www.gnu.org/licenses/
*/
-
-
define('INSTALLDIR', dirname(__FILE__));
$external_libraries=array(
@@ -281,6 +291,7 @@ function checkPrereqs()
$missingExtensions[] = $info['check_module'];
}
}
+
if (count($missingExtensions) == count($dbModules)) {
$req = implode(', ', $missingExtensions);
printf('<p class="error">Cannot find mysql or pgsql extension. You need one or the other: <code>%s</code></p>', $req);
@@ -682,7 +693,7 @@ function writeConf($sitename, $server, $path, $fancy, $db)
*
* @return boolean - indicating success or failure
*/
-function runDbScript($filename, $conn, $type = 'mysql')
+function runDbScript($filename, $conn, $type = 'mysqli')
{
$sql = trim(file_get_contents($filename));
$stmts = explode(';', $sql);
@@ -693,7 +704,7 @@ function runDbScript($filename, $conn, $type = 'mysql')
}
// FIXME: use PEAR::DB or PDO instead of our own switch
switch ($type) {
- case 'mysql':
+ case 'mysqli':
$res = mysql_query($stmt, $conn);
if ($res === false) {
$error = mysql_error();