@@ 46-49 (lines=4) @@ | ||
43 | ||
44 | include XOOPS_ROOT_PATH . "/modules/xnewsletter/include/task.inc.php"; |
|
45 | ||
46 | if (!$xoopsUser) { |
|
47 | //Guest no Access !!! |
|
48 | redirect_header(XOOPS_URL . "/modules/" . $xnewsletter->getModule()->dirname() . "/index.php", 3, _NOPERM); |
|
49 | } |
|
50 | ||
51 | $op = XoopsRequest::getString('op', 'list'); |
|
52 | $letter_id = XoopsRequest::getInt('letter_id', 0); |
|
@@ 60-62 (lines=3) @@ | ||
57 | ||
58 | $sendletter_perm = xnewsletter_getUserPermissionsByLetter($letter_id); |
|
59 | ||
60 | if (!$sendletter_perm["send"]) { |
|
61 | redirect_header(XOOPS_URL . "/modules/" . $xnewsletter->getModule()->dirname() . "/index.php", 3, _NOPERM); |
|
62 | } |
|
63 | ||
64 | $start_sending = false; |
|
65 | $protocolCriteria = new CriteriaCompo(); |