From 6d28ed7cd510621e571da1d5a20848d58d079f53 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sun, 17 Jan 2010 03:02:16 +0000 Subject: Combat records appear to have a bug. For no reason it displays the unix epoch. More work on the drills. Mostly works-ish. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@462 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/rudi/includes/common.class.php | 35 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'modules/rudi/includes') diff --git a/modules/rudi/includes/common.class.php b/modules/rudi/includes/common.class.php index ab8120e..2e64e48 100644 --- a/modules/rudi/includes/common.class.php +++ b/modules/rudi/includes/common.class.php @@ -113,20 +113,22 @@ class Rank class Drill { - public function __construct() - { - decho("Constructing " . get_class($this) . " -> " . $this); - } - - public function __destruct() - { - decho("Destructing " . get_class($this)); - } - - public function __toString() - { - return $this->date; - } + public $members; + public function __construct() + { + decho("Constructing " . get_class($this) . " -> " . $this); + //$this->members = array('Newly constructed'); + } + + public function __destruct() + { + decho("Destructing " . get_class($this)); + } + + public function __toString() + { + return $this->date; + } } class ServiceRecord @@ -203,10 +205,7 @@ class RUDI_Common global $config, $db; $this->images_path = $config['rudi']['images_path']; - //$this->db = new RUDI_SQL(); - //$this->link = $this->db->Connect($config['sql']['hostname'], $config['sql']['username'], $config['sql']['password']); - $this->db = $db; - $this->db->Select_db('thirdid_oc'); + $this->db = $db; } public function __destruct() -- cgit