|
From: <al...@us...> - 2008-09-23 17:11:35
|
Revision: 689
http://sciret.svn.sourceforge.net/sciret/?rev=689&view=rev
Author: alpeb
Date: 2008-09-23 17:11:08 +0000 (Tue, 23 Sep 2008)
Log Message:
-----------
make the virus warning more visible
Modified Paths:
--------------
trunk/actions/UploadFile.php
trunk/style.css
trunk/templates/header.tpl
Modified: trunk/actions/UploadFile.php
===================================================================
--- trunk/actions/UploadFile.php 2008-09-23 15:39:01 UTC (rev 688)
+++ trunk/actions/UploadFile.php 2008-09-23 17:11:08 UTC (rev 689)
@@ -39,7 +39,9 @@
try {
if ($file->hasVirus($_FILES['new_file']['tmp_name'])) {
- $_SESSION['message'] = $this->user->lang('*** THE UPLOADED FILE HAD A VIRUS. The file has been discarded ***');
+ $_SESSION['message'] = '<div id="virusWarning">'
+ . $this->user->lang('*** THE UPLOADED FILE HAD A VIRUS OR SOME KIND OF MALWARE. The file has been discarded ***')
+ . '</div>';
Library::redirect(Library::getLink(array('view' => 'ViewArticle', 'id' => $artId)));
}
$file->setVirusChecked(true);
Modified: trunk/style.css
===================================================================
--- trunk/style.css 2008-09-23 15:39:01 UTC (rev 688)
+++ trunk/style.css 2008-09-23 17:11:08 UTC (rev 689)
@@ -50,6 +50,22 @@
font-size: 1.2em;
}
+#statusMessage {
+ display: inline;
+ margin: 5px 0;
+ font-weight: bold;
+ text-align: center;
+ color: red
+}
+
+#virusWarning {
+ display: block;
+ text-align: center;
+ padding: 5px;
+ background-color: yellow;
+ border: 1px dotted red;
+}
+
/* head_keyboard */
#head_keyboard {
Modified: trunk/templates/header.tpl
===================================================================
--- trunk/templates/header.tpl 2008-09-23 15:39:01 UTC (rev 688)
+++ trunk/templates/header.tpl 2008-09-23 17:11:08 UTC (rev 689)
@@ -64,5 +64,5 @@
</div><!-- end menu -->
<div id="content_left">
- <div id="statusMessage" style='display:inline; margin:5px 0; font-weight:bold; text-align:center; color:red'>{message}</div>
+ <div id="statusMessage">{message}</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|