@@ 79-84 (lines=6) @@ | ||
76 | $xoopsTpl->assign('adslight_logolink', _ADSLIGHT_LOGOLINK); |
|
77 | ||
78 | // Hack redirection erreur 404 si lid=null |
|
79 | if ($lid == '') { |
|
80 | header('Status: 301 Moved Permanently', false, 301); |
|
81 | // header('Location: '.XOOPS_URL.'/modules/adslight/404.php'); |
|
82 | // exit(); |
|
83 | redirect_header(XOOPS_URL . '/modules/adslight/404.php', 1); |
|
84 | } |
|
85 | ||
86 | $xoopsTpl->assign('adslight_active_bookmark', $GLOBALS['xoopsModuleConfig']['adslight_active_bookmark']); |
|
87 | $xoopsTpl->assign('adslight_style_bookmark', $GLOBALS['xoopsModuleConfig']['adslight_style_bookmark']); |
|
@@ 134-139 (lines=6) @@ | ||
131 | $recordexist = $xoopsDB->getRowsNum($result); |
|
132 | ||
133 | // Hack redirection erreur 404 si recordexist=null |
|
134 | if ($recordexist == '') { |
|
135 | header('Status: 301 Moved Permanently', false, 301); |
|
136 | // header('Location: '.XOOPS_URL.'/modules/adslight/404.php'); |
|
137 | // exit(); |
|
138 | redirect_header(XOOPS_URL . '/modules/adslight/404.php', 1); |
|
139 | } |
|
140 | ||
141 | if ($recordexist) { |
|
142 | list($lid, $cid, $title, $status, $expire, $type, $desctext, $tel, $price, $typeprice, $typeusure, $date, $email, $submitter, $usid, $town, $country, $contactby, $premium, $valid, $photo, $hits, $item_rating, $item_votes, $user_rating, $user_votes, $comments, $cod_img, $pic_lid, $uid_owner, $url) = $xoopsDB->fetchRow($result); |