break; } $display .= COM_siteFooter(1); break; //My ads //My ads case 'my': $display = COM_siteHeader('menu', $LANG_CLASSIFIEDS_1['my_ads'] . ' - ' . $LANG_CLASSIFIEDS_1['plugin_name']); $display .= CLASSIFIEDS_user_menu(); if (COM_isAnonUser()) { $uid = 1; } else { $uid = $_USER['uid']; } // If any message $display .= CLASSIFIEDS_message($_REQUEST['msg']); $display .= CLASSIFIEDS_displayAds($uid, 1); $display .= COM_siteFooter(1); break; //Help //Help case 'h': $display = COM_siteHeader('menu', $LANG_CLASSIFIEDS_1['plugin_name']); $display .= CLASSIFIEDS_user_menu(); $display .= PLG_replaceTags($_CLASSIFIEDS_CONF['help_page']); $display .= COM_siteFooter(1); break; //View ad //View ad case 'v': $display .= CLASSIFIEDS_viewAd($_REQUEST['ad']);
$result = DB_query($sql); $gr_nb = DB_numRows($result); if ($gr_nb == 0) { $display .= '<p>' . $LANG_CLASSIFIEDS_ADMIN['no_group_access'] . '</p><ol>'; } else { if ($gr_nb == 1) { $display .= '<p>' . $gr_nb . ' ' . $LANG_CLASSIFIEDS_ADMIN['group_access'] . '</p><ol>'; } else { $display .= '<p>' . $gr_nb . ' ' . $LANG_CLASSIFIEDS_ADMIN['groups_access'] . '</p><ol>'; } } while ($A = DB_fetchArray($result)) { $display .= '<li>' . $A['grp_name'] . '</li>'; $i++; } $display .= '</ol>'; //Select group to give classifieds.publish right //Check if picture folder is writable if (!file_exists($_CLASSIFIEDS_CONF['path_images']) || !is_writable($_CLASSIFIEDS_CONF['path_images'])) { $display .= CLASSIFIEDS_message('<p>' . $LANG_CLASSIFIEDS_1['image_not_writable'] . '</p><p> >> ' . $_CLASSIFIEDS_CONF['path_images'] . '</p>'); } else { // check jquery plugin if (!in_array('jquery', $_PLUGINS)) { $display .= '<p>' . $LANG_CLASSIFIEDS_1['install_jquery'] . '</p><p> >> <a href="http://geeklog.fr/wiki/plugins:jquery" target="_blank">jQuery plugin</a></p>'; } $display .= CLASSIFIEDS_listAds(); } $display .= COM_endBlock(); } $display .= COM_siteFooter(); echo $display;