db->hostname,$conf->db->username,$conf->db->password,$conf->db->database); $links = $db->query("SELECT id,url,text,status,released_date FROM wia_links WHERE status = 2 OR status = 3 ORDER BY released_date DESC LIMIT 15"); ?> Who is Andrew? Personal Site of Andrew Tomaka

contact

Email Andrew Tomaka AIM Andrew Tomaka Yahoo! Andrew Tomaka MSN Andrew Tomaka ICQ Andrew Tomaka Google Messaging Andrew Tomaka Skype Andrew Tomaka

twitter

Follow Andrew Tomaka on Twitter twitter->text ?>
twitter->time != 0) { echo time_since($data->twitter->time) ?> ago

github

Follow Andrew Tomaka on Github Committed "github->commit ?>" on github->repo ?>.

random

fetch_object()) { $link_text = $link->text; $link_text = preg_replace('/\[/','',$link_text); $link_text = preg_replace('/\]/','',$link_text); echo '

' . $link_text . '

' . "\n"; } ?>

media

<?php echo $data->lastfm->artist ?> - <?php echo $data->lastfm->song ?> Andrew Tomaka's Last.fm lastfm->song ?>
by lastfm->artist ?>

lastfm->time == 0) ? 'currently playing' : time_since($data->lastfm->time) . ' ago' ?>

games

World of Warcraft

World of Warcraft wow as $character) { echo sprintf(' ' . "\n",$character->armory,$character->class,$character->name); } ?> wow as $character) { echo sprintf(' ' . "\n",$character->spec_icon,$character->class,$character->spec_name); } ?>
%s
%s

Diablo 3

Starcraft 2

Diablo 3 Tomaka#1761
Paragon: diablo->highestParagon ?>
Elite Kills: diablo->elites ?>
<?php echo ucfirst($data->sc2ranks->league) ?> League
Starcraft 2 Gaffer.888
sc2ranks->division ?>
sc2ranks->points ?> points, Rank sc2ranks->rank ?>
sc2ranks->wins ?> wins
<?php echo ucfirst($data->sc2ranks->league) ?> League

Steam

Steam Toppazz
steam->hours ?> hours in the last two weeks.
steam->recent as $game) { ?> name ?>: hours ?> hours.
 



60, 'hour' => 60 * 60, 'day' => 60 * 60 * 24, 'week' => 60 * 60 * 24 * 7, 'month' => 60 * 60 * 24 * 30, 'year' => 60 * 60 * 24 * 365, ); $now = time(); $since = $now - $time; $formatted_since = array($since,'seconds'); foreach($periods as $period => $seconds) { $quotient = floor($since / $seconds); if($quotient >= 1) $formatted_since = array($quotient,$period); else break; } if($formatted_since[0] > 1) $formatted_since[1] .= 's'; return implode(' ',$formatted_since); } ?>