--- a/install/includes/payload.php Fri Mar 06 11:19:55 2009 -0500
+++ b/install/includes/payload.php Sat Mar 14 14:06:02 2009 -0400
@@ -168,12 +168,13 @@
function stg_write_config()
{
- global $dbhost, $dbuser, $dbpasswd, $dbname, $dbdriver;
+ global $dbhost, $dbuser, $dbpasswd, $dbname, $dbdriver, $dbport;
$db_data = array(
'host' => str_replace("'", "\\'", $dbhost),
'user' => str_replace("'", "\\'", $dbuser),
'pass' => str_replace("'", "\\'", $dbpasswd),
'name' => str_replace("'", "\\'", $dbname),
+ 'port' => intval($dbport),
'tp' => table_prefix,
'drv' => $dbdriver
);
@@ -219,6 +220,9 @@
// Hostname of your database server, probably localhost
\$dbhost = '{$db_data['host']}';
+// Port number for database server, probably 3306 (MySQL) or 5432 (PostgreSQL)
+\$dbport = '{$db_data['port']}';
+
// Username used to connect to the database
\$dbuser = '{$db_data['user']}';
// Database password