| @@ 80-84 (lines=5) @@ | ||
| 77 | $erh->show('1001'); |
|
| 78 | } |
|
| 79 | ||
| 80 | if (!empty($_POST['cid'])) { |
|
| 81 | $cid = (int)$_POST['cid']; |
|
| 82 | } else { |
|
| 83 | $cid = 0; |
|
| 84 | } |
|
| 85 | $cat_perms = adslight_MygetItemIds('adslight_submit'); |
|
| 86 | if (!in_array($cid, $cat_perms)) { |
|
| 87 | redirect_header(XOOPS_URL, 2, _NOPERM); |
|
| @@ 192-196 (lines=5) @@ | ||
| 189 | include XOOPS_ROOT_PATH . '/header.php'; |
|
| 190 | include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 191 | ||
| 192 | if (!empty($_POST['cid'])) { |
|
| 193 | $cid = (int)$_POST['cid']; |
|
| 194 | } else { |
|
| 195 | $cid = 0; |
|
| 196 | } |
|
| 197 | ||
| 198 | if (!empty($_POST['cat_moderate'])) { |
|
| 199 | $cat_moderate = (int)$_POST['cat_moderate']; |
|
| @@ 198-202 (lines=5) @@ | ||
| 195 | $cid = 0; |
|
| 196 | } |
|
| 197 | ||
| 198 | if (!empty($_POST['cat_moderate'])) { |
|
| 199 | $cat_moderate = (int)$_POST['cat_moderate']; |
|
| 200 | } else { |
|
| 201 | $cat_moderate = 0; |
|
| 202 | } |
|
| 203 | ||
| 204 | $howlong = $xoopsModuleConfig['adslight_howlong']; |
|
| 205 | $member_usid = $xoopsUser->getVar('uid', 'E'); |
|
| @@ 72-76 (lines=5) @@ | ||
| 69 | $erh->show('1001'); |
|
| 70 | } |
|
| 71 | ||
| 72 | if (!empty($_POST['cid'])) { |
|
| 73 | $cid = (int)$_POST['cid']; |
|
| 74 | } else { |
|
| 75 | $cid = 0; |
|
| 76 | } |
|
| 77 | $cat_perms = adslight_MygetItemIds('adslight_submit'); |
|
| 78 | if (!in_array($cid, $cat_perms)) { |
|
| 79 | redirect_header(XOOPS_URL, 2, _NOPERM); |
|
| @@ 184-188 (lines=5) @@ | ||
| 181 | include XOOPS_ROOT_PATH . '/header.php'; |
|
| 182 | include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 183 | ||
| 184 | if (!empty($_POST['cid'])) { |
|
| 185 | $cid = (int)$_POST['cid']; |
|
| 186 | } else { |
|
| 187 | $cid = 0; |
|
| 188 | } |
|
| 189 | ||
| 190 | if (!empty($_POST['cat_moderate'])) { |
|
| 191 | $cat_moderate = (int)$_POST['cat_moderate']; |
|
| @@ 190-194 (lines=5) @@ | ||
| 187 | $cid = 0; |
|
| 188 | } |
|
| 189 | ||
| 190 | if (!empty($_POST['cat_moderate'])) { |
|
| 191 | $cat_moderate = (int)$_POST['cat_moderate']; |
|
| 192 | } else { |
|
| 193 | $cat_moderate = 0; |
|
| 194 | } |
|
| 195 | ||
| 196 | $howlong = $xoopsModuleConfig['adslight_howlong']; |
|
| 197 | $member_usid = $xoopsUser->getVar('uid', 'E'); |
|