Advertisement
plirof2

english_test.php

Dec 15th, 2020 (edited)
884
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $a1_enabled=true;
  5. $a2_enabled=true;
  6. $a3_enabled=true;
  7. $b1_enabled=true;
  8. $b2_enabled=true;
  9. $b3_enabled=true;
  10. $g1_enabled=true;
  11. $g2_enabled=true;
  12. $g3_enabled=true;
  13. $g4_enabled=true;
  14.  
  15.  
  16.  
  17.  
  18. $newurl="http://webmail.sch.gr";
  19. $newurl="DISABLED";
  20.  
  21. switch (@$_GET["c"]) {
  22.     case 'a1':
  23.         if($a1_enabled)$newurl="http://localhost/swf";
  24.         break;
  25.     case 'a2':
  26.         if($a2_enabled)$newurl="";
  27.         break;
  28.     case 'a3':
  29.         if($a3_enabled)$newurl="";
  30.         break;
  31.     case 'b1':
  32.         if($b1_enabled)$newurl="";
  33.         break;
  34.     case 'b2':
  35.         if($b2_enabled)$newurl="";
  36.         break;
  37.     case 'b3':
  38.         if($b3_enabled)$newurl="";
  39.         break;
  40.     case 'g1':
  41.         if($g1_enabled)$newurl="";
  42.         break;
  43.     case 'g2':
  44.         if($g2_enabled)$newurl="";
  45.         break;
  46.     case 'g3':
  47.         if($g3_enabled)$newurl="";
  48.         break;
  49.     case 'g4':
  50.         if($g4_enabled)$newurl="";
  51.         break;
  52. }
  53. //echo"aaaaaaaaaaa";
  54.  
  55. function redirect($url) {
  56.     ob_start();
  57.     header('Location: '.$url);
  58.     ob_end_flush();
  59.  
  60.     die();
  61.  
  62.  
  63. }
  64.  
  65. if($newurl!="DISABLED")  redirect($newurl);
  66.  
  67.  
  68. ?>
  69. <center>
  70. <meta charset="utf-8">
  71. <h1>English Test Link</h1>
  72.  
  73.  
  74. <!--<script type="text/javascript">location.href = '<?php echo $newurl ?>';</script>-->
  75.  
  76.  
  77. <h1>TEST ENDED</h1>
  78.  
  79.  
  80.  
  81. <hr>
  82. <?php echo $newurl; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement