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
84b44f0a
Commit
84b44f0a
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
2807efc5
949e7d3e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Settings.php
admin/application/controllers/Settings.php
+6
-6
settings.php
admin/application/views/settings.php
+5
-5
No files found.
admin/application/controllers/Settings.php
View file @
84b44f0a
...
...
@@ -25,12 +25,12 @@ class Settings extends CI_Controller {
if
(
isset
(
$_POST
)
&&
!
empty
(
$_POST
)){
$updateArray
=
$_POST
;
$updateArray
[
'site_title'
]
=
de
crypt_data
(
$updateArray
[
'site_title'
]);
$updateArray
[
'mini_title'
]
=
de
crypt_data
(
$updateArray
[
'mini_title'
]);
$updateArray
[
'site_title'
]
=
de
crypt_data
(
$updateArray
[
'smtp_host'
]);
$updateArray
[
'smtp_username'
]
=
de
crypt_data
(
$updateArray
[
'smtp_username'
]);
$updateArray
[
'smtp_password'
]
=
de
crypt_data
(
$updateArray
[
'smtp_password'
]);
$updateArray
[
'ipok_fee'
]
=
de
crypt_data
(
$updateArray
[
'ipok_fee'
]);
$updateArray
[
'site_title'
]
=
en
crypt_data
(
$updateArray
[
'site_title'
]);
$updateArray
[
'mini_title'
]
=
en
crypt_data
(
$updateArray
[
'mini_title'
]);
$updateArray
[
'site_title'
]
=
en
crypt_data
(
$updateArray
[
'smtp_host'
]);
$updateArray
[
'smtp_username'
]
=
en
crypt_data
(
$updateArray
[
'smtp_username'
]);
$updateArray
[
'smtp_password'
]
=
en
crypt_data
(
$updateArray
[
'smtp_password'
]);
$updateArray
[
'ipok_fee'
]
=
en
crypt_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 @
84b44f0a
...
...
@@ -43,7 +43,7 @@
<div
class=
"form-group col-xs-4"
>
<label>
Site Title
</label>
<?php
$site_title
=
en
crypt_data
(
$data
[
'site_title'
]);
?>
<?php
$site_title
=
de
crypt_data
(
$data
[
'site_title'
]);
?>
<input
type=
"text"
name=
"site_title"
class=
"form-control required"
placeholder=
"Enter Site Title"
value=
"
<?php
echo
$site_title
;
?>
"
>
</div>
<div
class=
"form-group col-xs-4"
>
...
...
@@ -60,24 +60,24 @@
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<label>
SMTP Username
</label>
<?php
$smtp_username
=
en
crypt_data
(
$data
[
'smtp_username'
]);
?>
<?php
$smtp_username
=
de
crypt_data
(
$data
[
'smtp_username'
]);
?>
<input
type=
"text"
name=
"smtp_username"
class=
"form-control required"
placeholder=
"Enter SMTP Username"
value=
"
<?php
echo
$smtp_username
;
?>
"
>
</div>
<div
class=
"form-group col-xs-4"
>
<label>
SMTP Password
</label>
<?php
$smtp_password
=
en
crypt_data
(
$data
[
'smtp_password'
]);
?>
<?php
$smtp_password
=
de
crypt_data
(
$data
[
'smtp_password'
]);
?>
<input
type=
"text"
name=
"smtp_password"
class=
"form-control required"
placeholder=
"Enter SMTP Password"
value=
"
<?php
echo
$smtp_password
;
?>
"
>
</div>
<div
class=
"form-group col-xs-4"
>
<label>
SMTP Host
</label>
<?php
$smtp_host
=
en
crypt_data
(
$data
[
'smtp_host'
]);
?>
<?php
$smtp_host
=
de
crypt_data
(
$data
[
'smtp_host'
]);
?>
<input
type=
"text"
name=
"smtp_host"
class=
"form-control required"
placeholder=
"Enter Host Name"
value=
"
<?php
echo
$smtp_host
;
?>
"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<br><label>
IPOK Fee(in %)
</label>
<?php
$ipok_fee
=
en
crypt_data
(
$data
[
'ipok_fee'
]);
?>
<?php
$ipok_fee
=
de
crypt_data
(
$data
[
'ipok_fee'
]);
?>
<input
type=
"text"
name=
"ipok_fee"
class=
"form-control required"
placeholder=
"Enter IPOK Fee"
value=
"
<?php
echo
$ipok_fee
;
?>
"
>
</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