"Cops were called", 2=>"Blew my brains out", 3=>"Killing brain cells", 4=>"Killed the bitch", 5=>"I did something", 6=>"I wrote this", 7=>"I blew a speaker", 8=>"Amp caught on fire", 9=>"Got arrested", 10=>"Killed the neighbors", 11=>"told neighbors to go to hell", 12=>"Killed some brain cells", 13=>"Blew an ear drum", 14=>"Sacrificed a cat", 15=>"Played this song", 16=>"Random Error message", 17=>"I think this song played", 18=>"Error 90737-0034 on line 8", 19=>"I sang this to myself", 20=>"random_quote was lost", 21=>"Server time out", 22=>"Busted by RIAA", 23=>"Downloaded this song", 24=>"random_quote not found", 25=>"Destroyed the evidence", 26=>"Buried the bodies", 27=>"Harvested the crop", 28=>"This is a random_quote"); /* 29=>"", 30=>"", 31=>"", 32=>"", 33=>"", 34=>"", 35=>"", 36=>"", 37=>"", 38=>"", 39=>"", 40=>"", 41=>""); */ $random_number=rand(1, count($quotes)); $random_quote=$quotes[$random_number]; if (file_exists($filename)) { //$dtime = "$random_quote @ " . date ("g:i A \o\\n\ n-d-y", filemtime($filename)); $dtime = "$random_quote @ " . date ("g:i A \o\\n\ n-d-y", filemtime($filename)-60*420); // -8hrs } header("Content-type: image/x-png\n\n");// extra/t_d.png black_c.png cut to 190 if (strlen($dtime)<55) { $im = imagecreatefrompng("images/black_c55-f.png"); } if (strlen($dtime)<50) { $im = imagecreatefrompng("images/black_c50-f.png"); } if (strlen($dtime)<42) { $im = imagecreatefrompng("images/black_c42-f.png"); } if (strlen($dtime)<33) { $im = imagecreatefrompng("images/black_c33-f.png"); } if (strlen($dtime)>55) { $im = imagecreatefrompng("images/extra/t_d_bc-f.png"); } //black_c.png cut to 304 imageinterlace($im, 1); $font = 2; if ($on) $text_color = imagecolorallocate($im, 0,255,255); else $text_color = imagecolorallocate($im, 128,128,128); $ax=8; $tx=360; $y=5; imagestring ( $im, $font, $ax, $y, $dtime, $text_color); imagepng($im); imagedestroy($im); ?>