| @@ 122-131 (lines=10) @@ | ||
| 119 | } else { |
|
| 120 | $msg = _MD_XOOPSPOLL_ERROR_INVALID_POLLID; |
|
| 121 | } |
|
| 122 | if (null !== $url) { |
|
| 123 | redirect_header($url, XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
| 124 | } else { |
|
| 125 | /* |
|
| 126 | redirect_header($GLOBALS['xoops']->buildUrl("pollresults.php", array('poll_id' => $poll_id)), |
|
| 127 | XoopspollConstants::REDIRECT_DELAY_MEDIUM, |
|
| 128 | $msg); |
|
| 129 | */ |
|
| 130 | redirect_header($GLOBALS['xoops']->buildUrl('viewtopic.php', array('topic_id' => $topic_id)), XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
| 131 | } |
|
| 132 | } else { //Umfrage |
|
| 133 | $poll = new Umfrage($poll_id); |
|
| 134 | if (is_object($xoopsUser)) { |
|
| @@ 105-109 (lines=5) @@ | ||
| 102 | } else { |
|
| 103 | $msg = _MD_XOOPSPOLL_ERROR_INVALID_POLLID; |
|
| 104 | } |
|
| 105 | if (null !== $url) { |
|
| 106 | redirect_header($url, XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
| 107 | } else { |
|
| 108 | redirect_header($GLOBALS['xoops']->buildUrl('viewtopic.php', array('topic_id' => $topic_id)), XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
| 109 | } |
|
| 110 | // irmtfan - simple url |
|
| 111 | redirect_header("viewtopic.php?topic_id={$topic_id}", 1, $msg); |
|
| 112 | ||
| @@ 209-213 (lines=5) @@ | ||
| 206 | } else { |
|
| 207 | $msg = _MD_XOOPSPOLL_ERROR_INVALID_POLLID; |
|
| 208 | } |
|
| 209 | if ('' !== $url) { |
|
| 210 | redirect_header($url, XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
| 211 | } else { |
|
| 212 | redirect_header($GLOBALS['xoops']->buildUrl('pollresults.php', array('poll_id' => $pollId)), XoopspollConstants::REDIRECT_DELAY_MEDIUM, $msg); |
|
| 213 | } |
|
| 214 | } else { |
|
| 215 | $pollObj = $pollHandler->get($pollId); |
|
| 216 | if ($pollObj->hasExpired()) { |
|