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.
} 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']));
}
}
</li>
<li>
<label for="dbtype">Type</label>
- $dbRadios
+ {$dbRadios}
<p class="form_guide">Database type</p>
</li>
<li>
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
- ),
+ ),*/
);
/**