Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rerun.php use db_user_password

  • Loading branch information...
commit bf5d9f2f74b93e4c92007fb2b78753f3820277ef 1 parent a448212
@bvds authored
Showing with 6 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +5 −4 LogProcessing/rerun/rerun.php
View
1  .gitignore
@@ -8,3 +8,4 @@ CVS
*.o
*.fasl
#*#
+db_user_password
View
9 LogProcessing/rerun/rerun.php
@@ -39,10 +39,11 @@ function openTrace($url){
$printDiffs = true; // Whether to print out results for server diffs
$jsonFile = 'replies.json'; // File name for dumping reply json
-$dbname= 'andes3'; //$_POST['dbname'];
-$dbuser= 'root'; // $_POST['dbuser'];
-$dbserver= "localhost";
-$dbpass= file_get_contents("db_password"); /// $_POST['passwd'];
+$dbserver = "localhost";
+$dbLogin = split("\n",file_get_contents("../../db_user_password"));
+$dbuser = $dbLogin[0]; // $_POST['dbuser'];
+$dbpass = $dbLogin[1]; // $_POST['passwd'];
+$dbname = $dbLogin[2] ? $dbLogin[2] : 'andes3'; //$_POST['dbname'];
//CONNECTION STRING
Please sign in to comment.
Something went wrong with that request. Please try again.