<html>
 
<body>
 
<font face="arial" size=-1>
 
<?php
 
 
// thanks to Erik Arvidsson and Emil Eklund at http://www.eae.net/webfx/ because I borought their images
 
 
include ("BookmarkParser.php");
 
    
 
function myURL($data, $depth, $no) {
 
        echo str_repeat("   ", $depth);
 
        echo "<img src='http://webfx.eae.net/dhtml/xtree/images/file.png'>\n";
 
        echo " <a href='" . $data["url"] . "'>". $data["descr"] ."</a>\n";
 
        echo "<br>\n";
 
}
 
 
function myFolder($data, $depth, $no) {
 
        echo str_repeat("   ", $depth);        
 
        echo "<img src='http://webfx.eae.net/dhtml/xtree/images/openfoldericon.png'> " . $data["name"]. "\n";
 
        echo "<br>\n";
 
}
 
 
$class = new BookmarkParser();
 
 
$class->parseNetscape("./bookmarks/bookmarks.html", 0, 'myURL', 'myFolder');
 
//$class->parseOpera("./bookmarks/opera6.adr", 0, 'myURL', 'myFolder');
 
//$class->parseInternetExplorer("./bookmarks/", 0, 'myURL', 'myFolder');
 
 
echo "<p># of urls: " . $class->urlsParsed."<br>";
 
echo "# of folder: " . $class->foldersParsed."<br>";
 
echo "Error Messages: " . $class->error_message;
 
 
 
 
?>
 
</font>
 
</body>
 
</html>
 
 
 |