From: Maxious Date: Fri, 22 Jul 2011 14:25:54 +0000 Subject: Warning from Transport for Canberra about using MyWay apps like this X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=1245e72edab14676dac18454bc9615c6d8b54c2d --- Warning from Transport for Canberra about using MyWay apps like this --- --- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -181,12 +181,13 @@ } echo "\n"; } -function placeSettings() +function timePlaceSettings($geolocate = false) { global $service_periods; $geoerror = false; + if ($geolocate == true) { $geoerror = !isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == ""; - + } echo '
'; if ($geoerror) { echo 'Sorry, but your location could not currently be detected. @@ -195,13 +196,27 @@ } echo '
'; echo '
-

Change Location...

+

Change Time/Place (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' ' . ucwords(service_period()) . ')...

+
+ + + Current Time? +
+
+ + + +
--- a/index.php +++ b/index.php @@ -24,6 +24,7 @@
  • Nearby Routes
  • Busness R&D'; include_footer(true) ?> --- a/labs/mywaybalance.php +++ b/labs/mywaybalance.php @@ -113,6 +113,10 @@
    +
    + + +
    '; } include_footer(); --- a/routeList.php +++ b/routeList.php @@ -44,7 +44,7 @@ include_header("Routes Nearby", "routeList", true, true); trackEvent("Route Lists", "Routes Nearby", $_SESSION['lat'] . "," . $_SESSION['lon']); navbar(); - placeSettings(); + timePlaceSettings(true); if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { include_footer(); die(); --- a/stop.php +++ b/stop.php @@ -61,7 +61,6 @@ } } include_header($stop['stop_name'], "stop"); - /*$serviceAlerts = json_decode(getPage(curPageURL() . "/servicealerts_api.php?filter_class=stop&filter_id=".$stopid) , true); foreach($serviceAlerts['entities'] as $serviceAlert) { @@ -83,31 +82,7 @@ ) )) ; } - -// time settings -echo '
    -

    Change Time (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' ' . ucwords(service_period()) . ')...

    -
    -
    -
    - - - Current Time? -
    -
    - - - -
    - - -
    -
    '; - +timePlaceSettings(); echo ''; echo '