Commit 8a5f30eb authored by Kulya's avatar Kulya 😊

Check rest file

parent bb6a03b4
...@@ -28,4 +28,5 @@ vendor/alovoice/src/settings.json ...@@ -28,4 +28,5 @@ vendor/alovoice/src/settings.json
!listener.php !listener.php
!mydb.php !mydb.php
!registration.php !registration.php
!vendor/*.php !vendor/*.php
\ No newline at end of file vendor/alovoice/src/keys.php
\ No newline at end of file
<?php namespace AloVoice; <?php namespace AloVoice;
use AloVoice\AloVoiceConnector as ALVC; use AloVoice\AloVoiceConnector as ALVC;
// require_once (__DIR__.'/settings.php'); require_once (__DIR__.'/keys.php');
define('C_REST_CLIENT_ID','local.5ffda24a2b70f7.09456768'); // LocalApp // define('C_REST_CLIENT_ID','local.5ffda24a2b70f7.09456768'); // LocalApp
define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3FB'); //Application key // define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3FB'); //Application key
/** /**
* @version 1.36 * @version 1.36
* define: * define:
...@@ -41,11 +41,11 @@ define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3F ...@@ -41,11 +41,11 @@ define('C_REST_CLIENT_SECRET','z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3F
'rest_only' => true, 'rest_only' => true,
'install' => false '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); $result['install'] = static::setAppSettings($_REQUEST[ 'auth' ], true);
} }
elseif($_REQUEST['PLACEMENT'] == 'DEFAULT') elseif((!empty($_REQUEST['PLACEMENT'])) && $_REQUEST['PLACEMENT'] == 'DEFAULT')
{ {
$result['rest_only'] = false; $result['rest_only'] = false;
$result['install'] = static::setAppSettings( $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