Skip to content

Commit

Permalink
Removed database creds now we're making this project open source
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam committed Mar 20, 2020
1 parent d2633a1 commit b6e6694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/models/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
));
Expand All @@ -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
));
Expand All @@ -34,4 +34,4 @@ static public function write(){
}


}
}

0 comments on commit b6e6694

Please sign in to comment.