&My::Web::footer call is deprecated now, use just: exit;
[www.jankratochvil.net.git] / project / captive / Preview.pm
1 # $Id$
2 # Captive project Preview page Perl template.
3 # Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 package project::captive::Preview;
20 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
21 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
22 our $CVS_ID=q$Id$;
23 use strict;
24 use warnings;
25
26 use My::Web;
27 Wrequire 'project::Lib';
28
29
30 sub handler
31 {
32 My::Web->init(
33                 "title"=>'Captive NTFS Technology Preview',
34                 "css_push"=>"./Preview.css",
35                 "heading_novskip"=>1,
36                 );
37 My::Web->heading();
38 print(project::Lib->section("captive"));
39
40
41 print "<h1>Captive NTFS Technology Preview</h1>\n";
42
43 sub preview_img ($$;$)
44 {
45 my($file_base,$text,$comment)=@_;
46
47         return <<"HERE";
48 <table border="1" class="margin-center">
49         <tr><td>@{[ img $file_base,$text ]}</td></tr>
50         <tr><td><b>$text</b>@{[ map((!$_ ? "" : "<br />$_"),$comment) ]}</td></tr>
51 </table>
52 @{[ vskip "3ex" ]}
53 HERE
54 }
55
56 print preview_img 'doc/ntdebug-ntfs','WinDbg Remote NT Kernel NTFS Debugging';
57 print preview_img 'doc/dia/arch-all','Captive Components Architecture',''
58                 .'<span style="color: red;">Red color</span> indicates Captive components for the most common LUFS use case.<br />'
59                 .'<span style="color: violet;">Violet color</span> indicates system components for the most common LUFS use case.';
60 print preview_img 'doc/arch-captive','Captive Subsystems Architecture';
61 print preview_img 'doc/arch-W32','Original Microsoft Windows Subsystems Architecture';
62 print preview_img 'doc/ratio','Functions Reusal Ratio';
63 print preview_img 'doc/fig/functype_patched_wrap_fromw32','Code Wrapping of a Call from Microsoft Windows Code';
64 print preview_img 'doc/dia/inheritance','Sandboxing Scheme with GObject Inheritance';
65 print preview_img 'doc/dia/parent-connector','Parent Connector for Sandbox Slave Restarts Handling';
66 print preview_img 'doc/dia/cache-manager','NT Cache Manager Scheme';
67 print preview_img 'doc/ntdebug-windbg-boot','Windows NT Remote Kernel Debug Mode During System Boot';
68 print preview_img 'doc/dia/TraceFS','TraceFS Debugging Hook for NT Cache Manager Analysis';
69 print preview_img 'captive-install-acquire','Captive Microsoft Windows Drivers Acquire Utility';
70
71
72 exit;
73 }
74 1;