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 "tld" => array (
"request",
"string",
""),
42 include(
"adm_tld.php");
46 include_once(
"head.php");
49 <h3><?php
__(
"Manage allowed domains (TLD)"); ?></h3>
53 echo
$msg->msg_html_all();
55 <h3><?php
__(
"Edit a TLD"); ?></h3>
57 <form method=
"post" action=
"adm_tlddoedit.php">
59 <table
id=
"main" class=
"tedit">
60 <tr><th><label
for=
"tld"><?php
__(
"TLD"); ?></label></th><td><code><?php echo $tld; ?></code><input type=
"hidden" name=
"tld" id=
"tld" value=
"<?php ehe($tld); ?>" /></td></tr>
61 <tr><th><label
for=
"mode"><?php
__(
"Allowed Mode"); ?></label></th><td><select name=
"mode" class=
"inl" id=
"mode">
62 <?php $admin->selecttldmode(
$mode); ?>
64 <tr
class=
"trbtn"><td colspan=
"2">
65 <input type=
"submit" class=
"inb" value=
"<?php __("Edit
this TLD
"); ?>" />
66 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='adm_tld.php'"/>
71 <?php include_once(
"foot.php"); ?>
if(! $admin->enabled) $fields
Manage allow TLDs domains to be installed here soon deprecated.
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 ...