6391
The Lounge / Re: College
« on: Tuesday, November 30, 2010, 17:44:25 PM »
o.O You don't really seem the type...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
headshot is why nate has no hair!

<?php
$db = mysql_connect("localhost", "xxxxxxxxxxx", "xxxxxxxxxxx") or die ('There was a problem connecting to the database.');
mysql_select_db("natcom_quotes") or die ('There was a problem selecting database table.');
header("Content-type: image/png");
// Update Signatures Served
$sql = "SELECT * FROM signatures";
$rs_result = mysql_query ($sql);
while ($row = mysql_fetch_assoc($rs_result)) {
$sigtotal = $row['total'];};
$sigtotaladd = $sigtotal+1;
mysql_query("UPDATE signatures SET total='".$sigtotaladd."' WHERE total='".$sigtotal."'");
$urluser = $_GET['u'];
$sql_events = mysql_query("SELECT * FROM quotes ORDER BY servtime DESC limit 1")
or die(mysql_error());
while ($row = mysql_fetch_array($sql_events))
{
$username = $row['username'];
$quote1 = htmlspecialchars_decode($row['quote']);
$quote2 = mb_substr($quote1, 0, 500,'UTF-8');
//
$order = array("\r\n", "\n", "\r");
$replace = "\n";
// Processes \r\n's first so they aren't converted twice.
$quote = str_replace($order, $replace, $quote2);
$servtime = $row['servtime'];
$by = htmlspecialchars_decode($row['by']);
$id = $row['id'];
$ratingup = $row['voteup'];
$ratingdown = $row['votedown'];
}
mysql_close($db);
$image = imagecreatefrompng("sigbackground.png");
imagealphablending($image, true);
imagesavealpha($image, true);
$font = "./verdana.ttf";
//imagecolorallocate($image, R, G, B) in HEX values
$font_black = imagecolorallocate($image, 2, 1, 8);
//($image, fontsize, rightindent, downindent, data, txtcolour)
imagettftext($image, 8, 0, 5, 10, $font_black, $font, "Newest quote posted on PostQuote.us:");
imagettftext($image, 8, 0, 352, 10, $font_black, $font, "ID: $id");
/////
$srt = wordwrap($quote, 68, "\n");
$lines = explode("\n", $srt);
$y = 24;
$i = 0;
foreach($lines as $line=>$string){
imagettftext($image, 8, 0, 5, $y, $font_black, $font, $string);
$string = substr($string, 1);
$y += 12;
if(++$i == 6) break;
}
/////
// Display the rest of the info
imagettftext($image, 8, 0, 5, 97, $font_black, $font, "-$by");
imagettftext($image, 8, 0, 200, 112, $font_black, $font, $ratingup);
imagettftext($image, 8, 0, 240, 112, $font_black, $font, $ratingdown);
imagepng($image);
imagedestroy($image);
?>
you say that like it should mean something to me....Then how do you expect this...
what do i care, i got 8 gigs of ram
what do i care, i got 8 gigs of dual channel ram
Why in the world would you need 8gb of ram? Seems like a giant waste of money.
Epic computers without sound cards haha.I know right

I have no need for a sound card. It would just be wasted money.So you must never play games with audio or listen to music.
The one I was using had that same feature but it was so cold all the photos where turning out blurry.