Posted by:
tjrac
(---.sbtnvt.adelphia.net)
OK, so I downloaded wamp and installed it on my local box running xpPro. I downloaded an open source job costing app from [
www.job-costing-software.org] and put it in the www folder. When I launch localhost and choose the "jobcost" project I get the following in the browser:
admin = $admin; //loading the config $tmp_config = new CConfig($xml); $_CONF = $tmp_config->vars["config"]; //loading the templates if ($this->admin) { if (is_array($_CONF["templates"]["admin"])) { foreach ($_CONF["templates"]["admin"] as $key => $val) { if ($key != "path"
$this->templates[$key] = new CTemplate($_CONF["templates"]["admin"]["path"] . $_CONF["templates"]["admin"][$key]); } } } else { if (is_array($_CONF["templates"])) { foreach ($_CONF["templates"] as $key => $val) { if (($key != "path" ) && ($key != "admin"
) $this->templates[$key] = new CTemplate($_CONF["templates"]["path"] . $_CONF["templates"][$key]); } } } $base = new CBase(); $base->html = new CHtml(); $this->html = &$base->html; //make a connection to db if (is_array($_CONF["database"])) { $this->db = new CDatabase($_CONF["database"]); //vars only if needed if ($_CONF["tables"]["vars"]) { $this->vars = new CVars($this->db , $_CONF["tables"]["vars"]); $base->vars = &$this->vars; } $this->tables = &$_CONF["tables"]; } } function TableFiller($item) { if (file_exists("pb_tf.php"
) { include("pb_tf.php"
; } } /** * description * * @param * * @return * * @access */ function Run() { global $_TSM; if (file_exists("pb_events.php"
) { include("pb_events.php"
; $_TSM["PB_EVENTS"] = @DoEvents(&$this); } if (is_object($this->templates["layout"])) { echo $this->templates["layout"]->Replace($_TSM); } } } ?>
Fatal error: Class 'CSite' not found in C:\wamp\www\jobcost\index.php on line 6
I setup the database, ran site.sql successfully, and changed the database section of the site.xml file appropriately (I think ...).
Can someone explain what is happeing?