head 1.8; access; symbols; locks; strict; comment @# @; 1.8 date 2007.06.21.08.41.52; author openpkg; state Exp; branches; next 1.7; commitid E3ALEgDFkYfc0Lms; 1.7 date 2006.03.28.15.44.03; author rse; state Exp; branches; next 1.6; commitid jbGbYLBHMIiPNXqr; 1.6 date 2006.03.15.18.53.52; author rse; state Exp; branches; next 1.5; commitid PcwUBjGrQ7zRgjpr; 1.5 date 2006.03.14.17.00.41; author rse; state Exp; branches; next 1.4; commitid novA3CyEjNP0Gapr; 1.4 date 2006.03.13.22.26.39; author rse; state Exp; branches; next 1.3; commitid RGMhn6JS0LkQv4pr; 1.3 date 2006.03.13.19.43.58; author rse; state Exp; branches; next 1.2; commitid 9U8WMJeK3r12C3pr; 1.2 date 2006.03.12.17.49.03; author rse; state Exp; branches; next 1.1; commitid COXiR686EKuB0Vor; 1.1 date 2006.03.12.17.44.52; author rse; state Exp; branches; next ; commitid LbPKbzk76blaZUor; desc @@ 1.8 log @flush and save current state of CVS controlled data @ text @ @ 1.7 log @fix links; use mdash entity @ text @d117 2 d186 1 d188 5 @ 1.6 log @provide a typographically correct em-dash @ text @d184 1 a184 1 $html = preg_replace('/(\s+)--(\s+)/si', '$1—$2', $html); @ 1.5 log @many cleanups and more documentation @ text @d183 3 @ 1.4 log @fix URLs @ text @d24 1 a24 1 ## meta.php: meta consumer glue code d27 15 d94 1 d98 3 a100 1 $dba = dba_open("meta.d/meta.db", "c", "db4"); d148 1 d151 1 a151 4 $options .= "&canvas=absolute"; if (preg_match("/MSIE/", $_SERVER["HTTP_USER_AGENT"])) $options .= "&embed=js"; $url = "http://meta.openpkg.org/?$options"; d155 1 a155 1 divert("html:body"); d160 1 a160 5 # flush buffers divert_end(); # assemble content by inserting head and body into template $content = ""; d163 19 a181 9 $n = strpos($html, $tag_head); $content .= substr($html, 0, $n); $html = substr($html, $n+strlen($tag_head)); $content .= undivert("html:head"); $n = strpos($html, $tag_body); $content .= substr($html, 0, $n); $html = substr($html, $n+strlen($tag_body)); $content .= undivert("html:body"); $content .= $html; d184 2 a185 2 header(sprintf("Content-Length: %d", strlen($content))); print $content; @ 1.3 log @ops, there is no argument to meta_end() function @ text @d135 1 a135 2 # $url = "http://meta.openpkg.org/?$options"; $url = "http://en1.home.engelschall.com/openpkg-meta/?$options"; @ 1.2 log @more comments for glue code and a fallback HTML page @ text @d142 1 a142 1 function meta_end ($option) { @ 1.1 log @add a sample consumer page (sample.php) and the consumer glue code (meta.php) @ text @d2 24 d77 1 a77 1 # URL fetching d101 9 a109 1 $content = "cURL" . curl_error($curl); d166 1 @