<?php require_once "../config/mobi_web_constants.php"; require_once LIBDIR . "rss_services.php"; $contacts = json_decode(file_get_contents(LIBDIR . "EmergencyContacts.json"), TRUE); $emergency_message = "Coming Soon: Emergency Updates"; $Emergency = new Emergency(); $emergency = $Emergency->get_feed_html(); if ($emergency === False) { $paragraphs = array('Emergency information is currently not available'); } else { $paragraphs = array($emergency[0]['text']); } // the logic to implement the page begins here require PAGE_HEADER; if (isset($_REQUEST['contacts'])) { require "{$page->branch}/contacts.html"; } else { $main = array_splice($contacts, 0, 3); require "{$page->branch}/index.html"; } $page->output(); function contactsURL() { return "./?contacts=true"; } function number_text($item, $convert = FALSE) { $num = $convert ? replace_letters($item['phone']) : $item['phone']; return insert_dots($num); }