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
72fac79c
Commit
72fac79c
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encrypt settngs
parent
cf62b582
master
…
anju
client
dixon
jaise
jansa
master_bak
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
Settings.php
admin/application/controllers/Settings.php
+6
-0
settings.php
admin/application/views/settings.php
+5
-5
No files found.
admin/application/controllers/Settings.php
View file @
72fac79c
...
...
@@ -25,6 +25,12 @@ class Settings extends CI_Controller {
if
(
isset
(
$_POST
)
&&
!
empty
(
$_POST
)){
$updateArray
=
$_POST
;
$updateArray
[
'site_title'
]
=
decrypt_data
(
$updateArray
[
'site_title'
]);
$updateArray
[
'mini_title'
]
=
decrypt_data
(
$updateArray
[
'mini_title'
]);
$updateArray
[
'site_title'
]
=
decrypt_data
(
$updateArray
[
'smtp_host'
]);
$updateArray
[
'smtp_username'
]
=
decrypt_data
(
$updateArray
[
'smtp_username'
]);
$updateArray
[
'smtp_password'
]
=
decrypt_data
(
$updateArray
[
'smtp_password'
]);
$updateArray
[
'ipok_fee'
]
=
decrypt_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'
));
...
...
This diff is collapsed.
Click to expand it.
admin/application/views/settings.php
View file @
72fac79c
...
...
@@ -43,7 +43,7 @@
<div
class=
"form-group col-xs-4"
>
<label>
Site Title
</label>
<input
type=
"text"
name=
"site_title"
class=
"form-control required"
placeholder=
"Enter Site Title"
value=
"
<?php
echo
$data
[
'site_title'
]
?>
"
>
<input
type=
"text"
name=
"site_title"
class=
"form-control required"
placeholder=
"Enter Site Title"
value=
"
<?php
echo
encrypt_data
(
$data
[
'site_title'
])
?>
"
>
</div>
<div
class=
"form-group col-xs-4"
>
<label>
Site Logo
</label>
...
...
@@ -59,21 +59,21 @@
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<label>
SMTP Username
</label>
<input
type=
"text"
name=
"smtp_username"
class=
"form-control required"
placeholder=
"Enter SMTP Username"
value=
"
<?php
echo
$data
[
'smtp_username'
]
?>
"
>
<input
type=
"text"
name=
"smtp_username"
class=
"form-control required"
placeholder=
"Enter SMTP Username"
value=
"
<?php
echo
encrypt_data
(
$data
[
'smtp_username'
])
?>
"
>
</div>
<div
class=
"form-group col-xs-4"
>
<label>
SMTP Password
</label>
<input
type=
"text"
name=
"smtp_password"
class=
"form-control required"
placeholder=
"Enter SMTP Password"
value=
"
<?php
echo
$data
[
'smtp_password'
]
?>
"
>
<input
type=
"text"
name=
"smtp_password"
class=
"form-control required"
placeholder=
"Enter SMTP Password"
value=
"
<?php
echo
encrypt_data
(
$data
[
'smtp_password'
])
?>
"
>
</div>
<div
class=
"form-group col-xs-4"
>
<label>
SMTP Host
</label>
<input
type=
"text"
name=
"smtp_host"
class=
"form-control required"
placeholder=
"Enter Host Name"
value=
"
<?php
echo
$data
[
'smtp_host'
]
?>
"
>
<input
type=
"text"
name=
"smtp_host"
class=
"form-control required"
placeholder=
"Enter Host Name"
value=
"
<?php
echo
encrypt_data
(
$data
[
'smtp_host'
])
?>
"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<br><label>
IPOK Fee(in %)
</label>
<input
type=
"text"
name=
"ipok_fee"
class=
"form-control required"
placeholder=
"Enter IPOK Fee"
value=
"
<?php
echo
$data
[
'ipok_fee'
]
?>
"
>
<input
type=
"text"
name=
"ipok_fee"
class=
"form-control required"
placeholder=
"Enter IPOK Fee"
value=
"
<?php
echo
encrypt_data
(
$data
[
'ipok_fee'
])
?>
"
>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
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