Tcho notices

This commit is contained in:
Alan Garcia 2012-08-23 14:10:38 +00:00
parent fb926aae72
commit d0c012e31e
9 changed files with 15 additions and 15 deletions

View File

@ -36,7 +36,6 @@ if (!$admin->enabled) {
$fields = array (
"delaccount" => array ("request", "string", ""),
"newlogin" => array ("request", "string", ""),
"newpass" => array ("request", "string", ""),
);
@ -64,7 +63,7 @@ include_once("head.php");
<hr id="topbar"/>
<br />
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}

View File

@ -56,7 +56,7 @@ $dom->unlock();
?>
<h3><?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();

View File

@ -58,7 +58,7 @@ $dom->unlock();
<hr id="topbar"/>
<br />
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();

View File

@ -35,7 +35,7 @@ $fields = array (
"sub_old" => array ("request", "string", ""),
"type" => array ("request", "string", $dom->type_local),
"type_old" => array ("request", "string", ""),
"value_old" => array ("request", "string", ""),
"value_old" => array ("request", "string", ""),
);
getFields($fields);
@ -51,7 +51,7 @@ $value=$$dynamicvar;
$dom->lock();
$dt=$dom->domains_type_lst();
if (!$isinvited && $dt[strtolower($type)]["enable"] != "ALL" ) {
if ( (!isset($isinvited) || !$isinvited) && $dt[strtolower($type)]["enable"] != "ALL" ) {
__("This page is restricted to authorized staff");
exit();
}

View File

@ -32,13 +32,14 @@ include_once("head.php");
$fields = array (
"dir" => array ("request", "string", ""),
"user" => array ("request", "string", ""),
);
getFields($fields);
?>
<h3><?php printf(_("Adding a username in %s"),$dir); ?></h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
?>
@ -69,4 +70,4 @@ getFields($fields);
<script type="text/javascript">
document.forms['main'].user.focus();
</script>
<?php include_once("foot.php"); ?>
<?php include_once("foot.php"); ?>

View File

@ -41,9 +41,9 @@ getFields($fields);
<hr id="topbar"/>
<br />
<?php
if ($error) {
echo "<p class=\"error\">$error</p>";
}
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
?>
<form method="post" action="hta_doedituser.php" name="main" id="main">
<table border="1" cellspacing="0" cellpadding="4">

View File

@ -45,7 +45,7 @@ include_once("head.php");
?>
<h3><?php __("Admin preferences"); ?></h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
?>

View File

@ -43,7 +43,7 @@ include_once("head.php");
?>
<h3><?php __("Change the email of the account"); ?></h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();
@ -51,4 +51,4 @@ include_once("head.php");
printf(_("help_mem_chgmail %s"),$newmail);
?>
<p class="code"><?php echo $cle; ?></p>
<?php include_once("foot.php"); ?>
<?php include_once("foot.php"); ?>

View File

@ -46,7 +46,7 @@ include_once("head.php");
?>
<h3><?php __("SQL Admin"); ?></h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
}
?>