getUserStateFromRequest( "viewlistlimit{$page}", 'limit', $mosConfig_list_limit ) ); $limitstart = intval( $vm_mainframe->getUserStateFromRequest( "view{$keyword}{$category_id}{$pagename}limitstart", 'limitstart', 0 )) ; /* Get all the other paramters */ $search_category= vmRequest::getInt( 'search_category' ); // Display just the naked page without toolbar, menu and footer? $only_page = vmRequest::getInt('only_page', 0 ); if( PSHOP_IS_OFFLINE == '1' && !$perm->hasHigherPerms('storeadmin') ) { echo PSHOP_OFFLINE_MESSAGE; } else { if( PSHOP_IS_OFFLINE == '1' ) { echo '
'; // The admin header with dropdown menu include( ADMINPATH."header.php" ); echo ' | '; } echo '';
include( ADMINPATH."toolbar.virtuemart.php" );
echo ' '; } /** ** END: FRONTEND ADMIN - MOD *****************************/ // 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 ' '."\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 ''.$VM_LANG->_('LAST_UPDATED').': '.strftime( $vendor_date_format ).'';
}
echo "\n \n";
if(SHOWVERSION && !$is_popup) {
include(PAGEPATH ."footer.php");
}
// Set debug option on/off
if (vmShouldDebug()) { /*@MWM1: Log/Debug enhancements */
$end = utime();
$runtime = $end - $start;
include( PAGEPATH . "shop.debug.php" );
}
}
$vm_mainframe->close();
?>
|