Exemple #1
0
 case 'delete_ad':
     // DEPRECATE
     if ($id > 0) {
         adDelete($id);
     }
     $page = 'manage';
     break;
 case 'update_account':
     // 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();
     $U->SetVars($_POST);
     $U->Save();
     $page = $page == '' ? 'account' : $page;
     break;
 case 'update_ad':
     $r = adSave($mode);
     $content .= $r[1];
     $page = 'manage';
     break;
 case 'savesubmission':
 case 'save':
 case $LANG_ADMIN['save']:
 case $LANG12[8]:
     $r = adSave($mode);
     if ($r[0] == 0) {
         $content .= COM_showMessage($r[1], $_CONF_ADVT['pi_name']);