source: bureau/admin/dom_add.php @ 102

Revision 102, 2.7 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2003-06-10 06:45:16 by root]
remplacement des <br> par <br />

Original author: root
Date: 2003-06-10 06:45:20

Line 
1<?php
2/*
3 $Id: dom_add.php,v 1.2 2003/06/10 06:45:16 root Exp $
4 ----------------------------------------------------------------------
5 AlternC - Web Hosting System
6 Copyright (C) 2002 by the AlternC Development Team.
7 http://alternc.org/
8 ----------------------------------------------------------------------
9 Based on:
10 Valentin Lacambre's web hosting softwares: http://altern.org/
11 ----------------------------------------------------------------------
12 LICENSE
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License (GPL)
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 GNU General Public License for more details.
23
24 To read the license please visit http://www.gnu.org/copyleft/gpl.html
25 ----------------------------------------------------------------------
26 Original Author of file: Benjamin Sonntag
27 Purpose of file: Add a new domain
28 ----------------------------------------------------------------------
29*/
30require_once("../class/config.php");
31
32if (!isSet($dns)) $dns="1";
33
34include("head.php");
35?>
36</head>
37<body onload="document.forms['main'].newdomain.focus();">
38<div align="center"><h3><?php __("Domain hosting"); ?></h3></div>
39<?php
40if (!$quota->cancreate("dom")) { ?>
41<font color="red"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></font>
42<?php
43exit();
44}
45if ($error) echo "<font color=red>$error</font>";
46?>
47<form method="post" action="dom_doadd.php" name="main">
48<table><tr><td>
49<b><?php __("Domain name"); ?> : www.</b></td><td><input type="text" class="int" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255">
50</td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>"></td></tr>
51</table>
52<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "CHECKED"; ?>></td><td colspan="2"><label for="yndns"><?php __("host my dns here"); ?></label>
53<p>
54<small>
55<font color="red"><?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></font></small></P>
56<?php $mem->show_help("add_domain"); ?>
57<p>&nbsp;</p>
58<?php
59        if (is_array($dom->dns)) {
60                echo "<br />"._("Whois result on the domain")." : <pre>";
61                reset($dom->dns);
62                while (list($key,$val)=each($dom->dns)) {
63                        echo "nameserver: $val\n";
64                }
65                echo "</pre>";
66        }
67?>
68</body>
69</html>
Note: See TracBrowser for help on using the repository browser.