Code Duplication    Length = 6-6 lines in 2 locations

add.php 1 location

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

addlisting.php 1 location

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