non pas de modif je vous balances le code du pollheader.php...
les 70 1ere ligne :
( vers la ligne 40 //qui deconne// )
$config_file = "pollphp/pollconfig.php"; // path to config file
$poll_dat = "pollphp/polldata.txt"; // path to poll data file
$poll_ip = "pollphp/poll_ip.txt"; // path to poll ip file
//////////////////////////////////////////////////////
require "$config_file";
$found=0;
$total=0;
function sort_keys($a,$b) {
if ($a == $b) return 0;
return ($a > $b) ? -1 : 1;
}
function checkIP($rem_addr,$voting) {
global $poll_ip,$lock_timeout,$found;
$ip_array = @file($poll_ip);
$this_time = time();
if ($voting==1) { $ip_table = fopen($poll_ip,"w+" ); }
for ($i=0; $i<sizeof($ip_array); $i++) {
list($ip_addr,$time_stamp) = split("\|",$ip_array[$i]);
if ($this_time < ($time_stamp+3600*$lock_timeout)) {
if ($ip_addr == $rem_addr) {
$found=1;
if ($voting==0) { break;}
}
if ($voting==1) { fwrite($ip_table,"$ip_addr|$time_stamp" ); }
}
}
if ($voting==1) {
fwrite($ip_table,"$rem_addr|$this_time\n" );
fclose($ip_table);
}
}
if ($check_vote>=1 && $status==1) {
$cookie_name = "AdvancedPoll";
if(isset($AdvancedPoll)==1){
$found=1;
}
else {
if ($check_vote==2) {
checkIP($REMOTE_ADDR,0);
}
if ($vote_for && $found==0) {
setcookie($cookie_name, "1", time()+(3600*$lock_timeout)); // ligne qui deconne //
if ($check_vote==2) { checkIP($REMOTE_ADDR,1); }
}
}
}
if (isset($vote_for) && $found==0 && $status==1) {
$line = file($poll_dat);
$count_dat = fopen($poll_dat,"r+" );
for ($i=1; $i<sizeof($line); $i++) {
list($name,$vote,$color) = split("\|",$line[$i]);
if ($name == "$vote_for" ) {
$vote += 1;
}
$poll[$name] = $vote;
$gif[$name] = $color;
$total += $vote;
}
fwrite($count_dat,$line[0]);
for(reset($poll); $key=key($poll); next($poll)) {
fwrite($count_dat,"$key|$poll[$key]|$gif[$key]" );
}
fclose($count_dat);
}
else {
$line = file($poll_dat);
for ($i=1; $i<sizeof($line); $i++) {
list($name,$vote,$color) = split("\|",$line[$i]);
$poll[$name] = $vote;
$gif[$name] = $color;
$total += $vote;