Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
adm_domstype.php
Go to the documentation of this file.
1 <?php
2 /*
3  $Id: adm_tld.php,v 1.4 2004/11/29 17:27:04 anonymous 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: Alan Garcia
27  Purpose of file: Manage domain types on the server
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31 
32 if (!$admin->enabled) {
33  __("This page is restricted to authorized staff");
34  exit();
35 }
36 
37 include_once("head.php");
38 
39 ?>
40 <h3><?php __("Manage domains type"); ?></h3>
41 <hr id="topbar" />
42  <p><?php __("If you don't know what this page is about, don't touch anything, and read AlternC documentation about domain types"); ?></p>
43 
44 <br />
45 <?php
46 if (!empty($error)) {
47  echo "<p class=\"alert alert-danger\">$error</p>";
48 }
49 
50 ?>
51 <p>
52 <?php __("Here is the list of domain types."); ?>
53 </p>
54 <p><span class="ina"><a href="#" OnClick="alert('Todo. But if you want to play with that, you are advanced enough to do an insert in MySQL');" ><?php __("Create a domain type"); ?></a></span></p>
55 <table class="tlist ombrage" id="table_domtype">
56 <thead>
57 <tr class='petit'>
58  <th colspan="2"> </th>
59  <th><?php __("Name");?></th>
60  <th><?php __("Description");?></th>
61  <th><?php __("Target");?></th>
62  <th><?php __("Entry");?></th>
63  <th><?php __("Compatible with");?><br /><small><?php __("Enter comma-separated name of other types"); ?></small></th>
64  <th><?php __("Enabled?");?></th>
65  <th><?php __("Only DNS?");?></th>
66  <th><?php __("Need to be DNS?");?></th>
67  <th><?php __("Advanced?");?></th>
68  <th><?php __("Create tmp directory ?");?></th>
69  <th><?php __("create www directory ?");?></th>
70 </tr>
71 </thead>
72 <?php
73 foreach($dom->domains_type_lst() as $d) {
74 ?>
75 <tr class="lst">
76  <td><div class="ina edit"><a href="adm_domstypeedit.php?name=<?php echo urlencode($d['name']); ?>"><?php __("Edit"); ?></a></div></td>
77  <td><div class="ina"><a href="adm_domstyperegenerate.php?name=<?php echo urlencode($d['name']);?>"><?php __("Regenerate");?></a></div></td>
78  <td><?php echo $d['name'];?></td>
79  <td><?php echo $d['description'];?></td>
80  <td><?php echo $d['target'];?></td>
81  <td><?php echo $d['entry'];?></td>
82  <td><?php echo $d['compatibility'];?></td>
83  <td><?php echo __($d['enable']);?></td>
84  <td><?php echo $d['only_dns']?__("Yes"):__("No");?></td>
85  <td><?php echo $d['need_dns']?__("Yes"):__("No");?></td>
86  <td><?php echo $d['advanced']?__("Yes"):__("No");?></td>
87  <td><?php echo $d['create_tmpdir']?__("Yes"):__("No");?></td>
88  <td><?php echo $d['create_targetdir']?__("Yes"):__("No");?></td>
89 </tr>
90 <?php } // end foreach
91 ?>
92 </table>
93 
94 <script type="text/javascript">
95 
96 $(document).ready(function()
97  {
98  $("#table_domtype").tablesorter();
99  }
100 );
101 </script>
102 
103 <?php include_once("foot.php"); ?>