Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once( 'config/main.inc.php' );
- include_once( 'config/redirectHandler.php' );
- define( 'MEDIA_DIR', 'images/home/' );
- $includeLeftMenu = true;
- $content = 'home.inc.php';
- $action = isset($_REQUEST['a'])?$_REQUEST['a']:"";
- switch( $action )
- {
- case 'carproof': $content = 'carproof.inc.php'; break;
- case 'purchasepolicy': $content = 'purchasepolicy.inc.php'; break;
- //case 'carswap': $content = 'carswap.inc.php'; break;
- case 'carswap': $content = 'home.inc.php'; break;
- case 'onlinebidding':
- $content = 'onlinebidding.inc.php';
- $includeLeftMenu = false;
- break;
- case 'holidayhours': $content = 'holidayhours.inc.php'; break;
- case 'login': $content = 'login.php'; break;
- case 'liveblock':
- header( "Location: http://regalauctions.com/index.php?a=onlinebidding" );
- break;
- default: $content = 'home.inc.php';
- }
- /** LEFT MENU **/
- $email = array( 'name' => 'email', 'text' => 'Email Regal', 'href' => 'contactus.php?a=contact&emailId=1&subject=General%20Inquiry%20From%20Home%20Page', 'title' => 'info@regalauctions.ca' );
- $subscribe = array( 'name'=> 'subscribe' , 'text' => 'Subscribe to eFlyer', 'href' => 'http://regalauctions.ca/pommo/user/subscribe.php', 'title' => 'Subscribe to our weekly email flyer' );
- //$marketreport = array( 'name' => 'marketreport', 'text' => 'Market Report', 'href' => 'currentsale.php?a=marketreport', 'title' => 'Market Report' );
- if( $includeLeftMenu )
- {
- $leftMenu = new LeftMenu( 'Home', '' );
- $leftMenu->addLink( $email );
- $leftMenu->addLink( $subscribe );
- //$leftMenu->addLink( $marketreport );
- }
- $title = "Cars for Sale by Auction";
- $cTitle = 'Cars for Sale by Auction';
- ob_start();
- include_once( INCLUDE_DIR.'home/'.$content );
- $pageContent = ob_get_contents();
- ob_end_clean();
- if( !isset($_REQUEST['contentOnly']) || $_REQUEST['contentOnly'] != 1 )
- include_once( INCLUDE_DIR.'top.inc.php' );
- echo $pageContent;
- if( !isset($_REQUEST['contentOnly']) || $_REQUEST['contentOnly'] != 1 )
- include_once( INCLUDE_DIR.'footer.inc.php' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement