|
Server IP : 82.112.239.40 / Your IP : 216.73.216.81 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/uniformindia.co.in/public_html/admin/upload/images/../../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
// set time for session timeout
$currentTime = time() + 25200;
$expired = 3600;
// if session not set go to login page
if(!isset($_SESSION['user'])){
header("location:index.php");
}
// if current time is more than session timeout back to login page
if($currentTime > $_SESSION['timeout']){
session_destroy();
header("location:index.php");
}
// destroy previous session timeout and create new one
unset($_SESSION['timeout']);
$_SESSION['timeout'] = $currentTime + $expired;
include"header.php";?>
<html>
<head>
<title>Store Information | <?=$settings['app_name']?> - Dashboard</title>
</head>
</body>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<?php
$sql = "SELECT * FROM settings WHERE variable='contact_us'";
$db->sql($sql);
$res = $db->getResult();
$message = '';
if(isset($_POST['btn_update'])){
if(!empty($_POST['contact_us'])){
$contact_us = $db->escapeString($_POST['contact_us']);
$sql = "UPDATE `settings` SET `value`='".$contact_us."' WHERE `variable` = 'contact_us'";
$db->sql($sql);
$sql = "SELECT * FROM settings WHERE `variable`='contact_us'";
$db->sql($sql);
$res = $db->getResult();
$message .= "<div class='alert alert-success'> Information Updated Successfully!</div>";
}
}
?>
<section class="content-header">
<h2>Contact Us</h2>
<h4><?=$message?></h4>
<ol class="breadcrumb">
<li><a href="home.php"><i class="fa fa-home"></i> Home</a></li>
</ol>
<hr />
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Update Information</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<form method="post" enctype="multipart/form-data">
<div class="box-body">
<div class="form-group">
<label for="app_name">Contact US :</label>
<textarea rows="10" cols="10" class="form-control" name="contact_us" id="contact_us" required><?=$res[0]['value']?></textarea>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<input type="submit" class="btn-primary btn" value="Update" name="btn_update"/>
</div>
</form>
</div>
<!-- /.box -->
</div>
</div>
</section>
<div class="separator"> </div>
</div><!-- /.content-wrapper -->
</body>
</html>
<?php include"footer.php";?>
<script type="text/javascript" src="css/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript">CKEDITOR.replace('contact_us');</script>