GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Little traffic trader "skim dealy" i wrote. (https://gfy.com/showthread.php?t=326463)

badmrfrosty 07-15-2004 01:05 PM

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

4Pics 07-15-2004 01:24 PM

nice now write the incomming script to track hits in

pornstar2pac 07-15-2004 01:27 PM

cool, now write a script that will wipe out yur bank accounts

badmrfrosty 07-15-2004 01:50 PM

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


All times are GMT -7. The time now is 07:21 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123