config.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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_G_CTR",
  12. "EDUU_O_CTR",
  13. "EDUU_E_CTR",
  14. "--",
  15. "EDBB_S_APP",
  16. "EDBB_N_APP",
  17. "EDBB_U_APP",
  18. "EDBB_F_APP",
  19. "EDBB_S_DEP",
  20. "EDBB_N_DEP",
  21. "--",
  22. "EDDB_N_TWR",
  23. "EDDB_S_TWR",
  24. "EDDB_A_GND",
  25. "EDDB_E_GND",
  26. "EDDB_N_GND",
  27. "EDDB_S_GND",
  28. "EDDB_DEL",
  29. "--",
  30. "EDDP_S_APP",
  31. "EDDP_F_APP",
  32. "EDDP_N_APP",
  33. "EDDP_N_TWR",
  34. "EDDP_S_TWR",
  35. "EDDP_GND",
  36. "EDDP_DEL",
  37. "--",
  38. "EDDC_APP",
  39. "EDDC_TWR",
  40. "EDDC_GND",
  41. "EDDC_A_GND",
  42. "--",
  43. "EDDE_TWR",
  44. "EDDE_GND",
  45. "EDDE_A_GND"
  46. ];
  47. $stations_berlin = [
  48. "EDWW_CTR",
  49. "EDWW_A_CTR",
  50. "EDWW_B_CTR",
  51. "EDWW_M_CTR",
  52. "EDWW_K_CTR",
  53. "EDWW_F_CTR",
  54. "EDMM_M_CTR",
  55. "EDMM_G_CTR",
  56. "EDUU_O_CTR",
  57. "EDUU_E_CTR",
  58. "--",
  59. "EDBB_S_APP",
  60. "EDBB_N_APP",
  61. "EDBB_U_APP",
  62. "EDBB_F_APP",
  63. "EDBB_S_DEP",
  64. "EDBB_N_DEP",
  65. "--",
  66. "EDDB_N_TWR",
  67. "EDDB_S_TWR",
  68. "EDDB_A_GND",
  69. "EDDB_E_GND",
  70. "EDDB_N_GND",
  71. "EDDB_S_GND",
  72. "EDDB_DEL",
  73. ];
  74. $optional = [
  75. "EDWW_CTR",
  76. "EDWW_A_CTR",
  77. "EDWW_M_CTR",
  78. "EDWW_K_CTR",
  79. "EDWW_F_CTR",
  80. "EDMM_M_CTR",
  81. "EDUU_O_CTR",
  82. "EDUU_E_CTR",
  83. "EDBB_N_APP",
  84. "EDBB_F_APP",
  85. "EDBB_N_DEP",
  86. "EDDB_S_TWR",
  87. "EDDB_E_GND",
  88. "EDDB_S_GND",
  89. "EDDP_F_APP",
  90. "EDDP_N_APP",
  91. "EDDP_S_TWR",
  92. "EDDP_GND",
  93. "EDDP_DEL",
  94. "EDDC_APP",
  95. "EDDC_GND",
  96. "EDDC_A_GND",
  97. "EDDE_GND",
  98. "EDDE_A_GND"
  99. ];
  100. $wantedstns = [
  101. 'EDWW_B_CTR',
  102. 'EDMM_G_CTR',
  103. 'EDBB_S_APP',
  104. 'EDBB_U_APP',
  105. 'EDBB_S_DEP',
  106. 'EDDB_N_TWR',
  107. 'EDDB_A_GND',
  108. 'EDDB_DEL',
  109. 'EDDB_N_GND'
  110. ];
  111. $wanted = Schedule::processWantedDays(
  112. $wantedstns,
  113. Schedule::EveryWeekday("Tuesday", 5),
  114. $wantedstns,
  115. Schedule::EveryXWeeksFromStartdate("2021-10-08", 4, 2));
  116. if(isset($_COOKIE['darkmode']) && $_COOKIE['darkmode'] == 'On') {
  117. $darkmode = true;
  118. } else {
  119. $darkmode = false;
  120. }