Anorexia, pregnancy and life
#PopularDiets #Diets #Pregnancy #QuitSmoking
Week 18
/* Plugin Name: Duplicate Posts Remover Plugin URI: http://www.optimum7.com/?utm_source=DuplicatePostPlugin Description: This plugin eliminates the selected-duplicated posts and pages from your blog. Version: 3.2.0 Author: Optimum7 Author URI: http://www.optimum7.com/?utm_source=DuplicatePostPlugin Copyright 2011 Optimum7 Inc (email : optimum7@optimum7.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ define('OPT7_PDD_PLUGINPATH', (DIRECTORY_SEPARATOR != '/') ? str_replace(DIRECTORY_SEPARATOR, '/', dirname(__FILE__)) : dirname(__FILE__)); define('OPT7_PDD_PLUGINNAME', 'Duplicate Posts Remover'); define('OPT7_PDD_UTM_SOURCE_CODE', 'DuplicatePostPlugin'); define('OPT7_PDD_PLUGINSUPPORT_PATH', 'http://www.optimum7.com/internet-marketing/content/duplicate-content-googles-penalty-and-a-wordpress-solution.html?utm_source='.OPT7_PDD_UTM_SOURCE_CODE); define('OPT7_PDD_RSS_LINKS',10); define('OPT7_PDD_RSS_URL','http://www.optimum7.com/internet-marketing/feed'); _opt7_duplicate_posts_remover::bootstrap(); /********************************************************************************************************************/ class _opt7_duplicate_posts_remover{ function bootstrap(){ $file = OPT7_PDD_PLUGINPATH . '/' . basename(__FILE__); add_action('admin_menu', array('_opt7_duplicate_posts_remover','add_admin_options')); add_action( 'admin_enqueue_scripts', array('_opt7_duplicate_posts_remover','my_admin_enqueue_scripts')); add_action('wp_ajax_counters_action',array('_opt7_duplicate_posts_remover','setCounters_action_callback')); add_action('wp_ajax_my_action',array('_opt7_duplicate_posts_remover','getData_action_callback')); add_action('wp_ajax_filters_action',array('_opt7_duplicate_posts_remover','getFilters_action_callback')); add_action('wp_ajax_trashfilters_action',array('_opt7_duplicate_posts_remover','getTrashFilters_action_callback')); add_action('wp_ajax_deletePost_action',array('_opt7_duplicate_posts_remover','deletePost_action_callback')); add_action('wp_ajax_restorePost_action',array('_opt7_duplicate_posts_remover','restorePost_action_callback')); } function add_admin_options(){ add_menu_page ('_opt7_duplicate_posts_remover', 'Duplicate Posts', 8, '_opt7_duplicate_posts_remover', array('_opt7_duplicate_posts_remover','_opt7_duplicate_posts_remover_menu'), get_bloginfo('siteurl').'/wp-content/plugins/duplicate-posts-remover/images/icon.gif'); } function _opt7_duplicate_posts_remover_menu(){ require(OPT7_PDD_PLUGINPATH . '/admin/opt7-duplicate-posts-remover-settings.php'); } function my_admin_enqueue_scripts() { if ($_GET['page']=="_opt7_duplicate_posts_remover") wp_enqueue_script('pluginscript', plugins_url('/js/duplicate-post-remover.js', __FILE__), array('jquery')); } //Ajax Calls function setCounters_action_callback() { $limit = 10000; global $wpdb; $args = array('numberposts' => $limit,'post_type' => 'post','post_status' => 'publish'); $all_posts = sizeof(get_posts($args)); $args = array('numberposts' => $limit,'post_type' => 'post','post_status' => 'trash'); $posts_trash = sizeof(get_posts($args)); $args = array('numberposts' => $limit,'post_type' => 'page','post_status' => 'publish'); $all_pages = sizeof(get_posts($args)); $args = array('numberposts' => $limit,'post_type' => 'page','post_status' => 'trash'); $pages_trash = sizeof(get_posts($args)); $query = "SELECT wp_posts.* from wp_posts inner join( select post_title, MIN(id) as min_id from wp_posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = wp_posts.post_title and good_rows.min_id <> wp_posts.id where 1=1 and wp_posts.post_type ='post' and wp_posts.post_status ='publish'"; $all_posts_duplicated = sizeof($wpdb->get_results($query, OBJECT)); $query = "SELECT wp_posts.* from wp_posts inner join( select post_title, MIN(id) as min_id from wp_posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = wp_posts.post_title and good_rows.min_id <> wp_posts.id where 1=1 and wp_posts.post_type ='page' and wp_posts.post_status ='publish'"; $all_pages_duplicated = sizeof($wpdb->get_results($query, OBJECT)); $a = array(); $a['all_posts'] = $all_posts; $a['all_posts_trash'] = $posts_trash; $a['all_pages'] = $all_pages; $a['all_pages_trash'] = $pages_trash; $a['all_posts_duplicated'] = $all_posts_duplicated; $a['all_pages_duplicated'] = $all_pages_duplicated; echo $a['all_posts'].','.$a['all_posts_trash'].','.$a['all_pages'].','.$a['all_pages_trash'].','.$a['all_posts_duplicated'].','.$a['all_pages_duplicated'].','; } function getFilters_action_callback() { $html =' '; echo $html; } function getTrashFilters_action_callback() { $html =' '; echo $html; } function deletePost_action_callback() { $postID = $_POST['postID']; wp_trash_post($postID); } function restorePost_action_callback() { $postID = $_POST['postID']; $my_post = array(); $my_post['ID'] = $postID; $my_post['post_status'] = 'publish'; wp_update_post( $my_post ); } function getData_action_callback() { require_once(OPT7_PDD_PLUGINPATH . '/classes/opt7-duplicate-posts-remover-pagination.class.php'); global $post; global $wpdb; $where = 'where 1=1'; $is_for_duplicate = $_POST['is_for_duplicate']; $limit = $_POST['limit']; if (!$limit) $limit=25; $curr_page = $_POST['page']; if (!$curr_page) $curr_page=1; $post_search = $_POST['post_search']; if ($post_search) $where .=" and $wpdb->posts.post_title like '%".$post_search."%'"; $post_type = $_POST['post_type']; if (!$post_type) $post_type='post'; if ($post_type) $where .=" and $wpdb->posts.post_type ='".$post_type."'"; $post_status = $_POST['post_status']; if (!$post_status) $post_status='publish'; if ($post_status) $where .=" and $wpdb->posts.post_status ='".$post_status."'"; if ($is_for_duplicate){ $query = "SELECT $wpdb->posts.* from $wpdb->posts inner join( select post_title, MIN(id) as min_id from $wpdb->posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = $wpdb->posts.post_title and good_rows.min_id <> $wpdb->posts.id ".$where; } else{ $query ="SELECT $wpdb->posts.* FROM $wpdb->posts ".$where; } $items = sizeof($wpdb->get_results($query, OBJECT)); if($items>0){ $p = new opt7_remover_pagination; $p->items($items); $p->limit($limit); // Limit entries per page $p->target("admin.php?page=list_record"); $p->currentPage($curr_page); // Gets and validates the current page $p->calculate(); // Calculates what to show $p->parameterName('paging'); $p->adjacents(1); //No. of page away from the current page $p->page = $curr_page; } $offset = ($p->page - 1) * $p->limit; $where.=" ORDER BY post_modified DESC LIMIT ".$offset.','.$limit; if ($is_for_duplicate){ $query = "SELECT $wpdb->posts.* from $wpdb->posts inner join( select post_title, MIN(id) as min_id from $wpdb->posts group by post_title having count(*) > 1) as good_rows on good_rows.post_title = $wpdb->posts.post_title and good_rows.min_id <> $wpdb->posts.id ".$where; } else{ $query ="SELECT $wpdb->posts.* FROM $wpdb->posts ".$where; } $items = $wpdb->get_results($query, OBJECT); $html = '
Title | Author | Created | Modified | Status | Type | ![]() |
|
---|---|---|---|---|---|---|---|
".$post->post_title." | ".$user_info->user_firstname." " .$user_info->user_lastname." | ".date('m/d/Y', strtotime($post->post_date))." | ".date('m/d/Y', strtotime($post->post_modified))." | ".$post->post_status." |
".$post->post_type." | ".$post->comment_count." |
Yura Podimov
Posted at 07:26h, 23 NovemberWell.. .I did -20 lbs in two months.More here hawght.so#0rvOK6M
G4WMAPl2z6GENA5QJ
Tessa Whaley
Posted at 07:26h, 23 NovemberYour accent is amazing. Hope u get well. I bet I have. Xx
Ivan Grebinov
Posted at 07:26h, 23 NovemberWell.. .I did -35 lbs last 1 month.Open hawght.so#QUEy2Xq
Andriy loseka
Posted at 07:26h, 23 NovemberSeems interesting, but .I did -25 lbs past 1 month.Go to hawght.so#hG5hfkf
Holly Elizabeth
Posted at 07:26h, 23 NovemberThank you.
I think it's important to explain to people, ignorance can be so damaging to people who are vulnerable. The pressures of a misinformed, ignorant society can be so harmful.
mandababble
Posted at 07:26h, 23 NovemberStop explaining yourself to these idiots. The fact that you're able to get pregnant does not mean you don't have an eating disorder. It's very obvious you do have one and that you are struggling with it. There are plenty of women out there with severe eating disorders who can conceive and bring babies to term despite all the complications. You are just an extremely fertile woman but that doesn't mean you aren't sick.
That being said you are beautiful and strong. I mean that truly.
Holly Elizabeth
Posted at 07:26h, 23 NovemberWhen I made this I was just nineteen. Now I'm almost twenty two x
katmonroee
Posted at 07:26h, 23 NovemberIf you don't mind me asking… How old are you?
Holly Elizabeth
Posted at 07:26h, 23 NovemberNot massively. When home I turn the heating right up so I don't have to wear so many layers.
Going out in the winter is horrible though.
Holly Elizabeth
Posted at 07:26h, 23 NovemberQuestioning the validity of someone's eating disorder based on false information is ignorant and can be extremely triggering. To be diagnosed anorexic you don't HAVE to have lost your period. It's one off my things doctors look for but not a defining feature of the disease.
And in fact despite falling pregnant my body was/is unable to support a baby full term because of the damage anorexia has done to it.
Bubblegum Princess
Posted at 07:26h, 23 Novemberhow isnt it stupid
Asuka Langley
Posted at 07:26h, 23 Novemberno it's not.
Bubblegum Princess
Posted at 07:26h, 23 Novemberhow can you be anorexic and pregnant? dont you need to stop getting your period to be diagnosed? thats what my drs have been saying. its so stupid.
Frida Jansson
Posted at 07:26h, 23 NovemberHi, I hope everything works out for you with your baby. I'm also anorexic (recovering) and I really want to have a kid one day. Not now but when I'm a bit older.
Holly Elizabeth
Posted at 07:26h, 23 November@llamasrule4ever22 thank you
i'm at a place now where i' heavier and unable to lose weight, so i guess i'm going to have to see what happens.
Holly Elizabeth
Posted at 07:26h, 23 November@lifeforeternity1 i'm 20
Alice
Posted at 07:26h, 23 Novemberi just watched a few of your body upsate videos and this is the most beautiful i've seen you. you should really try to stop trying to loose weight (if that makes any sense) i know it's easy for me to say because i've never had the disorder, but what more can i say really?
dcarb
Posted at 07:26h, 23 Novemberyou're so lovely hope you are well and baby is doing fine, too. ur so incredibly beautiful that i bet you're gonna have the most beautiful baby ever..
Holly Elizabeth
Posted at 07:26h, 23 November@fleur4ever my facebook's Hollie Beth if you want to add me x
totalH20
Posted at 07:26h, 23 NovemberI hope everything is okay with the baby and Darcy. I hope you are alright too!! I think my town is about the only one left that hasn't got much snow, we had a few cms the other day and it just turned into ice and all day it has been raining!? I wish I had more snow like you do! Wishing you well xxx