27 require_once(
"../class/config.php");
29 if (!$admin->enabled) {
30 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
31 echo
$msg->msg_html_all();
36 "sel" => array (
"post",
"array",
""),
42 for(
$i=0;
$i<count($sel);
$i++) {
43 if (!$admin->deltld($sel[
$i])) {
44 $msg->raise(
"ERROR",
"admin", _(
"Some TLD cannot be deleted...").
" : ".$sel[
$i]);
47 if (!
$msg->has_msgs(
"ERROR"))
48 $msg->raise(
"INFO",
"admin", _(
"The requested TLD has been deleted"));
51 include_once(
"head.php");
54 <h3><?php
__(
"Manage allowed domains (TLD)"); ?></h3>
58 echo
$msg->msg_html_all();
64 <?php
__(
"Here is the list of the TLD allowed on this server. Each TLD can be allowed or denied after some checks (whois, ns, domain exists...)"); ?>
66 <p><span
class=
"ina"><a href=
"adm_tldadd.php"><?php
__(
"Add a new TLD"); ?></a></span></p>
67 <form method=
"post" action=
"adm_tld.php" name=
"main" id=
"main">
70 <tr><th colspan=
"2"> </th><th><?php
__(
"TLD"); ?></th><th><?php
__(
"Allowed Mode"); ?></th></tr>
76 <td><input
id=
"sel<?php echo $i; ?>" type=
"checkbox" name=
"sel[]" class=
"inc" value=
"<?php ehe($c[$i]["tld
"]); ?>" /></td>
77 <td><div
class=
"ina edit"><a href=
"adm_tldedit.php?tld=<?php eue($c[$i]["tld
"]); ?>"><?php
__(
"Edit"); ?></a></div></td>
78 <td><label
for=
"sel<?php echo $i; ?>"><?php
ehe(
$c[
$i][
"tld"]); ?></label></td>
79 <td><?php
__($admin->tldmode[
$c[
$i][
"mode"]]); ?></td></tr>
84 <tr
class=
"trbtn"><td colspan=
"3"><input type=
"submit" class=
"inb" value=
"<?php __("Delete the checked TLD
"); ?>" /></td></tr>
88 <p><span
class=
"ina"><a href=
"adm_tldadd.php"><?php
__(
"Add a new TLD"); ?></a></span></p>
89 <?php include_once(
"foot.php"); ?>
if(! $admin->enabled) $fields
Manages Allowed TLD's to be installed as domain names on the server soon deprecated due to all those ...
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...