Vote System (Web)
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Vote System (Web)
This is an additional program to our websites where users vote for our server, get big rewards.
>> Demo <<
Name: u3games, u3games1, u3games2, u3games3, u3games4, u3games5
Pass: u3games, u3games1, u3games2, u3games3, u3games4, u3games5
>>> DOWNLOAD <<<
>> Demo <<
Name: u3games, u3games1, u3games2, u3games3, u3games4, u3games5
Pass: u3games, u3games1, u3games2, u3games3, u3games4, u3games5
>>> DOWNLOAD <<<
Last edited by u3games on Wed Feb 10, 2016 4:33 pm, edited 16 times in total.
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Re: Vote System
Notice: Undefined index: a in C:\xampp\htdocs\vote\painel.php on line 8hope wrote:say error
Line 8:
Code: Select all
$p = $_GET['a'];
-
- Posts: 87
- Joined: Fri Jul 18, 2008 2:27 pm
- Location: Slovakia
Re: Vote System
Add one more if to 1st line.
SQL Inject possible?
Code: Select all
if(isset($_GET["a"])){//.... your code here}
Sorry for my bad english.
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Re: Vote System
I need "$p", is supposed to be the value of the object to deliver.mochitto wrote:Add one more if to 1st line.SQL Inject possible?Code: Select all
if(isset($_GET["a"])){//.... your code here}
The database is correct.
-
- Posts: 87
- Joined: Fri Jul 18, 2008 2:27 pm
- Location: Slovakia
Re: Vote System
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}
Sorry for my bad english.
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Re: Vote System
Thx mochitto, error in painel.php resolved.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}
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)) {
Code: Select all
return $rec;
Code: Select all
\t\t<input type='hidden' name='id' value='{$chararray_session['obj_Id']}' />
Code: Select all
\t\t<input type='hidden' name='id' value='{$chararray_session['obj_Id']}' />
-
- Posts: 87
- Joined: Fri Jul 18, 2008 2:27 pm
- Location: Slovakia
Re: Vote System (Web)
Maybe try define $p as null
or (its same)
I still think this script need more security.
Code: Select all
isset($_GET["a"]) ? $p = $_GET["a"] : $p = "";
Code: Select all
if(isset($_GET['a'])){ $p = $_GET['a']; //no error because $_GET['a'] exist}else{ $p = "";}
Sorry for my bad english.
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
-
- Posts: 87
- Joined: Fri Jul 18, 2008 2:27 pm
- Location: Slovakia
Re: Vote System (Web)
Here you are fixed it for Hi5.
PS: I dont know Spanish lang, so sorry for english vars..
PS: I dont know Spanish lang, so sorry for english vars..
You do not have the required permissions to view the files attached to this post.
Sorry for my bad english.
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Re: Vote System (Web)
Do not worry about the language, thank you very much for your help.mochitto wrote:Here you are fixed it for Hi5.
PS: I dont know Spanish lang, so sorry for english vars..
-
- Posts: 57
- Joined: Tue Jan 15, 2008 7:45 pm
Re: Vote System (Web)
And how player can get the vote reward in game ?
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Re: Vote System (Web)
From the web, requesting to have x number of votes taken.LaP1 wrote:And how player can get the vote reward in game ?
-
- Posts: 57
- Joined: Tue Jan 15, 2008 7:45 pm
Re: Vote System (Web)
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 ?
I have try to UPDATE all ultimo_voto value when IP = lastIP value but dont work.
Someone have an idea ?