b0VIM 8.2­=4c�TSrootfedora/var/www/html/wordpress601/wp-content/plugins/tmy-globalization/admin/class-tmy-g11n-admin.phputf-8 3210#"! Utp"{L|FÈ>9LI…MÎ_8z:²Mì F9!J"YÉ#L"En;ºGõn<<ª ;æ Z! T{ GÏ ?EU:š/ÔDFGP�XÝZ5 � ad {úùõ¿ª§�qmlh52벯—yKGF/.) ö à ¡ œ … „  _ [ G 1 é ä Ñ Ð º ¹ ´ ƒ  k % ã Þ ˜ — r U 2 / . ) ø ô à Û · ¶ ° p k % å Æ Á † E 9 3 2 ±°­¬§ws_Z54.îé£cD?÷±°&%"!ïî¤WVÅ{/ã•”Cëꧦi register_setting( 'tmy-g11n-settings-group', 'g11n_l10n_props_'.$post_type ); foreach ( $all_post_types as $post_type ) { $all_post_types = tmy_g11n_available_post_types(); register_setting( 'tmy-g11n-settings-group', 'g11n_l10n_props_blogdescription' ); register_setting( 'tmy-g11n-settings-group', 'g11n_l10n_props_blogname' ); register_setting( 'tmy-g11n-settings-group', 'g11n_server_trunksize' ); register_setting( 'tmy-g11n-settings-group', 'g11n_server_version' ); register_setting( 'tmy-g11n-settings-group', 'g11n_server_project' ); register_setting( 'tmy-g11n-settings-group', 'g11n_server_token' ); register_setting( 'tmy-g11n-settings-group', 'g11n_server_user' ); register_setting( 'tmy-g11n-settings-group', 'g11n_server_url' ); register_setting( 'tmy-g11n-settings-group', 'g11n_additional_lang' ); register_setting( 'tmy-g11n-settings-group', 'g11n_default_lang' ); public function tmy_plugin_register_settings() { } wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/tmy-g11n-admin.js', array( 'jquery' ), $this->version, false ); */ * class. * between the defined hooks and the functions defined in this * The TMY_G11n_Loader will then create the relationship * * in that particular class. * defined in TMY_G11n_Loader as all of the hooks are defined * An instance of this class should be passed to the run() function * * This function is provided for demonstration purposes only. /** public function enqueue_scripts() { */ * @since 1.0.0 * * Register the JavaScript for the admin area. /** } wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/tmy-g11n-admin.css', array(), $this->version, 'all' ); */ * class. * between the defined hooks and the functions defined in this * The TMY_G11n_Loader will then create the relationship * * in that particular class. * defined in TMY_G11n_Loader as all of the hooks are defined * An instance of this class should be passed to the run() function * * This function is provided for demonstration purposes only. /** public function enqueue_styles() { */ * @since 1.0.0 * * Register the stylesheets for the admin area. /** } $this->translator = $translator; $this->version = $version; $this->plugin_name = $plugin_name; public function __construct( $plugin_name, $version, $translator ) { */ * @param string $version The version of this plugin. * @param string $plugin_name The name of this plugin. * @since 1.0.0 * * Initialize the class and set its properties. /** private $translator; private $version; */ * @var string $version The current version of this plugin. * @access private * @since 1.0.0 * * The version of this plugin. /** private $plugin_name; */ * @var string $plugin_name The ID of this plugin. * @access private * @since 1.0.0 * * The ID of this plugin. /**class TMY_G11n_Admin { */ * @author Yu Shao * @subpackage TMY_G11n/admin * @package TMY_G11n * * enqueue the admin-specific stylesheet and JavaScript. * Defines the plugin name, version, and two examples hooks for how to * * The admin-specific functionality of the plugin./** */ * @subpackage TMY_G11n/admin * @package TMY_G11n * * @since 1.0.0 * * The admin-specific functionality of the plugin./**   ˆ ÷ Þ Ý L ' ïîíÜÛÑЛšhäãßÞÝØÃ‚V(¢�„{7.&%ñ•fØÂÁ¦o!Ô¯~} //global $_ENV; //$g11n_sys_info .= v //global $_ENV; //$g11n_s //global $_ENV; //$g11n_sys_info .= var_export(apache_getenv(),tr //global $_ENV; //$g11n_sys_info .= var_export(apache_getenv(),tru //global $_ENV; //$g11n_sys_info .= var_exp //global $_ENV; //global $_ENV; //$g11n_sys_info .= var_export(apache_getenv(),true) . "\n"; //$g11n_sys_info .= var_export(get_loaded_extensions(),true) . "\n"; //$g11n_sys_info .= phpversion() . "\n"; $g11n_sys_info = "\n***** G11n Plugin Diagnosis *****\n" . date("F d, Y l H:s e") . "\n"; //echo date_default_timezone_get();

