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 cadastro_active() { // carregar variaveis globais require ROOT_WEBSITE . "scripts/load_globals.php"; $default_message = '<h3>Cadastro Ativado com sucesso</h3>'; if (get_vars("email") && get_vars("token")) { $results = $this->model->recover_dados(get_vars("email"), get_vars("token")); if (!$results) { header("Location: " . $base_url_site); header("Content-Length: 0"); exit; } $this->model->active_user(get_vars("email")); } else { header("Location: " . $base_url_site); header("Content-Length: 0"); exit; } $css_files = write_css_header(array('cadastro')); $no_footer = true; include $template_directory . "header.inc.php"; include $template_directory . "ativacao.inc.php"; include $template_directory . "footer.inc.php"; $connection->disconnect(); }
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"; }