Changeset 2932862
- Timestamp:
- 07/01/2023 10:36:01 AM (3 years ago)
- Location:
- mdc-target-blank/trunk
- Files:
-
- 60 added
- 5 deleted
- 16 edited
- 1 moved
-
.gitignore (modified) (1 diff, 1 prop)
-
app (added)
-
app/Admin.php (added)
-
app/Front.php (added)
-
assets/css/admin.css (modified) (1 diff, 1 prop)
-
assets/css/front.css (modified) (1 diff, 1 prop)
-
assets/img (added)
-
assets/img/icon.png (added)
-
assets/img/loader.gif (added)
-
assets/js/admin.js (modified) (1 diff, 1 prop)
-
assets/js/front.js (modified) (1 diff, 1 prop)
-
codexpert/License.php (deleted)
-
codexpert/Survey.php (deleted)
-
codexpert/Update.php (deleted)
-
composer.json (modified) (1 diff, 1 prop)
-
inc (added)
-
inc/functions.php (added)
-
includes/Front.php (deleted)
-
mdc-target-blank.php (modified) (2 diffs, 1 prop)
-
readme.txt (deleted)
-
uninstall.php (added)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/codexpert (added)
-
vendor/codexpert/plugin (added)
-
vendor/codexpert/plugin/.gitignore (added)
-
vendor/codexpert/plugin/composer.json (added)
-
vendor/codexpert/plugin/readme.md (added)
-
vendor/codexpert/plugin/src (added)
-
vendor/codexpert/plugin/src/Base.php (added)
-
vendor/codexpert/plugin/src/Deactivator.php (added)
-
vendor/codexpert/plugin/src/Feature.php (added)
-
vendor/codexpert/plugin/src/Fields.php (added)
-
vendor/codexpert/plugin/src/License.php (added)
-
vendor/codexpert/plugin/src/Metabox.php (added)
-
vendor/codexpert/plugin/src/Notice.php (added)
-
vendor/codexpert/plugin/src/Settings.php (added)
-
vendor/codexpert/plugin/src/Setup.php (added)
-
vendor/codexpert/plugin/src/Survey.php (added)
-
vendor/codexpert/plugin/src/Table.php (added)
-
vendor/codexpert/plugin/src/Update.php (added)
-
vendor/codexpert/plugin/src/Widget.php (added)
-
vendor/codexpert/plugin/src/assets (added)
-
vendor/codexpert/plugin/src/assets/css (added)
-
vendor/codexpert/plugin/src/assets/css/deactivator.css (added)
-
vendor/codexpert/plugin/src/assets/css/fields.css (added)
-
vendor/codexpert/plugin/src/assets/css/license.css (added)
-
vendor/codexpert/plugin/src/assets/css/notice.css (added)
-
vendor/codexpert/plugin/src/assets/css/survey.css (added)
-
vendor/codexpert/plugin/src/assets/css/wizard.css (added)
-
vendor/codexpert/plugin/src/assets/img (added)
-
vendor/codexpert/plugin/src/assets/img/checked.png (added)
-
vendor/codexpert/plugin/src/assets/img/loading.gif (added)
-
vendor/codexpert/plugin/src/assets/img/sorry.webp (added)
-
vendor/codexpert/plugin/src/assets/img/survey.png (added)
-
vendor/codexpert/plugin/src/assets/js (added)
-
vendor/codexpert/plugin/src/assets/js/deactivator.js (added)
-
vendor/codexpert/plugin/src/assets/js/fields.js (added)
-
vendor/codexpert/plugin/src/assets/js/license.js (added)
-
vendor/codexpert/plugin/src/assets/js/survey.js (added)
-
vendor/composer/ClassLoader.php (modified) (18 diffs)
-
vendor/composer/InstalledVersions.php (added)
-
vendor/composer/LICENSE (modified) (1 diff)
-
vendor/composer/autoload_classmap.php (modified) (1 diff)
-
vendor/composer/autoload_files.php (added)
-
vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
vendor/composer/autoload_psr4.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (1 diff)
-
vendor/composer/installed.php (added)
-
vendor/composer/platform_check.php (added)
-
vendor/pluggable (added)
-
vendor/pluggable/marketing (added)
-
vendor/pluggable/marketing/.gitignore (added)
-
vendor/pluggable/marketing/composer.json (added)
-
vendor/pluggable/marketing/readme.md (added)
-
vendor/pluggable/marketing/src (added)
-
vendor/pluggable/marketing/src/Deactivator.php (added)
-
views (added)
-
views/index.php (moved) (moved from mdc-target-blank/trunk/templates/index.php) (1 prop)
-
views/settings (added)
-
views/settings/table.php (added)
Legend:
- Unmodified
- Added
- Removed
-
mdc-target-blank/trunk/.gitignore
-
Property
svn:executable
set to
*
r2026979 r2932862 1 vendor2 1 composer.lock 2 package-lock.json -
Property
svn:executable
set to
-
mdc-target-blank/trunk/assets/css/admin.css
-
Property
svn:executable
set to
*
r2026979 r2932862 1 #mdc-target-blank-modal { 2 position: fixed; 3 background: #c8c8c859; 4 top: 0; 5 border: 0; 6 left: 0; 7 right: 0; 8 height: 100%; 9 z-index: 9999; 10 display: flex; 11 justify-content: center; 12 align-items: center; 13 } 14 #mdc-target-blank-modal-loader { 15 position: absolute; 16 } -
Property
svn:executable
set to
-
mdc-target-blank/trunk/assets/css/front.css
-
Property
svn:executable
set to
*
r2026979 r2932862 1 #mdc-target-blank-modal { 2 position: fixed; 3 background: #c8c8c859; 4 top: 0; 5 border: 0; 6 left: 0; 7 right: 0; 8 height: 100%; 9 z-index: 9999; 10 display: flex; 11 justify-content: center; 12 align-items: center; 13 } 14 #mdc-target-blank-modal-loader { 15 position: absolute; 16 } -
Property
svn:executable
set to
-
mdc-target-blank/trunk/assets/js/admin.js
-
Property
svn:executable
set to
*
r2026979 r2932862 1 let tblank_modal = ( show = true ) => { 2 if(show) { 3 jQuery('#mdc-target-blank-modal').show(); 4 } 5 else { 6 jQuery('#mdc-target-blank-modal').hide(); 7 } 8 } 9 1 10 jQuery(function($){ 2 3 11 }) -
Property
svn:executable
set to
-
mdc-target-blank/trunk/assets/js/front.js
-
Property
svn:executable
set to
*
r2026979 r2932862 1 let tblank_modal = ( show = true ) => { 2 if(show) { 3 jQuery('#mdc-target-blank-modal').show(); 4 } 5 else { 6 jQuery('#mdc-target-blank-modal').hide(); 7 } 8 } 9 1 10 jQuery(function($){ 2 11 -
Property
svn:executable
set to
-
mdc-target-blank/trunk/composer.json
-
Property
svn:executable
set to
*
r2026979 r2932862 1 1 { 2 "name": "codexpert/Target_Blank",3 2 "authors": [ 4 3 { 5 "name": " Nazmul Ahsan",6 "email": " n.mukto@gmail.com"4 "name": "Codexpert", 5 "email": "hi@codexpert.io" 7 6 } 8 7 ], 9 "require": {}, 8 "require": { 9 "codexpert/plugin": "dev-master", 10 "pluggable/marketing": "^0.2.0" 11 }, 10 12 "autoload": { 11 "psr-4": {12 "codexpert\\Target_Blank\\" : "includes/",13 "codexpert\\Remote\\" : "codexpert/"14 }13 "psr-4": { 14 "Codexpert\\Target_Blank\\App\\" : "app/" 15 }, 16 "files": [ "inc/functions.php" ] 15 17 } 16 18 } -
Property
svn:executable
set to
-
mdc-target-blank/trunk/mdc-target-blank.php
-
Property
svn:executable
set to
*
r2026978 r2932862 1 1 <?php 2 /* 3 Plugin Name: Target Blank 4 Description: Force links in posts or pages to open a new tab. No configuration required. 5 Plugin URI: https://codexpert.io 6 Author: Nazmul Ahsan 7 Author URI: https://nazmulahsan.me 8 Version: 2.0 9 Text Domain: target-blank 10 Domain Path: /languages 11 */ 12 13 namespace codexpert\Target_Blank; 14 use codexpert\Remote\Survey; 2 /** 3 * Plugin Name: Target _blank 4 * Description: Force links in posts or pages to open in a new tab. No configuration required. 5 * Plugin URI: https://pluggable.io/plugin/mdc-target-blank 6 * Author: Codexpert, Inc 7 * Author URI: https://codexpert.io 8 * Version: 3.0 9 * Text Domain: mdc-target-blank 10 * Domain Path: /languages 11 */ 12 13 namespace Codexpert\Target_Blank; 14 15 use Codexpert\Plugin\Notice; 16 use Codexpert\Plugin\Feature; 17 use Pluggable\Marketing\Deactivator; 15 18 16 19 /** … … 21 24 } 22 25 23 define( 'CXTB', __FILE__ );24 25 26 /** 26 27 * Main class for the plugin 27 28 * @package Plugin 28 * @author Nazmul Ahsan <n.mukto@gmail.com>29 * @author Codexpert <hi@codexpert.io> 29 30 */ 30 class Plugin {31 final class Plugin { 31 32 32 public static $_instance; 33 public $slug; 34 public $name; 35 public $version; 36 public $server; 37 38 public function __construct() { 39 self::includes(); 40 self::define(); 41 self::hooks(); 42 } 43 44 /** 45 * Define constants 46 */ 47 public function define(){ 48 if( !function_exists( 'get_plugin_data' ) ) { 49 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 50 } 51 $this->plugin = get_plugin_data( CXTB ); 52 53 $this->slug = $this->plugin['TextDomain']; 54 $this->name = $this->plugin['Name']; 55 $this->version = $this->plugin['Version']; 56 $this->server = 'https://codexpert.io'; 33 /** 34 * Plugin instance 35 * 36 * @access private 37 * 38 * @var Plugin 39 */ 40 private static $_instance; 41 42 /** 43 * The constructor method 44 * 45 * @access private 46 * 47 * @since 0.9 48 */ 49 private function __construct() { 50 51 /** 52 * Includes required files 53 */ 54 $this->include(); 55 56 /** 57 * Defines contants 58 */ 59 $this->define(); 60 61 /** 62 * Runs actual hooks 63 */ 64 $this->hook(); 57 65 } 58 66 59 67 /** 60 68 * Includes files 61 */ 62 public function includes(){ 63 require_once dirname( CXTB ) . '/vendor/autoload.php'; 69 * 70 * @access private 71 * 72 * @uses composer 73 * @uses psr-4 74 */ 75 private function include() { 76 require_once( dirname( __FILE__ ) . '/vendor/autoload.php' ); 77 } 78 79 /** 80 * Define variables and constants 81 * 82 * @access private 83 * 84 * @uses get_plugin_data 85 * @uses plugin_basename 86 */ 87 private function define() { 88 89 /** 90 * Define some constants 91 * 92 * @since 0.9 93 */ 94 define( 'TBLANK', __FILE__ ); 95 define( 'TBLANK_DIR', dirname( TBLANK ) ); 96 define( 'TBLANK_ASSET', plugins_url( 'assets', TBLANK ) ); 97 define( 'TBLANK_DEBUG', apply_filters( 'mdc-target-blank_debug', true ) ); 98 99 /** 100 * The plugin data 101 * 102 * @since 0.9 103 * @var $plugin 104 */ 105 $this->plugin = get_plugin_data( TBLANK ); 106 $this->plugin['basename'] = plugin_basename( TBLANK ); 107 $this->plugin['file'] = TBLANK; 108 $this->plugin['server'] = apply_filters( 'mdc-target-blank_server', 'https://codexpert.io/dashboard' ); 109 $this->plugin['min_php'] = '5.6'; 110 $this->plugin['min_wp'] = '4.0'; 111 $this->plugin['icon'] = TBLANK_ASSET . '/img/icon.png'; 112 $this->plugin['depends'] = []; 113 64 114 } 65 115 66 116 /** 67 117 * Hooks 68 */ 69 public function hooks(){ 70 // i18n 71 add_action( 'plugins_loaded', array( $this, 'i18n' ) ); 72 73 // front hooks 74 $front = ( isset( $front ) && ! is_null( $front ) ) ? $front : new Front( $this->slug, $this->version ); 75 add_action( 'the_content', array( $front, 'the_content' ) ); 76 77 // Product related classes 78 $survey = ( isset( $survey ) && ! is_null( $survey ) ) ? $survey : new Survey( CXTB, $this->server ); 79 80 } 81 82 /** 83 * Internationalization 84 */ 85 public function i18n() { 86 load_plugin_textdomain( 'mdc-target-blank', false, dirname( plugin_basename( CXTB ) ) . '/languages/' ); 118 * 119 * @access private 120 * 121 * Executes main plugin features 122 * 123 * To add an action, use $instance->action() 124 * To apply a filter, use $instance->filter() 125 * To register a shortcode, use $instance->register() 126 * To add a hook for logged in users, use $instance->priv() 127 * To add a hook for non-logged in users, use $instance->nopriv() 128 * 129 * @return void 130 */ 131 private function hook() { 132 133 if( is_admin() ) : 134 135 /** 136 * Admin facing hooks 137 */ 138 $admin = new App\Admin( $this->plugin ); 139 $admin->activate( 'install' ); 140 $admin->action( 'admin_footer', 'modal' ); 141 $admin->action( 'plugins_loaded', 'i18n' ); 142 $admin->action( 'admin_enqueue_scripts', 'enqueue_scripts' ); 143 $admin->action( 'admin_footer_text', 'footer_text' ); 144 145 /** 146 * Renders different notices 147 * 148 * @package Codexpert\Plugin 149 * 150 * @author Codexpert <hi@codexpert.io> 151 */ 152 $notice = new Notice( $this->plugin ); 153 154 /** 155 * Alters featured plugins 156 * 157 * @package Codexpert\Plugin 158 * 159 * @author Codexpert <hi@codexpert.io> 160 */ 161 $feature = new Feature( $this->plugin ); 162 163 /** 164 * Marketing module 165 */ 166 $marekting = new Deactivator( TBLANK ); 167 168 else : // !is_admin() ? 169 170 /** 171 * Front facing hooks 172 */ 173 $front = new App\Front( $this->plugin ); 174 $front->action( 'wp_head', 'head' ); 175 $front->action( 'wp_footer', 'modal' ); 176 $front->action( 'wp_enqueue_scripts', 'enqueue_scripts' ); 177 $front->filter( 'the_content', 'the_content' ); 178 179 endif; 87 180 } 88 181 89 182 /** 90 183 * Cloning is forbidden. 91 */ 92 private function __clone() { } 184 * 185 * @access public 186 */ 187 public function __clone() { } 93 188 94 189 /** 95 190 * Unserializing instances of this class is forbidden. 96 */ 97 private function __wakeup() { } 191 * 192 * @access public 193 */ 194 public function __wakeup() { } 98 195 99 196 /** 100 197 * Instantiate the plugin 198 * 199 * @access public 200 * 201 * @return $_instance 101 202 */ 102 203 public static function instance() { -
Property
svn:executable
set to
-
mdc-target-blank/trunk/vendor/autoload.php
r2026979 r2932862 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) { 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 21 } 22 5 23 require_once __DIR__ . '/composer/autoload_real.php'; 6 24 7 return ComposerAutoloaderInit 87edf925d3c1c7c843f2481e14c8442a::getLoader();25 return ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60::getLoader(); -
mdc-target-blank/trunk/vendor/composer/ClassLoader.php
r2026979 r2932862 38 38 * @author Fabien Potencier <fabien@symfony.com> 39 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see http ://www.php-fig.org/psr/psr-0/41 * @see http ://www.php-fig.org/psr/psr-4/40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var ?string */ 49 private $vendorDir; 50 45 51 // PSR-4 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 55 */ 46 56 private $prefixLengthsPsr4 = array(); 57 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 60 */ 47 61 private $prefixDirsPsr4 = array(); 62 /** 63 * @var array[] 64 * @psalm-var array<string, string> 65 */ 48 66 private $fallbackDirsPsr4 = array(); 49 67 50 68 // PSR-0 69 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 72 */ 51 73 private $prefixesPsr0 = array(); 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 77 */ 52 78 private $fallbackDirsPsr0 = array(); 53 79 80 /** @var bool */ 54 81 private $useIncludePath = false; 82 83 /** 84 * @var string[] 85 * @psalm-var array<string, string> 86 */ 55 87 private $classMap = array(); 88 89 /** @var bool */ 56 90 private $classMapAuthoritative = false; 91 92 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 95 */ 57 96 private $missingClasses = array(); 97 98 /** @var ?string */ 58 99 private $apcuPrefix; 59 100 101 /** 102 * @var self[] 103 */ 104 private static $registeredLoaders = array(); 105 106 /** 107 * @param ?string $vendorDir 108 */ 109 public function __construct($vendorDir = null) 110 { 111 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure(); 113 } 114 115 /** 116 * @return string[] 117 */ 60 118 public function getPrefixes() 61 119 { 62 120 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);121 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 122 } 65 123 … … 67 125 } 68 126 127 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 130 */ 69 131 public function getPrefixesPsr4() 70 132 { … … 72 134 } 73 135 136 /** 137 * @return array[] 138 * @psalm-return array<string, string> 139 */ 74 140 public function getFallbackDirs() 75 141 { … … 77 143 } 78 144 145 /** 146 * @return array[] 147 * @psalm-return array<string, string> 148 */ 79 149 public function getFallbackDirsPsr4() 80 150 { … … 82 152 } 83 153 154 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 157 */ 84 158 public function getClassMap() 85 159 { … … 88 162 89 163 /** 90 * @param array $classMap Class to filename map 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 166 * 167 * @return void 91 168 */ 92 169 public function addClassMap(array $classMap) … … 103 180 * appending or prepending to the ones previously set for this prefix. 104 181 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 185 * 186 * @return void 108 187 */ 109 188 public function add($prefix, $paths, $prepend = false) … … 148 227 * appending or prepending to the ones previously set for this namespace. 149 228 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories229 * @param string $prefix The prefix/namespace, with trailing '\\' 230 * @param string[]|string $paths The PSR-4 base directories 231 * @param bool $prepend Whether to prepend the directories 153 232 * 154 233 * @throws \InvalidArgumentException 234 * 235 * @return void 155 236 */ 156 237 public function addPsr4($prefix, $paths, $prepend = false) … … 196 277 * replacing any others previously set for this prefix. 197 278 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 281 * 282 * @return void 200 283 */ 201 284 public function set($prefix, $paths) … … 212 295 * replacing any others previously set for this namespace. 213 296 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories297 * @param string $prefix The prefix/namespace, with trailing '\\' 298 * @param string[]|string $paths The PSR-4 base directories 216 299 * 217 300 * @throws \InvalidArgumentException 301 * 302 * @return void 218 303 */ 219 304 public function setPsr4($prefix, $paths) … … 235 320 * 236 321 * @param bool $useIncludePath 322 * 323 * @return void 237 324 */ 238 325 public function setUseIncludePath($useIncludePath) … … 257 344 * 258 345 * @param bool $classMapAuthoritative 346 * 347 * @return void 259 348 */ 260 349 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 366 * 278 367 * @param string|null $apcuPrefix 368 * 369 * @return void 279 370 */ 280 371 public function setApcuPrefix($apcuPrefix) 281 372 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;373 $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; 283 374 } 284 375 … … 297 388 * 298 389 * @param bool $prepend Whether to prepend the autoloader or not 390 * 391 * @return void 299 392 */ 300 393 public function register($prepend = false) 301 394 { 302 395 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 396 397 if (null === $this->vendorDir) { 398 return; 399 } 400 401 if ($prepend) { 402 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 403 } else { 404 unset(self::$registeredLoaders[$this->vendorDir]); 405 self::$registeredLoaders[$this->vendorDir] = $this; 406 } 303 407 } 304 408 305 409 /** 306 410 * Unregisters this instance as an autoloader. 411 * 412 * @return void 307 413 */ 308 414 public function unregister() 309 415 { 310 416 spl_autoload_unregister(array($this, 'loadClass')); 417 418 if (null !== $this->vendorDir) { 419 unset(self::$registeredLoaders[$this->vendorDir]); 420 } 311 421 } 312 422 … … 315 425 * 316 426 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise427 * @return true|null True if loaded, null otherwise 318 428 */ 319 429 public function loadClass($class) 320 430 { 321 431 if ($file = $this->findFile($class)) { 322 includeFile($file);432 (self::$includeFile)($file); 323 433 324 434 return true; 325 435 } 436 437 return null; 326 438 } 327 439 … … 368 480 } 369 481 482 /** 483 * Returns the currently registered loaders indexed by their corresponding vendor directories. 484 * 485 * @return self[] 486 */ 487 public static function getRegisteredLoaders() 488 { 489 return self::$registeredLoaders; 490 } 491 492 /** 493 * @param string $class 494 * @param string $ext 495 * @return string|false 496 */ 370 497 private function findFileWithExtension($class, $ext) 371 498 { … … 378 505 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 506 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath .'\\';507 $search = $subPath . '\\'; 381 508 if (isset($this->prefixDirsPsr4[$search])) { 382 509 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); … … 433 560 return false; 434 561 } 562 563 private static function initializeIncludeClosure(): void 564 { 565 if (self::$includeFile !== null) { 566 return; 567 } 568 569 /** 570 * Scope isolated include. 571 * 572 * Prevents access to $this/self from included files. 573 * 574 * @param string $file 575 * @return void 576 */ 577 self::$includeFile = static function($file) { 578 include $file; 579 }; 580 } 435 581 } 436 437 /**438 * Scope isolated include.439 *440 * Prevents access to $this/self from included files.441 */442 function includeFile($file)443 {444 include $file;445 } -
mdc-target-blank/trunk/vendor/composer/LICENSE
r2026979 r2932862 1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/2 Upstream-Name: Composer3 Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>4 Source: https://github.com/composer/composer5 1 6 Files: * 7 Copyright: 2016, Nils Adermann <naderman@naderman.de> 8 2016, Jordi Boggiano <j.boggiano@seld.be> 9 License: Expat 2 Copyright (c) Nils Adermann, Jordi Boggiano 10 3 11 Files: src/Composer/Util/TlsHelper.php 12 Copyright: 2016, Nils Adermann <naderman@naderman.de> 13 2016, Jordi Boggiano <j.boggiano@seld.be> 14 2013, Evan Coury <me@evancoury.com> 15 License: Expat and BSD-2-Clause 4 Permission is hereby granted, free of charge, to any person obtaining a copy 5 of this software and associated documentation files (the "Software"), to deal 6 in the Software without restriction, including without limitation the rights 7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 copies of the Software, and to permit persons to whom the Software is furnished 9 to do so, subject to the following conditions: 16 10 17 License: BSD-2-Clause 18 Redistribution and use in source and binary forms, with or without modification, 19 are permitted provided that the following conditions are met: 20 . 21 * Redistributions of source code must retain the above copyright notice, 22 this list of conditions and the following disclaimer. 23 . 24 * Redistributions in binary form must reproduce the above copyright notice, 25 this list of conditions and the following disclaimer in the documentation 26 and/or other materials provided with the distribution. 27 . 28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 29 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 30 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 31 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 32 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 33 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 34 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 35 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 37 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 11 The above copyright notice and this permission notice shall be included in all 12 copies or substantial portions of the Software. 38 13 39 License: Expat 40 Permission is hereby granted, free of charge, to any person obtaining a copy 41 of this software and associated documentation files (the "Software"), to deal 42 in the Software without restriction, including without limitation the rights 43 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 44 copies of the Software, and to permit persons to whom the Software is furnished 45 to do so, subject to the following conditions: 46 . 47 The above copyright notice and this permission notice shall be included in all 48 copies or substantial portions of the Software. 49 . 50 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 51 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 52 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 53 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 54 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 55 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 56 THE SOFTWARE. 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 THE SOFTWARE. 21 -
mdc-target-blank/trunk/vendor/composer/autoload_classmap.php
r2026979 r2932862 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 8 8 return array( 9 'Codexpert\\Plugin\\Base' => $vendorDir . '/codexpert/plugin/src/Base.php', 10 'Codexpert\\Plugin\\Deactivator' => $vendorDir . '/codexpert/plugin/src/Deactivator.php', 11 'Codexpert\\Plugin\\Feature' => $vendorDir . '/codexpert/plugin/src/Feature.php', 12 'Codexpert\\Plugin\\Fields' => $vendorDir . '/codexpert/plugin/src/Fields.php', 13 'Codexpert\\Plugin\\License' => $vendorDir . '/codexpert/plugin/src/License.php', 14 'Codexpert\\Plugin\\Metabox' => $vendorDir . '/codexpert/plugin/src/Metabox.php', 15 'Codexpert\\Plugin\\Notice' => $vendorDir . '/codexpert/plugin/src/Notice.php', 16 'Codexpert\\Plugin\\Settings' => $vendorDir . '/codexpert/plugin/src/Settings.php', 17 'Codexpert\\Plugin\\Setup' => $vendorDir . '/codexpert/plugin/src/Setup.php', 18 'Codexpert\\Plugin\\Survey' => $vendorDir . '/codexpert/plugin/src/Survey.php', 19 'Codexpert\\Plugin\\Table' => $vendorDir . '/codexpert/plugin/src/Table.php', 20 'Codexpert\\Plugin\\Update' => $vendorDir . '/codexpert/plugin/src/Update.php', 21 'Codexpert\\Plugin\\Widget' => $vendorDir . '/codexpert/plugin/src/Widget.php', 22 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 23 'Pluggable\\Marketing\\Deactivator' => $vendorDir . '/pluggable/marketing/src/Deactivator.php', 9 24 ); -
mdc-target-blank/trunk/vendor/composer/autoload_namespaces.php
r2026979 r2932862 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 -
mdc-target-blank/trunk/vendor/composer/autoload_psr4.php
r2026979 r2932862 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( dirname(__FILE__));5 $vendorDir = dirname(__DIR__); 6 6 $baseDir = dirname($vendorDir); 7 7 8 8 return array( 9 'codexpert\\Target_Blank\\' => array($baseDir . '/includes'), 10 'codexpert\\Remote\\' => array($baseDir . '/codexpert'), 9 'Codexpert\\Target_Blank\\App\\' => array($baseDir . '/app'), 11 10 ); -
mdc-target-blank/trunk/vendor/composer/autoload_real.php
r2026979 r2932862 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 87edf925d3c1c7c843f2481e14c8442a5 class ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60 6 6 { 7 7 private static $loader; … … 14 14 } 15 15 16 /** 17 * @return \Composer\Autoload\ClassLoader 18 */ 16 19 public static function getLoader() 17 20 { … … 20 23 } 21 24 22 spl_autoload_register(array('ComposerAutoloaderInit87edf925d3c1c7c843f2481e14c8442a', 'loadClassLoader'), true, true); 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit87edf925d3c1c7c843f2481e14c8442a', 'loadClassLoader')); 25 require __DIR__ . '/platform_check.php'; 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());27 if ($useStaticLoader) {28 require_once __DIR__ . '/autoload_static.php';27 spl_autoload_register(array('ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60', 'loadClassLoader')); 29 30 30 call_user_func(\Composer\Autoload\ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a::getInitializer($loader)); 31 } else { 32 $map = require __DIR__ . '/autoload_namespaces.php'; 33 foreach ($map as $namespace => $path) { 34 $loader->set($namespace, $path); 35 } 36 37 $map = require __DIR__ . '/autoload_psr4.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->setPsr4($namespace, $path); 40 } 41 42 $classMap = require __DIR__ . '/autoload_classmap.php'; 43 if ($classMap) { 44 $loader->addClassMap($classMap); 45 } 46 } 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::getInitializer($loader)); 47 33 48 34 $loader->register(true); 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$files; 37 $requireFile = static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }; 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 ($requireFile)($fileIdentifier, $file); 46 } 49 47 50 48 return $loader; -
mdc-target-blank/trunk/vendor/composer/autoload_static.php
r2026979 r2932862 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 87edf925d3c1c7c843f2481e14c8442a7 class ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60 8 8 { 9 public static $files = array ( 10 '3643df700757a247351b378bc7c3ac76' => __DIR__ . '/../..' . '/inc/functions.php', 11 ); 12 9 13 public static $prefixLengthsPsr4 = array ( 10 ' c' =>14 'C' => 11 15 array ( 12 'codexpert\\Target_Blank\\' => 23, 13 'codexpert\\Remote\\' => 17, 16 'Codexpert\\Target_Blank\\App\\' => 27, 14 17 ), 15 18 ); 16 19 17 20 public static $prefixDirsPsr4 = array ( 18 ' codexpert\\Target_Blank\\' =>21 'Codexpert\\Target_Blank\\App\\' => 19 22 array ( 20 0 => __DIR__ . '/../..' . '/ includes',23 0 => __DIR__ . '/../..' . '/app', 21 24 ), 22 'codexpert\\Remote\\' => 23 array ( 24 0 => __DIR__ . '/../..' . '/codexpert', 25 ), 25 ); 26 27 public static $classMap = array ( 28 'Codexpert\\Plugin\\Base' => __DIR__ . '/..' . '/codexpert/plugin/src/Base.php', 29 'Codexpert\\Plugin\\Deactivator' => __DIR__ . '/..' . '/codexpert/plugin/src/Deactivator.php', 30 'Codexpert\\Plugin\\Feature' => __DIR__ . '/..' . '/codexpert/plugin/src/Feature.php', 31 'Codexpert\\Plugin\\Fields' => __DIR__ . '/..' . '/codexpert/plugin/src/Fields.php', 32 'Codexpert\\Plugin\\License' => __DIR__ . '/..' . '/codexpert/plugin/src/License.php', 33 'Codexpert\\Plugin\\Metabox' => __DIR__ . '/..' . '/codexpert/plugin/src/Metabox.php', 34 'Codexpert\\Plugin\\Notice' => __DIR__ . '/..' . '/codexpert/plugin/src/Notice.php', 35 'Codexpert\\Plugin\\Settings' => __DIR__ . '/..' . '/codexpert/plugin/src/Settings.php', 36 'Codexpert\\Plugin\\Setup' => __DIR__ . '/..' . '/codexpert/plugin/src/Setup.php', 37 'Codexpert\\Plugin\\Survey' => __DIR__ . '/..' . '/codexpert/plugin/src/Survey.php', 38 'Codexpert\\Plugin\\Table' => __DIR__ . '/..' . '/codexpert/plugin/src/Table.php', 39 'Codexpert\\Plugin\\Update' => __DIR__ . '/..' . '/codexpert/plugin/src/Update.php', 40 'Codexpert\\Plugin\\Widget' => __DIR__ . '/..' . '/codexpert/plugin/src/Widget.php', 41 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 42 'Pluggable\\Marketing\\Deactivator' => __DIR__ . '/..' . '/pluggable/marketing/src/Deactivator.php', 26 43 ); 27 44 … … 29 46 { 30 47 return \Closure::bind(function () use ($loader) { 31 $loader->prefixLengthsPsr4 = ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a::$prefixLengthsPsr4; 32 $loader->prefixDirsPsr4 = ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a::$prefixDirsPsr4; 48 $loader->prefixLengthsPsr4 = ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$prefixLengthsPsr4; 49 $loader->prefixDirsPsr4 = ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$prefixDirsPsr4; 50 $loader->classMap = ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$classMap; 33 51 34 52 }, null, ClassLoader::class); -
mdc-target-blank/trunk/vendor/composer/installed.json
r2026979 r2932862 1 [] 1 { 2 "packages": [ 3 { 4 "name": "codexpert/plugin", 5 "version": "dev-master", 6 "version_normalized": "dev-master", 7 "source": { 8 "type": "git", 9 "url": "https://bitbucket.org/codexpertio/codexpert-plugin.git", 10 "reference": "ba199fff1419d9ede59e764dcd5c7d865b71cf29" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://bitbucket.org/codexpertio/codexpert-plugin/get/ba199fff1419d9ede59e764dcd5c7d865b71cf29.zip", 15 "reference": "ba199fff1419d9ede59e764dcd5c7d865b71cf29", 16 "shasum": "" 17 }, 18 "require": { 19 "php": ">=5.3.0" 20 }, 21 "time": "2023-06-28T06:07:20+00:00", 22 "default-branch": true, 23 "type": "library", 24 "installation-source": "dist", 25 "autoload": { 26 "classmap": [ 27 "src/" 28 ] 29 }, 30 "notification-url": "https://packagist.org/downloads/", 31 "license": [ 32 "GPL-3.0-or-later" 33 ], 34 "authors": [ 35 { 36 "name": "Codexpert", 37 "email": "hello@codexpert.io", 38 "homepage": "https://codexpert.io", 39 "role": "Developer" 40 } 41 ], 42 "description": "Plugin tools for Codexpert", 43 "homepage": "https://bitbucket.org/codexpertio/codexpert-plugin", 44 "keywords": [ 45 "codexpert", 46 "plugin" 47 ], 48 "support": { 49 "source": "https://bitbucket.org/codexpertio/codexpert-plugin/src/ba199fff1419d9ede59e764dcd5c7d865b71cf29/?at=master" 50 }, 51 "install-path": "../codexpert/plugin" 52 }, 53 { 54 "name": "pluggable/marketing", 55 "version": "0.2", 56 "version_normalized": "0.2.0.0", 57 "source": { 58 "type": "git", 59 "url": "https://bitbucket.org/pluggableio/marketing.git", 60 "reference": "1bcb43284c3c3fc277d64351f7fce966c045cdb4" 61 }, 62 "dist": { 63 "type": "zip", 64 "url": "https://bitbucket.org/pluggableio/marketing/get/1bcb43284c3c3fc277d64351f7fce966c045cdb4.zip", 65 "reference": "1bcb43284c3c3fc277d64351f7fce966c045cdb4", 66 "shasum": "" 67 }, 68 "require": { 69 "php": ">=7.2.0" 70 }, 71 "time": "2023-05-25T14:22:22+00:00", 72 "type": "library", 73 "installation-source": "dist", 74 "autoload": { 75 "classmap": [ 76 "src/" 77 ] 78 }, 79 "notification-url": "https://packagist.org/downloads/", 80 "license": [ 81 "GPL-3.0-or-later" 82 ], 83 "authors": [ 84 { 85 "name": "Pluggable", 86 "email": "hi@pluggable.io", 87 "homepage": "https://pluggable.io", 88 "role": "Developer" 89 } 90 ], 91 "description": "Marketing toolkit for Pluggable plugins", 92 "homepage": "https://bitbucket.org/pluggableio/marketing/", 93 "keywords": [ 94 "marketing", 95 "pluggable" 96 ], 97 "support": { 98 "source": "https://bitbucket.org/pluggableio/marketing/src/1bcb43284c3c3fc277d64351f7fce966c045cdb4/?at=0.2" 99 }, 100 "install-path": "../pluggable/marketing" 101 } 102 ], 103 "dev": true, 104 "dev-package-names": [] 105 } -
mdc-target-blank/trunk/views/index.php
-
Property
svn:executable
set to
*
-
Property
svn:executable
set to
Note: See TracChangeset
for help on using the changeset viewer.