PMCORE-3835
This commit is contained in:
@@ -31,8 +31,8 @@
|
|||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1",
|
"php": "^7.4|^8.1",
|
||||||
"laravel/framework": "5.7.*",
|
"laravel/framework": "8.83.*",
|
||||||
"luracast/restler": "3.0",
|
"luracast/restler": "3.0",
|
||||||
"bshaffer/oauth2-server-php": "v1.0",
|
"bshaffer/oauth2-server-php": "v1.0",
|
||||||
"colosa/pmui": "release/3.7.5-dev",
|
"colosa/pmui": "release/3.7.5-dev",
|
||||||
@@ -41,8 +41,8 @@
|
|||||||
"colosa/taskscheduler": "release/1.0.3-dev",
|
"colosa/taskscheduler": "release/1.0.3-dev",
|
||||||
"google/apiclient": "1.1.6",
|
"google/apiclient": "1.1.6",
|
||||||
"dapphp/securimage": "^3.6",
|
"dapphp/securimage": "^3.6",
|
||||||
"psr/log": "1.0.0",
|
"psr/log": "1.0.1",
|
||||||
"monolog/monolog": "1.19.0",
|
"monolog/monolog": "^2.1",
|
||||||
"geshi/geshi": "dev-master",
|
"geshi/geshi": "dev-master",
|
||||||
"libchart/libchart": "1.4.0",
|
"libchart/libchart": "1.4.0",
|
||||||
"phpmailer/phpmailer": "^6.4",
|
"phpmailer/phpmailer": "^6.4",
|
||||||
@@ -52,10 +52,9 @@
|
|||||||
"ralouphie/getallheaders": "^2.0",
|
"ralouphie/getallheaders": "^2.0",
|
||||||
"smarty/smarty": "2.6.31",
|
"smarty/smarty": "2.6.31",
|
||||||
"pdepend/pdepend": "@stable",
|
"pdepend/pdepend": "@stable",
|
||||||
"chumper/zipper": "^1.0",
|
|
||||||
"php-imap/php-imap": "^3.0",
|
"php-imap/php-imap": "^3.0",
|
||||||
"nikic/php-parser": "3.1.5",
|
"nikic/php-parser": "3.1.5",
|
||||||
"laravel/tinker": "^1.0",
|
"laravel/tinker": "^2.0",
|
||||||
"league/oauth2-client": "^2.4",
|
"league/oauth2-client": "^2.4",
|
||||||
"league/oauth2-google": "^3.0",
|
"league/oauth2-google": "^3.0",
|
||||||
"tecnickcom/tcpdf": "6.3.*",
|
"tecnickcom/tcpdf": "6.3.*",
|
||||||
@@ -63,13 +62,12 @@
|
|||||||
"predis/predis": "1.1.1",
|
"predis/predis": "1.1.1",
|
||||||
"phpmyadmin/sql-parser": "^5.3",
|
"phpmyadmin/sql-parser": "^5.3",
|
||||||
"aws/aws-sdk-php": "~3.0",
|
"aws/aws-sdk-php": "~3.0",
|
||||||
"cretueusebiu/laravel-javascript": "^0.2.1",
|
|
||||||
"stevenmaguire/oauth2-microsoft": "^2.2",
|
"stevenmaguire/oauth2-microsoft": "^2.2",
|
||||||
"phpseclib/mcrypt_compat": "^2.0"
|
"phpseclib/mcrypt_compat": "^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"guzzlehttp/guzzle": "^6.3",
|
"guzzlehttp/guzzle": "^6.3",
|
||||||
"phpunit/phpunit": "~5.7",
|
"phpunit/phpunit": "8.5.26",
|
||||||
"filp/whoops": "~2.0",
|
"filp/whoops": "~2.0",
|
||||||
"behat/behat": "^3.3",
|
"behat/behat": "^3.3",
|
||||||
"behat/mink-selenium2-driver": "^1.3",
|
"behat/mink-selenium2-driver": "^1.3",
|
||||||
@@ -128,5 +126,11 @@
|
|||||||
"bootstrap/classaliasmap.php"
|
"bootstrap/classaliasmap.php"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"allow-plugins": {
|
||||||
|
"kylekatarnls/update-helper": true,
|
||||||
|
"typo3/class-alias-loader": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
5034
composer.lock
generated
5034
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -27,8 +27,7 @@ return [
|
|||||||
Illuminate\Bus\BusServiceProvider::class,
|
Illuminate\Bus\BusServiceProvider::class,
|
||||||
Illuminate\Redis\RedisServiceProvider::class,
|
Illuminate\Redis\RedisServiceProvider::class,
|
||||||
App\Providers\AppServiceProvider::class,
|
App\Providers\AppServiceProvider::class,
|
||||||
App\Providers\ViewServiceProvider::class,
|
App\Providers\ViewServiceProvider::class
|
||||||
Eusebiu\JavaScript\JavaScriptServiceProvider::class
|
|
||||||
],
|
],
|
||||||
'aliases' => [
|
'aliases' => [
|
||||||
'Crypt' => Illuminate\Support\Facades\Crypt::class,
|
'Crypt' => Illuminate\Support\Facades\Crypt::class,
|
||||||
|
|||||||
@@ -6,19 +6,10 @@
|
|||||||
* It also does some sanity checks.
|
* It also does some sanity checks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {
|
spl_autoload_register(function($class)
|
||||||
// We need unregister for our pre-registering functionality
|
|
||||||
HTMLPurifier_Bootstrap::registerAutoload();
|
|
||||||
if (function_exists('__autoload')) {
|
|
||||||
// Be polite and ensure that userland autoload gets retained
|
|
||||||
spl_autoload_register('__autoload');
|
|
||||||
}
|
|
||||||
} elseif (!function_exists('__autoload')) {
|
|
||||||
function __autoload($class)
|
|
||||||
{
|
{
|
||||||
return HTMLPurifier_Bootstrap::autoload($class);
|
return HTMLPurifier_Bootstrap::autoload($class);
|
||||||
}
|
});
|
||||||
}
|
|
||||||
|
|
||||||
if (ini_get('zend.ze1_compatibility_mode')) {
|
if (ini_get('zend.ze1_compatibility_mode')) {
|
||||||
trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);
|
trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class HTMLPurifier_Encoder
|
|||||||
|
|
||||||
$len = strlen($str);
|
$len = strlen($str);
|
||||||
for ($i = 0; $i < $len; $i++) {
|
for ($i = 0; $i < $len; $i++) {
|
||||||
$in = ord($str{$i});
|
$in = ord($str[$i]);
|
||||||
$char .= $str[$i]; // append byte to char
|
$char .= $str[$i]; // append byte to char
|
||||||
if (0 == $mState) {
|
if (0 == $mState) {
|
||||||
// When mState is zero we expect either a US-ASCII character
|
// When mState is zero we expect either a US-ASCII character
|
||||||
|
|||||||
8
thirdparty/pake/pakeFinder.class.php
vendored
8
thirdparty/pake/pakeFinder.class.php
vendored
@@ -523,10 +523,10 @@ class pakeFinder
|
|||||||
|
|
||||||
public static function isPathAbsolute($path)
|
public static function isPathAbsolute($path)
|
||||||
{
|
{
|
||||||
if ($path{0} == '/' || $path{0} == '\\' ||
|
if ($path[0] == '/' || $path[0] == '\\' ||
|
||||||
(strlen($path) > 3 && ctype_alpha($path{0}) &&
|
(strlen($path) > 3 && ctype_alpha($path[0]) &&
|
||||||
$path{1} == ':' &&
|
$path[1] == ':' &&
|
||||||
($path{2} == '\\' || $path{2} == '/')
|
($path[2] == '\\' || $path[2] == '/')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
3
thirdparty/pake/pakeFunction.php
vendored
3
thirdparty/pake/pakeFunction.php
vendored
@@ -411,7 +411,6 @@ if (false !== strpos(PHP_SAPI, 'cgi'))
|
|||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
ini_set('track_errors', true);
|
ini_set('track_errors', true);
|
||||||
ini_set('html_errors', false);
|
ini_set('html_errors', false);
|
||||||
ini_set('magic_quotes_runtime', false);
|
|
||||||
|
|
||||||
// define stream constants
|
// define stream constants
|
||||||
define('STDIN', fopen('php://stdin', 'r'));
|
define('STDIN', fopen('php://stdin', 'r'));
|
||||||
@@ -425,5 +424,5 @@ if (false !== strpos(PHP_SAPI, 'cgi'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// close the streams on script termination
|
// close the streams on script termination
|
||||||
register_shutdown_function(create_function('', 'fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;'));
|
register_shutdown_function(function(){fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;});
|
||||||
}
|
}
|
||||||
|
|||||||
16
thirdparty/pake/pakeGetopt.class.php
vendored
16
thirdparty/pake/pakeGetopt.class.php
vendored
@@ -50,14 +50,14 @@ class pakeGetopt
|
|||||||
|
|
||||||
public function add_option($long_opt, $short_opt, $mode = self::NO_ARGUMENT, $comment = '')
|
public function add_option($long_opt, $short_opt, $mode = self::NO_ARGUMENT, $comment = '')
|
||||||
{
|
{
|
||||||
if ($long_opt{0} == '-' && $long_opt{1} == '-')
|
if ($long_opt[0] == '-' && $long_opt[1] == '-')
|
||||||
{
|
{
|
||||||
$long_opt = substr($long_opt, 2);
|
$long_opt = substr($long_opt, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($short_opt)
|
if ($short_opt)
|
||||||
{
|
{
|
||||||
if ($short_opt{0} == '-')
|
if ($short_opt[0] == '-')
|
||||||
{
|
{
|
||||||
$short_opt = substr($short_opt, 1);
|
$short_opt = substr($short_opt, 1);
|
||||||
}
|
}
|
||||||
@@ -81,7 +81,7 @@ class pakeGetopt
|
|||||||
$args = $this->read_php_argv();
|
$args = $this->read_php_argv();
|
||||||
|
|
||||||
// we strip command line program
|
// we strip command line program
|
||||||
if (isset($args[0]) && $args[0]{0} != '-')
|
if (isset($args[0]) && $args[0][0] != '-')
|
||||||
{
|
{
|
||||||
array_shift($args);
|
array_shift($args);
|
||||||
}
|
}
|
||||||
@@ -101,12 +101,12 @@ class pakeGetopt
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($arg{0} != '-' || (strlen($arg) > 1 && $arg{1} == '-' && !$this->long_options))
|
if ($arg[0] != '-' || (strlen($arg) > 1 && $arg[1] == '-' && !$this->long_options))
|
||||||
{
|
{
|
||||||
$this->arguments = array_merge($this->arguments, array($arg), $this->args);
|
$this->arguments = array_merge($this->arguments, array($arg), $this->args);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
elseif (strlen($arg) > 1 && $arg{1} == '-')
|
elseif (strlen($arg) > 1 && $arg[1] == '-')
|
||||||
{
|
{
|
||||||
$this->parse_long_option(substr($arg, 2));
|
$this->parse_long_option(substr($arg, 2));
|
||||||
}
|
}
|
||||||
@@ -149,7 +149,7 @@ class pakeGetopt
|
|||||||
{
|
{
|
||||||
for ($i = 0; $i < strlen($arg); $i++)
|
for ($i = 0; $i < strlen($arg); $i++)
|
||||||
{
|
{
|
||||||
$opt = $arg{$i};
|
$opt = $arg[$i];
|
||||||
$opt_arg = true;
|
$opt_arg = true;
|
||||||
|
|
||||||
/* option exists? */
|
/* option exists? */
|
||||||
@@ -169,7 +169,7 @@ class pakeGetopt
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// take next element as argument (if it doesn't start with a -)
|
// take next element as argument (if it doesn't start with a -)
|
||||||
if (count($this->args) && $this->args[0]{0} != '-')
|
if (count($this->args) && $this->args[0][0] != '-')
|
||||||
{
|
{
|
||||||
$this->options[$this->short_options[$opt]['name']] = array_shift($this->args);
|
$this->options[$this->short_options[$opt]['name']] = array_shift($this->args);
|
||||||
break;
|
break;
|
||||||
@@ -189,7 +189,7 @@ class pakeGetopt
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// take next element as argument (if it doesn't start with a -)
|
// take next element as argument (if it doesn't start with a -)
|
||||||
if (count($this->args) && $this->args[0]{0} != '-')
|
if (count($this->args) && $this->args[0][0] != '-')
|
||||||
{
|
{
|
||||||
$this->options[$this->short_options[$opt]['name']] = array_shift($this->args);
|
$this->options[$this->short_options[$opt]['name']] = array_shift($this->args);
|
||||||
}
|
}
|
||||||
|
|||||||
2
thirdparty/pake/pakeYaml.class.php
vendored
2
thirdparty/pake/pakeYaml.class.php
vendored
@@ -193,7 +193,7 @@
|
|||||||
} elseif ($this->_inBlock == true && empty($ifchk)) {
|
} elseif ($this->_inBlock == true && empty($ifchk)) {
|
||||||
$last =& $this->_allNodes[$this->_lastNode];
|
$last =& $this->_allNodes[$this->_lastNode];
|
||||||
$last->data[key($last->data)] .= "\n";
|
$last->data[key($last->data)] .= "\n";
|
||||||
} elseif ($ifchk{0} != '#' && substr($ifchk,0,3) != '---') {
|
} elseif ($ifchk[0] != '#' && substr($ifchk,0,3) != '---') {
|
||||||
// Create a new node and get its indent
|
// Create a new node and get its indent
|
||||||
$node = new pakeYAMLNode;
|
$node = new pakeYAMLNode;
|
||||||
$node->indent = $this->_getIndent($line);
|
$node->indent = $this->_getIndent($line);
|
||||||
|
|||||||
@@ -472,6 +472,7 @@ class SkinEngine
|
|||||||
if (!defined('NO_DISPLAY_USERNAME')) {
|
if (!defined('NO_DISPLAY_USERNAME')) {
|
||||||
define('NO_DISPLAY_USERNAME', 0);
|
define('NO_DISPLAY_USERNAME', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NO_DISPLAY_USERNAME == 0) {
|
if (NO_DISPLAY_USERNAME == 0) {
|
||||||
$smarty->assign('userfullname', isset($_SESSION['USR_FULLNAME']) ? $_SESSION['USR_FULLNAME'] : '');
|
$smarty->assign('userfullname', isset($_SESSION['USR_FULLNAME']) ? $_SESSION['USR_FULLNAME'] : '');
|
||||||
$smarty->assign('user', isset($_SESSION['USR_USERNAME']) ? '(' . $_SESSION['USR_USERNAME'] . ')' : '');
|
$smarty->assign('user', isset($_SESSION['USR_USERNAME']) ? '(' . $_SESSION['USR_USERNAME'] . ')' : '');
|
||||||
@@ -708,6 +709,9 @@ class SkinEngine
|
|||||||
$smarty->cache_dir = PATH_SMARTY_CACHE;
|
$smarty->cache_dir = PATH_SMARTY_CACHE;
|
||||||
$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs';
|
$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs';
|
||||||
|
|
||||||
|
// Initializing template variables
|
||||||
|
$smarty->assign('userfullname', null);
|
||||||
|
|
||||||
//To setup en extJS Theme for this Skin
|
//To setup en extJS Theme for this Skin
|
||||||
|
|
||||||
$oServerConf = ServerConf::getSingleton();
|
$oServerConf = ServerConf::getSingleton();
|
||||||
@@ -847,6 +851,7 @@ class SkinEngine
|
|||||||
$smarty->assign('workspace', !empty(config("system.workspace")) ? config("system.workspace") : '');
|
$smarty->assign('workspace', !empty(config("system.workspace")) ? config("system.workspace") : '');
|
||||||
$uws = (isset($_SESSION['USR_ROLENAME']) && $_SESSION['USR_ROLENAME'] != '') ? strtolower(G::LoadTranslation('ID_WORKSPACE_USING')) : G::LoadTranslation('ID_WORKSPACE_USING');
|
$uws = (isset($_SESSION['USR_ROLENAME']) && $_SESSION['USR_ROLENAME'] != '') ? strtolower(G::LoadTranslation('ID_WORKSPACE_USING')) : G::LoadTranslation('ID_WORKSPACE_USING');
|
||||||
$smarty->assign('workspace_label', $uws);
|
$smarty->assign('workspace_label', $uws);
|
||||||
|
$smarty->assign('msgVer', null);
|
||||||
|
|
||||||
$conf = new Configurations();
|
$conf = new Configurations();
|
||||||
$conf->getFormats();
|
$conf->getFormats();
|
||||||
|
|||||||
@@ -860,7 +860,7 @@ if (substr(SYS_COLLECTION, 0, 8) === 'gulliver') {
|
|||||||
//if the method name is empty set default to index method
|
//if the method name is empty set default to index method
|
||||||
$controllerAction = SYS_TARGET != '' ? SYS_TARGET : 'index';
|
$controllerAction = SYS_TARGET != '' ? SYS_TARGET : 'index';
|
||||||
//if the method exists
|
//if the method exists
|
||||||
if (is_callable(array($controllerClass, $controllerAction))) {
|
if (is_callable(array(new $controllerClass, $controllerAction))) {
|
||||||
$isControllerCall = true;
|
$isControllerCall = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user