Source

Portfolio / gwam / web / php / db / dbsettings.php

Full commit
<?php

class DBSettings {
    public $USER;
    public $PASS;
    public $DB;
    public $HOST;
    public $TYPE;
    public $PERSIST;

    function __construct($user="",$pass="",$db="",$host="",$type="",$persist="") {
        if ($user == "") {
            $this->USER = "gwam_admin";
        } else {
            $this->USER = $user;
        }

	if ($pass == "") {
	    $this->PASS = "mind3m0rk";
        } else {
            $this->PASS = $pass;
        }
 
        if ($db == "") {
            $this->DB = "gwam";
        } else {
            $this->DB = $db;
        }
 
        if ($host == "") {
            $this->HOST = "localhost";
        } else {
	    $this->HOST = $host;
        }

        if ($type == "") {
            $this->TYPE = "mysql";
        } else {
	    $this->TYPE = $host;
        }

        if ($persist == "") {
            $this->PERSIST = 1;
        } else {
            $this->PERSIST = $persist;
        }
    }

}

?>