error_reporting(0);
require("$_SERVER[DOCUMENT_ROOT]/lib/header.inc.php");
// add the LJ styles to this page
$currHeader->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", "", "Syndicated RSS Feed", "(Syndicated Version)");
$currNavbar->addCustomLink("http://www.livejournal.com/users/tridus/rss/", "
", "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...)
/* // try to pull this content from the page cache - if we can its faster then going out to LiveJournal (easier on Susans bandwidth too) $currCache = new HG_PageCache("indexLiveJournal",1800); if (!$currCache->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("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); */ ?> require("$_SERVER[DOCUMENT_ROOT]/lib/footer.inc.php"); ?>