My static website generator using poole https://www.xythobuz.de
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 "blog":
  10. $loc = "/blog.de.html";
  11. break;
  12. case "blogEN":
  13. $loc = "/blog.html";
  14. break;
  15. case "kontakt":
  16. $loc = "/contact.de.html";
  17. break;
  18. case "kontaktEN":
  19. $loc = "/contact.html";
  20. break;
  21. case "home":
  22. $loc = "/index.de.html";
  23. break;
  24. case "homeEN":
  25. $loc = "/index.html";
  26. break;
  27. case "avrserlib":
  28. $loc = "/avrserial.de.html";
  29. break;
  30. case "avrserlibEN":
  31. $loc = "/avrserial.html";
  32. break;
  33. case "c250":
  34. $loc = "/c250.de.html";
  35. break;
  36. case "c250EN":
  37. $loc = "/c250.html";
  38. break;
  39. case "cube":
  40. $loc = "/ledcube.de.html";
  41. break;
  42. case "cubeEN":
  43. $loc = "/ledcube.html";
  44. break;
  45. case "ledmatrix":
  46. $loc = "/ledmatrix.de.html";
  47. break;
  48. case "ledmatrixEN":
  49. $loc = "/ledmatrix.html";
  50. break;
  51. case "nas":
  52. $loc = "/nas.de.html";
  53. break;
  54. case "nasEN":
  55. $loc = "/nas.html";
  56. break;
  57. case "serialdebug":
  58. $loc = "/serialdebug.de.html";
  59. break;
  60. case "serialdebugEN":
  61. $loc = "/serialdebug.html";
  62. break;
  63. case "serialhelper":
  64. $loc = "/serialhelper.de.html";
  65. break;
  66. case "serialhelperEN":
  67. $loc = "/serialhelper.html";
  68. break;
  69. case "ssop28":
  70. $loc = "/ssop28.de.html";
  71. break;
  72. case "ssop28EN":
  73. $loc = "/ssop28.html";
  74. break;
  75. case "notifier":
  76. $loc = "/ultimatenotifier.de.html";
  77. break;
  78. case "notifierEN":
  79. $loc = "/ultimatenotifier.html";
  80. break;
  81. case "yasab":
  82. $loc = "/yasab.de.html";
  83. break;
  84. case "yasabEN":
  85. $loc = "/yasab.html";
  86. break;
  87. case "bt":
  88. $loc = "/bluetooth.de.html";
  89. break;
  90. case "btEN":
  91. $loc = "/bluetooth.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 "rob":
  106. $loc = "/xyrobot.de.html";
  107. break;
  108. case "robEN":
  109. $loc = "/xyrobot.html";
  110. break;
  111. case "xyrobotremote":
  112. $loc = "/xyrobotremote.de.html";
  113. break;
  114. case "xyrobotremoteEN":
  115. $loc = "/xyrobotremote.html";
  116. break;
  117. default:
  118. $loc = "/404.html";
  119. break;
  120. }
  121. }
  122. if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {
  123. if (php_sapi_name() == 'cgi') {
  124. header('Status: 301 Moved Permanently');
  125. } else {
  126. header('HTTP/1.1 301 Moved Permanently');
  127. }
  128. }
  129. header('Location: '.$loc);
  130. ?>