posts SET post_status='publish' WHERE $where";
$wpdb->query($sql);
foreach($_POST['items'] as $id)
do_action('private_to_published', $id);
break;
case 'private':
$msg=sprintf(__('%d postmails han pasado a ser privados'), count($_POST['items']));
$sql="UPDATE $wpdb->posts SET post_status='private' WHERE $where";
$wpdb->query($sql);
foreach($_POST['items'] as $id)
do_action('published_to_private', $id);
break;
case 'delete':
$msg=sprintf(__('Han sido borrados %d postmails'), count($_POST['items']));
$sql="DELETE from $wpdb->posts WHERE $where";
$wpdb->query($sql);
foreach($_POST['items'] as $id)
do_action('delete_post', $id);
break;
case 'spam':
$msg=sprintf(__('%d postmails han pasado a ser spam'), count($_POST['items']));
$sql="UPDATE $wpdb->post2cat SET category_id='-1' WHERE $where1";
$wpdb->query($sql);
foreach($_POST['items'] as $id){
require('../bm-txt.php');
echo ''.shell_exec('sa-learn --spam ../textfile.txt').'
';
do_action('spam', $id);
}
break;
case 'ham':
$msg=sprintf(__('%d postmails han dejado de ser spam'), count($_POST['items']));
$sql="UPDATE $wpdb->post2cat SET category_id='2' WHERE $where1";
$wpdb->query($sql);
foreach($_POST['items'] as $id){
require('../bm-txt.php');
echo ''.shell_exec('sa-learn --ham ../textfile.txt').'
';
do_action('ham', $id);
}
break;
}
?>
post_title = stripslashes($draft->post_title); if ($draft->post_title == '') $draft->post_title = sprintf(__('Post #%s'), $draft->ID); echo "$draft->post_title"; ++$i; } ?>
post_title = stripslashes($draft->post_title); if ($draft->post_title == '') $draft->post_title = sprintf(__('Post #%s'), $draft->ID); echo "$draft->post_title"; ++$i; } ?>
( / ) (IP: )