Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-08-2004, 04:20 AM   #1
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
php question

here is the source for the thing in my sig

PHP Code:
$current="";
$started="";

$l=@fopen("sig.php",r);
$self=@fread($l,filesize("sig.php"));
@
fclose($l);
if(
$self){
$l=time()-2629743;
    if(!
$current>|| !$started || $started<$l){
    
$self=str_replace("started=\"$started\"","started=\"".time()."\"",$self);
    
$self=str_replace("current=\"$current\"","current=\"1\"",$self);
    
$current=1;
    
$started=time();
    }else{
    
$self=str_replace("current=\"$current\"","current=\"".($current+1)."\"",$self);
    
$current=$current+1;
    }
$l=@fopen("sig.php",w);
@
fputs($l,$self);
@
fclose($l);
}
Header("Content-type: image/jpeg");
$image=imagecreate(250,22);
$white=ImageColorAllocate($image,255,255,255);
$black=ImageColorAllocate($image,0,0,0);
$red=ImageColorAllocate($image,255,0,0);
ImageFilledRectangle($image,0,0,250,22,$white);
ImageRectangle($image,0,0,249,21,$black); 
$string="Sig viewed $current times since ".date("M d. H:i",($started-24*3600))."";
ImageString($image,1,2,1,$string,$red);
ImageString($image,1,65,11,'Icq - 71462500. I want an Xbox!',$black);
ImageJPEG($image);
ImageDestroy($image); 

now i was wonderin if i could spruse it up a bit and make it say how many clicks i have had or could i make another button to say how many clicks i have gotten
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2004, 04:22 AM   #2
jasonir
Confirmed User
 
Join Date: Aug 2002
Location: Toro'no
Posts: 1,887
Yes, you certainly could.
jasonir is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2004, 04:22 AM   #3
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
Quote:
Originally posted by jasonir
Yes, you certainly could.
well how about you tell me how or tell me how much you will charge
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2004, 04:24 AM   #4
jasonir
Confirmed User
 
Join Date: Aug 2002
Location: Toro'no
Posts: 1,887
Quote:
Originally posted by JupZChris
well how about you tell me how or tell me how much you will charge
That's an interesting idea... I think I will have my guy make a free hosted service for that.
jasonir is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2004, 04:26 AM   #5
Chris
Too lazy to set a custom title
 
Chris's Avatar
 
Industry Role:
Join Date: May 2003
Location: icq: 71462500 Skype: Jupzchris
Posts: 27,880
Quote:
Originally posted by jasonir


That's an interesting idea... I think I will have my guy make a free hosted service for that.
this script was already posted for free by repetive monkey
__________________
[email protected]
Chris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2004, 05:53 AM   #6
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Hey, it's cool to see the script gets some use.

As far as counting sig clicks go, I could change the script to do that also. I'll do it for $10 PayPal or 4k clickys. Hehe.

By the way, change the "65" in
ImageString($image,1,65,11,'Icq - 71462500. I want an Xbox!',$black);
to a lower number to make the second line center more properly.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2004, 07:26 AM   #7
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Done. Now it also counts clicks.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.