Changeset 2439215
- Timestamp:
- 12/14/2020 04:47:51 PM (5 years ago)
- Location:
- wp-proxy
- Files:
-
- 25 edited
- 6 copied
-
tags/1.3.9 (copied) (copied from wp-proxy/trunk)
-
tags/1.3.9/LICENSE (copied) (copied from wp-proxy/trunk/LICENSE)
-
tags/1.3.9/class-wp-proxy.php (copied) (copied from wp-proxy/trunk/class-wp-proxy.php) (9 diffs)
-
tags/1.3.9/languages (copied) (copied from wp-proxy/trunk/languages)
-
tags/1.3.9/languages/wp-proxy-de_DE.mo (modified) (previous)
-
tags/1.3.9/languages/wp-proxy-de_DE.po (modified) (3 diffs)
-
tags/1.3.9/languages/wp-proxy-ja_JP.mo (modified) (previous)
-
tags/1.3.9/languages/wp-proxy-ja_JP.po (modified) (3 diffs)
-
tags/1.3.9/languages/wp-proxy-ru_RU.mo (modified) (previous)
-
tags/1.3.9/languages/wp-proxy-ru_RU.po (modified) (3 diffs)
-
tags/1.3.9/languages/wp-proxy-zh_CN.mo (modified) (previous)
-
tags/1.3.9/languages/wp-proxy-zh_CN.po (modified) (3 diffs)
-
tags/1.3.9/languages/wp-proxy-zh_TW.mo (modified) (previous)
-
tags/1.3.9/languages/wp-proxy-zh_TW.po (modified) (3 diffs)
-
tags/1.3.9/languages/wp-proxy.pot (modified) (3 diffs)
-
tags/1.3.9/readme.txt (copied) (copied from wp-proxy/trunk/readme.txt) (2 diffs)
-
tags/1.3.9/wp-proxy.php (copied) (copied from wp-proxy/trunk/wp-proxy.php) (1 diff)
-
trunk/class-wp-proxy.php (modified) (9 diffs)
-
trunk/languages/wp-proxy-de_DE.mo (modified) (previous)
-
trunk/languages/wp-proxy-de_DE.po (modified) (3 diffs)
-
trunk/languages/wp-proxy-ja_JP.mo (modified) (previous)
-
trunk/languages/wp-proxy-ja_JP.po (modified) (3 diffs)
-
trunk/languages/wp-proxy-ru_RU.mo (modified) (previous)
-
trunk/languages/wp-proxy-ru_RU.po (modified) (3 diffs)
-
trunk/languages/wp-proxy-zh_CN.mo (modified) (previous)
-
trunk/languages/wp-proxy-zh_CN.po (modified) (3 diffs)
-
trunk/languages/wp-proxy-zh_TW.mo (modified) (previous)
-
trunk/languages/wp-proxy-zh_TW.po (modified) (3 diffs)
-
trunk/languages/wp-proxy.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-proxy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-proxy/tags/1.3.9/class-wp-proxy.php
r2308925 r2439215 35 35 $options = get_option( 'wp_proxy_options' ); 36 36 if ( $options ) { 37 $this->options = $options;37 $this->options = wp_parse_args( $options, $this->defualt_options() ); 38 38 if ( $options['enable'] ) { 39 39 add_filter( 'http_request_args', array( $this, 'http_request_args' ), 100, 2 ); … … 75 75 76 76 /** 77 * Magic call static 78 * 79 * @since 1.3.9 80 */ 81 public static function __callStatic ( $name, $args ) { 82 return call_user_func_array( array( new WP_Proxy, $name ), $args ); 83 } 84 85 /** 77 86 * I18n 78 87 * … … 92 101 */ 93 102 protected function defualt_options() { 94 $options = array(); 95 $options['domains'] = '*.wordpress.org'; 96 $options['proxy_host'] = '127.0.0.1'; 97 $options['proxy_port'] = '1080'; 98 $options['username'] = ''; 99 $options['password'] = ''; 100 $options['type'] = ''; 101 $options['enable'] = false; 103 $options = array(); 104 $options['domains'] = '*.wordpress.org'; 105 $options['proxy_host'] = '127.0.0.1'; 106 $options['proxy_port'] = '1080'; 107 $options['username'] = ''; 108 $options['password'] = ''; 109 $options['type'] = ''; 110 $options['global_mode'] = false; 111 $options['enable'] = false; 102 112 return $options; 103 113 } … … 137 147 $wp_proxy_options['domains'] = str_replace( ' ', "\n", sanitize_text_field( wp_unslash( $_POST['domains'] ) ) ); 138 148 } 149 if ( isset( $_POST['global_mode'] ) ) { 150 if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['global_mode'] ) ) ) { 151 $wp_proxy_options['global_mode'] = true; 152 } else { 153 $wp_proxy_options['global_mode'] = false; 154 } 155 } 139 156 if ( isset( $_POST['enable'] ) ) { 140 157 if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['enable'] ) ) ) { … … 159 176 if ( isset( $_GET['wp_proxy'] ) && check_admin_referer( 'wp-proxy-quick-set', 'wp-proxy-quick-set' ) ) { 160 177 $wp_proxy_options = $this->options; 161 if ( 'enable' === sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) ) ) { 178 $val = sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) ); 179 if ( 'enable' === $val ) { 162 180 $wp_proxy_options['enable'] = true; 163 } else { 181 } else if( 'disable' === $val ) { 182 $wp_proxy_options['enable'] = false; 183 } else if( 'enable_in_global_mode' === $val ) { 184 $wp_proxy_options['global_mode'] = true; 185 $wp_proxy_options['enable'] = true; 186 } else if( 'disable_in_global_mode' === $val ) { 187 $wp_proxy_options['global_mode'] = false; 164 188 $wp_proxy_options['enable'] = false; 165 189 } … … 236 260 ); 237 261 } 262 if ( $options['global_mode'] ) { 263 $wp_admin_bar->add_node( 264 array( 265 'id' => 'disable_wp_proxy_gloabl_mode', 266 'parent' => 'wp_proxy', 267 'title' => __( 'Disabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ), 268 'href' => wp_nonce_url( add_query_arg( 'wp_proxy', 'disable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ), 269 ) 270 ); 271 } else { 272 $wp_admin_bar->add_node( 273 array( 274 'id' => 'enable_wp_proxy_global_mode', 275 'parent' => 'wp_proxy', 276 'title' => __( 'Enabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ), 277 'href' => wp_nonce_url( add_query_arg( 'wp_proxy', 'enable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ), 278 ) 279 ); 280 } 238 281 } 239 282 } … … 283 326 */ 284 327 public function send_through_proxy( $null, $url, $check, $home ) { 328 if ( $this->options['global_mode'] ) { 329 return true; 330 } 285 331 $rules = explode( "\n", $this->options['domains'] ); 286 332 $host = false; … … 358 404 esc_html__( 'Proxy Domains', 'wp-proxy' ), 359 405 array( $this, 'proxy_domains_callback' ), 406 'wp_proxy', 407 'wp_proxy_config' 408 ); 409 add_settings_field( 410 'global_mode', 411 esc_html__( 'Global mode', 'wp-proxy' ), 412 array( $this, 'proxy_global_mode_callback' ), 360 413 'wp_proxy', 361 414 'wp_proxy_config' … … 461 514 public function proxy_domains_callback() { 462 515 ?> 463 <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off"><?php echo esc_attr( $this->options['domains'] ); ?></textarea> 516 <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off" <?php echo $this->options['global_mode'] ? 'disabled="disabled"' : '' ?>><?php echo esc_attr( $this->options['domains'] ); ?></textarea> 517 <?php 518 } 519 520 /** 521 * Show proxy global_mode field 522 * 523 * @since 1.3.9 524 */ 525 public function proxy_global_mode_callback() { 526 ?> 527 <select name="global_mode" id="global_mode"> 528 <?php if ( $this->options['global_mode'] ) { ?> 529 <option value="yes" selected="selected"><?php esc_html_e( 'Yes' ); ?></option> 530 <option value="no"><?php esc_html_e( 'No' ); ?></option> 531 <?php } else { ?> 532 <option value="yes"><?php esc_html_e( 'Yes' ); ?></option> 533 <option value="no" selected="selected"><?php esc_html_e( 'No' ); ?></option> 534 <?php } ?> 535 </select> 464 536 <?php 465 537 } -
wp-proxy/tags/1.3.9/languages/wp-proxy-de_DE.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:51+0000\n"12 "PO-Revision-Date: 2020-12-14 16:17+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "Proxy-Einstellungen" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "Falsche Portnummer" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr ""47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr ""51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "Benutzername"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "Passwort"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr ""63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr ""67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr ""71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr ""75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr ""79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr ""83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "Ja"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "" -
wp-proxy/tags/1.3.9/languages/wp-proxy-ja_JP.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:53+0000\n"12 "PO-Revision-Date: 2020-12-14 16:15+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "グローバルモード" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "プロキシ設定" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "間違ったポート番号" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr "プロキシホスト"47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr "プロキシポート"51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "ユーザー名"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "パスワード"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr ""63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr "有効にする"67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr ""71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr ""75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr ""79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr ""83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "はい"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "いや" -
wp-proxy/tags/1.3.9/languages/wp-proxy-ru_RU.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-21T11:15:37+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:54+0000\n"12 "PO-Revision-Date: 2020-12-14 16:13+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 19 19 "X-Loco-Version: 2.3.1; wp-5.3.2" 20 20 21 # . Plugin Name of the plugin22 msgid " WordPress Proxy"23 msgstr " WordPress Proxy"21 #: class-wp-proxy.php:381 22 msgid "Global mode" 23 msgstr "" 24 24 25 #. Plugin URI of the plugin 25 #. Author URI of the plugin 26 msgid "https://xn--vkuk.org/blog/" 27 msgstr "" 28 29 #. URI of the plugin 26 30 msgid "https://xn--vkuk.org/blog/wp-proxy" 27 31 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 31 35 msgstr "" 32 36 37 #: class-wp-proxy.php:374 38 msgid "Proxy Domains" 39 msgstr "" 40 33 41 #. Author of the plugin 34 42 msgid "sleepm" 35 43 msgstr "sleepm" 36 44 37 #: class-wp-proxy.php:106 class-wp-proxy.php:234 45 #. Name of the plugin 46 #: class-wp-proxy.php:117 class-wp-proxy.php:404 38 47 msgid "WP Proxy" 39 48 msgstr "Настройки прокси" 40 49 41 #: class-wp-proxy.php:1 1550 #: class-wp-proxy.php:127 42 51 msgid "Wrong port" 43 52 msgstr "Неверный номер порта" 44 45 #: class-wp-proxy.php:18346 msgid "Proxy Host"47 msgstr "Прокси хост"48 49 #: class-wp-proxy.php:19050 msgid "Proxy Port"51 msgstr "Порт"52 53 #: class-wp-proxy.php:19754 msgid "Proxy Username"55 msgstr "Имя пользователя"56 57 #: class-wp-proxy.php:20458 msgid "Proxy Password"59 msgstr "Пароль"60 61 #: class-wp-proxy.php:21862 msgid "Enable"63 msgstr "Включить"64 65 #: class-wp-proxy.php:25666 msgid "proxy host"67 msgstr ""68 69 #: class-wp-proxy.php:26770 msgid "proxy port"71 msgstr ""72 73 #: class-wp-proxy.php:27874 msgid "username"75 msgstr ""76 77 #: class-wp-proxy.php:28978 msgid "password"79 msgstr ""80 81 #: class-wp-proxy.php:313 class-wp-proxy.php:31682 msgid "yes"83 msgstr "да"84 85 #: class-wp-proxy.php:314 class-wp-proxy.php:31786 msgid "no"87 msgstr "" -
wp-proxy/tags/1.3.9/languages/wp-proxy-zh_CN.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:42+0000\n"12 "PO-Revision-Date: 2020-12-14 16:11+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "全局模式" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "管理 WordPress 代理" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "要代理的域名" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "代理设置" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "端口号错误" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr "地址"47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr "端口"51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "用户名"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "密码"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr "要代理的域名"63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr "是否启用"67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr "代理地址"71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr "代理端口"75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr "无需验证可不填"79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr "无需验证可不填"83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "是"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "否" -
wp-proxy/tags/1.3.9/languages/wp-proxy-zh_TW.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:42+0000\n"12 "PO-Revision-Date: 2020-12-14 16:11+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "全局模式" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "管理 WordPress 代理" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "要代理的域名" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "代理設置" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "端口號錯誤" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr "地址"47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr "端口"51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "用戶名"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "密碼"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr "要代理的域名"63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr "是否啟用"67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr "代理地址"71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr "代理端口"75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr "無需驗證可不填"79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr "無需驗證可不填"83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "是"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "否" -
wp-proxy/tags/1.3.9/languages/wp-proxy.pot
r2217947 r2439215 1 1 # Copyright (C) 2019 sleepm 2 2 # This file is distributed under the same license as the WordPress Proxy plugin. 3 #, fuzzy 3 4 msgid "" 4 5 msgstr "" … … 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 20 19-12-22T03:28:20+00:00\n"13 "POT-Creation-Date: 2020-12-14 15:47+0000\n" 13 14 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.4.0\n"15 "X-Generator: Loco https://localise.biz/\n" 15 16 "X-Domain: wp-proxy\n" 17 "Language: \n" 18 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;" 16 19 17 # . Plugin Name of the plugin18 msgid " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 19 22 msgstr "" 20 23 21 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 22 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 23 30 msgstr "" … … 27 34 msgstr "" 28 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "" 39 29 40 #. Author of the plugin 30 41 msgid "sleepm" 31 42 msgstr "" 32 43 33 # : class-wp-proxy.php:10634 #: class-wp-proxy.php: 23444 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 35 46 msgid "WP Proxy" 36 47 msgstr "" 37 48 38 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 39 50 msgid "Wrong port" 40 51 msgstr "" 41 42 #: class-wp-proxy.php:18343 msgid "Proxy Host"44 msgstr ""45 46 #: class-wp-proxy.php:19047 msgid "Proxy Port"48 msgstr ""49 50 #: class-wp-proxy.php:19751 msgid "Proxy Username"52 msgstr ""53 54 #: class-wp-proxy.php:20455 msgid "Proxy Password"56 msgstr ""57 58 #: class-wp-proxy.php:21159 msgid "Proxy Domains"60 msgstr ""61 62 #: class-wp-proxy.php:21863 msgid "Enable"64 msgstr ""65 66 #: class-wp-proxy.php:25667 msgid "proxy host"68 msgstr ""69 70 #: class-wp-proxy.php:26771 msgid "proxy port"72 msgstr ""73 74 #: class-wp-proxy.php:27875 msgid "username"76 msgstr ""77 78 #: class-wp-proxy.php:28979 msgid "password"80 msgstr ""81 82 #: class-wp-proxy.php:31383 #: class-wp-proxy.php:31684 msgid "yes"85 msgstr ""86 87 #: class-wp-proxy.php:31488 #: class-wp-proxy.php:31789 msgid "no"90 msgstr "" -
wp-proxy/tags/1.3.9/readme.txt
r2308925 r2439215 4 4 Tags: proxy 5 5 Requires at least: 5.0.0 6 Tested up to: 5. 4.17 Stable tag: 1.3. 86 Tested up to: 5.6.0 7 Stable tag: 1.3.9 8 8 Requires PHP: 5.0.0 9 9 License: GPLv2 or later … … 32 32 == Changelog == 33 33 34 = 1.3.9 = 35 add global mode 36 34 37 = 1.3.8 = 35 38 support proxy type: http(default), socks5, socks4, socks4a. ps: if use curl as request transport. -
wp-proxy/tags/1.3.9/wp-proxy.php
r2308925 r2439215 4 4 * Plugin URI: https://xn--vkuk.org/blog/wp-proxy 5 5 * Description: manage proxy for WordPress 6 * Version: 1.3. 86 * Version: 1.3.9 7 7 * Author: sleepm 8 8 * Author URI: https://xn--vkuk.org/blog/ -
wp-proxy/trunk/class-wp-proxy.php
r2308925 r2439215 35 35 $options = get_option( 'wp_proxy_options' ); 36 36 if ( $options ) { 37 $this->options = $options;37 $this->options = wp_parse_args( $options, $this->defualt_options() ); 38 38 if ( $options['enable'] ) { 39 39 add_filter( 'http_request_args', array( $this, 'http_request_args' ), 100, 2 ); … … 75 75 76 76 /** 77 * Magic call static 78 * 79 * @since 1.3.9 80 */ 81 public static function __callStatic ( $name, $args ) { 82 return call_user_func_array( array( new WP_Proxy, $name ), $args ); 83 } 84 85 /** 77 86 * I18n 78 87 * … … 92 101 */ 93 102 protected function defualt_options() { 94 $options = array(); 95 $options['domains'] = '*.wordpress.org'; 96 $options['proxy_host'] = '127.0.0.1'; 97 $options['proxy_port'] = '1080'; 98 $options['username'] = ''; 99 $options['password'] = ''; 100 $options['type'] = ''; 101 $options['enable'] = false; 103 $options = array(); 104 $options['domains'] = '*.wordpress.org'; 105 $options['proxy_host'] = '127.0.0.1'; 106 $options['proxy_port'] = '1080'; 107 $options['username'] = ''; 108 $options['password'] = ''; 109 $options['type'] = ''; 110 $options['global_mode'] = false; 111 $options['enable'] = false; 102 112 return $options; 103 113 } … … 137 147 $wp_proxy_options['domains'] = str_replace( ' ', "\n", sanitize_text_field( wp_unslash( $_POST['domains'] ) ) ); 138 148 } 149 if ( isset( $_POST['global_mode'] ) ) { 150 if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['global_mode'] ) ) ) { 151 $wp_proxy_options['global_mode'] = true; 152 } else { 153 $wp_proxy_options['global_mode'] = false; 154 } 155 } 139 156 if ( isset( $_POST['enable'] ) ) { 140 157 if ( 'yes' === sanitize_text_field( wp_unslash( $_POST['enable'] ) ) ) { … … 159 176 if ( isset( $_GET['wp_proxy'] ) && check_admin_referer( 'wp-proxy-quick-set', 'wp-proxy-quick-set' ) ) { 160 177 $wp_proxy_options = $this->options; 161 if ( 'enable' === sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) ) ) { 178 $val = sanitize_text_field( wp_unslash( $_GET['wp_proxy'] ) ); 179 if ( 'enable' === $val ) { 162 180 $wp_proxy_options['enable'] = true; 163 } else { 181 } else if( 'disable' === $val ) { 182 $wp_proxy_options['enable'] = false; 183 } else if( 'enable_in_global_mode' === $val ) { 184 $wp_proxy_options['global_mode'] = true; 185 $wp_proxy_options['enable'] = true; 186 } else if( 'disable_in_global_mode' === $val ) { 187 $wp_proxy_options['global_mode'] = false; 164 188 $wp_proxy_options['enable'] = false; 165 189 } … … 236 260 ); 237 261 } 262 if ( $options['global_mode'] ) { 263 $wp_admin_bar->add_node( 264 array( 265 'id' => 'disable_wp_proxy_gloabl_mode', 266 'parent' => 'wp_proxy', 267 'title' => __( 'Disabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ), 268 'href' => wp_nonce_url( add_query_arg( 'wp_proxy', 'disable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ), 269 ) 270 ); 271 } else { 272 $wp_admin_bar->add_node( 273 array( 274 'id' => 'enable_wp_proxy_global_mode', 275 'parent' => 'wp_proxy', 276 'title' => __( 'Enabled' ) . ' ' . esc_html__( 'Global mode', 'wp-proxy' ), 277 'href' => wp_nonce_url( add_query_arg( 'wp_proxy', 'enable_in_global_mode' ), 'wp-proxy-quick-set', 'wp-proxy-quick-set' ), 278 ) 279 ); 280 } 238 281 } 239 282 } … … 283 326 */ 284 327 public function send_through_proxy( $null, $url, $check, $home ) { 328 if ( $this->options['global_mode'] ) { 329 return true; 330 } 285 331 $rules = explode( "\n", $this->options['domains'] ); 286 332 $host = false; … … 358 404 esc_html__( 'Proxy Domains', 'wp-proxy' ), 359 405 array( $this, 'proxy_domains_callback' ), 406 'wp_proxy', 407 'wp_proxy_config' 408 ); 409 add_settings_field( 410 'global_mode', 411 esc_html__( 'Global mode', 'wp-proxy' ), 412 array( $this, 'proxy_global_mode_callback' ), 360 413 'wp_proxy', 361 414 'wp_proxy_config' … … 461 514 public function proxy_domains_callback() { 462 515 ?> 463 <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off"><?php echo esc_attr( $this->options['domains'] ); ?></textarea> 516 <textarea name="domains" id="domains" cols="40" rows="5" autocomplete="off" <?php echo $this->options['global_mode'] ? 'disabled="disabled"' : '' ?>><?php echo esc_attr( $this->options['domains'] ); ?></textarea> 517 <?php 518 } 519 520 /** 521 * Show proxy global_mode field 522 * 523 * @since 1.3.9 524 */ 525 public function proxy_global_mode_callback() { 526 ?> 527 <select name="global_mode" id="global_mode"> 528 <?php if ( $this->options['global_mode'] ) { ?> 529 <option value="yes" selected="selected"><?php esc_html_e( 'Yes' ); ?></option> 530 <option value="no"><?php esc_html_e( 'No' ); ?></option> 531 <?php } else { ?> 532 <option value="yes"><?php esc_html_e( 'Yes' ); ?></option> 533 <option value="no" selected="selected"><?php esc_html_e( 'No' ); ?></option> 534 <?php } ?> 535 </select> 464 536 <?php 465 537 } -
wp-proxy/trunk/languages/wp-proxy-de_DE.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:51+0000\n"12 "PO-Revision-Date: 2020-12-14 16:17+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "Proxy-Einstellungen" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "Falsche Portnummer" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr ""47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr ""51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "Benutzername"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "Passwort"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr ""63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr ""67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr ""71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr ""75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr ""79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr ""83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "Ja"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "" -
wp-proxy/trunk/languages/wp-proxy-ja_JP.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:53+0000\n"12 "PO-Revision-Date: 2020-12-14 16:15+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "グローバルモード" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "プロキシ設定" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "間違ったポート番号" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr "プロキシホスト"47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr "プロキシポート"51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "ユーザー名"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "パスワード"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr ""63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr "有効にする"67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr ""71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr ""75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr ""79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr ""83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "はい"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "いや" -
wp-proxy/trunk/languages/wp-proxy-ru_RU.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-21T11:15:37+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:54+0000\n"12 "PO-Revision-Date: 2020-12-14 16:13+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 19 19 "X-Loco-Version: 2.3.1; wp-5.3.2" 20 20 21 # . Plugin Name of the plugin22 msgid " WordPress Proxy"23 msgstr " WordPress Proxy"21 #: class-wp-proxy.php:381 22 msgid "Global mode" 23 msgstr "" 24 24 25 #. Plugin URI of the plugin 25 #. Author URI of the plugin 26 msgid "https://xn--vkuk.org/blog/" 27 msgstr "" 28 29 #. URI of the plugin 26 30 msgid "https://xn--vkuk.org/blog/wp-proxy" 27 31 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 31 35 msgstr "" 32 36 37 #: class-wp-proxy.php:374 38 msgid "Proxy Domains" 39 msgstr "" 40 33 41 #. Author of the plugin 34 42 msgid "sleepm" 35 43 msgstr "sleepm" 36 44 37 #: class-wp-proxy.php:106 class-wp-proxy.php:234 45 #. Name of the plugin 46 #: class-wp-proxy.php:117 class-wp-proxy.php:404 38 47 msgid "WP Proxy" 39 48 msgstr "Настройки прокси" 40 49 41 #: class-wp-proxy.php:1 1550 #: class-wp-proxy.php:127 42 51 msgid "Wrong port" 43 52 msgstr "Неверный номер порта" 44 45 #: class-wp-proxy.php:18346 msgid "Proxy Host"47 msgstr "Прокси хост"48 49 #: class-wp-proxy.php:19050 msgid "Proxy Port"51 msgstr "Порт"52 53 #: class-wp-proxy.php:19754 msgid "Proxy Username"55 msgstr "Имя пользователя"56 57 #: class-wp-proxy.php:20458 msgid "Proxy Password"59 msgstr "Пароль"60 61 #: class-wp-proxy.php:21862 msgid "Enable"63 msgstr "Включить"64 65 #: class-wp-proxy.php:25666 msgid "proxy host"67 msgstr ""68 69 #: class-wp-proxy.php:26770 msgid "proxy port"71 msgstr ""72 73 #: class-wp-proxy.php:27874 msgid "username"75 msgstr ""76 77 #: class-wp-proxy.php:28978 msgid "password"79 msgstr ""80 81 #: class-wp-proxy.php:313 class-wp-proxy.php:31682 msgid "yes"83 msgstr "да"84 85 #: class-wp-proxy.php:314 class-wp-proxy.php:31786 msgid "no"87 msgstr "" -
wp-proxy/trunk/languages/wp-proxy-zh_CN.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:42+0000\n"12 "PO-Revision-Date: 2020-12-14 16:11+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "全局模式" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "管理 WordPress 代理" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "要代理的域名" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "代理设置" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "端口号错误" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr "地址"47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr "端口"51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "用户名"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "密码"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr "要代理的域名"63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr "是否启用"67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr "代理地址"71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr "代理端口"75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr "无需验证可不填"79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr "无需验证可不填"83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "是"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "否" -
wp-proxy/trunk/languages/wp-proxy-zh_TW.po
r2217947 r2439215 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "POT-Creation-Date: 2019-12-22T03:28:20+00:00\n" 12 "PO-Revision-Date: 20 19-12-22 03:42+0000\n"12 "PO-Revision-Date: 2020-12-14 16:11+0000\n" 13 13 "X-Generator: Loco https://localise.biz/\n" 14 14 "X-Domain: wp-proxy\n" … … 18 18 "X-Loco-Version: 2.3.1; wp-5.3.2" 19 19 20 # . Plugin Name of the plugin21 msgid " WordPress Proxy"22 msgstr " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 22 msgstr "全局模式" 23 23 24 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 25 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 26 30 msgstr "https://xn--vkuk.org/blog/wp-proxy" … … 30 34 msgstr "管理 WordPress 代理" 31 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "要代理的域名" 39 32 40 #. Author of the plugin 33 41 msgid "sleepm" 34 42 msgstr "sleepm" 35 43 36 #: class-wp-proxy.php:106 class-wp-proxy.php:234 44 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 37 46 msgid "WP Proxy" 38 47 msgstr "代理設置" 39 48 40 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 41 50 msgid "Wrong port" 42 51 msgstr "端口號錯誤" 43 44 #: class-wp-proxy.php:18345 msgid "Proxy Host"46 msgstr "地址"47 48 #: class-wp-proxy.php:19049 msgid "Proxy Port"50 msgstr "端口"51 52 #: class-wp-proxy.php:19753 msgid "Proxy Username"54 msgstr "用戶名"55 56 #: class-wp-proxy.php:20457 msgid "Proxy Password"58 msgstr "密碼"59 60 #: class-wp-proxy.php:21161 msgid "Proxy Domains"62 msgstr "要代理的域名"63 64 #: class-wp-proxy.php:21865 msgid "Enable"66 msgstr "是否啟用"67 68 #: class-wp-proxy.php:25669 msgid "proxy host"70 msgstr "代理地址"71 72 #: class-wp-proxy.php:26773 msgid "proxy port"74 msgstr "代理端口"75 76 #: class-wp-proxy.php:27877 msgid "username"78 msgstr "無需驗證可不填"79 80 #: class-wp-proxy.php:28981 msgid "password"82 msgstr "無需驗證可不填"83 84 #: class-wp-proxy.php:313 class-wp-proxy.php:31685 msgid "yes"86 msgstr "是"87 88 #: class-wp-proxy.php:314 class-wp-proxy.php:31789 msgid "no"90 msgstr "否" -
wp-proxy/trunk/languages/wp-proxy.pot
r2217947 r2439215 1 1 # Copyright (C) 2019 sleepm 2 2 # This file is distributed under the same license as the WordPress Proxy plugin. 3 #, fuzzy 3 4 msgid "" 4 5 msgstr "" … … 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 20 19-12-22T03:28:20+00:00\n"13 "POT-Creation-Date: 2020-12-14 15:47+0000\n" 13 14 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.4.0\n"15 "X-Generator: Loco https://localise.biz/\n" 15 16 "X-Domain: wp-proxy\n" 17 "Language: \n" 18 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;" 16 19 17 # . Plugin Name of the plugin18 msgid " WordPress Proxy"20 #: class-wp-proxy.php:381 21 msgid "Global mode" 19 22 msgstr "" 20 23 21 #. Plugin URI of the plugin 24 #. Author URI of the plugin 25 msgid "https://xn--vkuk.org/blog/" 26 msgstr "" 27 28 #. URI of the plugin 22 29 msgid "https://xn--vkuk.org/blog/wp-proxy" 23 30 msgstr "" … … 27 34 msgstr "" 28 35 36 #: class-wp-proxy.php:374 37 msgid "Proxy Domains" 38 msgstr "" 39 29 40 #. Author of the plugin 30 41 msgid "sleepm" 31 42 msgstr "" 32 43 33 # : class-wp-proxy.php:10634 #: class-wp-proxy.php: 23444 #. Name of the plugin 45 #: class-wp-proxy.php:117 class-wp-proxy.php:404 35 46 msgid "WP Proxy" 36 47 msgstr "" 37 48 38 #: class-wp-proxy.php:1 1549 #: class-wp-proxy.php:127 39 50 msgid "Wrong port" 40 51 msgstr "" 41 42 #: class-wp-proxy.php:18343 msgid "Proxy Host"44 msgstr ""45 46 #: class-wp-proxy.php:19047 msgid "Proxy Port"48 msgstr ""49 50 #: class-wp-proxy.php:19751 msgid "Proxy Username"52 msgstr ""53 54 #: class-wp-proxy.php:20455 msgid "Proxy Password"56 msgstr ""57 58 #: class-wp-proxy.php:21159 msgid "Proxy Domains"60 msgstr ""61 62 #: class-wp-proxy.php:21863 msgid "Enable"64 msgstr ""65 66 #: class-wp-proxy.php:25667 msgid "proxy host"68 msgstr ""69 70 #: class-wp-proxy.php:26771 msgid "proxy port"72 msgstr ""73 74 #: class-wp-proxy.php:27875 msgid "username"76 msgstr ""77 78 #: class-wp-proxy.php:28979 msgid "password"80 msgstr ""81 82 #: class-wp-proxy.php:31383 #: class-wp-proxy.php:31684 msgid "yes"85 msgstr ""86 87 #: class-wp-proxy.php:31488 #: class-wp-proxy.php:31789 msgid "no"90 msgstr "" -
wp-proxy/trunk/readme.txt
r2308925 r2439215 4 4 Tags: proxy 5 5 Requires at least: 5.0.0 6 Tested up to: 5. 4.17 Stable tag: 1.3. 86 Tested up to: 5.6.0 7 Stable tag: 1.3.9 8 8 Requires PHP: 5.0.0 9 9 License: GPLv2 or later … … 32 32 == Changelog == 33 33 34 = 1.3.9 = 35 add global mode 36 34 37 = 1.3.8 = 35 38 support proxy type: http(default), socks5, socks4, socks4a. ps: if use curl as request transport. -
wp-proxy/trunk/wp-proxy.php
r2308925 r2439215 4 4 * Plugin URI: https://xn--vkuk.org/blog/wp-proxy 5 5 * Description: manage proxy for WordPress 6 * Version: 1.3. 86 * Version: 1.3.9 7 7 * Author: sleepm 8 8 * Author URI: https://xn--vkuk.org/blog/
Note: See TracChangeset
for help on using the changeset viewer.