// Here is the most important part of the whole Shop: // LOADING the requested page for displaying it to the customer. // I have wrapped it with a function, because it becomes // cacheable that way. // It's just an "include" statement which loads the page $vmDoCaching = ($page == "shop.browse" || $page == "shop.product_details") && (empty($keyword) && empty($keyword1) && empty($keyword2)); // IE6 PNG transparency fix $vm_mainframe->addScript("{$mosConfig_live_site}/components/{$option}/js/sleight.js"); echo '<div id="vmMainPage">' . "\n"; // Load requested PAGE if (file_exists(PAGEPATH . $modulename . "." . $pagename . ".php")) { if ($only_page) { require_once CLASSPATH . 'connectionTools.class.php'; vmConnector::sendHeaderAndContent(200); if ($func) { echo vmCommonHTML::getSuccessIndicator($ok, $vmDisplayLogger); } /*@MWM1: Log/Debug enhancements*/ include PAGEPATH . $modulename . "." . $pagename . ".php"; // Exit gracefully $vm_mainframe->close(true); } include PAGEPATH . $modulename . "." . $pagename . ".php"; } elseif (file_exists(PAGEPATH . HOMEPAGE . '.php')) { include PAGEPATH . HOMEPAGE . '.php'; } else { include PAGEPATH . 'shop.index.php'; } if (!empty($mosConfig_caching) && $vmDoCaching) { echo '<span class="small">' . $VM_LANG->_('LAST_UPDATED') . ': ' . strftime($vendor_date_format) . '</span>'; }