Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
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
Tobin
dcarfixers
Commits
b7364def
Commit
b7364def
authored
Aug 09, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change Auth to auth
parent
dd5306cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
66 deletions
+66
-66
Webservices.php
application/controllers/Webservices.php
+66
-66
No files found.
application/controllers/Webservices.php
View file @
b7364def
...
...
@@ -629,7 +629,7 @@
public
function
get_allocated_services
(){
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
...
...
@@ -642,7 +642,7 @@
$currentpage
=
$currentpage
==
0
?
$currentpage
:
$currentpage
-
1
;
$start
=
$currentpage
*
$per_page
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -692,12 +692,12 @@
public
function
get_booked_services
(){
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -710,12 +710,12 @@
$headers
=
apache_request_headers
();
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -841,12 +841,12 @@
$headers
=
apache_request_headers
();
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -880,12 +880,12 @@
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
$postData
=
$_GET
;
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -950,12 +950,12 @@
$headers
=
apache_request_headers
();
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1000,12 +1000,12 @@
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
$postData
=
$_GET
;
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1030,12 +1030,12 @@
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
$postData
=
$_GET
;
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1047,12 +1047,12 @@
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
$postData
=
$_GET
;
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1139,12 +1139,12 @@
header
(
'Content-type: application/json'
);
$headers
=
apache_request_headers
();
$postData
=
$_POST
;
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1219,12 +1219,12 @@
$headers
=
apache_request_headers
();
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1237,12 +1237,12 @@
$headers
=
apache_request_headers
();
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1255,12 +1255,12 @@
$headers
=
apache_request_headers
();
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1523,12 +1523,12 @@
public
function
brand_details
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1621,12 +1621,12 @@
public
function
get_latest_product_list
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1682,12 +1682,12 @@
public
function
get_trending_product_list
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1743,12 +1743,12 @@
public
function
product_details
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1762,12 +1762,12 @@
public
function
add_address
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1781,12 +1781,12 @@
public
function
address_details
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -1948,12 +1948,12 @@
public
function
cancel_order
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2032,14 +2032,14 @@
public
function
add_to_cart
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2058,12 +2058,12 @@
public
function
remove_product
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2076,12 +2076,12 @@
public
function
cart_details
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2137,12 +2137,12 @@
public
function
my_order_details
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2198,12 +2198,12 @@
public
function
search_product
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2261,12 +2261,12 @@
public
function
filter_product
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2338,12 +2338,12 @@
public
function
get_vehicle_brand
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2372,12 +2372,12 @@
public
function
get_vehicle_model
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2391,12 +2391,12 @@
public
function
get_userAddress_by_id
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2409,12 +2409,12 @@
public
function
update_address
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2623,12 +2623,12 @@
public
function
giveReview
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2643,12 +2643,12 @@
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
$this
->
load
->
model
(
'Vehicle_model'
);
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
@@ -2680,12 +2680,12 @@
public
function
get_mechanics_reviews
(){
header
(
'Content-type:application/json'
);
$headers
=
apache_request_headers
();
if
(
!
isset
(
$headers
[
'
Auth'
])
||
empty
(
$headers
[
'A
uth'
])){
if
(
!
isset
(
$headers
[
'
auth'
])
||
empty
(
$headers
[
'a
uth'
])){
$respArr
[
'status'
]
=
'error'
;
$respArr
[
'message'
]
=
'Authtoken is Required'
;
echo
json_encode
(
$respArr
);
exit
;
}
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
A
uth'
]);
$authRes
=
$this
->
Webservice_model
->
get_customer_authtoken
(
$headers
[
'
a
uth'
]);
if
(
$authRes
[
'status'
]
==
'error'
){
echo
json_encode
(
$authRes
);
exit
;
}
...
...
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