| @@ 55-59 (lines=5) @@ | ||
| 52 | if (!is_dir($photo_resized_dir)) { |
|
| 53 | mkdir($photo_resized_dir); |
|
| 54 | } |
|
| 55 | if (!is_writable($photo_dir) || !is_readable($photo_dir)) { |
|
| 56 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 57 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_dir . "</b></font><br><br>\n"; |
|
| 58 | echo '</fieldset><br>'; |
|
| 59 | } |
|
| 60 | ||
| 61 | if (!is_writable($photo_thumb_dir) || !is_readable($photo_thumb_dir)) { |
|
| 62 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| @@ 61-65 (lines=5) @@ | ||
| 58 | echo '</fieldset><br>'; |
|
| 59 | } |
|
| 60 | ||
| 61 | if (!is_writable($photo_thumb_dir) || !is_readable($photo_thumb_dir)) { |
|
| 62 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 63 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_thumb_dir . "</b></font><br><br>\n"; |
|
| 64 | echo '</fieldset><br>'; |
|
| 65 | } |
|
| 66 | ||
| 67 | if (!is_writable($photo_resized_dir) || !is_readable($photo_resized_dir)) { |
|
| 68 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| @@ 67-71 (lines=5) @@ | ||
| 64 | echo '</fieldset><br>'; |
|
| 65 | } |
|
| 66 | ||
| 67 | if (!is_writable($photo_resized_dir) || !is_readable($photo_resized_dir)) { |
|
| 68 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 69 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_resized_dir . "</b></font><br><br>\n"; |
|
| 70 | echo '</fieldset><br>'; |
|
| 71 | } |
|
| 72 | ||
| 73 | $result = $xoopsDB->query('SELECT lid, cid, title, status, expire, type, desctext, tel, price, typeprice, typeusure, date, email, submitter, town, country, contactby, premium, photo, usid FROM ' |
|
| 74 | . $xoopsDB->prefix('adslight_listing') |
|
| @@ 52-56 (lines=5) @@ | ||
| 49 | if (!is_dir($photo_resized_dir)) { |
|
| 50 | mkdir($photo_resized_dir); |
|
| 51 | } |
|
| 52 | if (!is_writable($photo_dir) || !is_readable($photo_dir)) { |
|
| 53 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 54 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_dir . '</b></font><br><br>'; |
|
| 55 | echo '</fieldset><br>'; |
|
| 56 | } |
|
| 57 | ||
| 58 | if (!is_writable($photo_thumb_dir) || !is_readable($photo_thumb_dir)) { |
|
| 59 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| @@ 58-62 (lines=5) @@ | ||
| 55 | echo '</fieldset><br>'; |
|
| 56 | } |
|
| 57 | ||
| 58 | if (!is_writable($photo_thumb_dir) || !is_readable($photo_thumb_dir)) { |
|
| 59 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 60 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_thumb_dir . '</b></font><br><br>'; |
|
| 61 | echo '</fieldset><br>'; |
|
| 62 | } |
|
| 63 | ||
| 64 | if (!is_writable($photo_resized_dir) || !is_readable($photo_resized_dir)) { |
|
| 65 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| @@ 64-68 (lines=5) @@ | ||
| 61 | echo '</fieldset><br>'; |
|
| 62 | } |
|
| 63 | ||
| 64 | if (!is_writable($photo_resized_dir) || !is_readable($photo_resized_dir)) { |
|
| 65 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 66 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_resized_dir . '</b></font><br><br>'; |
|
| 67 | echo '</fieldset><br>'; |
|
| 68 | } |
|
| 69 | ||
| 70 | $result = $xoopsDB->query('SELECT lid, cid, title, status, expire, type, desctext, tel, price, typeprice, typeusure, date, email, submitter, town, country, contactby, premium, photo, usid FROM ' |
|
| 71 | . $xoopsDB->prefix('adslight_listing') |
|
| @@ 52-56 (lines=5) @@ | ||
| 49 | if (!is_dir($photo_resized_dir)) { |
|
| 50 | mkdir($photo_resized_dir); |
|
| 51 | } |
|
| 52 | if (!is_writable($photo_dir) || !is_readable($photo_dir)) { |
|
| 53 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 54 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_dir . "</b></font><br><br>\n"; |
|
| 55 | echo '</fieldset><br>'; |
|
| 56 | } |
|
| 57 | ||
| 58 | if (!is_writable($photo_thumb_dir) || !is_readable($photo_thumb_dir)) { |
|
| 59 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| @@ 58-62 (lines=5) @@ | ||
| 55 | echo '</fieldset><br>'; |
|
| 56 | } |
|
| 57 | ||
| 58 | if (!is_writable($photo_thumb_dir) || !is_readable($photo_thumb_dir)) { |
|
| 59 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 60 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_thumb_dir . "</b></font><br><br>\n"; |
|
| 61 | echo '</fieldset><br>'; |
|
| 62 | } |
|
| 63 | ||
| 64 | if (!is_writable($photo_resized_dir) || !is_readable($photo_resized_dir)) { |
|
| 65 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| @@ 64-68 (lines=5) @@ | ||
| 61 | echo '</fieldset><br>'; |
|
| 62 | } |
|
| 63 | ||
| 64 | if (!is_writable($photo_resized_dir) || !is_readable($photo_resized_dir)) { |
|
| 65 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_ADSLIGHT_CHECKER . '</legend><br>'; |
|
| 66 | echo "<font color='#FF0000'><b>" . _AM_ADSLIGHT_DIRPERMS . '' . $photo_resized_dir . "</b></font><br><br>\n"; |
|
| 67 | echo '</fieldset><br>'; |
|
| 68 | } |
|
| 69 | ||
| 70 | $result = $xoopsDB->query('SELECT lid, cid, title, status, expire, type, desctext, tel, price, typeprice, typeusure, date, email, submitter, town, country, contactby, premium, photo, usid FROM ' |
|
| 71 | . $xoopsDB->prefix('adslight_listing') |
|