cvs: php-gtk-doc /search/manual shared-manual.inc

From: Date: Mon, 27 Jan 2003 19:14:06 +0000
Subject: cvs: php-gtk-doc /search/manual shared-manual.inc
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-594@lists.php.net to get a copy of this message
sfox Mon Jan 27 14:14:06 2003 EDT Added files: /php-gtk-doc/search/manual shared-manual.inc Log: Everyone has ./ as an include path. Don't they? Index: php-gtk-doc/search/manual/shared-manual.inc +++ php-gtk-doc/search/manual/shared-manual.inc <? ini_set(include_path, '../include/'); include('layout.php'); define('NAV_NONE', '0'); define('NAV_CLASSENTRY', '1'); define('NAV_CONSTRUCTOR', '2'); define('NAV_METHOD', '3'); define('NAV_SIGNAL', '4'); define('NAV_PROP', '5'); define('NAV_ENUM', '6'); $NEXT = $PREV = $UP = $HOME = array(false, false); $TOC = array(); $SIDEBAR_DATA = ''; function recursive_trim(&$s, $k) { if (is_array($s)) { array_walk($s, 'recursive_trim'); } else { $s = trim($s); } } function setupNavigation($data) { global $NEXT, $PREV, $UP, $HOME, $TOC, $tstamp; @array_walk($data, 'recursive_trim'); $HOME = @$data["home"]; $HOME[0] = "./"; $NEXT = @$data["next"]; $PREV = @$data["prev"]; $TOC = @$data["toc"]; $UP = @$data["up"]; $tstamp = gmdate("D, d M Y",getlastmod()); } function makeBorderTOC($this) { global $NEXT, $PREV, $UP, $HOME, $TOC, $PHP_SELF, $DOCUMENT_ROOT; global $SIDEBAR_DATA; $SIDEBAR_DATA = '<form method="get" action="../manual-lookup.php">'; $SIDEBAR_DATA.= '<table border="0" CELLPADDING="4" CELLSPACING="0" WIDTH="160">'; $SIDEBAR_DATA.= '<tr valign="top"><td><small>' . 'Manual lookup: <input type="text" class="small" name="function" size="26"> ' . make_submit('small_submit.gif', 'Manual lookup', 'bottom') . '<br></small></td></tr>'; $SIDEBAR_DATA.= '<tr bgcolor="#cccccc"><td></td></tr>'; $SIDEBAR_DATA.= '<tr valign="top"><td>' . make_link('./', make_image('caret-t.gif', $HOME[1]) . $HOME[1] ) . '<br></td></tr>'; $SIDEBAR_DATA.= '<tr bgcolor="#cccccc"><td></td></tr>'; if (($HOME[1] != $UP[1]) && $UP[1]) { $SIDEBAR_DATA.= '<tr valign="top"><td>' . make_link($UP[0], make_image('caret-u.gif', $UP[1]) . $UP[1] ) . '<br></td></tr>'; } $SIDEBAR_DATA.= '<tr valign="top"><td><small>'; for ($i = 0; $i < count($TOC); $i++) { list($url, $title, $type) = $TOC[$i]; if (!$url || !$title) { continue; } $end = '0.gif'; if ($title == $this) { $end = '1.gif'; } switch($type) { case NAV_CLASSENTRY: $img = "icon-o".$end; break; case NAV_CONSTRUCTOR: $img = "icon-c".$end; break; case NAV_METHOD: $img = "icon-m".$end; break; case NAV_SIGNAL: $img = "icon-s".$end; break; case NAV_ENUM: $img = "icon-e".$end; break; default: $img = "box-".$end; } if ($UP[0] == 'funcref.php') { $title = eregi_replace(" functions\$", "", $title); } $SIDEBAR_DATA .= '&nbsp;' . make_link($url, make_image($img, $title) . $title ) . '<br>'; } $SIDEBAR_DATA.= '</small></td></tr>'; $SIDEBAR_DATA.= '</table></form>'; } function navigationBar($title,$id,$loc) { global $NEXT, $PREV, $tstamp, $SERVER_NAME,$SERVER_PORT,$PHP_SELF; echo '<table border="0" width="580" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4">'; echo '<tr><td>'; if ($PREV[1]) { echo make_link( $PREV[0] , make_image('caret-l.gif', 'previous') . $PREV[1] ) ; } echo '<br></td>'; echo '<td align="right">'; if ($NEXT[1]) { echo make_link( $NEXT[0] , $NEXT[1] . make_image('caret-r.gif', 'next') ) ; } echo '<br></td>'; echo '</tr>'; echo '<tr bgcolor="#cccccc"><td colspan="2">'; spacer(1,1); echo '<br></td></tr>'; echo '<tr>'; echo '<td align="right" colspan="2"><small>Last updated: '.$tstamp.'<br>'; if ($loc !== 'bottom') { $links = array(); $file = substr($id,0,-4); } echo '<br></small></td></tr>'; echo "</table>\n"; } function makeTitle($title) { echo '<tr bgcolor="#d0d0d0" valign="top">'; echo '<td colspan="2"><b>' . $title . '</b><br></td>'; echo "</tr>\n"; } function sendManualHeaders($charset,$lang) { global $LANG; global $PHP_SELF; $LANG = $lang; Header("Content-type: text/html;charset=$charset"); Header("Content-language: $lang"); } function manualHeader($title,$id="") { global $HTDIG, $LANGUAGES, $LANG, $SIDEBAR_DATA; global $HTTP_GET_VARS, $HTTP_SERVER_VARS; makeBorderTOC($title); commonHeader('Manual: '.$title); # create links to plain html and other languages if (!$HTDIG) { navigationBar($title, $id, "top"); } } function manualFooter($title,$id="") { global $HTDIG; if (!$HTDIG) { navigationBar($title, $id, "bottom"); } commonFooter(); } function dehtmlspecialchars($str) { $str = str_replace("&gt;",">",$str); $str = str_replace("&lt;","<",$str); $str = str_replace("&quot;","\"",$str); $str = str_replace("&amp;","&",$str); return $str; }

« previous php.gtk.doc (#594) next »