mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Initial Import in SourceForge
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/tags/postfixadmin-1.5.2@1 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
commit
6b2420c94b
32 files changed
+1996
No files matched your search
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
require "../config.inc.php";
|
||||
require "../my_lib.php";
|
||||
|
||||
$modify = $_GET['modify'];
|
||||
|
||||
if (!empty($_POST['submit'])) {
|
||||
$domain = $_POST['domain'];
|
||||
$description = $_POST['description'];
|
||||
$aliases = $_POST['aliases'];
|
||||
|
||||
if (empty($domain) or empty($description)) print_error("You will need to fill all fields.", "YES", "ADMIN");
|
||||
|
||||
if (check_email($domain)) print_error("The domain that you have supplied is not a valid domain, please go back.", "YES", "ADMIN");
|
||||
|
||||
$result = db_query ("UPDATE domain SET description='$description', change_date=NOW() WHERE domain='$domain'");
|
||||
if ($result['rows'] == 1) {
|
||||
header("Location: domainview.php");
|
||||
} else {
|
||||
print_error("Unable to modify: <i>$domain</i> to the domain table!", "YES", "ADMIN");
|
||||
}
|
||||
}
|
||||
print_header("admin");
|
||||
?>
|
||||
Create a new domain.
|
||||
<p />
|
||||
<form method="post">
|
||||
<table class="form">
|
||||
<tr><td>Domain:</td><td><input type="hidden" name="domain" value="<?php print "$modify"; ?>"><?php print "$modify"; ?></td></tr>
|
||||
<tr><td>Description:</td><td><input type="text" name="description"></td></tr>
|
||||
<tr><td colspan="2" align="center"><input type="submit" name="submit" value="Modify Domain"></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
print_footer();
|
||||
?>
|
||||
Reference in new issue
Block a user