Commit 2f0e08aa by Jansa Jose

Merge branch 'jansa'

parents 4510f22e 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'));
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment