aboutsummaryrefslogtreecommitdiff
path: root/modules/rudi/includes
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-16 22:02:16 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-16 22:02:16 -0500
commit6d28ed7cd510621e571da1d5a20848d58d079f53 (patch)
tree55fcf0144f3e79b9c059ced07cdf9def097037b2 /modules/rudi/includes
parenta65e949fefc86be87118238ccde7b6a55c29b0be (diff)
downloadbayonetcms-6d28ed7cd510621e571da1d5a20848d58d079f53.tar.gz
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
Diffstat (limited to 'modules/rudi/includes')
-rw-r--r--modules/rudi/includes/common.class.php35
1 files changed, 17 insertions, 18 deletions
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()