head 1.27; access; symbols; locks; strict; comment @# @; 1.27 date 2007.06.21.08.41.52; author openpkg; state Exp; branches; next 1.26; commitid E3ALEgDFkYfc0Lms; 1.26 date 2007.02.08.12.26.58; author rse; state Exp; branches; next 1.25; commitid 7mfQ3FGzxJAtwG5s; 1.25 date 2006.03.27.15.34.25; author rse; state Exp; branches; next 1.24; commitid ZP6djNCVEUpwMPqr; 1.24 date 2006.03.14.21.40.30; author rse; state Exp; branches; next 1.23; commitid zIew5Rj5zfd1ecpr; 1.23 date 2006.03.13.22.26.39; author rse; state Exp; branches; next 1.22; commitid RGMhn6JS0LkQv4pr; 1.22 date 2006.03.13.15.02.13; author rse; state Exp; branches; next 1.21; commitid yMMALkmSyaMm32pr; 1.21 date 2006.03.13.12.06.25; author rse; state Exp; branches; next 1.20; commitid 0aUXNSSI8AB351pr; 1.20 date 2006.03.12.19.16.36; author rse; state Exp; branches; next 1.19; commitid B23qzzqu5d3CuVor; 1.19 date 2006.03.12.18.58.39; author rse; state Exp; branches; next 1.18; commitid E3uuVQ5XHGGtoVor; 1.18 date 2006.03.12.18.36.58; author rse; state Exp; branches; next 1.17; commitid Cqg9O1Jqq5I2hVor; 1.17 date 2006.03.11.16.38.45; author rse; state Exp; branches; next 1.16; commitid Xdlbv5MtXlVtEMor; 1.16 date 2006.03.11.16.32.59; author rse; state Exp; branches; next 1.15; commitid Sc38vyOyirIuCMor; 1.15 date 2006.03.10.21.56.32; author rse; state Exp; branches; next 1.14; commitid jcW8E6xe6YUurGor; 1.14 date 2006.03.09.21.01.35; author rse; state Exp; branches; next 1.13; commitid LoEJ2CxJUGNCayor; 1.13 date 2006.03.09.19.12.10; author rse; state Exp; branches; next 1.12; commitid epriXSkS92w5zxor; 1.12 date 2006.02.20.08.34.35; author rse; state Exp; branches; next 1.11; commitid XGwb4UIHrCifAimr; 1.11 date 2005.11.27.19.02.19; author rse; state Exp; branches; next 1.10; commitid IboYm91IiAaZMqbr; 1.10 date 2005.11.27.17.46.22; author rse; state Exp; branches; next 1.9; commitid 3mGeRHJ02GAVmqbr; 1.9 date 2005.11.27.13.30.59; author rse; state Exp; branches; next 1.8; commitid VLeS3H60IwUjXobr; 1.8 date 2005.11.26.15.28.17; author rse; state Exp; branches; next 1.7; commitid AJCHDDr1miazDhbr; 1.7 date 2005.11.25.20.58.41; author rse; state Exp; branches; next 1.6; commitid akFDi8f5UQTTubbr; 1.6 date 2005.11.25.19.50.50; author rse; state Exp; branches; next 1.5; commitid fxbAh9FmmbCC7bbr; 1.5 date 2005.11.25.16.20.58; author rse; state Exp; branches; next 1.4; commitid c9X5QxZIdGHCX9br; 1.4 date 2005.11.25.16.18.03; author rse; state Exp; branches; next 1.3; commitid rJO4TqTvZUMCW9br; 1.3 date 2005.11.25.16.16.07; author rse; state Exp; branches; next 1.2; commitid akWk9eMbXOYWV9br; 1.2 date 2005.11.25.14.33.38; author rse; state Exp; branches; next 1.1; commitid TqyQ5ltxtq2pm9br; 1.1 date 2005.11.25.13.13.34; author rse; state Exp; branches; next ; commitid 6m7MyNUJMyrkV8br; desc @@ 1.27 log @flush and save current state of CVS controlled data @ text @ @ 1.26 log @flush all pending changes to meta.openpkg.org @ text @d129 3 @ 1.25 log @add trivial debug support for RSE internal hacking @ text @d59 4 d121 1 @ 1.24 log @first cut for page cross-referencing support @ text @d57 1 @ 1.23 log @fix URLs @ text @d114 1 d122 1 @ 1.22 log @polish the positioning of title, navigation path and headline; split footer stuff into own file @ text @d84 1 a84 1 $cfg["url.base"] = "/openpkg-meta/"; @ 1.21 log @cleanup navigation bar style @ text @d119 3 a121 4 if ($opt["pane"] == "1") include("canvas-nav-path.php"); else if ($opt["pane"] == "2") include("canvas-nav-bar.php"); @ 1.20 log @code cosmetics @ text @d112 1 a112 1 # load scripting parts d115 1 a115 2 # load navigation parts a122 3 # load content generation parts include("canvas-style.php"); @ 1.19 log @cleanup includes @ text @d28 1 a28 1 ## option ::= # content dispatching (internal) d34 2 a35 2 ## | # content layouting ## ("pane=" . ("1"|"2")) d83 1 a83 1 # disadvantage: slower @ 1.18 log @move diversion stuff into canvas-php.php and HTML template into a new canvas-html.php @ text @d112 1 a112 1 # load content generation parts d114 3 d124 2 a126 1 include("canvas-js.php"); @ 1.17 log @align style and reduce more global variables @ text @a111 35 # diversion support $div = array(); $div["name"] = ""; $div["data"] = array(); function divert_start ($name) { global $div; $div["name"] = $name; if (!isset($div["data"][$diversion_name])) { $div["data"][$diversion_name] = ""; } ob_start(); } function divert_end () { global $div; if ($div["name"] != "") { $div["data"][$div["name"]] .= ob_get_contents(); ob_end_clean(); } } function divert ($name) { global $div; if ($div["name"] != $name) { divert_end(); divert_start($name); } } function undivert ($name) { global $div; if ($div["name"] == $name) { $div["data"][$div["name"]] .= ob_get_contents(); ob_clean(); } return $div["data"][$name]; } d113 1 a113 1 divert("/dev/null"); a122 1 include("canvas-php.php"); d124 1 d126 5 a130 27 # divert into HTML diversion by default # and start generating the HTML document divert("html");
\n"; } else { # externally linked # (path intentionally included because functionally important) echo "\n"; } \n"; d213 1 a213 1 $content = undivert($type); @ 1.14 log @pass stretching information down to JavaScript code and for now (while I'm hacking) expire the content immediately @ text @d150 1 a150 1 divert("html") @ 1.13 log @flush all other pending changes to improve the website layout @ text @d90 3 a92 3 "html" => array(type => "text/html", maxage => 10), "css" => array(type => "text/css", maxage => 10), "js" => array(type => "text/javascript", maxage => 10), d173 1 a173 1 echo " href=\"$rooturl?type=css&pane=$pane\"/>\n"; @ 1.12 log @cleanups for 2006 @ text @d27 14 d42 6 a47 5 $type = isset($_GET["type"]) ? $_GET["type"] : "html"; $path = isset($_GET["path"]) ? $_GET["path"] : "project"; $embed = isset($_GET["embed"]) ? $_GET["embed"] : ""; $pane = isset($_GET["pane"]) ? $_GET["pane"] : "2"; $root = isset($_GET["root"]) ? $_GET["root"] : "relative"; a133 5 # page epilog processing function canvas_output () { global $type; } d144 2 a145 1 include("canvas-hack.php"); d149 1 a150 1 d159 4 d164 1 d170 2 d175 2 d178 1 d184 2 a189 1 @ 1.11 log @support absolute and relative root URL (default is now relative to circumvent IE Javascript loading problems) @ text @d3 2 a4 2 ## Copyright (c) 2005 OpenPKG Foundation e.V.