summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-10-11 12:20:40 +0000
committerdeva <deva>2008-10-11 12:20:40 +0000
commitb3ad20b02998a5d12819a1530d6a14a20751eb05 (patch)
tree8a63d07d4b516aa44f2627a335460d4f675c95f5
parent07882614bfd402132d2f8df23cc23c2c013b5f14 (diff)
Added 'files' folder to createentities, and fixed a bug in file mode.
-rwxr-xr-xcreateentities25
-rw-r--r--forum/htdocs/index.php9
2 files changed, 27 insertions, 7 deletions
diff --git a/createentities b/createentities
index 2ed5b53..db9845d 100755
--- a/createentities
+++ b/createentities
@@ -80,3 +80,28 @@ else
chgrp $GROUP forum/data/forum/1
chmod g+w forum/data/forum/1
fi
+
+#
+# Create imagecache
+#
+if test -d forum/data/imagecache
+then
+ echo "forum/data/imagecache already exists"
+else
+ mkdir forum/data/imagecache
+ chgrp $GROUP forum/data/imagecache
+ chmod g+w forum/data/imagecache
+fi
+
+#
+# Create files
+#
+if test -d forum/data/files
+then
+ echo "forum/data/files already exists"
+else
+ mkdir forum/data/files
+ chgrp $GROUP forum/data/files
+ chmod g+w forum/data/files
+fi
+
diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php
index f4d2ed7..d4547e9 100644
--- a/forum/htdocs/index.php
+++ b/forum/htdocs/index.php
@@ -17,7 +17,7 @@ if($current_user) {
case "file":
include_once($UTIL_DIR. "/file.php");
- getFile($filename);
+ getFile($fid);
return;
}
}
@@ -38,7 +38,7 @@ include_once($UTIL_DIR . "/clientinfo.php");
<body>
<div class="menu">
<a href="?mode=forum">Forum</a>
-<?php /* <a href="?mode=files">Filehandler</a> */ ?>
+<?php /* <a href="?mode=filehandler">Filehandler</a> */ ?>
<a href="?mode=calendar">Calendar</a>
<a href="?mode=profile">Profile</a>
</div>
@@ -55,11 +55,6 @@ 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;