public function index($data = null)
 {
     // carregar variaveis globais
     require ROOT_WEBSITE . "scripts/load_globals.php";
     $authenticated = false;
     $authentication = new cadastro_controller();
     $this->authenticated = $authentication->authenticate($uri);
     $css_files = write_css_header(array("index"));
     $js_files = write_js_header(array("index"));
     include $template_directory . "header.inc.php";
     include $template_directory . "index.inc.php";
     include $template_directory . "footer.inc.php";
 }
 public function rota_system()
 {
     // carregar variaveis globais
     require ROOT_WEBSITE . "scripts/load_globals.php";
     $authenticated = false;
     $authentication = new cadastro_controller();
     $this->authenticated = $authentication->authenticate($uri);
     if (!get_vars('ponto') || !get_vars('destino') || !get_vars('lat') || !get_vars('lng') || !get_vars('onibus')) {
         header("Location: " . $base_url_site);
     }
     $complement_title = htmlspecialchars("Meu Destino - " . get_vars('ponto'));
     $meta_description = htmlspecialchars(get_vars('ponto'));
     $css_files = write_css_header(array("rota"));
     $js_files = write_js_header(array("rota"));
     $google_api = true;
     include $template_directory . "header.inc.php";
     include $template_directory . "rota.inc.php";
     include $template_directory . "footer.inc.php";
 }