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 07-15-2004, 01:05 PM   #1
badmrfrosty
Confirmed User
 
Join Date: May 2003
Posts: 500
Little traffic trader "skim dealy" i wrote.

<?
include ('config.php');

$magicnumber = rand(1, 4);
$a[1] = "http://www.shemp.com";
$a[2] = "http://www.thehun.net";
$a[3] = "http://www.snakesworld.com";
$a[4] = "http://www.msnbc.com"; #hah!
$link = "".$a[$magicnumber]."";

#increment global outgoing click counter
$query9 = "UPDATE clicks set num = num + 1 where id = 1";
$result9 = mysql_query($query9);

#check to see how many hits we have
$query10 = "SELECT * from clicks where id = '1'";
$result10 = mysql_query($query10);
while ($row = mysql_fetch_array($result10)) {
$thenumber = $row['num'];
}
if ($thenumber % 2 [equal][equal] 0) {
$loc = "".$link."";
} else {
$loc = $_GET['loc'];
}
#check to see if we've sent any traffic to that URL yet!
$query2 = "SELECT * from traffic where location = '".$loc."'";
$result5 = mysql_query($query2);
$num_rows = mysql_num_rows($result5);
if ($num_rows [equal][equal] '0') {
$createrow = "INSERT INTO traffic VALUES(NULL, '$loc', '1')";
$result = mysql_query($createrow);
header("Location: {$loc}");
exit();
} else {
$updaterow = "UPDATE traffic SET count = count + 1 where location =
'".$loc."'";
$result = mysql_query($updaterow);
header("Location: {$loc}");
exit();
}
?>

all you have to do is make your links on your tgp go.php?loc=(whatever) and you have mad outgoing skim! ;-)

the

oh yeah and it needs two tables.

thenum % 2 means that 50% of the time its going to to go skim

if anyone just wants the damn file email me :D

BMF

Last edited by badmrfrosty; 07-15-2004 at 01:09 PM..
badmrfrosty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 01:24 PM   #2
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
nice now write the incomming script to track hits in
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 01:27 PM   #3
pornstar2pac
Omaha Hi/Lo
 
Join Date: Nov 2003
Posts: 17,380
cool, now write a script that will wipe out yur bank accounts
__________________
Trump haters gonna hate. that's all they can do
pornstar2pac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-15-2004, 01:50 PM   #4
badmrfrosty
Confirmed User
 
Join Date: May 2003
Posts: 500
Sure that takes about 10 seconds, you just have people send your hits to index.php?site=(their site name)

then you add a 1 to the column in your table each time they send you one.


<?

$incoming = $_SERVER['HTTP_REFERRER'];

if the referrer already exists in your table increment his "count" by 1, if not create a new column and start it at 1.

Gah?

BMF

Last edited by badmrfrosty; 07-15-2004 at 01:53 PM..
badmrfrosty 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.