My static website generator using poole https://www.xythobuz.de
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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 "blogEN":
  10. $loc = "/blog.html";
  11. break;
  12. case "kontaktEN":
  13. $loc = "/contact.html";
  14. break;
  15. case "home":
  16. $loc = "/index.de.html";
  17. break;
  18. case "homeEN":
  19. $loc = "/index.html";
  20. break;
  21. case "avrserlib":
  22. $loc = "/avrserial.de.html";
  23. break;
  24. case "avrserlibEN":
  25. $loc = "/avrserial.html";
  26. break;
  27. case "c250":
  28. $loc = "/c250.de.html";
  29. break;
  30. case "c250EN":
  31. $loc = "/c250.html";
  32. break;
  33. case "cube":
  34. $loc = "/ledcube.de.html";
  35. break;
  36. case "cubeEN":
  37. $loc = "/ledcube.html";
  38. break;
  39. case "ledmatrix":
  40. $loc = "/ledmatrix.de.html";
  41. break;
  42. case "ledmatrixEN":
  43. $loc = "/ledmatrix.html";
  44. break;
  45. case "nas":
  46. $loc = "/nas.de.html";
  47. break;
  48. case "nasEN":
  49. $loc = "/nas.html";
  50. break;
  51. case "serialdebug":
  52. $loc = "/serialdebug.de.html";
  53. break;
  54. case "serialdebugEN":
  55. $loc = "/serialdebug.html";
  56. break;
  57. case "serialhelper":
  58. $loc = "/serialhelper.de.html";
  59. break;
  60. case "serialhelperEN":
  61. $loc = "/serialhelper.html";
  62. break;
  63. case "ssop28":
  64. $loc = "/ssop28.de.html";
  65. break;
  66. case "ssop28EN":
  67. $loc = "/ssop28.html";
  68. break;
  69. case "notifier":
  70. $loc = "/ultimatenotifier.de.html";
  71. break;
  72. case "notifierEN":
  73. $loc = "/ultimatenotifier.html";
  74. break;
  75. case "yasab":
  76. $loc = "/yasab.de.html";
  77. break;
  78. case "yasabEN":
  79. $loc = "/yasab.html";
  80. break;
  81. case "bt":
  82. $loc = "/bluetooth.de.html";
  83. break;
  84. case "btEN":
  85. $loc = "/bluetooth.html";
  86. break;
  87. case "sram":
  88. $loc = "/k6x4008.de.html";
  89. break;
  90. case "sramEN":
  91. $loc = "/k6x4008.html";
  92. break;
  93. case "rrem":
  94. $loc = "/rremote.de.html";
  95. break;
  96. case "rremEN":
  97. $loc = "/rremote.html";
  98. break;
  99. case "rob":
  100. $loc = "/xyrobot.de.html";
  101. break;
  102. case "robEN":
  103. $loc = "/xyrobot.html";
  104. break;
  105. case "xyrobotremote":
  106. $loc = "/xyrobotremote.de.html";
  107. break;
  108. case "xyrobotremoteEN":
  109. $loc = "/xyrobotremote.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: 301 Moved Permanently');
  119. } else {
  120. header('HTTP/1.1 301 Moved Permanently');
  121. }
  122. }
  123. header('Location: '.$loc);
  124. ?>