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 ( $fields = array (
"delaccount" => array ("request", "string", ""), "delaccount" => array ("request", "string", ""),
"newlogin" => array ("request", "string", ""), "newlogin" => array ("request", "string", ""),
"newpass" => array ("request", "string", ""), "newpass" => array ("request", "string", ""),
); );
@ -64,7 +63,7 @@ include_once("head.php");
<hr id="topbar"/> <hr id="topbar"/>
<br /> <br />
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; 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> <h3><?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3>
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();

View File

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

View File

@ -51,7 +51,7 @@ $value=$$dynamicvar;
$dom->lock(); $dom->lock();
$dt=$dom->domains_type_lst(); $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"); __("This page is restricted to authorized staff");
exit(); exit();
} }

View File

@ -32,13 +32,14 @@ include_once("head.php");
$fields = array ( $fields = array (
"dir" => array ("request", "string", ""), "dir" => array ("request", "string", ""),
"user" => array ("request", "string", ""),
); );
getFields($fields); getFields($fields);
?> ?>
<h3><?php printf(_("Adding a username in %s"),$dir); ?></h3> <h3><?php printf(_("Adding a username in %s"),$dir); ?></h3>
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
} }
?> ?>

View File

@ -41,7 +41,7 @@ getFields($fields);
<hr id="topbar"/> <hr id="topbar"/>
<br /> <br />
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
} }
?> ?>

View File

@ -45,7 +45,7 @@ include_once("head.php");
?> ?>
<h3><?php __("Admin preferences"); ?></h3> <h3><?php __("Admin preferences"); ?></h3>
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; 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> <h3><?php __("Change the email of the account"); ?></h3>
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();

View File

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