Permalink
Browse files

created dbpass file in prep for server deployment

  • Loading branch information...
1 parent f9e73f1 commit e4c95d0557417d219b90650ccf42bab225c57af1 @reednj committed Jul 28, 2008
View
@@ -1 +1,2 @@
._*
+api/dbpass.php
View
0 api/addmip.php 100644 → 100755
No changes.
View
9 api/dbconn.php 100644 → 100755
@@ -7,20 +7,23 @@
* Nathan Reed, 27/09/2007
*/
+include 'dbpass.php';
+
function rybadb_conn()
{
if($_SERVER['SERVER_NAME'] == 'www.rybazoom.com') {
$dbhost = 'mysql.rybazoom.com';
$dbname = 'linkdb';
+ $dbuser = RZ_DB_USER;
+ $dbpass = RZ_DB_PASS;
} else {
$dbhost = 'localhost';
$dbname = 'linkdb';
+ $dbuser = 'linkuser';
+ $dbpass = '';
}
- $dbuser = 'linkuser';
- $dbpass = '';
-
$dbconn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname) or die ('Error connecting to db');
View
0 css/default.css 100644 → 100755
No changes.
View
0 css/mips.css 100644 → 100755
No changes.
View
0 js/prototype.js 100644 → 100755
No changes.
View
0 logo.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e4c95d0

Please sign in to comment.