View Single Post
Old 10-18-2003, 11:51 AM  
Script Dude
Registered User
 
Join Date: Jun 2002
Location: Michigan
Posts: 86
Quote:
Originally posted by PowerCum


2 ) Take a look at the script. Except the usual mysql connect functions all is different.
I hope nobody believes this guy.

Sample code from TTT:
Code:
if ($_GET["link"] hahahaha "") { $_GET["link"] = "nolink"; }
mysql_query("UPDATE ttt_links SET hour$thishour=hour$thishour+1 WHERE link='$_GET[link]'") 
    or print_error(mysql_error());
if (mysql_affected_rows() hahahaha 0) {
    mysql_query("INSERT INTO ttt_links (link, hour$thishour) VALUES ('$_GET[link]', 1)") 
        or print_error(mysql_error());
}
Your obvious copy:
Code:
$g_link=$_GET["link"];
...
if ($g_link hahahaha "") { $g_link = "no_link"; }
@mysql_query("UPDATE cjoverkill_links SET h$thishour=h$thishour+1 WHERE cjlink='$g_link'") 
    OR print_error(mysql_error());
if (mysql_affected_rows() hahahaha 0) {
    @mysql_query("INSERT INTO cjoverkill_links (cjlink, h$thishour) VALUES ('$g_link', 1)")
        OR print_error(mysql_error());
}
So you use $g_link instead of $_GET["link"] and changed a couple names. The code is identical and this is only one example.

You just happen to have a $thishour variable? You just happened to use a print_error function? In fact, lets look at the print_error function...

In TTT
Code:
function print_error($msg) {
    echo "<font face='verdana' size='3'><b>Error:</b><br><font size='2'>$msg</font></font>";
    exit;
}
In your copy:
Code:
function print_error($msg) {
    echo "<font face='verdana' size='3'><b>Error:</b><br><font size='2'>$msg</font></font>";
    exit;
}
100% identical. I suppose its coincidence that you print your error messages out in the exact same format, font and size as TTT?

I hope no one is foolish enough to believe you.
Script Dude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote