Skip to content
Permalink
Browse files
Removed database creds now we're making this project open source
  • Loading branch information
Adam committed Mar 20, 2020
1 parent d2633a1 commit b6e669482e32b4052bb10b7a4ac962deea9ac97c
Showing 1 changed file with 3 additions and 3 deletions.
@@ -12,7 +12,7 @@ class Db {
*/
static public function read(){
if( !self::$read ) {
self::$read = new PDO('mysql:host=localhost;port=3306;dbname=vulntraining', 'vulntraining', '#x7QE1Jg&cNO', array(
self::$read = new PDO('mysql:host=localhost;port=3306;dbname=', '', '', array(
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
));
@@ -25,7 +25,7 @@ static public function read(){
*/
static public function write(){
if( !self::$write ) {
self::$write = new PDO('mysql:host=localhost;port=3306;dbname=vulntraining', 'vulntraining', '#x7QE1Jg&cNO', array(
self::$write = new PDO('mysql:host=localhost;port=3306;dbname=', '', '', array(
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
));
@@ -34,4 +34,4 @@ static public function write(){
}


}
}

0 comments on commit b6e6694

Please sign in to comment.