-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.php
More file actions
48 lines (25 loc) · 909 Bytes
/
view.php
File metadata and controls
48 lines (25 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
require("config.php");
session_start();
//get content source
$userid = isset($_SESSION['userid']) ? $_SESSION['userid'] : "";
$username = isset($_SESSION['username']) ? $_SESSION['username'] : "";
//get the artefact we are after
$type = isset($_GET['type']) ? $_GET['type'] : "";
switch($type){
case "compound":
$results['pageTitle'] = "Disaggregator - View Compound";
//display via a template
require( TEMPLATE_PATH . "/view/compound.php" );
break;
case "reaction":
$results['pageTitle'] = "Disaggregator - View Reaction";
//display via a template
require( TEMPLATE_PATH . "/view/reaction.php" );
break;
case "user":
$results['pageTitle'] = "Disaggregator - View Profile";
//display via a template
require( TEMPLATE_PATH . "/view/user.php" );
break;
}