Skip to content

Commit

Permalink
Move passwd to file not maintained by Subversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 24, 2004
1 parent a6e53d5 commit 87d6b14
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion database.php
Expand Up @@ -5,6 +5,14 @@

require_once 'common.php';

// This should have the following lines, minus comments:
//
// $dbuser = 'username';
// $dbpass = 'password';
//
// Obviously, those should be a real username and password for the database.
require_once 'dbpasswd.php';

$dblink = NULL;

function get_dblink()
Expand All @@ -13,7 +21,8 @@ function get_dblink()

if ($dblink == NULL)
{
$dblink = mysql_connect('localhost', 'alextreg', 'kjskdjasd923asd');
global $dbuser, $dbpass;
$dblink = mysql_connect('localhost', $dbuser, $dbpass);
if (!$dblink)
{
$err = mysql_error();
Expand Down

0 comments on commit 87d6b14

Please sign in to comment.