config.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?php
  2. require_once 'Schedule.php';
  3. $stations = [
  4. "EDWW_CTR",
  5. "EDWW_A_CTR",
  6. "EDWW_B_CTR",
  7. "EDWW_M_CTR",
  8. "EDWW_K_CTR",
  9. "EDWW_F_CTR",
  10. "EDMM_M_CTR",
  11. "EDMM_H_CTR",
  12. "EDMM_G_CTR",
  13. "EDMM_O_CTR",
  14. "EDUU_H_CTR",
  15. "EDUU_P_CTR",
  16. "EDUU_A_CTR",
  17. "EDUU_R_CTR",
  18. "--",
  19. "EDDB_S_APP",
  20. "EDDB_N_APP",
  21. "EDDB_U_APP",
  22. "EDDB_F_APP",
  23. "EDDB_S_DEP",
  24. "EDDB_N_DEP",
  25. "--",
  26. "EDDB_N_TWR",
  27. "EDDB_S_TWR",
  28. "EDDB_A_GND",
  29. "EDDB_E_GND",
  30. "EDDB_N_GND",
  31. "EDDB_S_GND",
  32. "EDDB_DEL",
  33. "--",
  34. "EDDP_S_APP",
  35. "EDDP_F_APP",
  36. "EDDP_N_APP",
  37. "EDDP_N_TWR",
  38. "EDDP_S_TWR",
  39. "EDDP_GND",
  40. "EDDP_DEL",
  41. "--",
  42. "EDDC_APP",
  43. "EDDC_TWR",
  44. "EDDC_GND",
  45. "EDDC_A_GND",
  46. "--",
  47. "EDDE_TWR",
  48. "EDDE_GND",
  49. "EDDE_A_GND"
  50. ];
  51. $stations_berlin = [
  52. "EDWW_CTR",
  53. "EDWW_A_CTR",
  54. "EDWW_B_CTR",
  55. "EDWW_M_CTR",
  56. "EDWW_K_CTR",
  57. "EDWW_F_CTR",
  58. "EDMM_M_CTR",
  59. "EDMM_H_CTR",
  60. "EDMM_G_CTR",
  61. "EDMM_O_CTR",
  62. "EDUU_H_CTR",
  63. "EDUU_P_CTR",
  64. "EDUU_A_CTR",
  65. "EDUU_R_CTR",
  66. "--",
  67. "EDDB_S_APP",
  68. "EDDB_N_APP",
  69. "EDDB_U_APP",
  70. "EDDB_F_APP",
  71. "EDDB_S_DEP",
  72. "EDDB_N_DEP",
  73. "--",
  74. "EDDB_N_TWR",
  75. "EDDB_S_TWR",
  76. "EDDB_A_GND",
  77. "EDDB_E_GND",
  78. "EDDB_N_GND",
  79. "EDDB_S_GND",
  80. "EDDB_DEL",
  81. ];
  82. $optional = [
  83. "EDWW_CTR",
  84. "EDWW_A_CTR",
  85. "EDWW_M_CTR",
  86. "EDWW_K_CTR",
  87. "EDWW_F_CTR",
  88. "EDMM_M_CTR",
  89. "EDMM_O_CTR",
  90. "EDMM_H_CTR",
  91. "EDUU_H_CTR",
  92. "EDUU_P_CTR",
  93. "EDUU_A_CTR",
  94. "EDUU_R_CTR",
  95. "EDDB_N_APP",
  96. "EDDB_F_APP",
  97. "EDDB_N_DEP",
  98. "EDDB_N_TWR",
  99. "EDDB_E_GND",
  100. "EDDB_N_GND",
  101. "EDDP_F_APP",
  102. "EDDP_N_APP",
  103. "EDDP_N_TWR",
  104. "EDDP_GND",
  105. "EDDP_DEL",
  106. "EDDC_APP",
  107. "EDDC_GND",
  108. "EDDC_A_GND",
  109. "EDDE_GND",
  110. "EDDE_A_GND"
  111. ];
  112. $wantedstns = [
  113. 'EDWW_B_CTR',
  114. 'EDMM_G_CTR',
  115. 'EDDB_S_APP',
  116. 'EDDB_U_APP',
  117. 'EDDB_S_DEP',
  118. 'EDDB_S_TWR',
  119. 'EDDB_A_GND',
  120. 'EDDB_DEL',
  121. 'EDDB_S_GND'
  122. ];
  123. $wanted = Schedule::processWantedDays(
  124. $wantedstns,
  125. Schedule::EveryWeekday("Tuesday", 5),
  126. $wantedstns,
  127. Schedule::EveryXWeeksFromStartdate("2021-10-08", 4, 2));
  128. if(isset($_COOKIE['darkmode']) && $_COOKIE['darkmode'] == 'On') {
  129. $darkmode = true;
  130. } else {
  131. $darkmode = false;
  132. }