[28377] trunk/www/includes
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 29 14:53:56 PDT 2007
Revision: 28377
http://trac.macosforge.org/projects/macports/changeset/28377
Author: jmpp at macports.org
Date: 2007-08-29 14:53:56 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
Provide connection parameters in common.inc to connect to the ports db;
comment out connection to the news db, which I'd still have to reimplement.
(rebooting the server made me realize the db connection setup was still missing,
but mysql_pconnect() covered for that while the server was up).
Modified Paths:
--------------
trunk/www/includes/common.inc
trunk/www/includes/news.inc
Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc 2007-08-29 21:24:39 UTC (rev 28376)
+++ trunk/www/includes/common.inc 2007-08-29 21:53:56 UTC (rev 28377)
@@ -3,8 +3,18 @@
# $Id$
# Copyright (c) 2003, OpenDarwin
+
######################################################################
+# Ports database connection parameters:
+$host = 'localhost';
+$user = 'www';
+$pass = '';
+$connect = mysql_pconnect($host, $user, $pass) or die("Can't connect to db!");
+
+
+######################################################################
+
# print the current MacPorts version
$mp_version = "1.5.2";
$mp_version_dmg = "1.5.0";
Modified: trunk/www/includes/news.inc
===================================================================
--- trunk/www/includes/news.inc 2007-08-29 21:24:39 UTC (rev 28376)
+++ trunk/www/includes/news.inc 2007-08-29 21:53:56 UTC (rev 28377)
@@ -9,8 +9,8 @@
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
$PHP_SELF = $_SERVER['PHP_SELF'];
/* include_once("$DOCUMENT_ROOT/macports/includes/db.inc"); */
-$connect = mysql_pconnect($host, $user, $pass) or die("Can't connect to db!");
-mysql_select_db($db);
+/* $connect = mysql_pconnect($host, $user, $pass) or die("Can't connect to db!"); */
+/* mysql_select_db($db); */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070829/3f6b8eae/attachment.html
More information about the macports-changes
mailing list