-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauditions.php
55 lines (39 loc) · 2.44 KB
/
auditions.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php /* Enable GZIP Compression */ include "/home/dulynote/public_html/members/includes/gzip_compress.php"; ?>
<?php /* Connect to MySQL Database on the PHP server */ session_start(); include "connect.php"; ?>
<?php /* Get Canvas Elements */ $canvas = mysql_fetch_array(mysql_query("SELECT logo, navbar, addthis, tray FROM canvas WHERE id=1")); ?>
<?php /* Fetch Page Description from MySQL Database */ $url = explode("/", $_SERVER["SCRIPT_NAME"]); $url = explode(".", $url[count($url)-1]); $webpage = mysql_fetch_array(mysql_query("SELECT title, item, heading, description, detail, content, note, searchable FROM pages WHERE page='$url[0]'")); if ($_REQUEST['id'] > 0) { eval($webpage['detail']); } else $description = $webpage['description']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php /* Page Description */ echo $description; ?>" />
<title><?php /* Fetch Page Title from MySQL Database */ if ($_REQUEST['id'] > 0) { eval($webpage['item']); echo " - "; } echo $webpage['title']; ?> - Duly Noted All-Male A Cappella - RPI Troy, NY</title>
<base href="http://dulynoted.union.rpi.edu/" />
<link rel="search" type="application/opensearchdescription+xml" title="Duly Noted" href="search.xml" />
<link href="atom/index.php" type="application/atom+xml" rel="alternate" title="Duly Noted A Cappella Feed" />
<link href="style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src=".jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div class="container">
<!-- Duly Noted Logo -->
<?php echo $canvas['logo'] . "\r"; ?>
<!-- Navigation Menu -->
<?php echo $canvas['navbar'] . "\r"; ?>
<!-- Main Content of Page -->
<div class="canvas">
<h1><?php echo $webpage['heading'];?></h1>
<?php echo $webpage['content'] . "\r"; ?>
<div class="note"><?php echo $webpage['note']; ?></div>
<!-- AddThis -->
<?php echo $canvas['addthis'] . "\r"; ?>
</div>
<!-- Bottom Navigation Tray -->
<?php echo $canvas['tray'] . "\r"; ?>
<!-- Footnotes -->
<?php include "footnotes.php"; ?>
</div>
</body>
</html>
<?php /* Close connection to the MySQL Database */ mysql_close($connection); ?>