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
396f89b9
Commit
396f89b9
authored
Jul 24, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
84b44f0a
10425309
Hide 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 @
396f89b9
...
@@ -30,7 +30,6 @@ class Settings extends CI_Controller {
...
@@ -30,7 +30,6 @@ class Settings extends CI_Controller {
$updateArray
[
'site_title'
]
=
encrypt_data
(
$updateArray
[
'smtp_host'
]);
$updateArray
[
'site_title'
]
=
encrypt_data
(
$updateArray
[
'smtp_host'
]);
$updateArray
[
'smtp_username'
]
=
encrypt_data
(
$updateArray
[
'smtp_username'
]);
$updateArray
[
'smtp_username'
]
=
encrypt_data
(
$updateArray
[
'smtp_username'
]);
$updateArray
[
'smtp_password'
]
=
encrypt_data
(
$updateArray
[
'smtp_password'
]);
$updateArray
[
'smtp_password'
]
=
encrypt_data
(
$updateArray
[
'smtp_password'
]);
$updateArray
[
'ipok_fee'
]
=
encrypt_data
(
$updateArray
[
'ipok_fee'
]);
$result
=
$this
->
Settings_model
->
update_sitetitle
(
$updateArray
);
$result
=
$this
->
Settings_model
->
update_sitetitle
(
$updateArray
);
if
(
$result
){
if
(
$result
){
$this
->
session
->
set_flashdata
(
'message'
,
array
(
'message'
=>
'Successfully Changed'
,
'title'
=>
'Success !'
,
'class'
=>
'success'
));
$this
->
session
->
set_flashdata
(
'message'
,
array
(
'message'
=>
'Successfully Changed'
,
'title'
=>
'Success !'
,
'class'
=>
'success'
));
...
...
admin/application/controllers/Webservice.php
View file @
396f89b9
...
@@ -5658,14 +5658,14 @@ print_r(date('H:i',$ms));exit();*/
...
@@ -5658,14 +5658,14 @@ print_r(date('H:i',$ms));exit();*/
}
}
/*
public function encrypt_data(){
public
function
encrypt_data
(){
$data = '
Leg fracture
';
$data
=
'
20
'
;
$new
=
encrypt_data
(
$data
);
$new
=
encrypt_data
(
$data
);
$neww
=
decrypt_data
(
$new
);
$neww
=
decrypt_data
(
$new
);
print_r
(
$new
);
echo
"<br>"
;
print_r
(
$new
);
echo
"<br>"
;
print_r
(
$neww
);
print_r
(
$neww
);
exit
();
exit
();
}
*/
}
public
function
set_prescriptions
(){
public
function
set_prescriptions
(){
header
(
'Content-type: application/json'
);
header
(
'Content-type: application/json'
);
...
...
admin/application/views/settings.php
View file @
396f89b9
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<div
class=
"form-group col-xs-4"
>
<br><label>
IPOK Fee(in %)
</label>
<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
;
?>
"
>
<input
type=
"text"
name=
"ipok_fee"
class=
"form-control required"
placeholder=
"Enter IPOK Fee"
value=
"
<?php
echo
$ipok_fee
;
?>
"
>
</div>
</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