CMXX - Software update servicekit
This commit is contained in:
@@ -178,7 +178,7 @@ echo ']';
|
||||
break;
|
||||
|
||||
case 'serviceInit':
|
||||
include './settings/systemservicetool.php';
|
||||
include './settings/systemservicetool_init.php';
|
||||
echo json_encode($init);
|
||||
break;
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ $username = $user_data['username'];
|
||||
$useremail = $user_data['email'];
|
||||
$servicekey = $user_data['service'];
|
||||
$partner = json_decode($partnerhierarchy);
|
||||
$language = $user_data['language'];
|
||||
$clientsecret = $user_data['userkey'];
|
||||
|
||||
//Update Lastlogin
|
||||
$logindate = date('Y-m-d H:i:s');
|
||||
|
||||
@@ -124,8 +124,19 @@ else {
|
||||
}
|
||||
|
||||
// IF PRODUCTCODE AND VERSION IS SEND ASSUME SOFTWARE REQUEST
|
||||
if (!isset($criterias['productrowid']) && isset($criterias['productcode']) && $criterias['productcode'] != '' && isset($criterias['version'])){
|
||||
if (!isset($criterias['productrowid']) && isset($criterias['productcode']) && $criterias['productcode'] != ''){
|
||||
|
||||
//default output
|
||||
$output = array(
|
||||
"productcode" => "",
|
||||
"version"=> "",
|
||||
"mandatory"=> "",
|
||||
"latest"=> "",
|
||||
"software"=> "",
|
||||
"source" => "",
|
||||
"source_type" => "",
|
||||
);
|
||||
|
||||
//CHECK IF VERSION IS LATEST
|
||||
$latest_check = 0;
|
||||
foreach ($messages as $message){
|
||||
|
||||
@@ -127,10 +127,22 @@ else {
|
||||
}
|
||||
|
||||
// IF PRODUCTCODE AND VERSION IS SEND ASSUME SOFTWARE REQUEST
|
||||
if (!isset($criterias['productrowid']) && isset($criterias['productcode']) && $criterias['productcode'] != '' && isset($criterias['version'])){
|
||||
if (!isset($criterias['productrowid']) && isset($criterias['productcode']) && $criterias['productcode'] != '' ){
|
||||
|
||||
//default output
|
||||
$output = array(
|
||||
"productcode" => "",
|
||||
"version"=> "",
|
||||
"mandatory"=> "",
|
||||
"latest"=> "",
|
||||
"software"=> "",
|
||||
"source" => "",
|
||||
"source_type" => "",
|
||||
);
|
||||
|
||||
//CHECK IF VERSION IS LATEST
|
||||
$latest_check = 0;
|
||||
|
||||
foreach ($messages as $message){
|
||||
if ($message['latest'] == 1){
|
||||
$output = array(
|
||||
|
||||
Reference in New Issue
Block a user