addCSSDirective("@import url(\"/styles/lj-styles.css\");\n"); // add some front page link goodness $currNavbar->setCustomLinksTitle("Whats Up?"); $currNavbar->addCustomLink("http://www.livejournal.com/users/tridus/","Tridus Journal", "", "(full mode)"); $currNavbar->addCustomLink("http://www.livejournal.com/users/tridus/friends/","Tridus Friends"); $currNavbar->addCustomLink("http://www.livejournal.com/users/tridus/?skip=10","Older entries"); $currNavbar->addCustomLink("/aboutme.php", "Tridus Bio"); // change links to one that only shows headlines //$currNavbar->addCustomLink("http://www.livejournal.com/customview.cgi?username=tridus&styleid=90448", "XML", "Syndicated RSS Feed", "(Syndicated Version)"); $currNavbar->addCustomLink("http://www.livejournal.com/users/tridus/rss/", "XML", "Syndicated RSS Feed", "(Syndicated Version)"); // torture netscape 4 users if ($_SESSION["browsername"] == "mozilla" && $_SESSION["browsermajorver"] == 4) tortureNS4(); //countdown("19 February 2003 21:00", "d", "u"); // countdownMessage("19 March 2003 21:00", "h", "The war starts in %%1 hours according to Bush."); //countdownMessage("19 March 2003 21:00", "h", "The war has been on for %%1 hours.", "u"); //countdownMessage("16 April 2003 14:00", "h", "My first exam is only %%1 hours away!", "d"); ?>

Welcome to Hired Goons, your one stop shop for affordable beatings. (well, actually its just my homepage, but you know...)

I have a blog over here.

haveCached) { // styleid=101 is the default custom view // styleid=129074 is my first attempt at an import script $journalURL = "http://www.livejournal.com/customview.cgi?username=tridus&styleid=129074"; if ($fh = fopen($journalURL,"r")) { // there is no "read the whole file" function yet for some reason, so set the length parameter to an idiotically high value //$journal = fread($fh, 10000000); $journal = ""; //actually that broke, lets use a loop do { $data = fread($fh, 8192); if (strlen($data) == 0) { break; } $journal .= $data; } while (true); // everything from here on in is fixing stuff to make it xhtml happy // fix br tags $journal = str_replace("
", "
", $journal); // get rid of bad properties from images and add alt= $journal = str_replace('align="absmiddle" vspace="1"', 'alt="Mood Icon"', $journal); // do the same thing for other images that don't have vspace $journal = str_replace('align="absmiddle"', 'alt="User Icon"', $journal); // get rid of nobr entirely $journal = str_replace("", "", $journal); $journal = str_replace("", "", $journal); // get rid of border entirely $journal = str_replace('border="0"', "", $journal); // add /> to img tags to make them xhtml compliant. Thanks debtangel for this! $journal = preg_replace("/]+)>/", "", $journal); // update the cache $currCache->updateCache($journal); //print($journal); // fpassthru($fh); } else { echo "

Unable to load journal.

\n"; } } // if we have a cached entry, lets say so else print("Note: These entries are cached from " . number_format($currCache->age / 60,0) . " minutes ago."); print($currCache->contents); */ ?>