Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / winvnc / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 70%
rename from project/winvnc/Index.html.pl
rename to project/winvnc/Index.pm
index f7635e2..cfdb7ea
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
 # Main page of 'My::Project::winvnc'
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,17 +23,40 @@ our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
-BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
-Wuse 'My::Project';
-Wuse 'project::winvnc::ListItem';
+Wuse 'project::Lib';
 
 
-My::Project->init_project(
-               "__PACKAGE__"=>__PACKAGE__,
-               "ListItem"=>\@project::winvnc::ListItem::ListItem,
+our @ListItem=(
+               "name"=>"WinVNC hide",
+               "platform"=>"w32",
+               "priority"=>560,
+               "icon"=>"nowinvnc",
+               "download-already patched version 4.0"=>"vnc-4.0-x86_win32-exe-SECRET.zip",
+               "download-original version 4.0"=>"http://www.realvnc.com/dist/vnc-4.0-x86_win32.exe",
+               "download-already patched version 3.3.3r9"=>"vnc-3.3.3r9_x86_win32-exe-SECRET.zip",
+               "download-original version 3.3.3r9"=>"http://www.uk.research.att.com/archive/vnc/dist/vnc-3.3.3r9_x86_win32.zip",
+               "download-already patched version 3.3.3r7"=>"vnc-3.3.3r7_x86_win32-exe-SECRET.zip",
+               "download-original version 3.3.3r7"=>"http://www.uk.research.att.com/archive/vnc/dist/vnc-3.3.3r7_x86_win32.zip",
+               "link-VNC Homepage"=>"http://www.realvnc.com/",
+               "summary"=>"Hide running WinVNC server",
+               "license"=>"PD",
+               "maintenance"=>"ready",
+               "language"=>"i386 asm patch",
+               "description"=>sub { return <<"HERE"; },
+<p>If you install <i>WinVNC</i> in
+@{[ a_href 'http://www.microsoft.com/','MS' ]}&nbsp;@{[ a_href 'http://www.microsoft.com/windows/','Windows' ]}
+environment, you will notice that it creates its own small icon in <i>System Tray</i>.
+Sometimes you want to get rid of this visible icon and you cannot remove it by any configuration
+settings.</p>
+HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
 print <<'HERE';
 <p>You need to download the original distribution archive, install it and later
 just replace its file <tt>C:\Program&nbsp;Files\ORL\VNC\WinVNC.exe</tt>.
@@ -44,8 +65,8 @@ Otherwise error about missing <tt>omnithread_rt.dll</tt> will occur.</p>
 <p>Here is the table for bytes to patch in <tt>WinVNC.exe</tt> from <tt>vnc-3.3.3r9_x86_win32.zip</tt>.
 You are not interested in this table if you download the <a href="http://www.realvnc.com/dist/vnc-4.0-x86_win32.exe">already patched
 .EXE file</a> referenced in the heading.</p>
-<table border="1" align="center">
-<tr><th></th><th>File offset</th><th>Hex bytes</th></tr>
+<table border="1" class="margin-center">
+       <tr><th></th><th>File offset</th><th>Hex bytes</th></tr>
 <tr><td>4.0     original</td>        <td><tt>00003390</tt></td><td align="right">00 6A 66 6A  69 6A 65 56  8D 8D F8 FE  FF FF    E8 2D     </td></tr>
 <tr><td>4.0     'SECRET' patched</td><td><tt>00003390</tt></td><td align="right">00 6A 66 6A  69 6A 65 56  8D 8D F8 FE  FF FF <b>EB 03</b> </td></tr>
 <tr><td>4.0     original</td>        <td><tt>000035E0</tt></td><td align="right">F8 FE FF FF     E8 97     F2 FF  FF 53 E8 69  4D 02 00 8B </td></tr>
@@ -58,7 +79,7 @@ You are not interested in this table if you download the <a href="http://www.rea
 <tr><td>3.3.3r7 'SECRET' patched</td><td><tt>0000C9F0</tt></td><td align="right"><b>C2 08 00</b> 8B  F1 57 8B 46   60 C7 46 68  58 00 00 00</td></tr>
 </table>
 <p>Here you can check whether your patch was successful:</p>
-<table border="1" align="center">
+<table border="1" class="margin-center">
 <tr><th>File from package</th><th>MD5 sum</th></tr>
 <tr><td><tt>WinVNC.exe-4.0    </tt>, original</td>        <td><tt>7043ddf51d7135c1d1b83b4213dfed61</tt></td></tr>
 <tr><td><tt>WinVNC.exe-4.0    </tt>, 'SECRET' patched</td><td><tt>916c82e99e1dc17bebdc31aebc895b52</tt></td></tr>
@@ -69,4 +90,7 @@ You are not interested in this table if you download the <a href="http://www.rea
 </table>
 HERE
 
-My::Web->footer();
+
+exit;
+}
+1;