Advertisement
Moslem1337

Untitled

Nov 28th, 2022
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <?php
  2. include_once( 'config/main.inc.php' );
  3. include_once( 'config/redirectHandler.php' );
  4. define( 'MEDIA_DIR', 'images/home/' );
  5. $includeLeftMenu = true;
  6.  
  7. $content = 'home.inc.php';
  8. $action = isset($_REQUEST['a'])?$_REQUEST['a']:"";
  9.  
  10. switch( $action )
  11. {
  12. case 'carproof': $content = 'carproof.inc.php'; break;
  13. case 'purchasepolicy': $content = 'purchasepolicy.inc.php'; break;
  14. //case 'carswap': $content = 'carswap.inc.php'; break;
  15. case 'carswap': $content = 'home.inc.php'; break;
  16. case 'onlinebidding':
  17. $content = 'onlinebidding.inc.php';
  18. $includeLeftMenu = false;
  19. break;
  20. case 'holidayhours': $content = 'holidayhours.inc.php'; break;
  21. case 'login': $content = 'login.php'; break;
  22. case 'liveblock':
  23. header( "Location: http://regalauctions.com/index.php?a=onlinebidding" );
  24. break;
  25. default: $content = 'home.inc.php';
  26. }
  27.  
  28. /** LEFT MENU **/
  29. $email = array( 'name' => 'email', 'text' => 'Email Regal', 'href' => 'contactus.php?a=contact&emailId=1&subject=General%20Inquiry%20From%20Home%20Page', 'title' => 'info@regalauctions.ca' );
  30. $subscribe = array( 'name'=> 'subscribe' , 'text' => 'Subscribe to eFlyer', 'href' => 'http://regalauctions.ca/pommo/user/subscribe.php', 'title' => 'Subscribe to our weekly email flyer' );
  31. //$marketreport = array( 'name' => 'marketreport', 'text' => 'Market Report', 'href' => 'currentsale.php?a=marketreport', 'title' => 'Market Report' );
  32.  
  33. if( $includeLeftMenu )
  34. {
  35. $leftMenu = new LeftMenu( 'Home', '' );
  36. $leftMenu->addLink( $email );
  37. $leftMenu->addLink( $subscribe );
  38. //$leftMenu->addLink( $marketreport );
  39. }
  40.  
  41. $title = "Cars for Sale by Auction";
  42. $cTitle = 'Cars for Sale by Auction';
  43.  
  44. ob_start();
  45. include_once( INCLUDE_DIR.'home/'.$content );
  46. $pageContent = ob_get_contents();
  47. ob_end_clean();
  48.  
  49. if( !isset($_REQUEST['contentOnly']) || $_REQUEST['contentOnly'] != 1 )
  50. include_once( INCLUDE_DIR.'top.inc.php' );
  51.  
  52. echo $pageContent;
  53.  
  54. if( !isset($_REQUEST['contentOnly']) || $_REQUEST['contentOnly'] != 1 )
  55. include_once( INCLUDE_DIR.'footer.inc.php' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement