Zulvera Herbal Hair Loss Shampoo
#Supplement #WeightLoss #Weight #Yoga Zulvera hair loss shampoo has been getting a quite a lot of at...
/* 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." |
#Supplement #WeightLoss #Weight #Yoga Zulvera hair loss shampoo has been getting a quite a lot of at...
#AcidReflux #Haemorrhoids # #Men’sIssues #Migraine Capturing the heart of a Gemini may be quite hard...
Getting acne breakouts ideas that operate perfectly for you could be a laborous and very tough metho...
There are a ton of great acne skin care tips on the online. If you are acquiring challenges with...
These days we seem to be living in the fast-food age and the condition of your skin is often neglected. You still can't beat the old fruit and vegetable diet when it comes to good health and a good complexion. But Everyone wants to have...
If you happen to be looking at methods to go eco-friendly, a single of the largest things is your mode of transport. To help you save the environment, other regions can be improved this kind of as health and the impact to your wallet not...
One would think at first glance, that being a massage therapist is a great way to do wonderful things for people and make a good living. Massages are priced at anywhere from $70 and hour to $100 for an hour. And besides...
What is DHA used for is an increasingly common question as more people become aware of its exceptional health benefits. Here is a brief guide to DHA and the many benefits it can bring you. The two main omega 3 fatty acids, the good polyunsaturated...
Even nevertheless you depend on them day-to-day, odds are you pay minimal awareness to your ft. People expend thousands and thousands of bucks of cosmetic merchandise each 12 months to smooth wrinkles, dissolve cellulite, and eliminate hair. Only a portion of this money is expended...
Chakra stones can be traced all the way back to ancient India. The chakras are believed to relate to the seven big strength facilities of the body where there is important strength that flows as a result of and intersects. When all seven of the...
Crafting a rap song is not as straightforward as you may consider. There are several elements that go into creating a superior sounding rap song. These elements may go unnoticed to the listener, but it is in essence what can make or split a rap...
There seems to be a yoga growth taking place all over the earth as the West has eventually acknowledged the apply and allowed it to become entrenched as a mainstream holistic technique to well being and properly remaining. Thanks to pop icons like Madonna who...
Below is a mixed checklist from lots of resources in which medical employees were being requested to share some useful suggestions that produced their career less complicated: Stethoscope ring indicator: An early and reversible indicator of systemic distress in asthmatics is that the pores and skin improvements...
Loud night breathing is not a joke. It can destroy you. Loud night breathing is a frequent symptom of obstructive rest apnea, a really serious healthcare problem that occurs for the reason that the airway is obstructed for the duration of rest and respiratory entirely...
Of the quite a few branches of medication, gynecology is one particular of the most acknowledged. Gynecologists are acknowledged as the most important individuals who support out girls when they have issues with their reproductive health. Additional than that, even though, gynecologists are medical doctors...
Find Metaphysical Training in the United States and Canada. With the expansion of alternative and healing arts schools, it is only natural that metaphysical training workshops and seminars have too, evolved. Today, individuals can enroll in a number of metaphysical training classes that entail studies...
Cataracts are brought about when the lens of the eye results in being cloudy. The cloudiness is essentially protein that has clumped jointly and fashioned a cloud. Over time it commences to improve and as it does so eyesight starts off to diminish. There are...
In recent years borage seed oil has gained much attention by alternative health practitioners and the medical establishment for its medicinal properties. Borage oils active component, gamma linoleic acid (GLA), has had extensive research done. Studies dating as far back as 1940 have shown GLA...
Let's confront it we could all do with a health and fitness increase from time to time and a single way is to make sure our bodies get a aiding hand from getting a health supplement. But, does your a single contain the herb turmeric?If...
#EarsHearing #Ears #Eczema #EnvironmentalIssues The major usage of Albuterol is to open the breathing passages in the lungs to make breathing easier. It is primarily used to...
In the 20 a long time from 1979-1991 the medical center expenses for small children and youth have risen from 35 million in 1979-1981 to 127 million from 1997-1991 (Avoiding childhood Weight problems: Wellbeing in the Stability, 2005, Institute of Medication). The quantity of obese...
Teeth Whitening is 1 of the most well-liked cosmetic dentistry processes and is adopted by numerous cosmetic dentists and most well-liked by numerous people. Having said that you want to know the execs and negatives of this dental cure. This is not a 1-time process...
With the kinds of lifestyles and meal plans that most persons comply with currently, there is an alarming increase in obese and weight problems instances. It is shocking that even while several persons are aware that the expenditures of remaining obese or obese are so...
If you are a lady striving to get pregnant, you may well discover that it is not easy. It is extremely rare for couples to conceive on the very first try. As a issue of fact, even if it would seem that every thing is...
Even though numerous female dread that annually mammogram, we have all heard usually plenty of that early detection of breast cancer will save life...
I truly think that anyone needs to be and truly feel healthy. I am also very certain that everyone needs to search great, and not only ladies. What is actually the most significant organ in your system? It really is your pores and skin!...
A sebaceous cyst is a shut sac underneath the pores and skin loaded with a cheese-like or oily product. Sebaceous cysts are frequently noticed on the scalp, labia, scrotum, upper body, and again, but can be discovered anyplace on the human body. A foul odor...
When folks say "sleeplessness," the mental picture is commonly that of the pink-eyed guy hoping his toughest to get some slumber. With fluffy sheep prancing in entrance of him and the numbers ticking off to the 1000's, we are so made use of to the...