Merged branch 'no-javascript' with notes
[dylansserver.git] / index.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3
4 <html>
5 <head>
6 <meta name="generator" content=
7 "HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
8 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
9
10 <title>dylanstestserver</title>
11 <link href="includes/style.css" rel="stylesheet" type="text/css">
12 <link rel="icon" href="favicon.ico" type="image/png">
13 <script type="text/javascript" src="includes/all.js">
14 </script>
15 </head>
16
17 <body>
18 <div id="structure">
19 <div id="banner">
20 <a href=
21 "http://validator.w3.org/unicorn/check?ucn_uri=dylanstestserver.com&amp;ucn_task=conformance#">
22 <img src="images/dylanstestserver.png" alt="dylanstestserver"
23 border="0"></a>
24 </div>
25
26 <div id="content">
27 <div id="exhibit">
28 <?php
29 $config = parse_ini_file('/etc/dylanstestserver.ini');
30 mysql_connect($config['domain'], $config['user'], $config['password']) or die(mysql_error());
31 mysql_select_db($config['database']) or die(mysql_error());
32 if (isset($_GET['project'])) {
33 $page_type = 'project';
34 $project = mysql_real_escape_string($_GET['project']);
35 $sql = "SELECT text FROM projects WHERE title='$project'";
36 } else {
37 $sql = "SELECT text FROM projects";
38 }
39 $result = mysql_query($sql) or die (mysql_error());
40 while($project = mysql_fetch_array($result)) {
41 $text = $project['text'];
42 if (isset($page_type)) {
43 $text = str_replace("<div class=\"exhibit\"", "<div class=\"exhibit\" style=\"display:block;\"", $text);
44 }
45 echo $text;
46 }
47 ?>
48 </div>
49
50 <ul id="portfolio" style="text-align:right">
51 <li>
52 <h3>my projects:</h3>
53 </li>
54
55 <li><a class="tab" href="repthis">repthis.info</a></li>
56
57 <li><a class="tab" href=
58 "youtube_backup">youtube_backup</a></li>
59
60 <li><a class="tab" href=
61 "i_like_pandora">i_like_pandora</a></li>
62
63 <li><a class="tab" href=
64 "peepshow">foxy-addons/peepshow</a></li>
65
66 <li><a class="tab" href="drawcss">drawcss</a></li>
67
68 <li><a class="tab" href="readoo">readoo</a></li>
69
70 <li>
71 <h3>things i've done for others:</h3>
72 </li>
73
74 <li><a href=
75 "http://activehamptons.com">activehamptons.com</a></li>
76
77 <li><a href=
78 "http://transfishing.com">transfishing.com</a></li>
79
80 <li>
81 <h3>something i've worked on:</h3>
82 </li>
83
84 <li><a href=
85 "http://tempositions.com">tempositions.com</a></li>
86
87 <li>
88 <h3>my repositories:</h3>
89 </li>
90
91 <li><a href=
92 "git">git://dylanstestserver.com</a></li>
93
94 <li>
95 <h3>some notes:</h3>
96 </li>
97
98 <li><a href=
99 "/dylanstestserver/notes">here</a></li>
100
101 <li>
102 <h1 id="contact_me"><a href=
103 "mailto:dylan@psu.edu">dylan</a></h1><a href=
104 "mailto:dylan@psu.edu">@psu.edu</a>
105 </li>
106 </ul>
107 </div><br>
108 <br>
109 </div>
110 </body>
111 </html>