summaryrefslogtreecommitdiff
path: root/forum/htdocs/index.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-06 18:13:56 +0000
committerdeva <deva>2008-10-06 18:13:56 +0000
commit415e90a2e059ea32f6851dfb9b3c018b0a731a81 (patch)
treea2e7d809f4783f521a3a985716a26a6543acfc9d /forum/htdocs/index.php
parentcce5e7710295021b41d9aaecc503a60fb99256be (diff)
Put the webpages in.
Diffstat (limited to 'forum/htdocs/index.php')
-rw-r--r--forum/htdocs/index.php89
1 files changed, 89 insertions, 0 deletions
diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php
new file mode 100644
index 0000000..a452f20
--- /dev/null
+++ b/forum/htdocs/index.php
@@ -0,0 +1,89 @@
+<?php
+header("Content-Type: text/html; charset=UTF-8");
+
+/*
+Jonas Mobil:
+"SonyEricssonW660i/R6BC Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1"
+
+Rasmus Mobil:
+"Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN81-3/11.0.045 Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
+*/
+include_once("config.php");
+include_once($UTIL_DIR . "/login.php");
+checklogin();
+
+include_once($UTIL_DIR . "/clientinfo.php");
+?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!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">
+<head>
+<title>ExecutionForum</title>
+<meta name="MSSmartTagsPreventParsing" content="true"/>
+<meta http-equiv="Content-Type" content="text/html"/>
+<link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/>
+<link rel="stylesheet" type="text/css" href="forum.css"/>
+<?php if($mode == "editor") {?><script language="javascript" src="lib.js" type="text/javascript"></script><?php } ?>
+</head>
+<body>
+<div class="menu">
+ <a href="?mode=forum">Forum</a>
+<?php /* <a href="?mode=files">Filehandler</a> */ ?>
+ <a href="?mode=calendar">Calendar</a>
+ <a href="?mode=profile">Profile</a>
+</div>
+
+<?php
+
+// Globals:
+// $fid
+// $tid
+// $pid
+// $task
+
+if($current_user) {
+ echo "<p>Logged in as: " . $current_user->name . " - <a href=\"?action=logout\">Logout</a></p>";
+
+ switch($mode) {
+ case "test":
+ // include_once($UTIL_DIR. "/notify.php");
+ // notify("Test", "Test");
+ break;
+
+ case "profile":
+ include_once($UTIL_DIR. "/profile.php");
+ break;
+
+ case "calendar":
+ include_once($UTIL_DIR. "/calendar.php");
+ break;
+
+ case "editor":
+ include_once($UTIL_DIR. "/editor.php");
+ break;
+
+ case "edit":
+ include_once($UTIL_DIR. "/edit.php");
+ break;
+
+ case "files":
+ include_once($UTIL_DIR. "/filehandler.php");
+ break;
+
+ case "view":
+ default:
+ include_once($UTIL_DIR. "/view.php");
+ break;
+ }
+} else {
+?>
+<form action="?action=login" method="post">
+<p>UserID: <input name="current_username"/></p>
+<p>Password: <input name="current_password" type="password"/></p>
+<p><button type="submit">Login</button></p>
+</form>
+<?php
+}
+?>
+</body>
+</html>