Register globals
This commit is contained in:
parent
9c875031c7
commit
8cad4c87f0
|
@ -34,6 +34,12 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"sel" => array ("post", "array", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
||||
if (is_array($sel)) {
|
||||
$error="";
|
||||
for($i=0;$i<count($sel);$i++) {
|
||||
|
@ -51,7 +57,7 @@ include_once("head.php");
|
|||
<hr id="topbar" />
|
||||
<br />
|
||||
<?php
|
||||
if ($error) {
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ if (!$admin->enabled) {
|
|||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
}
|
||||
$fields = array (
|
||||
"tld" => array ("post", "string", ""),
|
||||
"mode" => array ("post", "integer", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
||||
include_once ("head.php");
|
||||
|
||||
|
@ -41,7 +47,7 @@ include_once ("head.php");
|
|||
<hr id="topbar"/>
|
||||
<br />
|
||||
<?php
|
||||
if ($error) {
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
}
|
||||
|
||||
|
@ -56,7 +62,7 @@ include_once ("head.php");
|
|||
<form method="post" action="adm_tlddoadd.php" name="main" id="main">
|
||||
|
||||
<table class="tedit">
|
||||
<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><input type="text" id="tld" name="tld" class="int" value="<?php ehe($tld); ?>" size="20" maxlength="64" /></td></tr>
|
||||
<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><input type="text" id="tld" name="tld" class="int" value="<?php ehe( (isset($tld)?$tld:'') ); ?>" size="20" maxlength="64" /></td></tr>
|
||||
<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" id="mode" class="inl">
|
||||
<?php $admin->selecttldmode($mode); ?>
|
||||
</select></td></tr>
|
||||
|
|
|
@ -34,6 +34,13 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"tld" => array ("request", "string", ""),
|
||||
"mode" => array ("request", "integer", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
||||
if (!$admin->addtld($tld,$mode)) {
|
||||
$error=$err->errstr();
|
||||
include("adm_tldadd.php");
|
||||
|
@ -43,4 +50,4 @@ if (!$admin->addtld($tld,$mode)) {
|
|||
include("adm_tld.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -28,6 +28,12 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
$fields = array (
|
||||
"tld" => array ("post", "string", ""),
|
||||
"mode" => array ("post", "integer", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
||||
if (!$admin->enabled) {
|
||||
__("This page is restricted to authorized staff");
|
||||
|
@ -43,4 +49,4 @@ if (!$admin->edittld($tld,$mode)) {
|
|||
include("adm_tld.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -53,7 +53,7 @@ include_once("head.php");
|
|||
<hr id="topbar"/>
|
||||
<br />
|
||||
<?php
|
||||
if ($error) {
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue