This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: CloudFlare URL Replacement | |
Plugin URI: http://maurizio.mavida.com/wordpress-cloudflare-url-replacement/ | |
Description: Super simle replacer for CloudFlare user. | |
License: GPL | |
Version: 0.6 | |
Author: Maurizio Pelizzone | |
Author URI: http://maurizio.mavida.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Apply transient cache and return posts (like get_posts) | |
* | |
* @param array $args query params WP_Query | |
* @param string $transient_name | |
* @param string $transient_expiration Optional defaul 7200 | |
*/ | |
function cache_posts( $args , $transient_name , $transient_expiration = 7200 ){ | |
if ( false === ( $posts = get_transient( $transient_name ) ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Mvd_FormFields | |
* Helper Class to render html form element width WordPress data | |
* NOTE: Designed for use with WordPress | |
* @author Maurizio Pelizzone | |
* @link http://maurizio.mavida.com | |
* @license: GPLv2 or later | |
* @License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( !class_exists( 'RequirePlugins' ) ): | |
class RequirePlugins { | |
private $require_plugins = array(); | |
private $miss_plugins = array(); | |
private $found_plugins = array(); | |
function __construct( $require_plugins = null ) { | |
if (is_array( $require_plugins )) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pear config-set auto_discover 1 | |
pear clear-cache | |
pear update-channels | |
pear remote-list | |
pear upgrade pear | |
pear -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options All -Indexes | |
<files .htaccess> | |
Order allow,deny | |
Deny from all | |
</files> | |
<files wp-config.php> | |
Order allow,deny | |
Deny from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* parent metabox implementation | |
*/ | |
// hook | |
add_action( 'add_meta_boxes', 'CustomMetabox_setup' ); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"monolog/monolog": "1.1.*" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -u[user] -p[password] [dbname]| gzip --best -c > [dbname].sql.gz && (date && echo "[mail subjext]" && uuencode [dbname].sql.gz ) | mail [mail] -s "[mail subjext]" |
OlderNewer