Points cheating

hedac - June 20, 2009 - 21:04
Project:Affiliates
Version:6.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Let's say we have a small banner with 1 point and a big banner with 5 points... So we want to give more points to people that put the bigger banner... but.. what prevents to cheat the code and use the small banner but then change the link to point to the bigger one ?

The solution would be that the code of the links should have to be a link to a php script that outputs the code.. not the code itself. ie: the textarea of the codes should only have this:
<img src="http://www.example.com/enter.php?userid=xxx&adid=yyy" />
then the "enter.php" would take care of the adid and output the correct html with the link and image.

#1

hedac - June 20, 2009 - 21:20

I was thinking twice... and I think the above is not correct... because you can output an image in php... but how can you output the full html code with the link and the image? It would be easy if the users can paste php code using the

<?php
and
?>
but of course we want html code to be easy to paste and insert, because not all users can put php code. Maybe using javascript ?

 
 

Drupal is a registered trademark of Dries Buytaert.