This file contains hidden or 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
/* | |
Plugin Name: Convert WP Database to UTF-8 | |
Plugin URI: http://topher.wpengine.com/ | |
Description: Converts the WordPress database (both tables and columns) to UTF-8 character set. | |
Version: 1.1.0 | |
Author: Topher Hota (@WPEtopher), Yihui Xie | |
Author URI: http://yihui.name | |
*/ | |
/* |
This file contains hidden or 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
#<span class="wpengine-promo"><a href="http://wpengine.com/" target="_blank">(.*)</a></span># => |
This file contains hidden or 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 | |
$log_file = "log.txt"; | |
// if it's not a POST request, just move along | |
if($_SERVER['REQUEST_METHOD'] != "POST") { | |
return(0); | |
} | |
// if you only want specific files like admin-ajax or xmlrpc, uncomment the next 3 lines | |
//if($_SERVER['PHP_SELF'] != "/wp-admin/admin-ajax.php" && $_SERVER['PHP_SELF'] != "/xmlrpc.php") { |
This file contains hidden or 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 /nas/wp/www/tools/wpe.php customer-record-get PARENTSITE 1 | grep account_name | cut -d ' ' -f 15 > ~/sites.txt && while read site; do php /nas/wp/www/tools/wpe.php option-get $site cluster && echo " $site"; done < ~/sites.txt && rm ~/sites.txt |