<?php require_once 'Plans.php'; if (isset($_GET['myprivl'])) { $level = (int) $_GET['myprivl']; } else { $level = 1; } $_SESSION['glbs_lvl'] = $level; if (isset($_GET["mark_as_read"]) && $_GET["mark_as_read"] == 1 && User::logged_in()) { mark_as_read($dbh, User::id(), $_SESSION['glbs_lvl']); } Redirect($_SERVER['HTTP_REFERER']);
<?php require "includes/model.php"; require "templates/header.php"; $page = filter_input(INPUT_GET, 'page', FILTER_SANITIZE_URL); if ($page == "project" && isset($_GET['project'])) { require "templates/project.php"; } else { if ($page == "job_applications") { if (logged_in()) { if (isset($_GET['mark_as_read'])) { mark_as_read($_GET['mark_as_read']); } else { if (isset($_GET['mark_as_unread'])) { mark_as_unread($_GET['mark_as_unread']); } else { if (isset($_GET['delete'])) { delete_job_application($_GET['delete']); } } } require "templates/job_applications.php"; } else { header("location:index.php?page=login&redirect=job_applications"); } } else { if ($page == "applyforajob" && isset($_POST['name']) && isset($_POST['email']) && isset($_POST['previous_experiences']) && isset($_POST['about']) && isset($_POST['strengths'])) { applyforajob($_POST['name'], $_POST['email'], $_POST['previous_experiences'], $_POST['about'], $_POST['strengths']); } else { if (isset($_POST['name']) && isset($_POST['email']) && isset($_POST['subject']) && isset($_POST['message'])) { contact_us($_POST['name'], $_POST['email'], $_POST['company'], $_POST['subject'], $_POST['message']);