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
10425309
Commit
10425309
authored
Jul 24, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encrypt settngs ipok fee
parent
949e7d3e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
Settings.php
admin/application/controllers/Settings.php
+0
-1
Webservice.php
admin/application/controllers/Webservice.php
+3
-3
settings.php
admin/application/views/settings.php
+1
-1
No files found.
admin/application/controllers/Settings.php
View file @
10425309
...
...
@@ -30,7 +30,6 @@ class Settings extends CI_Controller {
$updateArray
[
'site_title'
]
=
encrypt_data
(
$updateArray
[
'smtp_host'
]);
$updateArray
[
'smtp_username'
]
=
encrypt_data
(
$updateArray
[
'smtp_username'
]);
$updateArray
[
'smtp_password'
]
=
encrypt_data
(
$updateArray
[
'smtp_password'
]);
$updateArray
[
'ipok_fee'
]
=
encrypt_data
(
$updateArray
[
'ipok_fee'
]);
$result
=
$this
->
Settings_model
->
update_sitetitle
(
$updateArray
);
if
(
$result
){
$this
->
session
->
set_flashdata
(
'message'
,
array
(
'message'
=>
'Successfully Changed'
,
'title'
=>
'Success !'
,
'class'
=>
'success'
));
...
...
admin/application/controllers/Webservice.php
View file @
10425309
...
...
@@ -5658,14 +5658,14 @@ print_r(date('H:i',$ms));exit();*/
}
/*
public function encrypt_data(){
$data = '
Leg fracture
';
public
function
encrypt_data
(){
$data
=
'
20
'
;
$new
=
encrypt_data
(
$data
);
$neww
=
decrypt_data
(
$new
);
print_r
(
$new
);
echo
"<br>"
;
print_r
(
$neww
);
exit
();
}
*/
}
public
function
set_prescriptions
(){
header
(
'Content-type: application/json'
);
...
...
admin/application/views/settings.php
View file @
10425309
...
...
@@ -77,7 +77,7 @@
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<br><label>
IPOK Fee(in %)
</label>
<?php
$ipok_fee
=
decrypt_data
(
$data
[
'ipok_fee'
])
;
?>
<?php
$ipok_fee
=
$data
[
'ipok_fee'
]
;
?>
<input
type=
"text"
name=
"ipok_fee"
class=
"form-control required"
placeholder=
"Enter IPOK Fee"
value=
"
<?php
echo
$ipok_fee
;
?>
"
>
</div>
...
...
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