Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
IPok
IPok_Web
Commits
996f9652
Commit
996f9652
authored
Aug 08, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search
parent
64fd4a6d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
common_helper.php
admin/application/helpers/common_helper.php
+6
-0
Webservice_model.php
admin/application/models/Webservice_model.php
+1
-1
No files found.
admin/application/helpers/common_helper.php
View file @
996f9652
...
@@ -52,6 +52,12 @@ function decrypt_data($data){
...
@@ -52,6 +52,12 @@ function decrypt_data($data){
return
$CI
->
encrypt
->
decode
(
$data
);
return
$CI
->
encrypt
->
decode
(
$data
);
}
}
function
AES_ENCRYPT
(
$data
){
$CI
=
&
get_instance
();
$rs
=
$CI
->
db
->
select
(
"AES_ENCRYPT(
$data
,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as res"
)
->
row
();
return
$rs
->
res
;
}
function
filteredData
(){
function
filteredData
(){
$dd
=
array
();
$dd
=
array
();
$dd
[
0
]
=
array
(
$dd
[
0
]
=
array
(
...
...
admin/application/models/Webservice_model.php
View file @
996f9652
...
@@ -1460,7 +1460,7 @@ class Webservice_model extends CI_Model {
...
@@ -1460,7 +1460,7 @@ class Webservice_model extends CI_Model {
$this
->
db
->
where
(
$where
);
$this
->
db
->
where
(
$where
);
}
}
}
}
if
(
isset
(
$data
[
'location_name'
])
&&
strlen
(
$data
[
'location_name'
])
&&
isset
(
$data
[
'location_latitude'
])
&&
strlen
(
$data
[
'location_latitude'
])
&&
isset
(
$data
[
'location_longitude'
])
&&
strlen
(
$data
[
'location_longitude'
]
)){
if
(
isset
(
$data
[
'location_name'
])
&&
strlen
(
$data
[
'location_name'
])
||
(
isset
(
$data
[
'location_latitude'
])
&&
strlen
(
$data
[
'location_latitude'
])
&&
isset
(
$data
[
'location_longitude'
])
&&
strlen
(
$data
[
'location_longitude'
])
)){
$datalat
=
$data
[
'location_latitude'
];
$datalat
=
$data
[
'location_latitude'
];
$datalong
=
$data
[
'location_longitude'
];
$datalong
=
$data
[
'location_longitude'
];
...
...
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