Commit 8a5f30eb authored by Kulya's avatar Kulya 😊

Check rest file

parent bb6a03b4
......@@ -29,3 +29,4 @@ vendor/alovoice/src/settings.json
!mydb.php
!registration.php
!vendor/*.php
vendor/alovoice/src/keys.php
\ No newline at end of file
<?php namespace AloVoice;
use AloVoice\AloVoiceConnector as ALVC;
// require_once (__DIR__.'/settings.php');
define('C_REST_CLIENT_ID','local.5ffda24a2b70f7.09456768'); // LocalApp
define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3FB'); //Application key
require_once (__DIR__.'/keys.php');
// define('C_REST_CLIENT_ID','local.5ffda24a2b70f7.09456768'); // LocalApp
// define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3FB'); //Application key
/**
* @version 1.36
* define:
......@@ -41,11 +41,11 @@ define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3F
'rest_only' => true,
'install' => false
];
if($_REQUEST[ 'event' ] == 'ONAPPINSTALL' && !empty($_REQUEST[ 'auth' ]))
if(!empty($_REQUEST[ 'event' ]) && $_REQUEST[ 'event' ] == 'ONAPPINSTALL' && !empty($_REQUEST[ 'auth' ]))
{
$result['install'] = static::setAppSettings($_REQUEST[ 'auth' ], true);
}
elseif($_REQUEST['PLACEMENT'] == 'DEFAULT')
elseif((!empty($_REQUEST['PLACEMENT'])) && $_REQUEST['PLACEMENT'] == 'DEFAULT')
{
$result['rest_only'] = false;
$result['install'] = static::setAppSettings(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment