| @@ 413-418 (lines=6) @@ | ||
| 410 | if (!empty($_POST['submit'])) { |
|
| 411 | $submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0; |
|
| 412 | ||
| 413 | if (!empty($_POST['itemid'])) { |
|
| 414 | $post_itemid = (int)$_POST['itemid']; |
|
| 415 | } else { |
|
| 416 | redirect_header('index.php', 2, _MD_NOVALIDITEM); |
|
| 417 | exit(); |
|
| 418 | } |
|
| 419 | if (isset($_POST['itemtitle'])) { |
|
| 420 | $p_title = $myts->makeTboxData4Save($_POST['itemtitle']); |
|
| 421 | $p_ini_title = $_POST['ini_itemtitle']; |
|
| @@ 49-54 (lines=6) @@ | ||
| 46 | } else { |
|
| 47 | $get_catid = 0; |
|
| 48 | } |
|
| 49 | if (!empty($_GET['item'])) { |
|
| 50 | $get_itemid = (int)$_GET['item']; |
|
| 51 | } else { |
|
| 52 | redirect_header('index.php', 2, _MD_NOVALIDITEM); |
|
| 53 | exit(); |
|
| 54 | } |
|
| 55 | ||
| 56 | $moddir = $xoopsModule->getVar('dirname'); |
|
| 57 | $dirid = getDirIdFromItem($get_itemid); |
|
| @@ 207-212 (lines=6) @@ | ||
| 204 | ||
| 205 | //Show current subscription for listing |
|
| 206 | //If standard subscription: Show subcription offers plus link to upgrade |
|
| 207 | if (!empty($_GET['orderid'])) { |
|
| 208 | $get_orderid = (int)$_GET['orderid']; |
|
| 209 | } else { |
|
| 210 | redirect_header('index.php', 2, _MD_NOVALIDITEM); |
|
| 211 | exit(); |
|
| 212 | } |
|
| 213 | $sql = 'SELECT o.orderid, o.uid, o.offerid, o.typeid, o.startdate, o.billto, o.status, o.itemid, o.autorenew, f.price, f.currency FROM ' |
|
| 214 | . $xoopsDB->prefix($module->getVar('dirname', 'n') . '_subscr_orders') |
|
| 215 | . ' o, ' |
|
| @@ 309-314 (lines=6) @@ | ||
| 306 | function renew() |
|
| 307 | { |
|
| 308 | global $subscription, $get_itemid, $editrights; |
|
| 309 | if (!empty($_GET['order'])) { |
|
| 310 | $get_orderid = (int)$_GET['order']; |
|
| 311 | } else { |
|
| 312 | redirect_header('index.php', 2, _MD_NOVALIDITEM); |
|
| 313 | exit(); |
|
| 314 | } |
|
| 315 | if ($editrights == '1') { |
|
| 316 | redirect_header("subscriptions.php?item=$get_itemid&op=orderpayment&orderid=$get_orderid", 2, _MD_FORWARDED_PAYMENT_PAGE); |
|
| 317 | exit(); |
|