From 415e90a2e059ea32f6851dfb9b3c018b0a731a81 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 6 Oct 2008 18:13:56 +0000 Subject: Put the webpages in. --- forum/htdocs/config.php.defaults | 9 ++++ forum/htdocs/file.php | 27 ++++++++++++ forum/htdocs/index.php | 89 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 forum/htdocs/config.php.defaults create mode 100644 forum/htdocs/file.php create mode 100644 forum/htdocs/index.php (limited to 'forum/htdocs') diff --git a/forum/htdocs/config.php.defaults b/forum/htdocs/config.php.defaults new file mode 100644 index 0000000..512758f --- /dev/null +++ b/forum/htdocs/config.php.defaults @@ -0,0 +1,9 @@ + diff --git a/forum/htdocs/file.php b/forum/htdocs/file.php new file mode 100644 index 0000000..abf02fb --- /dev/null +++ b/forum/htdocs/file.php @@ -0,0 +1,27 @@ +getFile($fid); + +$filename = $PERMSTORE . "/" . $file->fid; + +$download = false; +foreach($MIME_TYPES as $m) { + if($m->name == $file->mimetype) $download = !$m->show; +} + +//header ("Cache-Control: must-revalidate, post-check=0, pre-check=0"); +header('Content-Description: File Transfer'); +header('Content-Type: ' . $file->mimetype); +header('Content-Length: ' . filesize($filename)); + +if($download) header('Content-Disposition: attachment; filename=' . basename($file->name)); +else header('Content-Disposition: inline; filename=' . basename($file->name)); + +readfile($filename); + +?> \ No newline at end of file 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 @@ + + + + + +ExecutionForum + + + + + + + + + +Logged in as: " . $current_user->name . " - Logout

"; + + 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 { +?> +
+

UserID:

+

Password:

+

+
+ + + -- cgit v1.2.3