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
7d5751d6
Commit
7d5751d6
authored
Jul 30, 2018
by
Anju M S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Encryption
parent
9b3305fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+24
-1
No files found.
admin/application/models/Webservice_model.php
View file @
7d5751d6
...
@@ -567,7 +567,29 @@ class Webservice_model extends CI_Model {
...
@@ -567,7 +567,29 @@ class Webservice_model extends CI_Model {
$this
->
db
->
join
(
'tbl_specialization'
,
'tbl_specialization.id = tbl_doctors. specialization'
);
$this
->
db
->
join
(
'tbl_specialization'
,
'tbl_specialization.id = tbl_doctors. specialization'
);
$query_userdata
=
$this
->
db
->
get_where
(
"tbl_doctors"
,
array
(
"email"
=>
$data
));
$query_userdata
=
$this
->
db
->
get_where
(
"tbl_doctors"
,
array
(
"email"
=>
$data
));
if
(
$query_userdata
->
num_rows
()
>
0
){
if
(
$query_userdata
->
num_rows
()
>
0
){
$return_array
=
array
(
'status'
=>
'success'
,
'userdata'
=>
$query_userdata
->
row_array
());
$doc_result
=
$query_userdata
->
row_array
();
$this
->
db
->
select
(
"CAST(AES_DECRYPT(`tbl_doctors`.`dob`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as dob_new"
);
$this
->
db
->
where
(
'id'
,
$doc_result
[
'id'
]);
$querydate
=
$this
->
db
->
get
(
'tbl_doctors'
)
->
row
();
$query
=
$doc_result
;
$query
[
'dob'
]
=
$query_date
->
dob_new
;
$query
[
'cep'
]
=
decrypt_data
(
$query
[
'zip_code'
]);
$query
[
'complement'
]
=
decrypt_data
(
$query
[
'landmark'
]);
$query
[
'about'
]
=
decrypt_data
(
$query
[
'biodata'
]);
$query
[
'gender'
]
=
decrypt_data
(
$query
[
'gender'
]);
$query
[
'name'
]
=
decrypt_data
(
$query
[
'name'
]);
$query
[
'price'
]
=
decrypt_data
(
$query
[
'price'
]);
$query
[
'domiciliary_status'
]
=
decrypt_data
(
$query
[
'domiciliary_status'
]);
$query
[
'rg'
]
=
decrypt_data
(
$query
[
'rg'
]);
$query
[
'crm'
]
=
decrypt_data
(
$query
[
'crm'
]);
$query
[
'street_address'
]
=
decrypt_data
(
$query
[
'street_address'
]);
$query
[
'locality'
]
=
decrypt_data
(
$query
[
'locality'
]);
$query
[
'number'
]
=
decrypt_data
(
$query
[
'number'
]);
$return_array
=
array
(
'status'
=>
'success'
,
'userdata'
=>
$query
);
}
}
else
{
else
{
$return_array
=
array
(
'status'
=>
'fail'
);
$return_array
=
array
(
'status'
=>
'fail'
);
...
@@ -1695,6 +1717,7 @@ class Webservice_model extends CI_Model {
...
@@ -1695,6 +1717,7 @@ class Webservice_model extends CI_Model {
if
(
count
(
$query
)
>
0
){
if
(
count
(
$query
)
>
0
){
foreach
(
$query
as
$key
=>
$value
)
{
foreach
(
$query
as
$key
=>
$value
)
{
$query
[
$key
]
->
patient_name
=
decrypt_data
(
$value
->
patient_name
);
$query
[
$key
]
->
patient_name
=
decrypt_data
(
$value
->
patient_name
);
//$query[$key]->doctor_name = decrypt_data($value->doctor_name);
}
}
return
$query
;
return
$query
;
}
else
{
}
else
{
...
...
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