Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
dom_subedit.php
Go to the documentation of this file.
1 <?php
2 /*
3  $Id: dom_subedit.php,v 1.3 2003/08/13 23:01:45 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:
27  Purpose of file:
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31 include_once("head.php");
32 
33 
34 $fields = array (
35  "sub_domain_id" => array ("request", "integer", ""),
36 );
38 
39 $dom->lock();
40 
41 if (!isset($noread) || !$noread) {
42  if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
43  $error=$err->errstr();
44  }
45 }
46 
47 $dt=$dom->domains_type_lst();
48 if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
49  __("This page is restricted to authorized staff");
50  exit();
51 }
52 
53 $domroot=$dom->get_domain_all($r['domain']);
54 
55 echo "<h3>";
56 __("Editing subdomain");
57 echo " http://"; ecif($r['name'],$r['name']."."); echo $r['domain']."</h3>";
58 if (isset($error) && $error) {
59  echo "<p class=\"alert alert-danger\">$error</p>";
60  include_once("foot.php");
61  exit();
62 }
63 $dom->unlock();
64 ?>
65 
66 <hr id="topbar"/>
67 <br />
68 <?php
69  $isedit=true;
70 require_once('dom_edit.inc.php');
71 sub_domains_edit($r['domain'],$sub_domain_id);
72 
73 include_once("foot.php");
74 ?>