| @@ 84-99 (lines=16) @@ | ||
| 81 | updateIrating($lid); |
|
| 82 | $ratemessage = constant('_ADSLIGHT_VOTEAPPRE') . '<br>' . sprintf(constant('_ADSLIGHT_THANKURATEITEM'), $xoopsConfig['sitename']); |
|
| 83 | redirect_header('viewads.php?lid=' . $lid . '', 3, $ratemessage); |
|
| 84 | } else { |
|
| 85 | $GLOBALS['xoopsOption']['template_main'] = 'adslight_rate_item.tpl'; |
|
| 86 | include XOOPS_ROOT_PATH . '/header.php'; |
|
| 87 | $lid = XoopsRequest::getInt('lid', 0, 'GET'); |
|
| 88 | $result = $xoopsDB->query('SELECT lid, title FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE lid=' . $xoopsDB->escape($lid) . ''); |
|
| 89 | list($lid, $title) = $xoopsDB->fetchRow($result); |
|
| 90 | $xoopsTpl->assign('link', array('lid' => $lid, 'title' => $myts->htmlSpecialChars($title))); |
|
| 91 | $xoopsTpl->assign('lang_voteonce', constant('_ADSLIGHT_VOTEONCE')); |
|
| 92 | $xoopsTpl->assign('lang_ratingscale', constant('_ADSLIGHT_RATINGSCALE')); |
|
| 93 | $xoopsTpl->assign('lang_beobjective', constant('_ADSLIGHT_BEOBJECTIVE')); |
|
| 94 | $xoopsTpl->assign('lang_donotvote', constant('_ADSLIGHT_DONOTVOTE')); |
|
| 95 | $xoopsTpl->assign('lang_rateit', constant('_ADSLIGHT_RATEIT')); |
|
| 96 | $xoopsTpl->assign('lang_cancel', _CANCEL); |
|
| 97 | $xoopsTpl->assign('mydirname', $moduleDirName); |
|
| 98 | include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 99 | } |
|
| 100 | ||
| @@ 85-100 (lines=16) @@ | ||
| 82 | updateUrating($usid); |
|
| 83 | $ratemessage = constant('_ADSLIGHT_VOTEAPPRE') . '<br>' . sprintf(constant('_ADSLIGHT_THANKURATEUSER'), $xoopsConfig['sitename']); |
|
| 84 | redirect_header('members.php?usid=' . addslashes($usid) . '', 3, $ratemessage); |
|
| 85 | } else { |
|
| 86 | $GLOBALS['xoopsOption']['template_main'] = 'adslight_rate_user.tpl'; |
|
| 87 | include XOOPS_ROOT_PATH . '/header.php'; |
|
| 88 | $usid = XoopsRequest::getInt('usid', 0, 'GET'); |
|
| 89 | $result = $xoopsDB->query('SELECT title, usid, submitter FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE usid=' . $xoopsDB->escape($usid) . ''); |
|
| 90 | list($title, $usid, $submitter) = $xoopsDB->fetchRow($result); |
|
| 91 | $xoopsTpl->assign('link', array('usid' => $usid, 'title' => $myts->htmlSpecialChars($title), 'submitter' => $submitter)); |
|
| 92 | $xoopsTpl->assign('lang_voteonce', constant('_ADSLIGHT_VOTEONCE')); |
|
| 93 | $xoopsTpl->assign('lang_ratingscale', constant('_ADSLIGHT_RATINGSCALE')); |
|
| 94 | $xoopsTpl->assign('lang_beobjective', constant('_ADSLIGHT_BEOBJECTIVE')); |
|
| 95 | $xoopsTpl->assign('lang_donotvote', constant('_ADSLIGHT_DONOTVOTE')); |
|
| 96 | $xoopsTpl->assign('lang_rateit', constant('_ADSLIGHT_RATEIT')); |
|
| 97 | $xoopsTpl->assign('lang_cancel', _CANCEL); |
|
| 98 | $xoopsTpl->assign('mydirname', $moduleDirName); |
|
| 99 | include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 100 | } |
|
| 101 | ||