Page 1 of 2

Vote System (Web)

Posted: Sun May 01, 2011 10:46 pm
by u3games
This is an additional program to our websites where users vote for our server, get big rewards.

Image

Image

>> Demo <<

Name: u3games, u3games1, u3games2, u3games3, u3games4, u3games5
Pass: u3games, u3games1, u3games2, u3games3, u3games4, u3games5

>>> DOWNLOAD <<<

Re: Vote System

Posted: Sun May 01, 2011 10:54 pm
by hope
say error

Re: Vote System

Posted: Mon May 02, 2011 12:04 am
by u3games
hope wrote:say error
Notice: Undefined index: a in C:\xampp\htdocs\vote\painel.php on line 8

Line 8:

Code: Select all

$p = $_GET['a'];

Re: Vote System

Posted: Mon May 02, 2011 2:53 pm
by mochitto
Add one more if to 1st line.

Code: Select all

if(isset($_GET["a"])){//.... your code here}
SQL Inject possible?

Re: Vote System

Posted: Mon May 02, 2011 3:38 pm
by u3games
mochitto wrote:Add one more if to 1st line.

Code: Select all

if(isset($_GET["a"])){//.... your code here}
SQL Inject possible?
I need "$p", is supposed to be the value of the object to deliver.

The database is correct.

Re: Vote System

Posted: Mon May 02, 2011 8:10 pm
by mochitto
function isset() checks if var $_GET[a] exist. if exist return true.

Code: Select all

if(isset($_GET['a'])){    $p = $_GET['a']; //no error because $_GET['a'] exist//more your code}

Re: Vote System

Posted: Mon May 02, 2011 9:45 pm
by u3games
mochitto wrote:function isset() checks if var $_GET[a] exist. if exist return true.

Code: Select all

if(isset($_GET['a'])){    $p = $_GET['a']; //no error because $_GET['a'] exist//more your code}
Thx mochitto, error in painel.php resolved.

Now, in functions.php has the following errors:

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\vote\inc\functions.php on line 99

Code: Select all

while($item = mysql_fetch_row($select)) {
Notice: Undefined variable: rec in C:\xampp\htdocs\vote\inc\functions.php on line 102

Code: Select all

return $rec;
Notice: Undefined index: obj_Id in C:\xampp\htdocs\vote\inc\functions.php on line 114

Code: Select all

\t\t<input type='hidden' name='id' value='{$chararray_session['obj_Id']}' />
Notice: Undefined index: obj_Id in C:\xampp\htdocs\vote\inc\functions.php on line 128

Code: Select all

\t\t<input type='hidden' name='id' value='{$chararray_session['obj_Id']}' />

Re: Vote System (Web)

Posted: Tue May 03, 2011 1:12 pm
by mochitto
Maybe try define $p as null

Code: Select all

isset($_GET["a"]) ? $p = $_GET["a"] : $p = "";
or (its same)

Code: Select all

if(isset($_GET['a'])){    $p = $_GET['a']; //no error because $_GET['a'] exist}else{    $p = "";}
I still think this script need more security.

Re: Vote System (Web)

Posted: Tue May 03, 2011 10:33 pm
by u3games
Continues to have many errors. Someone has fully repaired and complete?

Re: Vote System (Web)

Posted: Wed May 04, 2011 3:27 pm
by mochitto
Here you are fixed it for Hi5.

PS: I dont know Spanish lang, so sorry for english vars..

Re: Vote System (Web)

Posted: Wed May 04, 2011 6:07 pm
by u3games
mochitto wrote:Here you are fixed it for Hi5.

PS: I dont know Spanish lang, so sorry for english vars..
Do not worry about the language, thank you very much for your help.

Re: Vote System (Web)

Posted: Sat Oct 15, 2011 10:47 am
by LaP1
And how player can get the vote reward in game ?

Re: Vote System (Web)

Posted: Sat Oct 15, 2011 11:55 am
by u3games
LaP1 wrote:And how player can get the vote reward in game ?
From the web, requesting to have x number of votes taken.

Re: Vote System (Web)

Posted: Sun Nov 20, 2011 8:26 pm
by LaP1
I have try to add ip restriction but without succes.

I have try to UPDATE all ultimo_voto value when IP = lastIP value but dont work.

Someone have an idea ?

Re: Vote System (Web)

Posted: Sat Nov 26, 2011 5:46 pm
by LaP1
Up :roll: