summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-sp/register.php
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-08-20 09:45:38 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-08-20 09:45:38 +0000
commit42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8 (patch)
tree170e5f06fd0c08204297c8a9e3bfde8f57290473 /php/Attic/examples/sample-sp/register.php
parent7b462495723b08e965d6077fc57604c4617a414a (diff)
downloadlasso-42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8.tar.gz
lasso-42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8.tar.xz
lasso-42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8.zip
new setup system
Diffstat (limited to 'php/Attic/examples/sample-sp/register.php')
-rw-r--r--php/Attic/examples/sample-sp/register.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/php/Attic/examples/sample-sp/register.php b/php/Attic/examples/sample-sp/register.php
index 76b43380..427fefb5 100644
--- a/php/Attic/examples/sample-sp/register.php
+++ b/php/Attic/examples/sample-sp/register.php
@@ -22,8 +22,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
- include "config.php.inc";
-
+ $config = unserialize(file_get_contents('config.inc'));
+
require_once 'DB.php';
session_start();
@@ -35,7 +35,7 @@
switch($_POST['action']) {
case "submit":
- $db = &DB::connect($dsn);
+ $db = &DB::connect($config['dsn']);
if (DB::isError($db))
die($db->getMessage());