librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1578] add $adodb_connect_string to the config. php of


From: David Mignot
Subject: [Librefm-commits] [1578] add $adodb_connect_string to the config. php of nixtape when installing
Date: Thu, 14 May 2009 19:51:41 +0000

Revision: 1578
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1578
Author:   idflood
Date:     2009-05-14 19:51:41 +0000 (Thu, 14 May 2009)
Log Message:
-----------
add $adodb_connect_string to the config.php of nixtape when installing

Modified Paths:
--------------
    trunk/nixtape/install.php

Modified: trunk/nixtape/install.php
===================================================================
--- trunk/nixtape/install.php   2009-05-14 19:25:47 UTC (rev 1577)
+++ trunk/nixtape/install.php   2009-05-14 19:51:41 UTC (rev 1578)
@@ -37,6 +37,8 @@
        } else {
                $connect_string = $dbms . '://' . $_POST['username'] . ':' . 
$_POST['password'] . '@' . $_POST['hostname'] . ':' . $_POST['port'] . '/' . 
$_POST['dbname'];
        }
+       
+       $adodb_connect_string = str_replace('pgsql:', 'postgres:', 
$connect_string );
 
        // Check the connection
        $mdb2 =& MDB2::connect($connect_string);
@@ -52,7 +54,7 @@
        $submissions_server = $_POST['submissions_server'];
 
        //Write out the configuration
-       $config = "<?php\n \$config_version = " . $version .";\n 
\$connect_string = '" . $connect_string . "';\n \$default_theme = '" . 
$default_theme . "';\n \$base_url = '" . $base_url . "';\n \$submissions_server 
= '" . $submissions_server . "';\n \$install_path = '" . $install_path . "'; ";
+       $config = "<?php\n \$config_version = " . $version .";\n 
\$connect_string = '" . $connect_string . "';\n \$default_theme = '" . 
$default_theme . "';\n \$base_url = '" . $base_url . "';\n \$submissions_server 
= '" . $submissions_server . "';\n \$install_path = '" . $install_path . "';\n 
\$adodb_connect_string = '" . $adodb_connect_string . "'; ";
 
        $conf_file = fopen('config.php', 'w');
        $result = fwrite($conf_file, $config);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]