Code Duplication    Length = 6-6 lines in 2 locations

add.php 1 location

@@ 170-175 (lines=6) @@
167
    }
168
169
    $addphotonow = Request::getInt('addphotonow', 0, 'POST');
170
    if ($addphotonow) {
171
        //$lid = $xoopsDB->getInsertId();
172
        redirect_header("view_photos.php?lid=$lid&uid=$usid", 3, _ADSLIGHT_ADSADDED);
173
    } else {
174
        redirect_header('index.php', 3, _ADSLIGHT_ADSADDED);
175
    }
176
} else {
177
    $GLOBALS['xoopsOption']['template_main'] = 'adslight_addlisting.tpl';
178
    include XOOPS_ROOT_PATH . '/header.php';

addlisting.php 1 location

@@ 180-185 (lines=6) @@
177
178
    $addphotonow = Request::getInt('addphotonow', 0, 'POST');
179
180
    if ($addphotonow) {
181
        //$lid = $xoopsDB->getInsertId();
182
        redirect_header("view_photos.php?lid={$lid}&uid={$usid}", 3, _ADSLIGHT_ADSADDED);
183
    } else {
184
        redirect_header('index.php', 3, _ADSLIGHT_ADSADDED);
185
    }
186
} else {
187
    $GLOBALS['xoopsOption']['template_main'] = 'adslight_addlisting.tpl';
188
    include XOOPS_ROOT_PATH . '/header.php';