\')}1N{2(\'q#O\').w(\'\')}})}7 z(a,b){2(\'G#\'+a).H(7(){1O(j i=0;i\'+a+\'
| button_refresh_all('buttonCategoryRefreshAll') ?> | ++ | + |
|---|---|---|
| button_refresh('buttonCategoryUnusedRefresh') ?> | ++ + | +
+
+ checkCategory() ?>
+
+ |
+
| button_refresh('buttonTermsUnlinkRefresh') ?> | ++ + | +
+
+ checkTermInTaxonomy(); ?>
+
+ |
+
| button_refresh('buttonTermTaxonomyUnlinkRefresh') ?> | ++ + | +
+
+ checkTaxonomyInTerm() ?>
+
+ |
+
| button_refresh_all('buttonCommentsRefreshAll') ?> | ++ | + |
|---|---|---|
| button_refresh('buttonCommentUnapprovedCommentRefresh') ?> | + ++ + | + +
+
+ checkComments(); ?>
+
+ |
+
| button_refresh('buttonCommentTrashCommentRefresh') ?> | + ++ + | + +
+
+ checkTrash(); ?>
+
+ |
+
| button_refresh('buttonCommentSpamRefresh') ?> | + ++ + | +
+
+ checkSpam(); ?>
+
+ |
+
| + + | +
+
+ findAndReplaceUI() ?>
+
+ |
+
| + | + | + |
|---|---|---|
| button_refresh('buttonDatabaseOptimizeTableRefresh') ?> | + ++ + | +
+
+ checkTables() ?>
+
+ |
+
diff --git a/src/wp-content/plugins/wp-cleanfix/module/module.php b/src/wp-content/plugins/wp-cleanfix/module/module.php new file mode 100644 index 0000000..ba7ed07 --- /dev/null +++ b/src/wp-content/plugins/wp-cleanfix/module/module.php @@ -0,0 +1,30 @@ + + * @copyright Copyright (C) 2010 Saidmade Srl + * + */ + +class WPCLEANFIX_MODULE { + + /** + * Cut a string + * + * @param $s + * @param int $l + * @param string $e + * @return string + */ + function cut_string_at($s, $l = 32, $e = '...') { + if(strlen($s) > (int)$l) { + return( substr($s, 0, $l) . $e); + } + return $s; + } +} + +?> \ No newline at end of file diff --git a/src/wp-content/plugins/wp-cleanfix/module/posts.php b/src/wp-content/plugins/wp-cleanfix/module/posts.php new file mode 100644 index 0000000..17f9c67 --- /dev/null +++ b/src/wp-content/plugins/wp-cleanfix/module/posts.php @@ -0,0 +1,341 @@ + + * @copyright Copyright (C) 2010 Saidmade Srl + */ + + +class WPCLEANFIX_POSTS { + + /** + * Class version + * + * @var string + */ + var $version = "1.0.0"; + + /** + * Verifica se ci sono revisioni per i post + * + * @param string $echo + * @return void + */ + function checkRevisions($mes = null, $echo = true) { + global $wpdb; + + $sql = "SELECT COUNT(*) FROM `$wpdb->posts` WHERE post_type = 'revision'"; + $revisions = $wpdb->get_var( $sql ); + if($echo) { + if(intval($revisions) > 0) : ?> + + + + + + + + + + posts` a LEFT JOIN `$wpdb->term_relationships` b ON (a.ID = b.object_id) LEFT JOIN `$wpdb->postmeta` c ON (a.ID = c.post_id) WHERE a.post_type = 'revision'"; + $mes = $wpdb->query($sql); + $this->checkRevisions( $mes ); + } + + /** + * Verifica se ci sono post nel cestino + * + * @param string $echo + * @return void + */ + function checkTrash($mes = null, $echo = true) { + global $wpdb; + + $sql = "SELECT COUNT(*) FROM `$wpdb->posts` WHERE post_status = 'trash'"; + $trash = $wpdb->get_var( $sql ); + if($echo) { + if(intval($trash) > 0) : ?> + + + + + + + + + + posts` a LEFT JOIN `$wpdb->term_relationships` b ON (a.ID = b.object_id) LEFT JOIN `$wpdb->postmeta` c ON (a.ID = c.post_id) WHERE a.post_status = 'trash'"; + $mes = $wpdb->query($sql); + $this->checkTrash( $mes ); + } + + /** + * Controlla la presenza di Post Meta non utilizzati + * + * @global