-
Notifications
You must be signed in to change notification settings - Fork 0
/
email_config.php
141 lines (118 loc) · 6.24 KB
/
email_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php require_once('check_login.php');?>
<?php include('head.php');?>
<?php include('header.php');?>
<?php include('sidebar.php');?>
<?php
include('connect.php');
if(isset($_POST["btn_mail"]))
{
extract($_POST);
$q1="UPDATE `tbl_email_config` SET `name`='$name',`mail_driver_host`='$mail_driver',`mail_port`='$mail_port' ,`mail_username`='$mail_username',`mail_password`='$mail_password',`mail_encrypt`='$mail_encryption'";
$q2=$conn->query($q1);
?>
<script>
window.location = "email_config.php";
</script>
<?php
}
?>
<?php
$que="select *from tbl_email_config";
$query=$conn->query($que);
while($row=mysqli_fetch_array($query))
{
//print_r($row);
extract($row);
$mail_password = $row['mail_password'];
$mail_driver = $row['mail_driver_host'];
$name = $row['name'];
$mail_port = $row['mail_port'];
$mail_username = $row['mail_username'];
$mail_encryption = $row['mail_encrypt'];
}
?>
?>
<!-- Page wrapper -->
<div class="page-wrapper">
<!-- Bread crumb -->
<div class="row page-titles">
<div class="col-md-5 align-self-center">
<h3 class="text-primary">Email Management</h3> </div>
<div class="col-md-7 align-self-center">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>
<li class="breadcrumb-item active">Email Management</li>
</ol>
</div>
</div>
<!-- End Bread crumb -->
<!-- Container fluid -->
<div class="container-fluid">
<!-- Start Page Content -->
<!-- /# row -->
<div class="row">
<div class="col-lg-8" style=" margin-left: 10%;">
<div class="card">
<div class="card-title">
</div>
<div class="card-body">
<div class="input-states">
<form class="form-horizontal" method="POST">
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Name</label>
<div class="col-sm-9">
<input type="text" value="<?php echo $name;?>" name="name" class="form-control">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Mail Driver Mail Host</label>
<div class="col-sm-9">
<input type="text" value="<?php echo $mail_driver;?>" name="mail_driver" class="form-control">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Mail Port</label>
<div class="col-sm-9">
<input type="text" value="<?php echo $mail_port;?>" name="mail_port" class="form-control">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Mail Username</label>
<div class="col-sm-9">
<input type="text" value="<?php echo $mail_username;?>" name="mail_username" class="form-control">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Mail Password</label>
<div class="col-sm-9">
<input type="password" value="<?php echo $mail_password;?>" name="mail_password" class="form-control">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Mail Encryption</label>
<div class="col-sm-9">
<input type="text" value="<?php echo $mail_encryption;?>" name="mail_encryption" class="form-control">
</div>
</div>
</div>
<button type="submit" name="btn_mail" class="btn btn-primary btn-flat m-b-30 m-t-30">Update</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /# row -->
<!-- End PAge Content -->
<?php include('footer.php');?>