- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 84 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Erreur member vote myEgallery module [ ]
Author
Message
CSFrance
Nuke Soldier
Joined: Mar 11, 2003
Posts: 12
Posted:
Tue Mar 18, 2003 12:47 am
When members try to vote, they get an error on lline 317, file /modules/My_eGallery/public/displayMedi.php.......
Heres the code :
312 // Fix for lamers that like to cheat on polls
313 $ip = getenv("REMOTE_ADDR");
314 $past = time()-1800;
315 $db->sql_query("DELETE FROM $prefix"._gallery_rate_check." WHERE time < $past");
316 $result = $db->sql_query("SELECT ip, pid FROM $prefix"._gallery_rate_check." WHERE pid=$pid");
317 list($ips, $pids) = $db->sql_fetch_row($result);
318 $ctime = time();
319 if (($ip == $ips) && ($pid == $pids)) {
320 $voteValid = 0;
321 } else {
322 $db->sql_query("INSERT INTO $prefix"._gallery_rate_check." (ip, time, pid) VALUES ('$ip', '$ctime', '$pid')");
323 $voteValid = 1;
324 }
325 // Fix end
It I add // to line 317, it works, but you can vote as many times as you like...... The module is the one ported by you guys, any help there....?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum