Code Duplication    Length = 3-5 lines in 7 locations

admin/article.php 2 locations

@@ 301-305 (lines=5) @@
298
            $articleID = (int)($_POST['articleID']);
299
        }
300
        //articleID check
301
        if (!isset($_POST['columnID'])) {
302
            redirect_header('index.php', 1, _AM_SOAPBOX_ARTNOTCREATED);
303
        } else {
304
            $columnID = (int)($_POST['columnID']);
305
        }
306
307
        //get category object
308
        $_categoryob =& $_entrydata_handler->getColumn($columnID);
@@ 477-481 (lines=5) @@
474
            }
475
            //-------------------------
476
            //articleID check
477
            if (!isset($_POST['articleID'])) {
478
                redirect_header('index.php', 1, _NOPERM);
479
            } else {
480
                $articleID = (int)($_POST['articleID']);
481
            }
482
483
            $_entryob =& $_entrydata_handler->getArticle($articleID);
484
            if (!is_object($_entryob)) {

admin/column.php 2 locations

@@ 200-204 (lines=5) @@
197
        }
198
        //-------------------------
199
        //articleID check
200
        if (!isset($_POST['columnID'])) {
201
            redirect_header("index.php", 1, _AM_SOAPBOX_ARTNOTCREATED);
202
        } else {
203
            $columnID = (int)($_POST['columnID']);
204
        }
205
206
        //get category object
207
        $_categoryob =& $_entrydata_handler->getColumn($columnID);
@@ 302-306 (lines=5) @@
299
            }
300
            //-------------------------
301
            //columnID check
302
            if (!isset($_POST['columnID'])) {
303
                redirect_header("index.php", 1, _NOPERM);
304
            } else {
305
                $columnID = (int)($_POST['columnID']);
306
            }
307
            //get category object
308
            $_categoryob =& $_entrydata_handler->getColumn($columnID);
309
            if (!is_object($_categoryob)) {

admin/submissions.php 2 locations

@@ 282-286 (lines=5) @@
279
            $articleID = (int)($_POST['articleID']);
280
        }
281
        //articleID check
282
        if (!isset($_POST['columnID'])) {
283
            redirect_header("index.php", 1, _AM_SOAPBOX_ARTNOTCREATED);
284
        } else {
285
            $columnID = (int)($_POST['columnID']);
286
        }
287
288
        //get category object
289
        $_categoryob =& $_entrydata_handler->getColumn($columnID);
@@ 402-406 (lines=5) @@
399
            }
400
            //-------------------------
401
            //articleID check
402
            if (!isset($_POST['articleID'])) {
403
                redirect_header("index.php", 1, _NOPERM);
404
            } else {
405
                $articleID = (int)($_POST['articleID']);
406
            }
407
408
            $_entryob =& $_entrydata_handler->getArticle($articleID);
409
            if (!is_object($_entryob)) {

submit.php 1 location

@@ 16-18 (lines=3) @@
13
//global $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule;
14
//----------------------------------------------
15
//allowsubmit
16
if ( !isset($xoopsModuleConfig['allowsubmit']) ||  $xoopsModuleConfig['allowsubmit'] != 1){
17
	redirect_header( "index.php", 1, _NOPERM );
18
}
19
//guest
20
if (!is_object($xoopsUser)) {
21
	redirect_header( "index.php", 1, _NOPERM );