Changeset 2414935
- Timestamp:
- 11/09/2020 03:27:44 AM (5 years ago)
- Location:
- wp-php-console/trunk
- Files:
-
- 7 added
- 1 deleted
- 8 edited
-
includes (deleted)
-
languages/wp-php-console.pot (modified) (13 diffs)
-
readme.txt (modified) (3 diffs)
-
src (added)
-
src/Admin (added)
-
src/Admin.php (added)
-
src/Admin/SettingsPage.php (added)
-
src/Functions.php (added)
-
src/Plugin.php (added)
-
src/Settings.php (added)
-
uninstall.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (1 diff)
-
vendor/composer/installed.json (modified) (2 diffs)
-
vendor/php-console/php-console/src/PhpConsole/Connector.php (modified) (3 diffs)
-
wp-php-console.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-php-console/trunk/languages/wp-php-console.pot
r2097631 r2414935 1 # Copyright (C) 20 19Fulvio Notarstefano1 # Copyright (C) 2020 Fulvio Notarstefano 2 2 # This file is distributed under the GPL-2.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP PHP Console 1. 5.4\n"5 "Project-Id-Version: WP PHP Console 1.6.0\n" 6 6 "Report-Msgid-Bugs-To: https://github.com/unfulvio/wp-php-console\n" 7 "POT-Creation-Date: 20 19-05-30 03:39:12+00:00\n"7 "POT-Creation-Date: 2020-11-09 03:25:23+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 20 19-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: Fulvio Notarstefano <fulvio.notarstefano@gmail.com>\n" 13 13 "Language-Team: Fulvio Notarstefano <fulvio.notarstefano@gmail.com>\n" … … 25 25 "X-Generator: grunt-wp-i18n 1.0.3\n" 26 26 27 #: includes/Plugin.php:113 includes/Settings.php:9227 #: src/Admin/SettingsPage.php:88 src/Admin.php:86 28 28 msgid "Settings" 29 29 msgstr "" 30 30 31 #: includes/Plugin.php:386 32 #. translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML 33 #. <a> link tag; %3$s closing HTML </a> link tag 34 msgid "" 35 "%1$s: Please remember to %2$sset a password%3$s if you want to enable the " 36 "terminal." 37 msgstr "" 38 39 #. Plugin Name of the plugin/theme 40 msgid "WP PHP Console" 41 msgstr "" 42 43 #: includes/Settings.php:99 31 #: src/Admin/SettingsPage.php:95 44 32 msgid "Password" 45 33 msgstr "" 46 34 47 #: includes/Settings.php:10335 #: src/Admin/SettingsPage.php:103 48 36 msgid "Allow only on SSL" 49 37 msgstr "" 50 38 51 #: includes/Settings.php:10739 #: src/Admin/SettingsPage.php:110 52 40 msgid "Allowed IP Masks" 53 41 msgstr "" 54 42 55 #: includes/Settings.php:11143 #: src/Admin/SettingsPage.php:117 56 44 msgid "Register PC Class" 57 45 msgstr "" 58 46 59 #: includes/Settings.php:11547 #: src/Admin/SettingsPage.php:124 60 48 msgid "Show Call Stack" 61 49 msgstr "" 62 50 63 #: includes/Settings.php:11951 #: src/Admin/SettingsPage.php:131 64 52 msgid "Short Path Names" 65 53 msgstr "" 66 54 67 #: includes/Settings.php:15355 #: src/Admin/SettingsPage.php:170 68 56 msgid "Usage instructions:" 69 57 msgstr "" 70 58 71 #: includes/Settings.php:163 59 #: src/Admin/SettingsPage.php:179 60 #. translators: Placeholder: %s - PHP Console extension name 61 msgid "%s extension for Google Chrome" 62 msgstr "" 63 64 #: src/Admin/SettingsPage.php:183 65 #. translators: Placeholders: %1$s - opening PHP <a> link tag, %2$s - closing 66 #. PHP </a> link tag 67 msgid "" 68 "If the Chrome extension is unavailable from the web store, you may " 69 "%1$sdownload and install it from the source%2$s." 70 msgstr "" 71 72 #: src/Admin/SettingsPage.php:187 72 73 msgid "" 73 74 "Set a password for the eval terminal in the options below and hit \"Save " … … 75 76 msgstr "" 76 77 77 #: includes/Settings.php:16478 #: src/Admin/SettingsPage.php:188 78 79 msgid "" 79 80 "Reload any page of your installation and click on the key icon in your " … … 81 82 msgstr "" 82 83 83 #: includes/Settings.php:16584 #: src/Admin/SettingsPage.php:189 84 85 msgid "" 85 86 "From the eval terminal you can execute any PHP or WordPress specific " … … 87 88 msgstr "" 88 89 89 #: includes/Settings.php:16890 #: src/Admin/SettingsPage.php:192 90 91 #. translators: Placeholders: %1$s - PHP code snippet example, %2$s - Chrome 91 92 #. javascript console shortcut … … 97 98 msgstr "" 98 99 99 #: includes/Settings.php:196100 #: src/Admin/SettingsPage.php:296 100 101 msgid "Required" 101 102 msgstr "" 102 103 103 #: includes/Settings.php:197 104 msgid "The password for the eval terminal. If empty, the plugin will not work." 105 msgstr "" 106 107 #: includes/Settings.php:213 includes/Settings.php:262 108 #: includes/Settings.php:288 includes/Settings.php:305 109 msgid "Yes" 110 msgstr "" 111 112 #: includes/Settings.php:214 113 msgid "" 114 "Tick this option if you want the eval terminal to work only on a SSL " 115 "connection." 116 msgstr "" 117 118 #: includes/Settings.php:230 119 msgid "IP addresses (optional)" 120 msgstr "" 121 122 #: includes/Settings.php:231 104 #: src/Admin/SettingsPage.php:323 105 msgid "The password for the eval terminal. If empty, the connector will not work." 106 msgstr "" 107 108 #: src/Admin/SettingsPage.php:336 123 109 msgid "" 124 110 "You may specify any of the following, to give access to specific IPs to the " … … 126 112 msgstr "" 127 113 128 #: includes/Settings.php:235114 #: src/Admin/SettingsPage.php:340 129 115 #. translators: Placeholders: %1$s - a single IP address, %2$s link to Varying 130 116 #. Vagrant Vagrants project repository … … 132 118 msgstr "" 133 119 134 #: includes/Settings.php:241120 #: src/Admin/SettingsPage.php:346 135 121 #. translators: Placeholders: %1$s a range of IP addresses, %2$s - comma 136 122 #. separated IP addresses … … 138 124 msgstr "" 139 125 140 #: includes/Settings.php:264 141 msgid "Tick to register PC class in the global namespace." 142 msgstr "" 143 144 #: includes/Settings.php:268 126 #: src/Admin/SettingsPage.php:374 127 msgid "Yes" 128 msgstr "" 129 130 #: src/Admin/SettingsPage.php:408 131 msgid "" 132 "Enable this option if you want the eval terminal to work only on a SSL " 133 "connection." 134 msgstr "" 135 136 #: src/Admin/SettingsPage.php:422 137 msgid "Enable to register PC class in the global namespace." 138 msgstr "" 139 140 #: src/Admin/SettingsPage.php:426 145 141 #. translators: Placeholders: %1$s, %2$s and %3$s are PHP code snippets 146 142 #. examples … … 150 146 msgstr "" 151 147 152 #: includes/Settings.php:289153 msgid "" 154 " Tickto see the full call stack when PHP Console writes to the browser "148 #: src/Admin/SettingsPage.php:443 149 msgid "" 150 "Enable to see the full call stack when PHP Console writes to the browser " 155 151 "JavaScript console." 156 152 msgstr "" 157 153 158 #: includes/Settings.php:307159 msgid "" 160 " Tick to shorten the length of PHP Console error sources and traces paths in"161 " browser JavaScript console for better readability."162 msgstr "" 163 164 #: includes/Settings.php:311154 #: src/Admin/SettingsPage.php:457 155 msgid "" 156 "Enable to shorten the length of PHP Console error sources and traces paths " 157 "in browser JavaScript console for better readability." 158 msgstr "" 159 160 #: src/Admin/SettingsPage.php:461 165 161 #. translators: Placeholders: %1$s - long server path, %2$s - shortened server 166 162 #. path … … 168 164 msgstr "" 169 165 166 #: src/Admin.php:61 167 #. translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML 168 #. <a> link tag; %3$s closing HTML </a> link tag 169 msgid "" 170 "%1$s: Please remember to %2$sset a password%3$s if you want to enable the " 171 "terminal." 172 msgstr "" 173 174 #: src/Admin.php:87 175 msgid "GitHub" 176 msgstr "" 177 178 #: src/Admin.php:88 179 msgid "Support" 180 msgstr "" 181 182 #: src/Admin.php:89 183 msgid "Review" 184 msgstr "" 185 186 #. Plugin Name of the plugin/theme 187 msgid "WP PHP Console" 188 msgstr "" 189 170 190 #. Plugin URI of the plugin/theme 171 191 msgid "https://github.com/unfulvio/wp-php-console/" … … 187 207 msgstr "" 188 208 189 #: includes/Settings.php:150209 #: src/Admin/SettingsPage.php:166 190 210 #. translators: Placeholder: %s refers to the PHP Console library, pointing to 191 211 #. its GitHub repository … … 196 216 msgstr "" 197 217 198 #: includes/Settings.php:160199 #. translators: Placeholder: %s represents the Google Chrome PHP Console200 #. extensiondownload link218 #: src/Admin/SettingsPage.php:177 219 #. translators: Placeholder: %s - the Google Chrome PHP Console extension 220 #. download link 201 221 msgctxt "PHP Console, the Chrome Extension" 202 msgid "Make sure you have downloaded and installed %s."203 msgstr "" 222 msgid "Make sure you have downloaded and installed the %s." 223 msgstr "" -
wp-php-console/trunk/readme.txt
r2097631 r2414935 5 5 Requires at least: 3.6.0 6 6 Requires PHP: 5.6 7 Tested up to: 5. 2.18 Stable tag: 1. 5.49 License: GPLv 2or later10 License URI: http://www.gnu.org/licenses/gpl- 2.0.html7 Tested up to: 5.5.3 8 Stable tag: 1.6.0 9 License: GPLv3 or later 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html 11 11 12 12 An implementation of PHP Console as a WordPress plugin. … … 28 28 1. First, install [Google Chrome extension PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) from the [Chrome WebStore](https://chrome.google.com/webstore/search/php%20console?_category=extensions). 29 29 Make sure the PHP Console Chrome extension is enabled through [chrome://extensions/](chrome://extensions/ "chrome://extensions/"). 30 **Important Note** 31 If the Google Chrome extension is not available on the Chrome Web Store, you can manually install it [from source](https://github.com/barbushin/php-console-extension). 30 32 31 33 2. Then, add this plugin to your WordPress installation either by: … … 128 130 129 131 == Changelog == 132 133 = 1.6.0 = 134 * Misc: Add note about Chrome extension unavailability in web store 135 * Misc: Add plugin admin action links 136 * Misc: Improved settings handler 137 * Misc: Updates PHP Console core library to v3.1.8 138 139 = 1.5.5 = 140 * Misc: Add plugin admin action links 141 * Misc: Improved settings handler 130 142 131 143 = 1.5.4 = -
wp-php-console/trunk/uninstall.php
r2097631 r2414935 9 9 * 10 10 * @author Fulvio Notarstefano <fulvio.notarstefano@gmail.com> 11 * @copyright Copyright (c) 2014-20 19Fulvio Notarstefano11 * @copyright Copyright (c) 2014-2020 Fulvio Notarstefano 12 12 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 13 13 */ -
wp-php-console/trunk/vendor/composer/ClassLoader.php
r2092752 r2414935 61 61 { 62 62 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);63 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 64 } 65 65 -
wp-php-console/trunk/vendor/composer/autoload_real.php
r1824282 r2414935 14 14 } 15 15 16 /** 17 * @return \Composer\Autoload\ClassLoader 18 */ 16 19 public static function getLoader() 17 20 { -
wp-php-console/trunk/vendor/composer/installed.json
r2097631 r2414935 2 2 { 3 3 "name": "php-console/php-console", 4 "version": "3.1. 7",5 "version_normalized": "3.1. 7.0",4 "version": "3.1.8", 5 "version_normalized": "3.1.8.0", 6 6 "source": { 7 7 "type": "git", 8 8 "url": "https://github.com/barbushin/php-console.git", 9 "reference": " c171ec62669d5c616cfa62de7a30df3c6237e831"9 "reference": "aa1d71d4ea3dc91e126edc9aa4f3c10eb8559cff" 10 10 }, 11 11 "dist": { 12 12 "type": "zip", 13 "url": "https://api.github.com/repos/barbushin/php-console/zipball/ c171ec62669d5c616cfa62de7a30df3c6237e831",14 "reference": " c171ec62669d5c616cfa62de7a30df3c6237e831",13 "url": "https://api.github.com/repos/barbushin/php-console/zipball/aa1d71d4ea3dc91e126edc9aa4f3c10eb8559cff", 14 "reference": "aa1d71d4ea3dc91e126edc9aa4f3c10eb8559cff", 15 15 "shasum": "" 16 16 }, … … 23 23 "psr/log": "^1.0" 24 24 }, 25 "time": "201 8-02-25T12:43:21+00:00",25 "time": "2019-07-25T03:43:28+00:00", 26 26 "type": "library", 27 27 "installation-source": "dist", -
wp-php-console/trunk/vendor/php-console/php-console/src/PhpConsole/Connector.php
r1942762 r2414935 193 193 /** 194 194 * Set IP masks of clients that will be allowed to connect to PHP Console 195 * @param array $ipMasks Use *(star character) for "any numbers" placeholder array('192.168.*.*', '10.2.12*.*', '127.0.0.1' )195 * @param array $ipMasks Use *(star character) for "any numbers" placeholder array('192.168.*.*', '10.2.12*.*', '127.0.0.1', '2001:0:5ef5:79fb:*:*:*:*') 196 196 */ 197 197 public function setAllowedIpMasks(array $ipMasks) { … … 489 489 } 490 490 if(!$this->auth || $this->isAuthorized()) { 491 $response->isLocal = isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1';491 $response->isLocal = isset($_SERVER['REMOTE_ADDR']) && ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_SERVER['REMOTE_ADDR'] == '::1'); 492 492 $response->docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : null; 493 493 $response->sourcesBasePath = $this->sourcesBasePath; … … 644 644 public $time; 645 645 } 646 -
wp-php-console/trunk/wp-php-console.php
r2097631 r2414935 5 5 * Description: An implementation of PHP Console for WordPress. Easily debug and trace PHP errors and warnings from your Chrome dev tools console using a Google Chrome extension. 6 6 * 7 * Version: 1. 5.47 * Version: 1.6.0 8 8 * 9 9 * Author: Fulvio Notarstefano … … 17 17 * 18 18 * WP PHP Console 19 * Copyright (c) 2014-20 19Fulvio Notarstefano <fulvio.notarstefano@gmail.com>19 * Copyright (c) 2014-2020 Fulvio Notarstefano <fulvio.notarstefano@gmail.com> 20 20 * and contributors https://github.com/unfulvio/wp-php-console/graphs/contributors 21 21 * 22 22 * PHP Console server library 23 * Copyright (c) 2011-20 19by Barbushin Sergey <barbushin@gmail.com>23 * Copyright (c) 2011-2020 by Barbushin Sergey <barbushin@gmail.com> 24 24 * 25 25 * This program is free software; you can redistribute it and/or modify … … 120 120 121 121 // autoload plugin and vendor files 122 $loader = require_once ( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );122 $loader = require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; 123 123 124 124 // register plugin namespace with autoloader 125 $loader->addPsr4( 'WP_PHP_Console\\', __DIR__ . '/ includes' );126 127 require_once plugin_dir_path( __FILE__ ) . ' includes/Functions.php';125 $loader->addPsr4( 'WP_PHP_Console\\', __DIR__ . '/src' ); 126 127 require_once plugin_dir_path( __FILE__ ) . 'src/Functions.php'; 128 128 129 129 wp_php_console();
Note: See TracChangeset
for help on using the changeset viewer.