Ignore:
Timestamp:
2006/12/13 13:05:39 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollrating.php

    r869 r870  
    6060            $poll->vote($option_id, xoops_getenv('REMOTE_ADDR'), $uid, $_POST['rating_id'], $_POST['comment']); 
    6161            $poll->updateCount(); 
     62            setcookie("voted_polls[$option_id]", 1, 0); 
    6263            redirect_header(XOOPS_URL."/modules/xoopspoll/pollresults.php?poll_id=".$poll_id, 1, "ÅêɼÃפ·¤Þ¤·¤¿¡£"); 
    6364            exit(); 
     
    9495//--------------------------------------------------------------------------------------------------- 
    9596 
    96 function lfErrCheck($arrForm) { 
     97function lfErrCheck($arrForm, $option_id) { 
    9798     
    9899    $body_len = 200; 
     
    103104    } 
    104105     
     106    $voted_polls = (!empty($_COOKIE['voted_polls'])) ? $_COOKIE['voted_polls'] : array(); 
     107    if(empty($voted_polls[$option_id])) { 
     108        redirect_header(XOOPS_URL."/modules/xoopspoll/pollresults.php?poll_id=".$poll_id, 1, " ¢¨ Ê£¿ô²ó¤ÎÅêɼ¤ò¹Ô¤¦¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£");    
     109    } 
     110     
    105111    return $arrErr; 
    106112} 
Note: See TracChangeset for help on using the changeset viewer.