]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Installer database adjustments
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 1 May 2014 00:47:56 +0000 (02:47 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 1 May 2014 00:59:09 +0000 (02:59 +0200)
We can't say we officially support PostgreSQL, unfortunately. There
are too many database calls with MySQL specific syntax. This would be
desirable for a 2.0 release, but too much work while maintaining 1.x.

The main difficulty is that we're using PEAR::DB which is aging. If
that's exchanged, maybe we could use PDO or something.

install.php
lib/installer.php

index 352d5a143c80ed436a532d6553faec788887e589..f9d69262e290090894546c1a0cbed1f1c591d990 100644 (file)
@@ -165,7 +165,9 @@ class WebInstaller extends Installer
                 } else {
                     $checked = '';
                 }
-                $dbRadios .= "<input type=\"radio\" name=\"dbtype\" id=\"dbtype-$type\" value=\"$type\" $checked/> $info[name]<br />\n";
+                $dbRadios .= sprintf('<input type="radio" name="dbtype" id="dbtype-%1$s" value="%1$s" %2$s/>%3$s<br />',
+                                htmlspecialchars($type), $checked,
+                                htmlspecialchars($info['name']));
             }
         }
 
@@ -212,7 +214,7 @@ class WebInstaller extends Installer
                     </li>
                     <li>
                         <label for="dbtype">Type</label>
-                        $dbRadios
+                        {$dbRadios}
                         <p class="form_guide">Database type</p>
                     </li>
                     <li>
index b649dc3e2c51a6caca4f051d9fb62dc28bc262e0..5e483df82cc1372821b5ab3f4b3dc7999cf0b6ea 100644 (file)
@@ -53,15 +53,15 @@ abstract class Installer
 
     public static $dbModules = array(
         'mysql' => array(
-            'name' => 'MySQL',
+            'name' => 'MariaDB (or MySQL 5.5+)',
             'check_module' => 'mysqli',
             'scheme' => 'mysqli', // DSN prefix for PEAR::DB
         ),
-        'pgsql' => array(
+/*        'pgsql' => array(
             'name' => 'PostgreSQL',
             'check_module' => 'pgsql',
             'scheme' => 'pgsql', // DSN prefix for PEAR::DB
-        ),
+        ),*/
     );
 
     /**