Pages: [1]   Go Down
  Print  
Author Topic: Security Fix: fadclick.php  (Read 632 times)
757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« on: October 09, 2010, 06:34:18 PM »

With the cooperation of Scott Klarr (http://diffusionstudios.com/) we are pleased to release this security update:

This will prevent people from uploading free credits into your featured ads, also please use the security fix for the wizards/fad.php file.

EDIT: Link to wizards/fad.php fix is here:
http://auroraadmintraining.info/index.php/topic,1005.0.html

You will want to cut and paste the entire code into your file:

Code:
<?
$id=$_GET['id'];
include("config.php");
include("includes/mysql.php");
$Db1 = new DB_sql;
$Db1->connect($DBHost, $DBDatabase, $DBUser, $DBPassword);

$id = mysql_real_escape_string($_REQUEST['id']);

$sql=$Db1->query("SELECT * FROM fads WHERE id='$id'");
$banner=$Db1->fetch_array($sql);
$sql=$Db1->query("UPDATE fads SET clicks=clicks+1 WHERE id='$id'");


header("Location: $banner[target]");
?>
« Last Edit: November 03, 2010, 10:52:49 PM by 757jterrell » Logged

Upgrade to an SDR 3
Addons
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #1 on: October 13, 2010, 05:42:21 PM »

fixed ...
Logged

iamforyouraja
Jr. Member
**
Offline Offline

Posts: 61


http://adf.ly/132YJ


View Profile WWW
« Reply #2 on: May 08, 2011, 07:15:11 PM »

Hi,
I have cut the hole text and then deleted the hole text which was written in my file and pasted this there. But now i am having this error when someone try to buy f.ad:

"Fatal error: Cannot redeclare class DB_Sql in /home/goku/public_html/includes/mysql.php on line 19"

Please help me ASAP because no one will be able to buy it until it gets fixed. Sad Or even you can give me the old text which was in my file so that it can work.

« Last Edit: May 08, 2011, 07:21:16 PM by iamforyouraja » Logged

757jterrell
Administrator
Hero Member
*****
Offline Offline

Posts: 1637



View Profile WWW
« Reply #3 on: May 08, 2011, 07:30:31 PM »

Hi,
I have cut the hole text and then deleted the hole text which was written in my file and pasted this there. But now i am having this error when someone try to buy f.ad:

"Fatal error: Cannot redeclare class DB_Sql in /home/goku/public_html/includes/mysql.php on line 19"

Please help me ASAP because no one will be able to buy it until it gets fixed. Sad Or even you can give me the old text which was in my file so that it can work.



send me your email and I will send you the file
Logged

iamforyouraja
Jr. Member
**
Offline Offline

Posts: 61


http://adf.ly/132YJ


View Profile WWW
« Reply #4 on: May 08, 2011, 07:33:01 PM »

Hi,
I have cut the hole text and then deleted the hole text which was written in my file and pasted this there. But now i am having this error when someone try to buy f.ad:

"Fatal error: Cannot redeclare class DB_Sql in /home/goku/public_html/includes/mysql.php on line 19"

Please help me ASAP because no one will be able to buy it until it gets fixed. Sad Or even you can give me the old text which was in my file so that it can work.



send me your email and I will send you the file


PM sent. Smiley

EDIT: You can post that small code here as well if you want to. Smiley
« Last Edit: May 08, 2011, 07:36:13 PM by iamforyouraja » Logged

Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: [1]   Go Up
  Print  
 
Jump to: