Bugfix curly braces cronjobs

This commit is contained in:
Xenomporio 2022-06-01 21:14:27 +02:00
parent 7e9503e1b6
commit eb4cd6b6b6
25 changed files with 25 additions and 25 deletions

View File

@ -11,7 +11,7 @@ include_once(dirname(__DIR__)."/www/lib/class.httpclient.php");
if(!class_exists('AES')){
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2';
if($aes == 2 && is_file(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php")){
include_once(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php");
}else

View File

@ -42,7 +42,7 @@ include_once(dirname(__DIR__) . '/www/lib/class.httpclient.php');
if(!class_exists('AES')){
$aes = '';
$phpversion = phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2';
if($aes == 2 && is_file(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php')){
include_once(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php');
}else{

View File

@ -51,7 +51,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2';
if($aes == 2 && is_file(dirname(__DIR__) . '/www/lib/class.aes'.$aes.'.php')){
include_once(dirname(__DIR__) . '/www/lib/class.aes'.$aes.'.php');
}else{

View File

@ -15,7 +15,7 @@ include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
if(!class_exists('AES')){
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') ===0 && (int)$phpversion{2} > 0) {
if(strpos($phpversion,'7') ===0 && (int)$phpversion[2] > 0) {
$aes = '2';
}
if($aes === '2' && is_file(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php')){

View File

@ -15,7 +15,7 @@ if(is_file(dirname(__FILE__)."/../www/lib/class.erpapi_custom.php"))
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -20,7 +20,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){
include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -37,7 +37,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -7,7 +7,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -8,7 +8,7 @@ include(dirname(__FILE__)."/../www/lib/class.remote.php");
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -36,7 +36,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -66,7 +66,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2';
if($aes == 2 && is_file(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php")){
include_once(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php");
}else

View File

@ -63,7 +63,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7' === '0') && (int)$phpversion{2} > 0) {
if(strpos($phpversion,'7' === '0') && (int)$phpversion[2] > 0) {
$aes = '2';
}
if($aes === '2' && is_file(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php')){

View File

@ -14,7 +14,7 @@ include_once(dirname(__DIR__)."/www/lib/class.remote.php");
include_once(dirname(__DIR__)."/www/lib/class.httpclient.php");
$aes = '';
$phpversion = phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__DIR__)."/www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__DIR__)."/www/lib/class.aes".$aes.".php");

View File

@ -21,7 +21,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){
include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -5,7 +5,7 @@ include("../lib/imap.inc.php");
include("../lib/class.remote.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -6,7 +6,7 @@ include("../webroot/lib/class.erpapi.php");
include("../webroot/lib/class.remote.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -29,7 +29,7 @@ include_once dirname(__DIR__).'/www/lib/class.remote.php';
include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0) {
if($phpversion[0] == '7' && (int)$phpversion[2] > 0) {
$aes = '2';
}
if($aes == 2 && is_file(dirname(__DIR__).'/www/lib/class.aes2.php')) {

View File

@ -7,7 +7,7 @@ include(dirname(__FILE__)."/../www/lib/class.remote.php");
include(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");

View File

@ -45,7 +45,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -20,7 +20,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){
include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -25,7 +25,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)
if($phpversion[0] == 7 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -45,7 +45,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -45,7 +45,7 @@ if(!class_exists('HttpClient')){
if(!class_exists('AES')){
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -21,7 +21,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){
include_once dirname(__DIR__).'/www/lib/class.httpclient.php';
$aes = '';
$phpversion = PHP_VERSION;
if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0)
if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0)
{
$aes = '2';
}

View File

@ -33,7 +33,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php");
include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php");
$aes = '';
$phpversion = (String)phpversion();
if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2';
if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2';
if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
{
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");