mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
Bugfix curly braces cronjobs
This commit is contained in:
parent
7e9503e1b6
commit
eb4cd6b6b6
@ -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
|
||||
|
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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')){
|
||||
|
@ -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");
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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
|
||||
|
@ -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')){
|
||||
|
@ -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");
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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')) {
|
||||
|
@ -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");
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user