Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmiBX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitrix
AmiBX
Commits
8a5f30eb
Commit
8a5f30eb
authored
Nov 30, 2021
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check rest file
parent
bb6a03b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
.gitignore
.gitignore
+2
-1
BxRest.php
vendor/alovoice/src/BxRest.php
+5
-5
No files found.
.gitignore
View file @
8a5f30eb
...
...
@@ -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
vendor/alovoice/src/BxRest.php
View file @
8a5f30eb
<?php
namespace
AloVoice
;
use
AloVoice\AloVoiceConnector
as
ALVC
;
// require_once (__DIR__.'/setting
s.php');
define
(
'C_REST_CLIENT_ID'
,
'local.5ffda24a2b70f7.09456768'
);
// LocalApp
define
(
'C_REST_CLIENT_SECRET'
,
'z2FVT3DfjUrcnokbT0ogrcCRJby0C4e60MRciRcSfNpateh3FB'
);
//Application key
require_once
(
__DIR__
.
'/key
s.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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment