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 4.4KB

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