source: bureau/admin/dom_subdel.php @ 107

Revision 107, 2.2 KB checked in by anarcat, 7 years ago (diff)

[project @ alternc: changeset 2003-06-10 11:18:27 by root]
Suite de la conformité XHTML 1.0

Original author: root
Date: 2003-06-10 11:18:29

Line 
1<?php
2/*
3 $Id: dom_subdel.php,v 1.2 2003/06/10 11:18:27 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: delete a subdomain
28 ----------------------------------------------------------------------
29*/
30require_once("../class/config.php");
31
32$dom->lock();
33if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
34        $error=$err->errstr();
35}
36$dom->unlock();
37
38include("head.php");
39?>
40</head>
41<body>
42<?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3>
43<?php
44        if ($error) {
45                echo "<p class=\"error\">$error</p></body></html>";
46                exit();
47        }
48?>
49<hr>
50<!-- *****************************************
51                 gestion du sous-domaine
52 -->
53<form action="dom_subdodel.php" method="post">
54        <p class="error">
55        <input type="hidden" name="domain" value="<?php echo $domain ?>" />
56        <input type="hidden" name="sub" value="<?php echo $sub ?>" />
57<?php __("WARNING : Confirm the deletion of the subdomain"); ?> : </p>
58        <p><?php ecif($sub,$sub."."); echo $domain; ?></p>
59        <blockquote>
60        <input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp;
61        <input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" />
62        </blockquote>
63</form>
64</body>
65</html>
Note: See TracBrowser for help on using the repository browser.