--- a/sharing/query.php Sun May 08 18:11:53 2011 +0100
+++ b/sharing/query.php Sun May 08 18:17:25 2011 +0100
@@ -1,15 +1,7 @@
<?php
- // defines db username and password
require("config.php");
+ require 'dbinfo.phi';
-/*
-edit config.php to suit your db:
-
-<?php
-$username = "userid";
-$password = "password";
-?>
-*/
$nl = "\n";
$tab = "\t";
@@ -123,10 +115,7 @@
case "11":
$sql = "SELECT host,session_cookies,lasting_cookies,flash_cookies," .
"int_3rd_party_session_cookies,int_3rd_party_lasting_cookies," .
- "int_3rd_party_fla<?php
-$username = "www-data";
-$password = "nutmeg23";
-?>sh_cookies,ext_3rd_party_session_cookies," .
+ "int_3rd_party_flash_cookies,ext_3rd_party_session_cookies," .
"ext_3rd_party_lasting_cookies,ext_3rd_party_flash_cookies" .
" FROM site_info WHERE host LIKE '%" . escape1($param) . "'";
$names = array("host","session","lasting","flash",
@@ -149,7 +138,7 @@
header('Content-Type: text/plain');
$database = "dashboard";
- $db = mysql_connect("localhost",$username,$password);
+ $db = mysql_connect($db_master, $username, $password);
if (!$db)
{
--- a/sharing/share.php Sun May 08 18:11:53 2011 +0100
+++ b/sharing/share.php Sun May 08 18:17:25 2011 +0100
@@ -1,6 +1,6 @@
<?php
- // defines db username and password
require("config.php");
+ require 'dbinfo.phi';
mb_internal_encoding("UTF-8");
@@ -255,7 +255,7 @@
$password = trim($creds[1]);
$database = "dashboard";
- $db = mysql_connect("localhost",$username,$password);
+ $db = mysql_connect($db_master, $username, $password);
if (!$db)
{
--- a/sharing/site.php Sun May 08 18:11:53 2011 +0100
+++ b/sharing/site.php Sun May 08 18:17:25 2011 +0100
@@ -1,6 +1,6 @@
<?php
- // defines db username and password
require("config.php");
+ require 'dbinfo.phi';
$nl = "\n";
$tab = "\t";
@@ -54,8 +54,7 @@
}
$database = "dashboard";
-
- $db = mysql_connect("localhost",$username,$password);
+ $db = mysql_connect($db_master, $username, $password);
if (!$db)
{