VbzCart/archive/code/files/store.php
About
- Purpose: Classes for displaying different types of catalog display pages
- History:
- 2009-03-07 Transcribed from working code at vbz.net
- To Do:
- should be split up into auto-loadable class files, e.g. vbz.title.php, vbz.dept.php, etc.
- "clsFactory" should be eliminated in favor of static functions for each class
Code - store.php
<php><?php
- PURPOSE: vbz page generator
- VERSION: /topics/
// CONSTANTS // -- KF = boolean flag // -- KS = string // -- KWP = web path (URL including protocol) // -- KFP = file path // -- KRP = relative path $fltStart = microtime(true); // debugging activation define('KDO_DEBUG',0); define('KDO_DEBUG_STACK',0); // debugging options define('KDO_DEBUG_HTML',1); define('KDO_DEBUG_IMMED',1); define('KDO_DEBUG_DARK',0); define('KF_USE_WIKI',true); // 2008-06-07 force absolute URL for cart until we fix the domain-cookie problem define('KF_CART_ABSOLUTE',true); /*
GET CONNECTED TO LIBRARIES
- /
require('../local.php'); require('site.php'); $strLibs .= ':'.KFP_WIKI.':'.KFP_WIKI.'includes/'; ini_set('include_path',$strLibs); require('store.php');
// PROCESS PAGE REQUEST $page_uri = $_ENV['REQUEST_URI']; // prepare data objects InitData(KS_DB_VBZCART); //$objFactory = new clsFactory_Carts($objFactory->DB()); // this is an ugly kluge // clsFactory can be done away with when the data.php and carts.php are rewritten to use a single class for each type // - static methods for the whole-table functions, regular methods for individual rows
// process the request $objPage = new clsPageCat(); $objPage->GetQuery(); $objPage->DoRequest();
if (!$didPage) { // $objPage->Init(,'Unknown page','something is messed up','browse','Houston, we have a problem...'); // $objPage->DoError(); } if (KDO_DEBUG) {
print "DEBUG:
".$debug; } </php>