<?php require_once 'db.php'; require_once 'functions.php'; if (!isset($_SESSION['user']['id'])) { if (isset($_GET["invite"])) { $hash = $_GET["invite"]; $url = "rankOrderexperiment.php?invite="; redirectAfterLogin($url . $hash); } else { header("Location: login.php"); } } if (isset($_GET["invite"])) { $hash = $_GET["invite"]; try { $stmt = $db->query("SELECT id FROM experiment WHERE inviteHash = '" . $hash . "'"); $res = $stmt->fetchAll(); $_SESSION['experimentId'] = $res[0]['id']; } catch (Exception $ex) { } } else { $_SESSION['experimentId'] = $_POST['experimentId']; } ?> <html lang="en"> <head> <meta charset="utf-8"> <!-- CSS --> <link href="css/metro-bootstrap.css" rel="stylesheet"> <link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
<!DOCTYPE html> <?php require_once 'functions.php'; //also starts session if (!isset($_SESSION['user']['id'])) { redirectAfterLogin('index.php'); } ?> <html lang="en"> <head> <meta charset="utf-8"> <!-- CSS --> <link href="css/metro-bootstrap.css" rel="stylesheet"> <link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> <link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- JQuery --> <script src="js/jquery/jquery.min.js"></script> <script src="js/jquery/jquery-ui.custom.min.js"></script> <!-- Metro UI --> <script src="min/metro.min.js"></script> <!-- Other JS --> <script src="js/scientist/exportExperiment.js"></script> <script src="js/indexScripts.js"></script> <script src="js/scripts.js"></script> <script src="js/Observer/alterExperimentPosition.js"></script> <?php
<!DOCTYPE html> <?php require_once 'functions.php'; //also starts session //Checks if user is logged in, and the user is scientist or higher level if (isset($_SESSION['user'])) { if ($_SESSION['user']['userType'] > 2) { header('Location: index.php'); } } else { redirectAfterLogin('scientistpanel.php'); } ?> <html lang="en"> <head> <meta charset="utf-8"> <!-- CSS --> <link href="css/metro-bootstrap.css" rel="stylesheet"> <link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> <link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/highslide.css" /> <link href="css/style.css" rel="stylesheet"> <!-- JQuery --> <script src="js/jquery/jquery.min.js"></script> <script src="js/jquery/jquery-ui.custom.min.js"></script> <!-- HighCharts --> <script src="highcharts/js/highcharts.js"></script> <script src="highcharts/js/highcharts-more.js"></script>