Changeset 870 for temp/test-xoops.ec-cube.net/html/modules
- Timestamp:
- 2006/12/13 13:05:39 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollrating.php
r869 r870 60 60 $poll->vote($option_id, xoops_getenv('REMOTE_ADDR'), $uid, $_POST['rating_id'], $_POST['comment']); 61 61 $poll->updateCount(); 62 setcookie("voted_polls[$option_id]", 1, 0); 62 63 redirect_header(XOOPS_URL."/modules/xoopspoll/pollresults.php?poll_id=".$poll_id, 1, "ÅêɼÃפ·¤Þ¤·¤¿¡£"); 63 64 exit(); … … 94 95 //--------------------------------------------------------------------------------------------------- 95 96 96 function lfErrCheck($arrForm ) {97 function lfErrCheck($arrForm, $option_id) { 97 98 98 99 $body_len = 200; … … 103 104 } 104 105 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 105 111 return $arrErr; 106 112 }
Note: See TracChangeset
for help on using the changeset viewer.
