Changeset 1974938
- Timestamp:
- 11/15/2018 02:01:54 PM (7 years ago)
- Location:
- ghostmonitor
- Files:
-
- 80 added
- 9 edited
-
tags/1.12.3 (added)
-
tags/1.12.3/assets (added)
-
tags/1.12.3/assets/js (added)
-
tags/1.12.3/assets/js/ghostmonitor_messenger_widget.js (added)
-
tags/1.12.3/assets/js/ghostmonitor_push.js (added)
-
tags/1.12.3/config.json (added)
-
tags/1.12.3/includes (added)
-
tags/1.12.3/includes/class-wc-ghostmonitor-api.php (added)
-
tags/1.12.3/includes/class-wc-ghostmonitor.php (added)
-
tags/1.12.3/includes/ghostmonitor_api (added)
-
tags/1.12.3/includes/ghostmonitor_api/ghost-api.php (added)
-
tags/1.12.3/includes/ghostmonitor_api/src (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/controller (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/controller/class-base-controller.php (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/controller/class-stat-controller.php (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/model (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/model/class-order-model.php (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/utils (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/utils/request (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/utils/request/class-request-interface.php (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/utils/request/class-request.php (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/utils/response (added)
-
tags/1.12.3/includes/ghostmonitor_api/src/utils/response/class-response.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/autoload.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/ClassLoader.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/LICENSE (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/autoload_classmap.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/autoload_files.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/autoload_namespaces.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/autoload_psr4.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/autoload_real.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/autoload_static.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/composer/installed.json (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/.gitignore (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/.travis.yml (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/LICENSE (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/README.md (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/bin (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/bin/generate_method_docs.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/composer.json (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/Assertion.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/AssertionChain.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/AssertionFailedException.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/InvalidArgumentException.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/LazyAssertion.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/LazyAssertionException.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/lib/Assert/functions.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/phpunit.xml.dist (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests/Assert (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests/Assert/Tests (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests/Assert/Tests/AssertTest.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests/Assert/Tests/AssertionChainTest.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests/Assert/Tests/LazyAssertionTest.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/assert/tests/bootstrap.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/helper (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/helper/.gitignore (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/helper/composer.json (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/helper/ghostmonitor (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/helper/ghostmonitor/Helper.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/helper/ghostmonitor/Logger.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/.gitignore (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/.travis.yml (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/LeLogger.php (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/README.md (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/composer.json (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/phpunit.xml (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/unit_tests (added)
-
tags/1.12.3/includes/ghostmonitor_helper/vendor/ghostmonitor/logentries/unit_tests/LeLoggerTests.php (added)
-
tags/1.12.3/readme.txt (added)
-
tags/1.12.3/woocommerce-ghostmonitor.php (added)
-
trunk/config.json (modified) (1 diff)
-
trunk/includes/class-wc-ghostmonitor.php (modified) (1 diff)
-
trunk/includes/ghostmonitor_helper/vendor/autoload.php (modified) (1 diff)
-
trunk/includes/ghostmonitor_helper/vendor/composer/ClassLoader.php (modified) (5 diffs)
-
trunk/includes/ghostmonitor_helper/vendor/composer/LICENSE (modified) (1 diff)
-
trunk/includes/ghostmonitor_helper/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/includes/ghostmonitor_helper/vendor/composer/autoload_static.php (added)
-
trunk/includes/ghostmonitor_helper/vendor/composer/installed.json (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/woocommerce-ghostmonitor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ghostmonitor/trunk/config.json
r1973142 r1974938 4 4 "settingsUrl": "https://api.recart.com/tracking/v2/settings/", 5 5 "cdnUrl": "https://cdn.ghostmonitor.com", 6 "version": "v1.12. 1",6 "version": "v1.12.3", 7 7 "logentriesToken": "d3695c56-67af-4c86-8c7d-26c6c252987b", 8 8 "env": "production" -
ghostmonitor/trunk/includes/class-wc-ghostmonitor.php
r1973142 r1974938 730 730 $redirect_url = '/'; 731 731 } 732 $this->redirect_client_to_url($redirect_url); 732 733 $is_https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on'; 734 $full_url = ($is_https ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] . $redirect_url; 735 $this->redirect_client_to_url($full_url); 733 736 } 734 737 -
ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/autoload.php
r1973450 r1974938 3 3 // autoload.php @generated by Composer 4 4 5 require_once __DIR__ . '/composer ' . '/autoload_real.php';5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit a7e7318f37e302442c200a92657eb4b8::getLoader();7 return ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3::getLoader(); -
ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/ClassLoader.php
r1344741 r1974938 54 54 private $useIncludePath = false; 55 55 private $classMap = array(); 56 57 56 private $classMapAuthoritative = false; 57 private $missingClasses = array(); 58 private $apcuPrefix; 58 59 59 60 public function getPrefixes() … … 273 274 274 275 /** 276 * APCu prefix to use to cache found/not-found classes, if the extension is enabled. 277 * 278 * @param string|null $apcuPrefix 279 */ 280 public function setApcuPrefix($apcuPrefix) 281 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; 283 } 284 285 /** 286 * The APCu prefix in use, or null if APCu caching is not enabled. 287 * 288 * @return string|null 289 */ 290 public function getApcuPrefix() 291 { 292 return $this->apcuPrefix; 293 } 294 295 /** 275 296 * Registers this instance as an autoloader. 276 297 * … … 314 335 public function findFile($class) 315 336 { 316 // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731317 if ('\\' == $class[0]) {318 $class = substr($class, 1);319 }320 321 337 // class map lookup 322 338 if (isset($this->classMap[$class])) { 323 339 return $this->classMap[$class]; 324 340 } 325 if ($this->classMapAuthoritative ) {341 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { 326 342 return false; 327 343 } 344 if (null !== $this->apcuPrefix) { 345 $file = apcu_fetch($this->apcuPrefix.$class, $hit); 346 if ($hit) { 347 return $file; 348 } 349 } 328 350 329 351 $file = $this->findFileWithExtension($class, '.php'); 330 352 331 353 // Search for Hack files if we are running on HHVM 332 if ( $file === null&& defined('HHVM_VERSION')) {354 if (false === $file && defined('HHVM_VERSION')) { 333 355 $file = $this->findFileWithExtension($class, '.hh'); 334 356 } 335 357 336 if ($file === null) { 358 if (null !== $this->apcuPrefix) { 359 apcu_add($this->apcuPrefix.$class, $file); 360 } 361 362 if (false === $file) { 337 363 // Remember that this class does not exist. 338 return $this->classMap[$class] = false;364 $this->missingClasses[$class] = true; 339 365 } 340 366 … … 349 375 $first = $class[0]; 350 376 if (isset($this->prefixLengthsPsr4[$first])) { 351 foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { 352 if (0 === strpos($class, $prefix)) { 353 foreach ($this->prefixDirsPsr4[$prefix] as $dir) { 354 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { 377 $subPath = $class; 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath . '\\'; 381 if (isset($this->prefixDirsPsr4[$search])) { 382 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); 383 foreach ($this->prefixDirsPsr4[$search] as $dir) { 384 if (file_exists($file = $dir . $pathEnd)) { 355 385 return $file; 356 386 } … … 400 430 return $file; 401 431 } 432 433 return false; 402 434 } 403 435 } -
ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/LICENSE
r1371599 r1974938 1 1 2 Copyright (c) 2016Nils Adermann, Jordi Boggiano2 Copyright (c) Nils Adermann, Jordi Boggiano 3 3 4 4 Permission is hereby granted, free of charge, to any person obtaining a copy -
ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/autoload_real.php
r1973450 r1974938 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a7e7318f37e302442c200a92657eb4b85 class ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit a7e7318f37e302442c200a92657eb4b8', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit a7e7318f37e302442c200a92657eb4b8', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3', 'loadClassLoader')); 25 25 26 $map = require __DIR__ . '/autoload_namespaces.php'; 27 foreach ($map as $namespace => $path) { 28 $loader->set($namespace, $path); 29 } 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'; 30 29 31 $map = require __DIR__ . '/autoload_psr4.php'; 32 foreach ($map as $namespace => $path) { 33 $loader->setPsr4($namespace, $path); 34 } 30 call_user_func(\Composer\Autoload\ComposerStaticInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3::getInitializer($loader)); 31 } else { 32 $map = require __DIR__ . '/autoload_namespaces.php'; 33 foreach ($map as $namespace => $path) { 34 $loader->set($namespace, $path); 35 } 35 36 36 $classMap = require __DIR__ . '/autoload_classmap.php'; 37 if ($classMap) { 38 $loader->addClassMap($classMap); 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 } 39 46 } 40 47 41 48 $loader->register(true); 42 49 43 $includeFiles = require __DIR__ . '/autoload_files.php'; 50 if ($useStaticLoader) { 51 $includeFiles = Composer\Autoload\ComposerStaticInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3::$files; 52 } else { 53 $includeFiles = require __DIR__ . '/autoload_files.php'; 54 } 44 55 foreach ($includeFiles as $fileIdentifier => $file) { 45 composerRequire a7e7318f37e302442c200a92657eb4b8($fileIdentifier, $file);56 composerRequire2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3($fileIdentifier, $file); 46 57 } 47 58 … … 50 61 } 51 62 52 function composerRequire a7e7318f37e302442c200a92657eb4b8($fileIdentifier, $file)63 function composerRequire2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3($fileIdentifier, $file) 53 64 { 54 65 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/installed.json
r1411703 r1974938 16 16 "phpunit/phpunit": "@stable" 17 17 }, 18 "time": "2015-09-21 10:12:28",18 "time": "2015-09-21T10:12:28+00:00", 19 19 "type": "library", 20 20 "installation-source": "source", … … 44 44 }, 45 45 { 46 "name": "ghostmonitor/helper", 47 "version": "v0.9.2", 48 "version_normalized": "0.9.2.0", 49 "source": { 50 "type": "git", 51 "url": "https://bitbucket.org/ghostmonitor/gm-plugin-helper.git", 52 "reference": "98e615c8e545437de67635fdd98eb0e1c2ce993e" 53 }, 54 "time": "2016-05-06T12:56:32+00:00", 55 "type": "library", 56 "installation-source": "source", 57 "autoload": { 58 "psr-4": { 59 "Ghostmonitor\\": "ghostmonitor" 60 } 61 }, 62 "authors": [ 63 { 64 "name": "Andras Hegedus", 65 "email": "andras.hegedus@ghosmonitor.com" 66 } 67 ], 68 "description": "Ghostmonitor helper class for webshop modules" 69 }, 70 { 46 71 "name": "ghostmonitor/logentries", 47 72 "version": "dev-master", … … 52 77 "reference": "577ed58952cab0d575a0e322a3119f0b6552f5f3" 53 78 }, 54 "time": "2016-02-29 17:37:55",79 "time": "2016-02-29T17:37:55+00:00", 55 80 "type": "library", 56 81 "installation-source": "source", … … 67 92 ], 68 93 "description": "Ghostmonitor Logentries Fork" 69 },70 {71 "name": "ghostmonitor/helper",72 "version": "v0.9.2",73 "version_normalized": "0.9.2.0",74 "source": {75 "type": "git",76 "url": "https://bitbucket.org/ghostmonitor/gm-plugin-helper.git",77 "reference": "98e615c8e545437de67635fdd98eb0e1c2ce993e"78 },79 "time": "2016-05-06 12:56:32",80 "type": "library",81 "installation-source": "source",82 "autoload": {83 "psr-4": {84 "Ghostmonitor\\": "ghostmonitor"85 }86 },87 "authors": [88 {89 "name": "Andras Hegedus",90 "email": "andras.hegedus@ghosmonitor.com"91 }92 ],93 "description": "Ghostmonitor helper class for webshop modules"94 94 } 95 95 ] -
ghostmonitor/trunk/readme.txt
r1973142 r1974938 4 4 Requires at least: 3.9 5 5 Tested up to: 4.9.8 6 Stable tag: 1.12. 16 Stable tag: 1.12.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
ghostmonitor/trunk/woocommerce-ghostmonitor.php
r1973142 r1974938 6 6 * Author: Ghostmonitor INC 7 7 * Author URI: http://www.recart.com 8 * Version: v1.12. 18 * Version: v1.12.3 9 9 */ 10 10 … … 44 44 global $wp_version; 45 45 46 $version = 'v1.12. 1';46 $version = 'v1.12.3'; 47 47 48 48 $discount_enabled = get_option('woocommerce_enable_coupons') === 'yes' ? 'true' : 'false';
Note: See TracChangeset
for help on using the changeset viewer.