GetProperty( "C_SpamPath" ); $uid = $_REQUEST['uid']; $receipient = $_REQUEST['receipient']; $owner = $_REQUEST['owner']; $min = $_REQUEST['min']; $max = $_REQUEST['max']; $action = $_REQUEST['action']; $lang = $_REQUEST['lang']; $mode = $_REQUEST['mode']; /* if(!$spampath) { $spampath = ConcatPath($api->GetProperty( "C_InstallPath" ),'spam/'); } */ $spamdat = parseinifile(ConcatPath($spampath,'spam.dat')); if ( !isset($lang) || !$lang ) { $lang = $spamdat["SpamLang"]; } //Mass actions auth if ( $action >= 10 ) { $account = new MerakAccount(); $account->Open($owner); $mailboxPath = $account->getProperty('u_fullmailboxpath'); //Authorization over hash $spamAuthFile = $mailboxPath.'~spam/spamauth.dat'; if(file_exists($spamAuthFile)){ $spamAuth = file_get_contents($spamAuthFile); if($uid!=$spamAuth){ die("Unauthorized"); } } } echo template( "skins/default/actiontop.tpl", null ); if ( strpos( $id, "." ) === FALSE ) { // quarantined message if ( $action >= 10 ) { PerformMultipleChallengeAction( $receipient, $min, $max, $action, $lang, $uid, $mode, $owner ); } else { PerformChallengeAction( $id, $to, $action, $lang ); } } else { // spam folder message if ( $action >= 10 ) { PerformMultipleChallengeAction( $receipient, $min, $max, $action, $lang, $uid, $mode, $owner ); } else { PerformSpamAction( $id, $to, $from, $action, $lang ); } } echo template( "skins/default/actionbottom.tpl", null ); ?>