Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0tt committed Jan 20, 2012
1 parent 5a81f8c commit e1af0a0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Casino.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

class Phergie_Plugin_Casino extends Phergie_Plugin_Abstract
{
/* SQL Script to reset the database
TRUNCATE TABLE userlist;
TRUNCATE TABLE jackpotlog;
UPDATE settings SET jackpot = 0;
ALTER SEQUENCE userlist_id restart;
ALTER SEQUENCE jackpotlog_nick_seq restart;
*/

/* DB Settings - Uses Postgresql */

private $dbh = null;
Expand Down Expand Up @@ -51,7 +42,7 @@ public function onLoad()
$this->db_user_pass = $this->config['casino.prefs']['db_user_pass'];
$this->db_name = $this->config['casino.prefs']['db_name'];
$this->dbh = new PDO("pgsql:host=".$this->db_host.";dbname=".$this->db_name, $this->db_user, $this->db_user_pass);
//$this->dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
$this->dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );
}

private function in_arrayi($needle, $haystack)
Expand Down

0 comments on commit e1af0a0

Please sign in to comment.