| @@ 368-373 (lines=6) @@ | ||
| 365 | //function to delete an item type |
|
| 366 | { |
|
| 367 | global $xoopsDB, $eh, $moddir, $subscriptionhandler; |
|
| 368 | if (isset($_GET['typeid'])) { |
|
| 369 | $g_typeid = (int)$_GET['typeid']; |
|
| 370 | } else { |
|
| 371 | redirect_header(XOOPS_URL . "/modules/$moddir/admin/subscriptions.php", 2, _MD_ERR_ITEMTYPE_DELETE); |
|
| 372 | exit(); |
|
| 373 | } |
|
| 374 | ||
| 375 | if ($subscriptionhandler->countSubscriptionsForType($g_typeid) > 0) { |
|
| 376 | redirect_header(XOOPS_URL . "/modules/$moddir/admin/subscriptions.php", 3, _MD_ERR_ITEMTYPE_LINKED_TO_LISTINGS); |
|
| @@ 112-116 (lines=5) @@ | ||
| 109 | redirect_header(XOOPS_URL . "/modules/$moddir/edit.php?item=" . $itemid . '', 2, _MD_SAVED); |
|
| 110 | exit(); |
|
| 111 | } else { |
|
| 112 | if (isset($_GET['dirid'])) { |
|
| 113 | $get_dirid = (int)$_GET['dirid']; |
|
| 114 | } else { |
|
| 115 | redirect_header(XOOPS_URL . "/modules/$moddir/index.php", 2, _MD_NODIRECTORYSELECTED); |
|
| 116 | } |
|
| 117 | $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_submit.tpl'; |
|
| 118 | include XOOPS_ROOT_PATH . '/header.php'; |
|
| 119 | $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
|