Advertisement
somdcomputerguy

Z:\xampp\htdocs\Rebates\rebates.php

Dec 16th, 2023 (edited)
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.63 KB | Source Code | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html><head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <title>Bay Marine Technology, LLC - Rebates</title>
  5. <link rel="stylesheet" type="text/css" href="rebatestyle.css">
  6. <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
  7. </head><body>
  8. <div id="main">
  9. <a href="http://baymarinetech.com" title="click here to go to the BMT website"><img class="logopic" alt="bmt class logopic" src='BMTlogoa.jpg'></a>
  10. <div id="bmtslogan">Maintaining Your Vessel in Shipshape and Bristol Fashion<br><span style="color: whitesmoke;">
  11. <script type="text/javascript">
  12. //<![CDATA[
  13. <!--
  14. var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
  15. "x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
  16. " r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!94{)rt{y+xx=l;=+;" +
  17. "lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
  18. "\"(1),8\\\"\\\\) <,%1=>$?71!0LWLKV^6Z03\\\\\\\\02\\\\0t\\\\\\\\\\\\36\\\\01" +
  19. "\\\\00\\\\\\\\24\\\\03\\\\02\\\\\\\\4L02\\\\\\\\90-7;5\\\\6(\\\"}fo;n uret}" +
  20. "r);+)y+^(i)t(eAodrCha.c(xdeCoarChomfrg.intr=So+7;12%=;y++)y81i<f({i+)i+l;i<" +
  21. "0;i=r(foh;gten.l=x,l\\\"\\\\\\\"\\\\o=i,r va){,y(x fontincfu)\\\"\")"        ;
  22. while(x=eval(x));
  23. //-->
  24. //]]>
  25. </script></a></span><br>
  26. <script type="text/javascript">
  27. //<![CDATA[
  28. <!--
  29. var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
  30. "x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
  31. " r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!98{)rt{y+xx=l;=+;" +
  32. "lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
  33. "\"(7),8\\\"\\\\yqns{dl%5~Q%20\\\\0I\\\\ZOTYTW]vVWHFMQ20\\\\07\\\\01\\\\\\\\" +
  34. "3p01\\\\\\\\\\\\Y\\\\\\\\0\\\\01\\\\\\\\OKID2F00\\\\\\\\TNu?u~Yw:9+Kxp{g0eR" +
  35. "-iy$e{}efkhB`ci33\\\\0t\\\\\\\\\\\\05\\\\02\\\\03\\\\\\\\30\\\\0C\\\\27\\\\" +
  36. "03\\\\00\\\\\\\\32\\\\04\\\\03\\\\\\\\25\\\\06\\\\03\\\\\\\\-PtM\\\\\\\\13\\"+
  37. "\\07\\\\03\\\\\\\\04\\\\0K\\\\13\\\\0U\\\\OJ10\\\\0t\\\\\\\\\\\\01\\\\07\\\\"+
  38. "02\\\\\\\\13\\\\03\\\\02\\\\\\\\27\\\\0q\\\\3*69:/37\\\"\\\\f(;} ornture;})" +
  39. ")++(y)^(iAtdeCoarchx.e(odrChamCro.fngriSt+=;o27=1y%){++;i<l;i=0(ior;fthngle" +
  40. "x.l=\\\\,\\\\\\\"=\\\",o iar{vy)x,f(n ioctun\\\"f)\")"                       ;
  41. while(x=eval(x));
  42. //-->
  43. //]]>
  44. </script></div><div id="menu"><a href="index.php">Rebates</a><br><br>
  45. <?
  46. date_default_timezone_set('America/New_York');
  47.  
  48. include('../countdown/cdown.php');
  49.  
  50. $Day   = date("l");
  51. $Hour  = date("G");
  52. $Min   = date("i");
  53. $AMPM  = date("A");
  54. $Today = date("l\, F j\<\s\u\p\>S\</\s\u\p\>") . "&nbsp;&nbsp;&nbsp;" . date ("g:i A");
  55. $FileModSize = filesize('xlist.txt');
  56. $FileModTime = filemtime('xlist.txt');
  57. $xfile = array("index", "getproductinfo", "file52");
  58.  
  59. if ($FileModSize > 0){ include("xlist.txt"); }
  60.  
  61. echo "<br><br><a target='_blank' href='http://somdcomputerguy.com/index.php'><span style='color: rgb(230, 230, 250); font-size: 65%; font-style: italic;'>SoMDcomputerguy</span></a><br>";
  62. echo "</div><div id='container'>";
  63.  
  64. switch(date('w')){
  65.         case 0:
  66.             $DateString1 = date ("g A", $FileModTime) . " yesterday.<br>"; break;
  67.         default:
  68.             $DateString1 = date ("g A\, l\, F j\<\s\u\p\>S\</\s\u\p\>", $FileModTime) . "<br>"; break;
  69.     }
  70.  
  71. $HTMLCode = array(
  72.  "<div id='descriptext'>The rebate info is current as of ",
  73.  "<span style='color: rgba(255, 222, 173, .8); font-size: 85%; font-style: italic;'><br>The &#39;rebate check&#39; process will re&#45;start ",
  74.  "</div>",
  75.  "later on this morning.</span>",
  76.  "tomorrow morning.</span>",
  77.  "Monday morning.</span>");
  78.  
  79. if (!isset($_GET['rebates'])){
  80.     echo $Today; echo "<br><br>";
  81.     /* echo "<iframe frameborder='0' src='rebates.php?page=Garmin'></iframe><br>";
  82.     echo "Something will happen in "; echo countdown(2, 2022, 12,25); echo ".<br><br>";
  83.     for($i = 0; $i <= count($xfile) - 1; $i++){
  84.         if (file_exists($xfile[$i] . ".php")) { echo "&#x2705;&nbsp;&nbsp;"; }
  85.          else { mail("webmaster@somdcomputerguy.com", "$xfile[$i] not exist", "$xfile[$i] not exist"); }} */
  86.     if($FileModSize < 0){ echo "<br><br>There are no rebates available.<br><br>The rebate info is current as of "  . $DateString1; } else { echo $HTMLCode[0] . $DateString1; }
  87.     /* if($Day != "Sunday" and $Hour >= 6 or $Hour <= 18){
  88.         if($Min <= '2'){ $refreshTime = "a few minutes"; }
  89.         if($Min >= '50'){ $refreshTime = "about " . ((60 - $Min) + 4). " minutes"; }
  90.         if ($Min <= '1' or $Min >= '56'){ echo "<br><br>The rebates status will be refreshed in $refreshTime if you want to come back.<br>"; }
  91.     } */
  92.     switch($Day){
  93.         case "Saturday":
  94.             if($Hour < 6) { echo $HTMLCode[1] . $HTMLCode[3] . $HTMLCode[2]; break; }
  95.             if($Hour < 18){ echo $HTMLCode[2]; break; } else { echo $HTMLCode[1] . $HTMLCode[5] . $HTMLCode[2]; break; }
  96.         case "Sunday":
  97.             echo $HTMLCode[1] . " in " . (30 - (date('H'))) . " hours." . $HTMLCode[2]; break;
  98.         case "Monday":
  99.             if($Hour < 4) { echo $HTMLCode[1] . " in " . (6 - (date('H'))) . " hours." . $HTMLCode[2]; break; }
  100.         default:
  101.             if($Hour < 6) { echo $HTMLCode[1] . $HTMLCode[3] . $HTMLCode[2]; break; }
  102.             if($Hour < 18){ echo $HTMLCode[2]; break; } else { echo $HTMLCode[1] . $HTMLCode[4] . $HTMLCode[2]; break; }}} else {
  103.     $filename = strip_tags($_GET['rebates']) . '.reb';
  104.     if (file_exists($filename)) {
  105.         echo "<script type='text/javascript'>document.title='Bay Marine Technology, LLC - " . $_GET['rebates'] . " Rebates';</script>";
  106.         include $filename;
  107.     } else { echo strip_tags($_GET['rebates']) . " does not exist"; }}
  108. ?></div></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement