Beispiel #1
0
     // Update the user's account info
     // only valid users allowed
     if ($isAnon) {
         $content .= CLASSIFIEDS_errorMsg($LANG_ADVT['login_required'], 'alert', $LANG_ADVT['access_denied']);
         break;
     }
     USES_classifieds_class_userinfo();
     $U = new adUserInfo();
     $content .= $U->showForm('advt');
     $T->set_var('header', $LANG_ADVT['my_account']);
     $menu_opt = $LANG_ADVT['mnu_account'];
     break;
 case 'detail':
     // Display an ad's detail
     USES_classifieds_detail();
     $content .= adDetail($id);
     $T->set_var('header', $LANG_ADVT['detail']);
     $menu_opt = $LANG_ADVT['mnu_home'];
     if ($id != '') {
         $pageTitle = DB_getItem($_TABLES['ad_ads'], 'subject', "ad_id='{$id}'");
     }
     break;
     /*case 'help':
       // Display the help page.
       $content = showHelp();
       $menu_opt = $LANG_ADVT['mnu_help'];
       $T->set_var('header', $LANG_ADVT['mnu_help']);
       $pageTitle = $LANG_ADVT['mnu_help'];
       break;*/
 /*case 'help':
   // Display the help page.
Beispiel #2
0
     }
     break;
 case 'moderation':
     // Redirect to the moderation page
     echo COM_refresh($_CONF['site_admin_url'] . '/moderation.php');
     exit;
     break;
 case 'userindex':
     // go to the user home page
     echo COM_refresh(CLASSIFIEDS_URL . "/index.php?msg={$msgid}");
     exit;
     break;
 case 'detail':
     // Display an ad's detail
     USES_classifieds_detail();
     $content .= adDetail($ad_id);
     break;
     /*case 'Xadminads':
       // Display the list of ads, either pending or all
       $content .= adList(true);
       break;*/
 /*case 'Xadminads':
   // Display the list of ads, either pending or all
   $content .= adList(true);
   break;*/
 case 'Xadmincats':
 case 'editcat':
     // Display the form to manage categories
     $cat_id = isset($_REQUEST['cat_id']) ? (int) $_REQUEST['cat_id'] : 0;
     //USES_classifieds_categories();
     USES_classifieds_class_category();