Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
queue
Project overview
Project overview
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
5
Merge Requests
5
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
Indra Raja
queue
Commits
0a7e6077
Commit
0a7e6077
authored
Nov 03, 2020
by
Indra Raja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trial webhook
parent
da8aceac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
25 deletions
+44
-25
module/Application/src/Controller/AdminController.php
module/Application/src/Controller/AdminController.php
+23
-24
module/Application/src/Controller/UmumController.php
module/Application/src/Controller/UmumController.php
+21
-1
No files found.
module/Application/src/Controller/AdminController.php
View file @
0a7e6077
...
@@ -56,35 +56,34 @@ class AdminController extends \Application\Master\GlobalActionController
...
@@ -56,35 +56,34 @@ class AdminController extends \Application\Master\GlobalActionController
$id
=
$getpath
[
3
];
$id
=
$getpath
[
3
];
//
$curl = curl_init();
$curl
=
curl_init
();
//
curl_setopt_array($curl, array(
curl_setopt_array
(
$curl
,
array
(
//
CURLOPT_URL => "http://queue.indra/api/nextantrian",
CURLOPT_URL
=>
"http://queue.indra/api/nextantrian"
,
//
CURLOPT_RETURNTRANSFER => true,
CURLOPT_RETURNTRANSFER
=>
true
,
//
CURLOPT_ENCODING => "",
CURLOPT_ENCODING
=>
""
,
//
CURLOPT_MAXREDIRS => 10,
CURLOPT_MAXREDIRS
=>
10
,
//
CURLOPT_TIMEOUT => 0,
CURLOPT_TIMEOUT
=>
0
,
//
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_FOLLOWLOCATION
=>
true
,
//
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_HTTP_VERSION
=>
CURL_HTTP_VERSION_1_1
,
//
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_CUSTOMREQUEST
=>
"POST"
,
//
CURLOPT_POSTFIELDS => array('inoantrian' => '7','idok' => '74','istatus' => '40'),
CURLOPT_POSTFIELDS
=>
array
(
'inoantrian'
=>
'7'
,
'idok'
=>
'74'
,
'istatus'
=>
'40'
),
//
));
));
// $response = curl_exec($curl);
// curl_close($curl);
$response
=
curl_exec
(
$curl
);
// echo $response;
// $data = json_decode(file_get_contents('php://input'),true);
curl_close
(
$curl
);
echo
$response
;
// echo $data
;
$data
=
$this
->
getRequest
()
->
getPost
(
''
)
;
//
print_r($data);
print_r
(
$data
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var id = "'
.
$id
.
'"'
);
$this
->
headScript
->
appendScript
(
' var id = "'
.
$id
.
'"'
);
$this
->
headScript
->
appendFile
(
'/action-js/antrian-js/action-admin.js'
);
$this
->
headScript
->
appendFile
(
'/action-js/antrian-js/action-admin.js'
);
$this
->
layout
(
"layout/layoutAdmin"
);
$this
->
layout
(
"
s
layout/layoutAdmin"
);
return
$view
;
return
$view
;
}
}
public
function
registrasidokterAction
()
public
function
registrasidokterAction
()
...
...
module/Application/src/Controller/UmumController.php
View file @
0a7e6077
...
@@ -54,6 +54,26 @@ class UmumController extends \Application\Master\GlobalActionController
...
@@ -54,6 +54,26 @@ class UmumController extends \Application\Master\GlobalActionController
$decodeid
=
base64_decode
(
$getpath
[
3
]);
$decodeid
=
base64_decode
(
$getpath
[
3
]);
curl_setopt_array
(
$curl
,
array
(
CURLOPT_URL
=>
"http://queue.indra/api/nextantrian"
,
CURLOPT_RETURNTRANSFER
=>
true
,
CURLOPT_ENCODING
=>
""
,
CURLOPT_MAXREDIRS
=>
10
,
CURLOPT_TIMEOUT
=>
0
,
CURLOPT_FOLLOWLOCATION
=>
true
,
CURLOPT_HTTP_VERSION
=>
CURL_HTTP_VERSION_1_1
,
CURLOPT_CUSTOMREQUEST
=>
"POST"
,
CURLOPT_POSTFIELDS
=>
array
(
'inoantrian'
=>
'7'
,
'idok'
=>
'74'
,
'istatus'
=>
'40'
),
));
$response
=
curl_exec
(
$curl
);
curl_close
(
$curl
);
echo
$response
;
// $data = $this->getRequest()->getRawBody();
// print_r($data);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
...
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