If you need further assistance to trouble shoot your site, please review the below diagnostic information to ensure there is no sensitive information included, click copy and email it to yu.shao.gm@gmail.com in email. - Some system options that can impact how the plugin may be functioning

- Default theme
- TMYSoft plugin version
- Base system(phpinfo)
This Diagnosis tool provides advanced system information on how your site is running and collects the following information:

TMY Globalization Diagnosis


?> } /*Collecting System Running Information*/ wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); if ( !current_user_can( 'manage_options' ) ) { public function tmy_support_manager_page() { } } echo '
'; echo '

'; echo ' Click Button To Get Latest Status'; } else { echo "Translation server is not in use, configure the Translation Server(Optional) section in the setup page to start
"; if ((strcmp('', get_option('g11n_server_user','')) === 0) || (strcmp('', get_option('g11n_server_token','')) === 0)) { echo "

Translation Server Status:

"; //echo "
"; //$this->tmy_g11n_get_local_translation_status(); //} // error_log("In tmy_l10n_manager_page sql:" . esc_attr(json_encode($rows))); //if ( WP_TMY_G11N_DEBUG ) { // $wpdb->prefix.'postmeta.meta_key="g11n_tmy_lang" ORDER BY ID'); // $wpdb->prefix.'postmeta.post_id and '. // $wpdb->prefix.'posts.ID='. // $wpdb->prefix.'posts.post_status != "trash" and '. // $wpdb->prefix.'postmeta where post_type="g11n_translation" and '. // $wpdb->prefix.'posts,'. //$rows = $wpdb->get_results( 'SELECT ID, post_title, meta_value, post_modified FROM '. //global $wpdb;
ad5=;džDð¢Fö ª W ÿ � G F Ü Û Ú Æ x 3 Ò … @ Ý � L ª©B Ïš^½hgµ´x0Ú‘x¬Uô�)ÃÂ’=< //$g11n_sys_info .= "*** Themes List: " . var_export($theme_list,true) . "\n"; $theme_list = search_theme_directories(); //$g11n_sys_info .= "WP plugin_basename: " . var_export(plugin_basename(__FILE__),true) . "\n"; //$g11n_sys_info .= "WP plugin_dir_path: " . var_export(plugin_dir_path(__FILE__),true) . "\n"; $g11n_sys_info .= "*** stylesheet dir: " . var_export(get_stylesheet_directory(),true) . "\n"; $g11n_sys_info .= "*** template dir: " . var_export(get_template_directory(),true) . "\n"; $g11n_sys_info .= "*** theme_root: " . var_export(get_theme_root(),true) . "\n"; $g11n_sys_info .= "*** theme_roots: " . var_export(get_theme_roots(),true) . "\n"; } $g11n_sys_info .= "No direcotory in system: " . WP_CONTENT_DIR . "/languages: \n"; } else { $g11n_sys_info .= var_export($home_trans_list,true) . "\n"; $g11n_sys_info .= "Translation in " . WP_CONTENT_DIR . "/languages: \n"; $home_trans_list = scandir(WP_CONTENT_DIR . "/languages"); if (is_dir(WP_CONTENT_DIR . "/languages")){ //$home_trans_list = scandir(get_home_path() . "wp-content/languages"); //$home_trans_list = get_available_languages(get_home_path() . "wp-content/languages"); $g11n_sys_info .= "*** home_path: " . var_export(get_home_path(),true) . "\n"; $g11n_sys_info .= "*** Current Theme: \n" . var_export(wp_get_theme(),true) . "\n"; " meta data entries in system.\n"; $no_g11n_metas[0]->count. " translations, ". $no_g11n_trans[0]->count. " config entries, ". $no_g11n_config[0]->count. $g11n_sys_info .= "*** There are ". 'postmeta where meta_key="g11n_tmy_lang" or meta_key="orig_post_id" or meta_key="translation_push_status"'); $wpdb->prefix. $no_g11n_metas = $wpdb->get_results( 'select count(*) as count from '. 'posts where post_type="g11n_translation"'); $wpdb->prefix. $no_g11n_trans = $wpdb->get_results( 'select count(*) as count from '. 'options where option_name like "g11n%"'); $wpdb->prefix. $no_g11n_config = $wpdb->get_results( 'select count(*) as count from '. global $wpdb; $g11n_sys_info .= "*** G11n Plugin Info: \n" . var_export(get_plugin_data( __FILE__ ),true) . "\n"; $g11n_sys_info .= "*** Wordpress language: " . get_bloginfo('language') . "\n"; $g11n_sys_info .= "*** Wordpress text_direction: " . get_bloginfo('text_direction') . "\n"; $g11n_sys_info .= "*** Wordpress html_type: " . get_bloginfo('html_type') . "\n"; $g11n_sys_info .= "*** Wordpress charset " . get_bloginfo('charset') . "\n"; $g11n_sys_info .= "*** Wordpress url: " . get_bloginfo('url') . "\n"; $g11n_sys_info .= "*** Wordpress wpurl: " . get_bloginfo('wpurl') . "\n"; $g11n_sys_info .= "*** Wordpress description: " . get_bloginfo('description') . "\n"; $g11n_sys_info .= "*** Wordpress name: " . get_bloginfo('name') . "\n"; $g11n_sys_info .= "*** Wordpress version: " . get_bloginfo('version') . "\n"; //$g11n_sys_info .= json_encode(ini_get_all(),true) . "\n"; //$g11n_sys_info .= var_export(ini_get_all(),true) . "\n"; //$g11n_sys_info .= var_export($_ENV,true) . "\n";ad.fG¬«{'Ń{v Ä ¿ � [ + ú Æ ’ ^ % å ¯ x <  Ï £ o n > Ú Ù « s 8 áàØ×Ö}=íì‘�[! Ï^ ó‰7»f—–"!öªcú¾ofe }; return trim(html_entity_decode($entitiesToUtf8(strip_tags($input)))); $plainText = function($input) use ($entitiesToUtf8) { }; return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $input); return preg_replace_callback("/(&#[0-9]+;)/", function($m) { // http://php.net/manual/en/function.html-entity-decode.php#104617 $entitiesToUtf8 = function($input) { $g11n_sys_info .= "*** Local Translations: ". json_encode($testing_local_rows,JSON_UNESCAPED_UNICODE) . "\n"; $wpdb->prefix.'postmeta.meta_key="g11n_tmy_lang"'); $wpdb->prefix.'postmeta.post_id and '. $wpdb->prefix.'posts.ID='. $wpdb->prefix.'postmeta where post_type="g11n_translation" and '. $wpdb->prefix.'posts,'. $testing_local_rows = $wpdb->get_results( 'SELECT ID, post_title,post_id,meta_id,meta_value FROM '. global $wpdb; $g11n_sys_info .= "Extra Message : ". var_export($test_debug_log,true) . "\n"; //$g11n_sys_info .= "Testing Translation Server, Return Payload: ". var_export($test_payload,true) . "\n"; $g11n_sys_info .= "*** Translation Server Status: ". $info_rest_url. "\n"; $test_debug_log = $info_server_reply["server_msg"]; $test_payload = $info_server_reply["payload"]; $info_server_reply = $this->translator->rest_get_translation_server($info_rest_url); get_option('g11n_server_version') . "?detail=true&word=false"; get_option('g11n_server_project') . "/iter/" . $info_rest_url = rtrim(get_option('g11n_server_url'),"/") . "/rest/stats/proj/" . } var_export(get_option($op_row),true) . "\n"; $op_row . ":" . $g11n_sys_info .= "*** Wordpress Options: ". foreach ( $options_array as $op_row ) { array_values(tmy_g11n_available_post_type_options())); $options_array = array_merge($options_array, 'g11n_switcher_post'); 'WP_LANG_DIR', 'g11n_switcher_tagline', 'g11n_site_lang_browser', 'g11n_site_lang_query_string', 'g11n_site_lang_session', 'g11n_site_lang_cookie', 'g11n_l10n_props_blogdescription', 'g11n_l10n_props_blogname', 'g11n_server_version', 'g11n_server_project', //'g11n_server_token', 'g11n_server_user', 'g11n_server_url', 'g11n_additional_lang', $options_array = array ('g11n_default_lang', //$g11n_sys_info .= "Wordpress Options: " . var_export(get_alloptions(),true) . "\n"; //$g11n_sys_info .= "Wordpress Root: " . var_export(get_theme_roots(),true) . "\n"; } $g11n_sys_info .= json_encode($trans_list,true) . "\n"; $g11n_sys_info .= "*** Themes Translation in: " .$locs['theme_root']."/". $name . "\n"; $trans_list = get_available_languages($locs['theme_root'] . "/" . $name); foreach ($theme_list as $name => $locs) { $g11n_sys_info .= "*** Themes List: " . json_encode($theme_list,true) . "\n";ad&únÄ›’�{hc54èŒrjeI/.á p d V D 9  Ç § „ _ < Å µ ’ d [ Z U M L ! å ˜ — – • g ^  ¬ « � € r g @ úá½›•wí½¤nQBÕŪš�Š~vuf^] Ë{%$çÚÒÐÆÅ�üûÊÉ¢ ßœ›BAúù echo json_encode(array("message" => esc_html($response->message), $response = json_decode($this->_tmy_create_sync_translation($post_id, $post_type)); $post_type = sanitize_text_field($_POST['post_type']); $post_id = intval($_POST['id']); } error_log("In tmy_create_sync_translation,id:".intval($_POST['id']).",type:".sanitize_text_field($_POST['post_type'])); if ( WP_TMY_G11N_DEBUG ) { public function tmy_create_sync_translation() { } echo " "; echo tmy_g11n_html_kses_esc($this->_get_tmy_g11n_metabox(intval($_POST['id']), $_POST['post_type'])); public function tmy_get_post_translation_status() { }
?> "click clear button to clear configuration and translations."); $no_g11n_metas[0]->count." meta data entries in system.". $no_g11n_trans[0]->count." translations, ". echo esc_attr("There are ".$no_g11n_config[0]->count." config entries, ".

} } }); return; }); alert('Server Reply: ' + response); jQuery.post(ajaxurl, data, function(response) { }; 'whatever': 8888 'action': 'tmy_create_clear_plugin_data', var data = { jQuery(document).ready(function($) { if (r == true) { var r = confirm("This will clear all configuration and translation, however you could rebuild easily."); function g11ncleardata() { } //alert("Copied The Text"); document.execCommand("Copy"); copyText.select(); var copyText = document.getElementById("g11n_sys_info_box_id"); function g11ncopysysteminfotext() { } } }); return; }); } alert("Error, status = " + jqXHR.status + ", " + "textStatus: " + textStatus + "ErrorThrown: " + errorThrown); error: function(jqXHR, textStatus, errorThrown ) { }, } //window.location.reload(); } alert('Server Reply: ' + response_json.message); } div.innerHTML = response_json.div_status.slice(0, -1) ; var div = document.getElementById('tmy_translation_status_box_div'); if (response_json.div_status !== undefined) { } else { alert('No Server Reply, talk to system admininstrator.');adQM²‰HÂŒI"õ ¼ ‚ K  » Q  Á f ø ¿ ] à p : Õ£W)þ¡Ü´ˆhN8ß§kj(À¡Ÿ•”a`.ܨ׶‹ŠIHA@¨|yqp<ýβ‚�Q />
Enable Translation On } } }); return; }); } alert("Error, status = " + jqXHR.status + ", " + "textStatus: " + textStatus + "ErrorThrown: " + errorThrown); error: function(jqXHR, textStatus, errorThrown ) { }, alert('Server Reply: ' + response); success: function(response) { data: data, url: ajaxurl, type: "POST", $.ajax({ // }); // //div.appendChild(text); // //var text = document.createTextNode(response); // //var div = document.getElementById("g11n_server_project_status"); // console.log("aaa"); // alert('Server Reply: ' + response); // jQuery.post(ajaxurl, data, function(response) { }; 'action_type': type 'proj_ver': document.getElementById("g11n_server_version").value, 'proj_name': document.getElementById("g11n_server_project").value, 'action': 'tmy_create_server_project', var data = { jQuery(document).ready(function($) { if (r == true) { document.getElementById("g11n_server_version").value + " in translation server"); var r = confirm("This will create: " + document.getElementById("g11n_server_project").value + " Version: " + // //console.log(document.getElementById("g11n_server_project").value); //var proj_name = document.getElementById("g11n_server_project").value; function g11ncreateproject(type) { } } rules_box_div.style.display = "none"; example_urls_div.style.display = "none"; if (type === "No") { } rules_box_div.style.display = "block"; example_urls_div.style.display = "block"; if (type === "Yes") { var rules_box_div = document.getElementById('tmy_seo_rules_box'); var example_urls_div = document.getElementById('tmy_seo_example_urls'); function tmy_seo_url_option_changed(type) { } div.innerHTML = "
Saving Changes ...."; var div = document.getElementById('tmy_save_changes_status'); function G11nmyOptionSaveChanges() { } }); return; }); div.innerHTML = response; jQuery.post(ajaxurl, data, function(response) { }; 'secret': 8763 'action': 'tmy_get_project_status', var data = { jQuery(document).ready(function($) { div.innerHTML = "
Connecting to server ...."; var div = document.getElementById('tmy_server_status'); function G11nmyGetServerStatus() { } }); return; }); div.innerHTML = response.slice(0, -1) ; jQuery.post(ajaxurl, data, function(response) { }; 'secret': 8763 'action': 'tmy_get_local_translation_status', var data = { jQuery(document).ready(function($) { var div = document.getElementById('tmy_local_translation_status'); function G11nGetLocalTranslationStatus() {