HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Software / Tools > Programming, Coding, (Web)Design


Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people.

Reply
 
Thread Tools
Old Oct 15, 2004, 10:34 PM   #1
DriverHeaven Junior Member
 
Join Date: Oct 2004
Location: Holland, PA, USA
Posts: 24
Rep Power: 0
DigitalisAkujin is on a distinguished road

My Sig :)

Generated by PHP.

Origional:
http://www.digitalisakujin.com/sig.php

The one used for DriversHeaven due to sig rules: (below)

Code:
PHP Code:
<?php
header
("Content-type: image/png");
$ref $_SERVER['HTTP_REFERER'];
//Font Directory
$dir_fonts "bin/fonts/";
//Fonts
$font_arial $dir_fonts "arial.ttf";
$font_arial_bold $dir_fonts "arialbd.ttf";
$font_concielian $dir_fonts "CONC22.TTF";
$font_911porscha $dir_fonts "POR2.TTF";
$font_times $dir_fonts "times.ttf";
$font_times_bold $dir_fonts "timesbd.ttf";
$font_verdana $dir_fonts "verdana.ttf";
$font_verdana_bold $dir_fonts "verdanab.ttf";
function 
random_comment() {
 
$comment[0] = "You go take a shit and the internet you come back to is so different.";
 
$comment[1] = "Take a look to the sky just before you die. It's the last time you will.\n-Metallica\n-For Whom the Bell Tolls";
 
$comment[2] = "I always tell people to buy from Amazon cause every book you buy from Amazon they lose like $1.50.";
 
$comment[3] = "Visit my site: www.defaultalias.com. Click google ads. Give me money. Everyone wins!";
 
 
$count count($comment) - 1;
 
 return 
$comment[rand(0,$count)];
}
function 
draw_comment($sig$font_size$rotation$cord_x$cord_y$color$font$comment) {
 
$comment explode("\n"$comment);
 
$count count($comment);
 for(
$i=0,$s=0;$i<$count;$i++,$s++) {
  if(
strlen($comment[$i]) > 30) {
   
$comment[$i] = wordwrap($comment[$i], 30"\n");
   
$comment[$i] = explode("\n"$comment[$i]);
   
$comment_count count($comment[$i]);
   for(
$y=0;$y<$comment_count;$y++,$s++) {
    
$line[$s] = $comment[$i][$y];
   }
  }
  else {
   
$line[$s] = $comment[$i];
  }
 }
 for(
$z=0;$z<count($line);$z++) {
  
imagettftext($sig$font_size$rotation$cord_x$cord_y + ($z * ($font_size 3)), $color$font$line[$z]);
 }


if(!isset(
$profile) && strpos($ref,"driverheaven.net")) {
 
$profile "400x100";
}

if(
$profile == "400x100") {
 
//Sig Base Image Location
 
$sig_loc "bin/sig400x100.png";
}
if(!isset(
$profile) || $profile == "") {
 
//Sig Base Image Location
 
$sig_loc "bin/sig.png"
}
 
//Creates initial Images
$sig imagecreatefrompng($sig_loc);

//Define colors
$tc_000000 imagecolorallocate($sig000); //Black
$tc_8F8F8F imagecolorallocate($sig142142142); //Gray
$tc_0000FF imagecolorallocate($sig00255); //Blue
$tc_00FF00 imagecolorallocate($sig02550); //Green
$tc_FF0000 imagecolorallocate($sig25500); //Red

//Write shit w00t
if(!isset($profile) || $profile == "") {
 
imagettftext($sig15013016$tc_8F8F8F$font_concielian"DigitalisAkujin");

 
imagettftext($sig50130100$tc_8F8F8F$font_verdana_bold"AMD XP 2600+");
 
imagettftext($sig50130108$tc_8F8F8F$font_verdana_bold" with SP-97 Thermalright Heatsink");
 
imagettftext($sig50130116$tc_8F8F8F$font_verdana_bold"Asus A7V600-X, 768 DDR PC 2700");
 
imagettftext($sig50130124$tc_8F8F8F$font_verdana_bold"ATI Radeon 9800 Pro All-in-Wonder");
 
imagettftext($sig50130132$tc_8F8F8F$font_verdana_bold"WD 80GIG 7200 RPM, WD 120GIG SATA");
 
imagettftext($sig50130140$tc_8F8F8F$font_verdana_bold" 7200 RPM, WD 40 GIG 7200 RPM");
 
imagettftext($sig50130148$tc_8F8F8F$font_verdana_bold"Creative Sound Blaster Audigy 2 Platinum");
 
draw_comment($sig8013035$tc_8F8F8F$font_verdana_boldrandom_comment());
 
 

 
//imagestring($sig, 1, 130, 25, "AMD XP 2600+", $tc_FF0000);
 //imagestring($sig, 1, 130, 35, " with SP-97 Thermalright Heatsink", $tc_FF0000);
 //imagestring($sig, 1, 130, 45, "Asus A7V600-X", $tc_FF0000);
 //imagestring($sig, 1, 130, 55, "ATI Radeon 9800 Pro All-in-Wonder", $tc_FF0000);
 //imagestring($sig, 1, 130, 65, "768 DDR PC 2700", $tc_FF0000);
 //imagestring($sig, 1, 130, 75, "WD 80GIG 7200 RPM, WD 120GIG SATA", $tc_FF0000);
 //imagestring($sig, 1, 130, 85, " 7200 RPM, WD 40 GIG 7200 RPM", $tc_FF0000);
 //imagestring($sig, 1, 130, 95, "Creative Sound Blaster Audigy 2 Platinum", $tc_FF0000);
 //imagestring($sig, 1, 120, 140, "Generated on " . date("l dS of F Y h:i:s A"), $tc_FF0000);
}
if(
$profile == "400x100") {
 
imagettftext($sig10010012$tc_8F8F8F$font_concielian"DigitalisAkujin");
 
imagestring($sig110017"AMD XP 2600+"$tc_FF0000);
 
imagestring($sig110027" with SP-97 Thermalright Heatsink"$tc_FF0000);
 
imagestring($sig110037"Asus A7V600-X"$tc_FF0000);
 
imagestring($sig110047"ATI Radeon 9800 Pro All-in-Wonder"$tc_FF0000);
 
imagestring($sig110057"768 DDR PC 2700"$tc_FF0000);
 
imagestring($sig110067"WD 80GIG 7200 RPM, WD 120GIG SATA"$tc_FF0000);
 
imagestring($sig110077" 7200 RPM, WD 40 GIG 7200 RPM"$tc_FF0000);
 
imagestring($sig110087"Creative Sound Blaster Audigy 2 Platinum"$tc_FF0000);
}
 
if(
$output == "JPG" || $output == "JPEG") {
 
imagejpeg($sig,""100);
}
if(!isset(
$output) || $output == "PNG") {
 
imagepng($sig);
}
?>
__________________
DigitalisAkujin is offline   Reply With Quote


Old Oct 16, 2004, 09:03 AM   #2
I like computers.
 
MythicaL's Avatar
 
Join Date: Jan 2004
Location: In front of a monitor
Posts: 3,399
Rep Power: 89
MythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seenMythicaL has a divinity and aura the likes we have never seen
System Specs

Donator
Nice PHP is hard, so good job
__________________


Always knew I didn't belong in this world. I wasn't made for this. But I'll never forget those who betrayed me, and those who never failed my trust.
MythicaL is offline   Reply With Quote
Old Oct 16, 2004, 12:55 PM   #3
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0
UberLord will become famous soon enough

Quote:
Originally Posted by MythicaL
Nice PHP is hard, so good job
Compared to many other web scripting languages, PHP is really very easy.
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old Oct 16, 2004, 06:22 PM Threadstarter Thread Starter   #4
DriverHeaven Junior Member
 
Join Date: Oct 2004
Location: Holland, PA, USA
Posts: 24
Rep Power: 0
DigitalisAkujin is on a distinguished road

Quote:
Originally Posted by UberLord
Compared to many other web scripting languages, PHP is really very easy.
Yea, compared to stuff like C++, Java-Script, Perl, Java......

Whenever I need to do something I would much rather try to do it in PHP rather then any of those I listed.
__________________
DigitalisAkujin is offline   Reply With Quote
Reply

Thread Tools