ad82a68b08686f3fb196e565e76347c654e19d90
[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                 "head"=><<"HERE",
35 <link rel="stylesheet" type="text/css" href="@{[ uri_escaped(path_web "./Preview.css") ]}" />
36 HERE
37                 "heading_novskip"=>1,
38                 );
39 My::Web->heading();
40 print(project::Lib->section("captive"));
41
42
43 print "<h1>Captive NTFS Technology Preview</h1>\n";
44
45 sub preview_img ($$;$)
46 {
47 my($file_base,$text,$comment)=@_;
48
49         return <<"HERE";
50 <table border="0" width="100%"><tr><td align="center">
51         <table border="1">
52                 <tr><td>@{[ img $file_base,$text ]}</td></tr>
53                 <tr><td><b>$text</b>@{[ map((!$_ ? "" : "<br />$_"),$comment) ]}</td></tr>
54         </table>
55 </td></tr></table>
56 @{[ vskip "3ex" ]}
57 HERE
58 }
59
60 print preview_img 'doc/ntdebug-ntfs','WinDbg Remote NT Kernel NTFS Debugging';
61 print preview_img 'doc/dia/arch-all','Captive Components Architecture',''
62                 .'<span style="color: red;">Red color</span> indicates Captive components for the most common LUFS use case.<br />'
63                 .'<span style="color: violet;">Violet color</span> indicates system components for the most common LUFS use case.';
64 print preview_img 'doc/arch-captive','Captive Subsystems Architecture';
65 print preview_img 'doc/arch-W32','Original Microsoft Windows Subsystems Architecture';
66 print preview_img 'doc/ratio','Functions Reusal Ratio';
67 print preview_img 'doc/fig/functype_patched_wrap_fromw32','Code Wrapping of a Call from Microsoft Windows Code';
68 print preview_img 'doc/dia/inheritance','Sandboxing Scheme with GObject Inheritance';
69 print preview_img 'doc/dia/parent-connector','Parent Connector for Sandbox Slave Restarts Handling';
70 print preview_img 'doc/dia/cache-manager','NT Cache Manager Scheme';
71 print preview_img 'doc/ntdebug-windbg-boot','Windows NT Remote Kernel Debug Mode During System Boot';
72 print preview_img 'doc/dia/TraceFS','TraceFS Debugging Hook for NT Cache Manager Analysis';
73 print preview_img 'captive-install-acquire','Captive Microsoft Windows Drivers Acquire Utility';
74
75
76 My::Web->footer();
77 }
78 1;