GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — marc_web/displayPage.php at master · DPMI/marc_web Expand file tree/ Copy pathdisplayPage.phpMore file actions 44 lines (37 loc) · 1.32 KB / Copy pathdisplayPage.phpFile metadata and controls44 lines (37 loc) · 1.32 KB 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 <? require("sessionCheck.php"); require("config.php"); $Connect = mysqli_connect($DB_SERVER, $user, $password) or die ("Cant connect to MySQL at $DB_SERVER"); mysqli_select_db($DATABASE,$Connect) or die ("Cant connect to $DATABASE database"); $url=$_GET["url"]; $qMark=strpos($url,"?"); if($qMark>0) { $url=substr($url, 0, $qMark); } $sql_question="SELECT * FROM pages WHERE url='" . $url . "'"; $tabell_query=mysqli_query(($sql_question),$Connect) or die("Invalid SQL query: $sql_question"); $row = mysqli_fetch_array($tabell_query); $accesslevel = isset($_SESSION["accesslevel"]) ? $_SESSION["accesslevel"] : 0; if ( $row["accesslevel"] > $accesslevel ) { header("Location: loginDenied.php"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="style.css" /> <link rel="shortcut icon" type="image/x-icon" href="http://www.bth.se/favicon.ico" /> <title>MArC</title> </head> <body class="bthcss"> <div id="content"> <?=$row['text']?> <hr /> <p>Last Modified: <?=$row['date']?></p> </div> </body> </html> <? mysqli_close($Connect); ?> |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |