Alternc  latest
Alternc logiel libre pour l'hébergement
adm_domstype.php
Go to the documentation of this file.
1 <?php
2 /*
3  ----------------------------------------------------------------------
4  LICENSE
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License (GPL)
8  as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  To read the license please visit http://www.gnu.org/copyleft/gpl.html
17  ----------------------------------------------------------------------
18 */
19 
20 /**
21  * Manages domain types on the server
22  *
23  * @copyright AlternC-Team 2000-2017 https://alternc.com/
24  */
25 
26 require_once("../class/config.php");
27 
28 if (!$admin->enabled) {
29  $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff"));
30  echo $msg->msg_html_all();
31  exit();
32 }
33 
34 include_once("head.php");
35 
36 ?>
37 <h3><?php __("Manage domains type"); ?></h3>
38 <hr id="topbar" />
39  <p><?php __("If you don't know what this page is about, don't touch anything, and read AlternC documentation about domain types"); ?></p>
40 
41 <br />
42 <?php
43 echo $msg->msg_html_all();
44 ?>
45 <p>
46 <?php __("Here is the list of domain types."); ?>
47 </p>
48 <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>
49 <table class="tlist ombrage" id="table_domtype">
50 <thead>
51 <tr class='petit'>
52  <th colspan="2"> </th>
53  <th><?php __("Name");?></th>
54  <th><?php __("Description");?></th>
55  <th><?php __("Target");?></th>
56  <th><?php __("Entry");?></th>
57  <th><?php __("Compatible with");?><br /><small><?php __("Enter comma-separated name of other types"); ?></small></th>
58  <th><?php __("Enabled?");?></th>
59  <th><?php __("Only DNS?");?></th>
60  <th><?php __("Need to be DNS?");?></th>
61  <th><?php __("Advanced?");?></th>
62  <th><?php __("Create tmp directory ?");?></th>
63  <th><?php __("create www directory ?");?></th>
64 </tr>
65 </thead>
66 <?php
67 foreach($dom->domains_type_lst() as $d) {
68 ?>
69 <tr class="lst">
70  <td><div class="ina edit"><a href="adm_domstypeedit.php?name=<?php echo urlencode($d['name']); ?>"><?php __("Edit"); ?></a></div></td>
71  <td><div class="ina"><a href="adm_domstyperegenerate.php?name=<?php echo urlencode($d['name']);?>"><?php __("Regenerate");?></a></div></td>
72  <td><?php echo $d['name'];?></td>
73  <td><?php echo $d['description'];?></td>
74  <td><?php echo $d['target'];?></td>
75  <td><?php echo $d['entry'];?></td>
76  <td><?php echo $d['compatibility'];?></td>
77  <td><?php echo __($d['enable']);?></td>
78  <td><?php echo $d['only_dns']?__("Yes"):__("No");?></td>
79  <td><?php echo $d['need_dns']?__("Yes"):__("No");?></td>
80  <td><?php echo $d['advanced']?__("Yes"):__("No");?></td>
81  <td><?php echo $d['create_tmpdir']?__("Yes"):__("No");?></td>
82  <td><?php echo $d['create_targetdir']?__("Yes"):__("No");?></td>
83 </tr>
84 <?php } // end foreach
85 ?>
86 </table>
87 
88 <script type="text/javascript">
89 
90 $(document).ready(function()
91  {
92  $("#table_domtype").tablesorter();
93  }
94 );
95 </script>
96 
97 <?php include_once("foot.php"); ?>
exit
Definition: adm_doadd.php:70
$msg
Definition: bootstrap.php:75
$d
__($str)
Definition: functions.php:404
$dom
Definition: whois_test.php:10