DrWeb++ Virus Uploader

Phoenix

Разработчик
Сообщения
2,112
Реакции
1,623
Хочу сделать аналог проверки файлов онлайн сканером доктора, как VTUploader.
Для этого есть форма для сайтов http://www.freedrweb.com/for web sites/ ,локально тоже работает.
Можно её к контексту прикрутить ? То есть выбрал файл - меню - отправить на Dr.Web ® online check
Естественно форму надо установить в каталог (или не обязательно ?) и добавить контекстное меню.
Что нужно для выгрузки файла ?
Для наглядности текст forma.html
PHP:
<script language="JavaScript">
function do_scan_file_01()
{
    var left = (screen.width - 640)/2;
    var top =  (screen.height - 400)/2;
    window.open( "",
                "drweb_scan_form_popup_window",
        "width=640"+",height=400,left="+left+",top="+top+",scrollbars=yes,resizable=yes" );
    document.getElementById( "drweb_online_scan_form" ).submit();
    return false;
}
</script>

<form method="POST" id="drweb_online_scan_form"
enctype="multipart/form-data" action="http://online.drweb.com/result/" target="drweb_scan_form_popup_window">
<div style="width: 474px; height: 65px; background: url(fon_white.gif)">
    <div style="padding: 30px 0 0 137px;">
        <div style="float: left;"><input name="file" id="file_selection_input" type="file" size="17" style="width:194px"></div>
        <div style="float: left; padding: 2px 0 0 5px"><input type="image" onClick="return do_scan_file_01();" src="button.gif" width="121" height="21"></div>
    </div>
</div>
</form>
 
Все верно. Добавил на сайт - работает:
http://dragokas.16mb.com/

Ради прикола, сделал на скриптах. Но я понял, что ты имел в виду.
Нормальный Uploader я сейчас немного занят, чтобы сделать.
Но там довольно просто.

dr.Web_Uploader.png


JavaScript:
<html>
<title>Dr.Web Uploader by Dragokas</title>

<HTA:APPLICATION
    APPLICATIONNAME="Dr.Web_Uploader"
/>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<style>
BODY
{
  background-color: RGB(0, 0, 0);
}
</style>

<script type="text/javascript">
<!--

function Uploader() {
  var x=550;
  var y=180;

  window.resizeTo (550, 180);
  window.moveTo (((screen.availWidth / 2) - (x / 2)), ((screen.availHeight / 2) - (y / 2)));
}

// Abort if not IE55
var ie55up=window.createPopup;
var abortStr='HTA mode requires Internet Explorer 5.5.\n';

function do_scan_file_01()
{
    var left = (screen.width - 640)/2;
    var top =  (screen.height - 400)/2;
    window.open( "",
                "drweb_scan_form_popup_window",
        "width=640"+",height=400,left="+left+",top="+top+",scrollbars=yes,resizable=yes" );
    document.getElementById( "drweb_online_scan_form" ).submit();
    return false;
}

function Aborting() {
  if (!ie55up) {alert(abortStr); self.close()}
}

//-->
</script>

<form method="POST" id="drweb_online_scan_form"
enctype="multipart/form-data" action="http://online.drweb.com/result/" target="drweb_scan_form_popup_window">
<div style="width: 474px; height: 65px; background: url(fon_black.gif)">
    <div style="padding: 30px 0 0 137px;">
        <div style="float: left;"><input name="file" id="file_selection_input" type="file" size="17" style="width:194px"></div>
        <div style="float: left; padding: 2px 0 0 5px"><input type="image" onClick="return do_scan_file_01();" src="button.gif" width="121" height="21"></div>
    </div>
</div>
</form>

</head>
<body onload="Uploader(); Aborting()">

</body>
</html>
 

Вложения

  • Dr.Web_Uploader.zip
    5.1 KB · Просмотры: 6
Dragokas, Не выгружает файл. А так идея тоже хорошая. Но не к спеху, как время будет..
PHP:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Scan DrWeb online]
@=""
[HKEY_CLASSES_ROOT\*\shell\Scan DrWeb online\command]
@="explorer "http://online.drweb.com/result" "%1""
Истина где то рядом.. файлик не отправляет, открывает только http://online.drweb.com/ в браузере. Help me !
 
HTML:
<html>
<title>Dr.Web Uploader by Dragokas</title>

<HTA:APPLICATION
APPLICATIONNAME="Dr.Web_Uploader" 
NAVIGABLE="yes"
/>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<style>
BODY
{
background-color: RGB(0, 0, 0);
}
</style>

<script type="text/javascript">
<!--

function Uploader() {
var x=550;
var y=180;

window.resizeTo (x, y);
window.moveTo (((screen.availWidth / 2) - (x / 2)), ((screen.availHeight / 2) - (y / 2)));
}

// Abort if not IE55
var ie55up=window.createPopup;
var abortStr='HTA mode requires Internet Explorer 5.5.\n';

function Aborting() {
if (!ie55up) {alert(abortStr); self.close()}
}

//-->
</script>

<form method="POST" id="drweb_online_scan_form"
enctype="multipart/form-data" action="http://online.drweb.com/result/">
<div style="width: 474px; height: 65px; background: url(fon_black.gif)">
<div style="padding: 30px 0 0 137px;">
<div style="float: left;"><input name="file" id="file_selection_input" type="file" size="17" style="width:194px"></div>
<div style="float: left; padding: 2px 0 0 5px"><input type="image" onclick="
document.getElementById('drweb_online_scan_form').submit(); 
window.resizeTo(800, 600);
window.moveTo (((screen.availWidth / 2) - (800 / 2)), ((screen.availHeight / 2) - (600 / 2)));
" src="button.gif" width="121" height="21"></div>
</div>
</div>
</form>

</head>
<body onload="Uploader(); Aborting()">

</body>
</html>
Немного передалал.
 
Последнее редактирование:
Назад
Сверху Снизу