$v) $linkAdd .= "&$k=".rawurlencode($v); //BASIC if(@$Raction2==="x4" || @$Raction2==="x5") { $Raction=4; if($Raction2==="x4") $Tbody = ""; elseif(!trim($Tbody)) $Tbody = $lang["SPAM_DEFAULTBODY"]; $Tflag="C,".($flagsw==="IM"?"I,":"").($Tbody?"M=".rawurlencode($Tbody).",":"")."F=$Taddress"; } elseif(isset($Raction2)) $Raction=$Raction2; //ADD & MODIFY if(@$Bsave || @$Badd) { if($Bsave && $no) addsfilter($user,$Raction,$def,$defa,$R1,$Do1,$Do2,$Cnot,$Tstring,$Ccase,$log,$Tflag,$no,!$bwview); if($Badd) $no=addsfilter($user,$Raction,$def,$defa,$R1,$Do1,$Do2,$Cnot,$Tstring,$Ccase,$log,$Tflag,'',!$bwview); } //UP & DOWN If(@$Bup && @$no) $no=supdown($user,$no,1); If(@$Bdown && @$no) $no=supdown($user,$no,0); //DELETE if(@$no && @$Bdel) { $cnt=count($filters); deleterow($user,$no); if($cnt==$no) $no-=1; } $filters=get_sfilter($user,!$bwview); //GET Real $no if(@$no && is_array($filters)) { foreach($filters as $k=>$v){ if($v["key"]==$no){ $no=$k+1; break;} } } @$createdata .= '
'; if(is_array($BW_formvars)) foreach($BW_formvars as $k=>$v) $createdata .= '\r\n"; @$createdata .= ' '; if(is_array($filters) && count($filters)) { reset($filters); foreach($filters as $key=>$val) { $createdata .= ' '; } } else $createdata .= ''; $createdata .= '
   '.$lang["SPAM_FUNCTION"].'  '.$lang["SPAM_STRING"].'
 '; if(@$val['log']) $createdata .= '['.$lang['SPAM_'.$val['log']].'] '.$val["f"]; else @$createdata .= ''.($no==$key+1?'':'').$val["f"].($no==$key+1?'':'').''; @$createdata .= '  '.htmlspecialchars($val["t"]).'
'.$noitems.'

'.($cantshow?'
'.sprintf($lang["MSG_UNSUPPORTEDRULES"],'','').'

':''); //add from View if(@$ra!="") { $addfarr["n"]=$ra; $addfarr["f1"]="H"; $addfarr["f3"]="~"; $addfarr["fd"]=0; $addfarr["t"]=rawurldecode($addstring); $fakey = count($filters); $filters[$fakey]=$addfarr; $no=$fakey+1; } if(@$no && @$filters[($no-1)]["ff"]) { eregi("C,(I,{0,1}){0,1}(M=(.*),){0,1}(F=(.*)){0,1}",$filters[($no-1)]["ff"],$arr); if($arr[4]!='') $flagsw="EM"; if($arr[1]=='I,') $flagsw="IM"; else $flagsw="EM"; if(trim($arr[3])) { $filters[($no-1)]['n'] = "x5"; $ffwdbody = $bwview?rawurldecode($arr[3]):''; } else { $filters[($no-1)]['n'] = "x4"; $ffwdbody = ""; } $ffwdaddress = $arr[5]; } if(@!$ffwdbody) @$ffwdbody=$lang["SPAM_DEFAULTBODY"]; $ii1=0; @$no3=$no; if(@$bwview) { $createdata .= ' '.$lang["SPAM_CONDITION"].' '; do{ @$createdata.='
'; if(@$filters[$no-1]["log"]) { @$createdata.=' '; } @$createdata .= '
'.$lang["SPAM_ITEM"].' :
'.$lang["SPAM_FUNCTION"].' : '.$lang['SPAM_!'].'
'.$lang["SPAM_STRING"].' :
'.$lang["TContentHeader_CaseSensitive"].'
'; $ii1++; @$no++; }while(@$filters[$no-1]["log"]); $no=$no3; @$createdata .= '


'.$lang["SPAM_ACTION"].'
'.$lang["SPAM_ACTION"].' :
'.$lang["TFrameAccounts_MailBoxNameLabel"].' '.$lang["TMenuItem_InstantMessagingPanel"].'
'.$lang["MSG_LOCADDRESS"].' :
'.$lang["TContentMessageForm"].' :
'.(($no && $ra=="")?' ':'').($BW_editenabled?'':'').'
  ').'      
'; } else { $createdata.='
'.$lang["MSG_IFRULEZ"].'
'; do { $createdata.='
'; if($filters[$no-1]["log"]) { $createdata.=' '; } unset($arr); if($filters[($no-1)]["f1"]=="H" && eregi("^([a-z ]+)\:([ ]{0,1})(.*)",$filters[($no-1)]['t'],$arr)) { $eheader=strtolower(trim($arr[1])); switch($eheader){ case "from": $filters[($no-1)]["f1"]="HF"; break; case "to": $filters[($no-1)]["f1"]="HT"; break; case "subject": $filters[($no-1)]["f1"]="HS"; break; } if($filters[($no-1)]["f1"]!="H") $filters[($no-1)]['t']=$arr[3]; } // onchange="chenableit(this);" $createdata.='
'.$lang["SPAM_ITEM"].' :'.($filters[$no-1]["log"]?'':'').'
'.$lang['SPAM_!'].'
'.$lang["SPAM_STRING"].' :
'; $no++; $ii1++; }while($filters[$no-1]["log"]); $no=$no3; $createdata.='


'.$lang["MSG_THENRULEZ"].'
'.$lang['SPAM_ACTION'].' : '.$lang["TFrameAccounts_MailBoxNameLabel"].' '.$lang["TMenuItem_InstantMessagingPanel"].'
'.$lang['MSG_LOCADDRESS'].' :
'.$lang['TContentMessageForm'].' :

'.(($no && $ra=="")?' ':'').'
  ').'   
'; } @$createdata.='
'; ?>