My static website generator using poole https://www.xythobuz.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?
  2. // Auto generated xyCMS compatibility index.php
  3. $loc = 'index.de.html';
  4. if (isset($_GET['p'])) {
  5. if (isset($_GET['lang'])) {
  6. $_GET['p'] .= EN;
  7. }
  8. switch($_GET['p']) {
  9. case "home":
  10. $loc = "/index.de.html";
  11. break;
  12. case "homeEN":
  13. $loc = "/index.html";
  14. break;
  15. case "blogEN":
  16. $loc = "/blog.html";
  17. break;
  18. case "kontaktEN":
  19. $loc = "/contact.html";
  20. break;
  21. case "cube":
  22. $loc = "/ledcube.de.html";
  23. break;
  24. case "cubeEN":
  25. $loc = "/ledcube.html";
  26. break;
  27. case "avrserlib":
  28. $loc = "/avrserial.de.html";
  29. break;
  30. case "avrserlibEN":
  31. $loc = "/avrserial.html";
  32. break;
  33. case "nas":
  34. $loc = "/nas.de.html";
  35. break;
  36. case "nasEN":
  37. $loc = "/nas.html";
  38. break;
  39. case "c250":
  40. $loc = "/c250.de.html";
  41. break;
  42. case "c250EN":
  43. $loc = "/c250.html";
  44. break;
  45. case "ssop28":
  46. $loc = "/ssop28.de.html";
  47. break;
  48. case "ssop28EN":
  49. $loc = "/ssop28.html";
  50. break;
  51. case "serialhelper":
  52. $loc = "/serialhelper.de.html";
  53. break;
  54. case "serialhelperEN":
  55. $loc = "/serialhelper.html";
  56. break;
  57. case "yasab":
  58. $loc = "/yasab.de.html";
  59. break;
  60. case "yasabEN":
  61. $loc = "/yasab.html";
  62. break;
  63. case "notifier":
  64. $loc = "/ultimatenotifier.de.html";
  65. break;
  66. case "notifierEN":
  67. $loc = "/ultimatenotifier.html";
  68. break;
  69. case "serialdebug":
  70. $loc = "/serialdebug.de.html";
  71. break;
  72. case "serialdebugEN":
  73. $loc = "/serialdebug.html";
  74. break;
  75. case "ledmatrix":
  76. $loc = "/ledmatrix.de.html";
  77. break;
  78. case "ledmatrixEN":
  79. $loc = "/ledmatrix.html";
  80. break;
  81. case "xyrobotremote":
  82. $loc = "/xyrobotremote.de.html";
  83. break;
  84. case "xyrobotremoteEN":
  85. $loc = "/xyrobotremote.html";
  86. break;
  87. case "rob":
  88. $loc = "/xyrobot.de.html";
  89. break;
  90. case "robEN":
  91. $loc = "/xyrobot.html";
  92. break;
  93. case "sram":
  94. $loc = "/k6x4008.de.html";
  95. break;
  96. case "sramEN":
  97. $loc = "/k6x4008.html";
  98. break;
  99. case "rrem":
  100. $loc = "/rremote.de.html";
  101. break;
  102. case "rremEN":
  103. $loc = "/rremote.html";
  104. break;
  105. case "bt":
  106. $loc = "/bluetooth.de.html";
  107. break;
  108. case "btEN":
  109. $loc = "/bluetooth.html";
  110. break;
  111. default:
  112. $loc = "/404.html";
  113. break;
  114. }
  115. }
  116. if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {
  117. if (php_sapi_name() == 'cgi') {
  118. header('Status: 303 See Other');
  119. } else {
  120. header('HTTP/1.1 303 See Other');
  121. }
  122. }
  123. header('Location: '.$loc);
  124. ?>