My static website generator using poole https://www.xythobuz.de
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.php 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?
  2. // Auto generated xyCMS compatibility mobile/index.php
  3. $loc = 'http://www.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 "home":
  22. $loc = "http://xythobuz.de/index.de.html";
  23. break;
  24. case "homeEN":
  25. $loc = "http://xythobuz.de/index.html";
  26. break;
  27. case "avrserlib":
  28. $loc = "http://xythobuz.de/avrserial.de.html";
  29. break;
  30. case "avrserlibEN":
  31. $loc = "http://xythobuz.de/avrserial.html";
  32. break;
  33. case "c250":
  34. $loc = "http://xythobuz.de/c250.de.html";
  35. break;
  36. case "c250EN":
  37. $loc = "http://xythobuz.de/c250.html";
  38. break;
  39. case "cube":
  40. $loc = "http://xythobuz.de/ledcube.de.html";
  41. break;
  42. case "cubeEN":
  43. $loc = "http://xythobuz.de/ledcube.html";
  44. break;
  45. case "ledmatrix":
  46. $loc = "http://xythobuz.de/ledmatrix.de.html";
  47. break;
  48. case "ledmatrixEN":
  49. $loc = "http://xythobuz.de/ledmatrix.html";
  50. break;
  51. case "nas":
  52. $loc = "http://xythobuz.de/nas.de.html";
  53. break;
  54. case "nasEN":
  55. $loc = "http://xythobuz.de/nas.html";
  56. break;
  57. case "serialdebug":
  58. $loc = "http://xythobuz.de/serialdebug.de.html";
  59. break;
  60. case "serialdebugEN":
  61. $loc = "http://xythobuz.de/serialdebug.html";
  62. break;
  63. case "serialhelper":
  64. $loc = "http://xythobuz.de/serialhelper.de.html";
  65. break;
  66. case "serialhelperEN":
  67. $loc = "http://xythobuz.de/serialhelper.html";
  68. break;
  69. case "ssop28":
  70. $loc = "http://xythobuz.de/ssop28.de.html";
  71. break;
  72. case "ssop28EN":
  73. $loc = "http://xythobuz.de/ssop28.html";
  74. break;
  75. case "notifier":
  76. $loc = "http://xythobuz.de/ultimatenotifier.de.html";
  77. break;
  78. case "notifierEN":
  79. $loc = "http://xythobuz.de/ultimatenotifier.html";
  80. break;
  81. case "yasab":
  82. $loc = "http://xythobuz.de/yasab.de.html";
  83. break;
  84. case "yasabEN":
  85. $loc = "http://xythobuz.de/yasab.html";
  86. break;
  87. case "bt":
  88. $loc = "http://xythobuz.de/bluetooth.de.html";
  89. break;
  90. case "btEN":
  91. $loc = "http://xythobuz.de/bluetooth.html";
  92. break;
  93. case "sram":
  94. $loc = "http://xythobuz.de/k6x4008.de.html";
  95. break;
  96. case "sramEN":
  97. $loc = "http://xythobuz.de/k6x4008.html";
  98. break;
  99. case "rrem":
  100. $loc = "http://xythobuz.de/rremote.de.html";
  101. break;
  102. case "rremEN":
  103. $loc = "http://xythobuz.de/rremote.html";
  104. break;
  105. case "rob":
  106. $loc = "http://xythobuz.de/xyrobot.de.html";
  107. break;
  108. case "robEN":
  109. $loc = "http://xythobuz.de/xyrobot.html";
  110. break;
  111. case "xyrobotremote":
  112. $loc = "http://xythobuz.de/xyrobotremote.de.html";
  113. break;
  114. case "xyrobotremoteEN":
  115. $loc = "http://xythobuz.de/xyrobotremote.html";
  116. break;
  117. default:
  118. $loc = "/404.mob.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. ?>