0){
$pid=substr($sv,3);
$db=$_POST[$sv];
$aktpost=get_post($pid);
$aktszerzo=$aktpost->post_author;
$szerzok[$aktszerzo]=$aktszerzo;
array_push($postok, array(szerzo=>$aktszerzo,cim=>$aktpost->post_title,permalink=>get_permalink($pid),db=>$db));
}
}
}
$kulcsok=array_keys($szerzok);
for ($cv = 0; $cv < count($kulcsok); $cv++){
$aktszerzo=$kulcsok[$cv];
$user = get_user_by( 'id', $aktszerzo );
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=utf-8" . "\r\n";
$headers .= "From: ".get_option('admin_email') . " (".get_option('blogname')."}\r\n";
$cimzett=$user->user_email;
$targy=__( 'Missing alternate text', 'altchecker' );
$uzenet=sprintf(__( 'Dear %s,', 'altchecker' ),$user->display_name)."
";
$uzenet=$uzenet.__( 'Your following posts contain images without (or possible automatic) alternate text.', 'altchecker' )."
".__( 'Please fill out these fields so that screen reader users can also access this information!', 'altchecker' )."
";
$aktpostok =array();
for ($cv2 = 0; $cv2 < count($postok); $cv2++){
if ($postok[$cv2][szerzo]==$aktszerzo){
$pcim=$postok[$cv2][cim];
$ppermalink=$postok[$cv2][permalink];
$pdb=$postok[$cv2][db];
array_push($aktpostok, array(cim=>$pcim,permalink=>$ppermalink,db=>$pdb));
}
}
for ($cv2=0;$cv2".$aktpostok[$cv2][cim]." (".$aktpostok[$cv2][db].")
";
}
$uzenet =$uzenet."
".__( "This is an automatically generated message. Don't answer this e-mail address!", 'altchecker' )."
".
__( 'Best Regards:', 'altchecker' )."
".get_option('blogname');
$l=mail($cimzett, '=?UTF-8?B?'.base64_encode($targy).'?=', $uzenet, $headers);
if ($l) {
echo sprintf(__( 'Sending e-mail to %s was succesfull!', 'altchecker' ),$user->display_name).'
';
}
else{
echo sprintf(__( 'Sending e-mail to %s failed!', 'altchecker' ),$user->display_name).'
';
}
}
}
else{
//$regkif ='/img.*alt=\"\".*\" \/\>/';
//filtering empty tags
query_posts( $query_string . '&posts_per_page=-1' );
$voltkep=false;
echo "";
}
}
}
?>