summaryrefslogtreecommitdiff
path: root/forum
diff options
context:
space:
mode:
authordeva <deva>2008-10-17 15:36:24 +0000
committerdeva <deva>2008-10-17 15:36:24 +0000
commita095638ca86e571a0c5589400fe5ebc20aee0d2d (patch)
treefafc157469930d6b1fbf505a14c82723ade03059 /forum
parent71f846affc51a062261aab575e53c37d2972bdfd (diff)
Added confirm on file deletion.
Diffstat (limited to 'forum')
-rw-r--r--forum/utils/files.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/forum/utils/files.php b/forum/utils/files.php
index 62b2b52..7356ff8 100644
--- a/forum/utils/files.php
+++ b/forum/utils/files.php
@@ -20,9 +20,9 @@ class File {
global $PERMSTORE, $current_user, $users;
echo " <div class=\"file\">\n";
if($current_user->uid == 0) {
- echo " <a class=\"delete\" href=\"?mode=filehandler&amp;task=delete&amp;fid=" . $this->fid . "\">X</a>\n";
+ echo " <a class=\"delete\" onclick=\"return confirm('Really delete?')\" onkeypress=\"return confirm('Really delete?')\" href=\"?mode=filehandler&amp;task=delete&amp;fid=" . $this->fid . "\">X</a>\n";
}
- echo " <div class=\"preview\"><a href=\"" . $this->link() . "\"><img src=\"?mode=file&amp;preview=1&amp;fid=" . $this->fid . "\"</a></div>\n";
+ echo " <div class=\"preview\"><a href=\"" . $this->link() . "\"><img src=\"?mode=file&amp;preview=1&amp;fid=" . $this->fid . "\"/></a></div>\n";
echo " <div class=\"insertcommand\">{{" . $this->fid . "}}</div>\n";
echo " <div class=\"filename\"><a href=\"" . $this->link() . "\">" . $this->name . "</a></div>\n";
echo " <div class=\"mimetype\">" . $this->mimetype. "</div>\n";
@@ -180,4 +180,4 @@ class Files {
}
}
}
-?> \ No newline at end of file
+?>