Refactor stop page
[busui.git] / include / common-transit.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$service_periods = Array(
        'sunday',
        'saturday',
        'weekday'
);
function service_period()
{
        if (isset($_SESSION['service_period'])) return $_SESSION['service_period'];
        switch (date('w')) {
        case 0:
                return 'sunday';
        case 6:
                return 'saturday';
        default:
                return 'weekday';
        }
}
 
?>