'#001020', /*background*/ txcolor => '#e0e0e0', /*text */ lncolor => '#f0f0f0',/*link */ tbcolor => '#103040'/*table */ )); $set = (array( bgcolor => '#ffffaf', /*background*/ txcolor => '#ff0000', /*text */ lncolor => '#0000ff',/*link */ tbcolor => '#000000'/*table */ )); ////////////////////////////////////////////////////// // End of configuration, may the source be with you // ////////////////////////////////////////////////////// // version number $bookmarks_vs="0.1.1"; // function for reading through bookmark folders function ReadBookmarkFolder($buffer, $query_array0, $query_array1, $query_array2, $bookmarks_skip) { global $PHP_SELF, $bookmarks; $target_num = strpos($buffer, '">', 5)+2; $target_len = strpos($buffer, '', 5) - $target_num; $query_array0 = substr($buffer, $target_num, $target_len); // echo unless instructed to ignore through $bookmarks_skip if ($query_array0) { $skip_it = 0; $tok = strtok($bookmarks_skip,','); while($tok) { $needle_probe = strcmp($query_array0, $tok); if (!$needle_probe) { $skip_it = 1; } $tok = strtok(','); } if (!$skip_it) { // echo "$query_array0/
"; $zwi = urlencode($query_array0."||".$query_array1."||".$query_array2); echo "$query_array0/
\n"; } } } // function for reading through bookmark links function ReadBookmarkLink($buffer,$query_array1) { echo substr($buffer, $query_array1+4); echo '
'; } // html: this performs the initiatization of and ?> >
$target_now"; $target_now = strtok($delim); } } elseif (($query_array[0]) && (strstr($query_array[2], $query_array[0]))) { $target_now = strtok($query_array[2],$delim); while(($target_now) && ($target_now != $query_array[0])) { $target_int += 4; $target_now_tmp = $target_now_tmp . $target_now . $delim; $target_zwi = urlencode($target_now); $target_zwit= urlencode($target_now_tmp); $target_all = $target_all . $delim ."$target_now"; $target_now = strtok($delim); } } $query_array[1] += 4; // html: this outputs the neat navigation menu ?> Bookmarks
 
<') && ($start_folder)) { $engage = 1; } if ((substr($buffer, $query_array[1]-4, 5+1) == '<') && ($engage)) { $halted = 1; } // read folder at the right time if ((substr($buffer, $query_array[1], 5) == '
<') && ($engage) && (!$halted)) { ReadBookmarkFolder($buffer, $query_array[0], $query_array[1], $query_array[2], $bookmarks_skip); } // read file at the right time if ((strstr($buffer, '<') && ($engage) && (!$halted)) { ReadBookmarkLink($buffer,$query_array[1]); } // read horizontal line at the right time if ((!$horizontal_skip) && (substr($buffer, $query_array[1], 4) == '
') && ($engage) && (!$halted)) { echo '
'; } } fclose($books); } // without a query string, we can only work with bookmarks.html at start else { $query_array[1] = 4; $books = fopen("$bookmarks", 'r'); // html: not being nested leaves us with a simple navigation task ?>
Bookmarks
<') { ReadBookmarkFolder($buffer, $query_array[0], $query_array[1], $query_array[2], $bookmarks_skip); } // read file all the time if ((!$bookmarks_sort) && (strstr($buffer, '<')) { ReadBookmarkLink($buffer,$query_array[1]); } if ((!$horizontal_skip) && (substr($buffer, $query_array[1], 4) == '
')) { echo '
'; } } fclose($books); } // html: tidy up everything ?>