-rw-r--r-- | htdocs/ancestry/.htaccess | 1 | ||||
-rw-r--r-- | htdocs/ancestry/layout.chtml | 35 | ||||
-rw-r--r-- | htdocs/ancestry/page.chtml | 28 | ||||
-rw-r--r-- | htdocs/ancestry/sources.chtml | 75 |
4 files changed, 139 insertions, 0 deletions
diff --git a/htdocs/ancestry/.htaccess b/htdocs/ancestry/.htaccess new file mode 100644 index 0000000..8d2f256 --- a/dev/null +++ b/htdocs/ancestry/.htaccess @@ -0,0 +1 @@ +deny from all diff --git a/htdocs/ancestry/layout.chtml b/htdocs/ancestry/layout.chtml new file mode 100644 index 0000000..11bd74a --- a/dev/null +++ b/htdocs/ancestry/layout.chtml @@ -0,0 +1,35 @@ +% html(); return; /* vim:set ft=sitecing: */ +%%derive page = "/ancestry/page.chtml"; +%%impl #include "acconfig.h" +<%method void body() %> + <div id="content"> + <%code> + if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) { + pass_file_through(WEB_RUN_ROOT "/conf/banner_top"); + } + content(); + if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) { + pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom"); + } + </%code> + </div> + <div id="sidepanel"> +% sidepanel(); + </div> +</%method> +<%method void content() %> +</%method> +<%method void sidepanel() %> + <h1><% PACKAGE_STRING %></h1> +% /* thank MSIE for this awful formatting */ + <ul><li><a href="/" title="introduction to site-C-ing">intro</a></li><li><a href="/exceptions/" title="exceptions handling">exceptions</a><ul><li><a href="/exceptions/preprocess" title="preprocessor errors">preprocess</a></li><li><a href="/exceptions/compile" title="compiler errors">compile-time</a></li><li><a href="/exceptions/runtime" title="runtime exceptions">runtime</a></li></ul></li><li><a href="/sources" title="browse this site source files">sources</a></li></ul> + <%code> + if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { + pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); + } + </%code> + <ul><li><a href="http://kin.klever.net/sitecing/" title="main site-C-ing page">site-C-ing</a></li><li><a href="http://kin.klever.net/sitecing/sources" title="site-C-ing download page">downloads</a></li></ul> + <div class="copyright"> + © <a href="http://www.klever.net/">Klever Group</a> + </div> +</%method> diff --git a/htdocs/ancestry/page.chtml b/htdocs/ancestry/page.chtml new file mode 100644 index 0000000..28bf7f0 --- a/dev/null +++ b/htdocs/ancestry/page.chtml @@ -0,0 +1,28 @@ +% html(); return; /* vim:set ft=sitecing: */ +%%var bool b_strict = true; +<%decl> + using std::string; +</%decl> +<%method void html() %> +% if(b_strict){ + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +% }else{ + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> +% } + <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> +% __SCIF->headers["Content-Type"] = "text/html"; + <title><% title() %></title> + <meta name="copyright" content="Copyright (c) 1996-2005 Klever Group"/> + <link rel="stylesheet" href="/style.css" type="text/css" /> + </head> + <body> +% body(); + </body> + </html> +</%method> +<%codemethod string title() %> + return "untitled"; +</%codemethod> +<%method void body() %> +</%method> diff --git a/htdocs/ancestry/sources.chtml b/htdocs/ancestry/sources.chtml new file mode 100644 index 0000000..eb9c790 --- a/dev/null +++ b/htdocs/ancestry/sources.chtml @@ -0,0 +1,75 @@ +<%decl> + typedef struct { + const char *dir; + const char *name; + const char *desc; + } sourcefile_t; + extern sourcefile_t source_files[]; + extern int source_files_count; +</%decl> +<%impl> + sourcefile_t source_files[] = { + { "", 0, "the root" }, + { "", "configure.ac", "main configuration file" }, + { "", "acinclude.m4", "autoconf macros" }, + { "", "autogen.sh", "shell script for building out of source repository" }, + { "", "Makefile.am", "automake makefile template" }, + { "", "NEWS.xml", "news since the last release (if any)" }, + { "", "NEWS.xsl", "the styleshhet to make a plaintext version of NEWS.xml" }, + { "", "COPYING", "copyright notice" }, + { "", "AUTHORS", "Klever dissected" }, + { 0, 0, 0 }, + { "bin", 0, "various scripts" }, + { "bin", "build.in", "the template of the script used to precompile the code" }, + { "bin", "run.in", "the template of the script used to start fastcgi server" }, + { 0, 0, 0 }, + { "conf", 0, "configuration files" }, + { "conf", "dudki.conf.in", "the template for the dudki daemon configuration file" }, + { "conf", "httpd.conf.in", "the template for the apache configuration" }, + { "conf", "sitecing.conf.in", "the template for the site-C-ing configuration" }, + { 0, 0, 0 }, + { "htdocs", 0, "the source files" }, + { "htdocs", ".htaccess", "apache access-control file" }, + { "htdocs", "index.chtml", "the introduction" }, + { "htdocs", "sources.chtml", "the source browser" }, + { "htdocs", "style.css", "the CSS style sheet" }, + { "htdocs", "view.chtml", "the source viewer" }, + { "htdocs/exceptions", 0, "exceptions handling overview" }, + { "htdocs/exceptions", "index.chtml", "the overview" }, + { "htdocs/exceptions", "preprocess.chtml", "preprocessor exceptions" }, + { "htdocs/exceptions", "compile.chtml", "compile-time exceptions" }, + { "htdocs/exceptions", "runtime.chtml", "runtime exceptions" }, + { "htdocs/exceptions/development", 0, "development-mode exceptions samples" }, + { "htdocs/exceptions/development", ".htaccess", "apache access control file" }, + { "htdocs/exceptions/development", ".scrc", "site-C-ing local configuration" }, + { "htdocs/exceptions/development", "preprocess.chtml", "the file that can not be preprocessed" }, + { "htdocs/exceptions/development", "runtime.chtml", "exception thrown at runtime" }, + { "htdocs/exceptions/development", "compile.chtml", "the file that can not be compiled" }, + { "htdocs/exceptions/development", "erroneous.h", "the file to include for more errors" }, + { "htdocs/exceptions/development", "compile.html", "compile-time exception handler output" }, + { 0,0,0 }, + { "htdocs/exceptions/production", 0, "production-mode exceptions samples" }, + { "htdocs/exceptions/production", ".htaccess", "apache access control file" }, + { "htdocs/exceptions/production", ".scrc", "site-C-ing local configuration" }, + { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" }, + { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" }, + { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" }, + { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" }, + { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" }, + { 0,0,0 }, + { 0,0,0 }, + { "htdocs/handlers", 0, "exception handlers" }, + { "htdocs/handlers", ".htaccess", "apache access-control file" }, + { "htdocs/handlers", "exception_dev", "development mode exception handler" }, + { "htdocs/handlers", "exception_prod", "production mode exception handler" }, + { 0,0,0 }, + { "htdocs/ancestry", 0, "base components to build the rest upon" }, + { "htdocs/ancestry", ".htaccess", "apache access control file" }, + { "htdocs/ancestry", "page.chtml", "the xhtml skeleton" }, + { "htdocs/ancestry", "layout.chtml", "the layout for the most pages" }, + { "htdocs/ancestry", "sources.chtml", "the list of files for source browser" }, + { 0,0,0 }, + { 0,0,0 } + }; + int source_files_count = sizeof(source_files)/sizeof(*source_files); +</%impl> |