tterrag1098

Untitled

May 10th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.72 KB | None | 0 0
  1. <?php
  2.   $fooledTime = 1522598400;
  3.   $time = time();
  4.   $fool = isset($_GET['fool']) ? $_GET['fool'] == 'true' : $fooledTime > $time;
  5. ?>
  6. <!doctype html>
  7. <!--[if lt IE 7]>      <html prefix="og: http://ogp.me/ns#" class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
  8. <!--[if IE 7]>         <html prefix="og: http://ogp.me/ns#" class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
  9. <!--[if IE 8]>         <html prefix="og: http://ogp.me/ns#" class="no-js lt-ie9" lang="en"> <![endif]-->
  10. <!--[if gt IE 8]><!--> <html prefix="og: http://ogp.me/ns#" class="no-js" lang="en"> <!--<![endif]-->
  11.     <head>
  12.         <meta charset="utf-8">
  13.         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  14.         <?php
  15.           if ($fool) {
  16.             // If this is before the switch time, force a refresh once that time is reached, plus some buffer time
  17.             echo '<meta http-equiv="refresh" content="' . (($fooledTime - $time) + 30) . '">';
  18.           }
  19.         ?>
  20.         <title>EnderIO - <?= $fool ? '4.0' : '5.0'?></title>
  21.         <meta name="description" content="EnderIO <?= $fool ? '4.0' : '5.0'?>">
  22.         <meta name="theme-color" content="#224230">
  23.  
  24.         <meta property="og:title" content="EnderIO - <?= $fool ? '4.0' : '5.0'?>">
  25.         <meta property="og:description" content="The Future.">
  26.         <meta property="og:type" content="website">
  27.         <meta property="og:url" content="http://www.enderio.com/4">
  28.         <meta property="og:image" content="http://www.enderio.com/img/card.png">
  29.         <meta property="og:image:width" content="500">
  30.         <meta property="og:image:height" content="92">
  31.         <meta property="og:site_name" content="EnderIO">
  32.  
  33.         <meta name="twitter:card" content="summary_large_image">
  34.         <meta name="twitter:title" content="EnderIO - <?= $fool ? '4.0' : '5.0'?>">
  35.  
  36.         <meta name="viewport" content="width=device-width, initial-scale=1">
  37.  
  38.         <link rel="icon" href="img/favicon.ico" type="image/x-icon" />
  39.  
  40.         <link rel="stylesheet" href="css/normalize.min.css">
  41.         <link rel="stylesheet" href="css/4.css">
  42.  
  43.         <link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/code-new-roman" type="text/css"/>
  44.         <link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/minecraftia" type="text/css"/>
  45.  
  46.         <script src="js/vendor/jquery-3.3.1.min.js"></script>
  47.         <script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
  48.     </head>
  49.     <body>
  50.       <video playsinline autoplay muted loop id="bg-video">
  51.         <source src="img/particles.mp4" type="video/mp4">
  52.         <source src="img/particles.webm" type="video/webm">
  53.       </video>
  54.         <!--[if lt IE 8]>
  55.             <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
  56.         <![endif]-->
  57.  
  58.         <div class="main-container">
  59.             <div class="main wrapper clearfix <?= $fool ? '' : 'tallmain'?>">
  60.                 <div class="imgcontainer">
  61.                     <img class="bg" src="img/logo-notext.png"></img><!--
  62.                  --><img class="fg" src="img/logo.png"></img>
  63.                 </div>
  64.                 <h1><?= $fool ? '4.0' : '5.0' ?></h1>
  65.                 <p>Minecraft 1.12.2 / 01.04.18</p><?php
  66.                 if (!$fool) {?>
  67.                   <ul id="buttons">
  68.                     <li><button onclick="location.href='/'" type="button">Main Site</button></li>
  69.                     <li><button onclick="location.href='https://minecraft.curseforge.com/projects/ender-io'" type="button">CurseForge</button></li>
  70.                     <li><button onclick="location.href='?fool=true'" type="button">???</button></li>
  71.                   </ul><?php
  72.                 }?>
  73.                 <ul class="changelog">
  74.                   <?php
  75.                     if ($fool) { ?>
  76.                       <li>Modular diposition</li>
  77.                       <li>Really grindy with many more machines</li>
  78.                       <li>Energy be gone! Now uses psionic powers</li>
  79.                       <li>Capacitors are no longer used for machines</li>
  80.                       <li>Capacitors now explode randomly</li>
  81.                       <li>Machines now always run away from mobs</li>
  82.                       <li>More printed books</li>
  83.                       <li>Impulse buying</li>
  84.                       <li>Wired subscription not included</li>
  85.                       <li>Enhanced constitution generated</li>
  86.                       <li>Now only in-world crafting</li>
  87.                       <li>Now has a larva germinator</li>
  88.                       <li>Improved Conduit GUI - now 2 pixels wider!</li>
  89.                       <li>Vacuum Chest now uses air filters</li>
  90.                       <li>Weird charger - charges and discharges items randomly</li>
  91.                       <li>Impulsive hopper -  Decides for itself, when it works and when not</li>
  92.                       <li>Big Item Filler - makes all your items 10% bigger</li>
  93.                       <li>Jei Ghost Handling - now mezz will take care of all your haunting issues</li>
  94.                       <li>Proper iron API - Expect 3rd-party iron ingots soon</li>
  95.                       <li>Proper dark steel API - Expect 3rd-party dark steel ingots soon</li>
  96.                       <li>Proper fertilizer API - Expect 3rd-party sh*t soon</li>
  97.                       <li>More decorated parties</li>
  98.                       <li>Use infinite frogs for early-game frogman hunting</li>
  99.                       <li>Dark steal door (steals even your pants)</li>
  100.                       <li>More foot bandages</li>
  101.                       <li>Now with ads</li>
  102.                       <li>Inventory support dropped, fully item-less now</li>
  103.                       <li>Entry-level exams</li>
  104.                       <li>Organic eyes</li>
  105.                       <li>Many more tears</li>
  106.                       <li>Much improved bowling experience with many more balls</li><?php
  107.                      } else { ?>
  108.                       <li>Modular distribution</li>
  109.                       <li>Simpler early-game with "simple" machines</li>
  110.                       <li>RF be gone! Now uses µI</li>
  111.                       <li>Capacitors are no longer used to craft machines</li>
  112.                       <li>More machines take capacitors</li>
  113.                       <li>Machines now always need a capacitor to run</li>
  114.                       <li>More paintable blocks</li>
  115.                       <li>Impulse Hopper now included</li>
  116.                       <li>Wired charger</li>
  117.                       <li>Enhanced combustion generator</li>
  118.                       <li>Now with in-world crafting</li>
  119.                       <li>Now has a lava generator</li>
  120.                       <li>Improved Conduit GUI - now you can edit Input and Output at the same time!</li>
  121.                       <li>Big Item Filter - now you can filter even more items!</li>
  122.                       <li>Jei Filter Support - now can drag and drop items into filters</li>
  123.                       <li>Vacuum Chest now supports ALL filters</li>
  124.                       <li>Proper conduit API - Expect 3rd-party conduits soon</li>
  125.                       <li>Proper dark steel API - Expect 3rd-party upgrades soon</li>
  126.                       <li>Proper capacitor API - Expect 3rd-party capacitors soon</li>
  127.                       <li>Proper farming API - Expect 3rd-party farming support soon</li>
  128.                       <li>Proper fertilizer API - Expect 3rd-party fertilizers soon</li>
  129.                       <li>More decoration blocks</li>
  130.                       <li>Use infinity fog for early-game enderman hunting</li>
  131.                       <li>Dark steel door (Paintable)</li>
  132.                       <li>More loot capacitors</li>
  133.                       <li>Now with additional nuggets</li>
  134.                       <li>Full Tinkers' Construct integration</li>
  135.                       <li>IInventory support dropped, fully IItemHandler now</li>
  136.                       <li>Entry-level solar panel</li>
  137.                       <li>Organic dyes</li>
  138.                       <li>Many more gears</li>
  139.                       <li>Many more Grinding Balls</li><?php
  140.                     }?>
  141.                 </ul>
  142.             </div> <!-- #main -->
  143.         </div> <!-- #main-container -->
  144.  
  145.         <footer><?php
  146.           if ($fool) {
  147.             echo '<span class="tagline">A mod by many crazy people</span>';
  148.           } else {?>
  149.             <span class="tagline">A mod by CrazyPants and many other people</span>
  150.             <a href="https://github.com/SleepyTrousers/EnderIO.git">GitHub</a><?php
  151.           }?>
  152.         </footer>
  153.         <script>
  154.           var index = -1;
  155.           var order = [];
  156.           var list;
  157.           function updateChangelog() {
  158.             if (index >= 0) {
  159.               list.eq(order[index]).fadeOut(function() {
  160.                 list.eq(order[(index + 1) % order.length]).fadeIn();
  161.               });
  162.             } else {
  163.               list.eq(order[0]).fadeIn();
  164.             }
  165.             index = (index + 1) % order.length;
  166.           }
  167.           function shuffle(a) {
  168.             var j, x, i;
  169.             for (i = a.length - 1; i > 0; i--) {
  170.               j = Math.floor(Math.random() * (i + 1));
  171.               x = a[i];
  172.               a[i] = a[j];
  173.               a[j] = x;
  174.             }
  175.           }
  176.           $(document).ready(function() {
  177.             list =  $( ".main .changelog li" );
  178.             for (var i = 0; i < list.length; i++) {
  179.               order[i] = i;
  180.             }
  181.             shuffle(order);
  182.  
  183.             window.setTimeout(function() {
  184.               window.setInterval(updateChangelog, 2000);
  185.             }, 8000);
  186.           });
  187.         </script>
  188.     </body>
  189. </html>
Advertisement
Add Comment
Please, Sign In to add comment