Coding style, again

This commit is contained in:
Alan Garcia 2014-03-26 11:45:31 +00:00
parent ed3ab589dd
commit 3b1e0a359d
3 changed files with 7 additions and 2 deletions

View File

@ -76,7 +76,9 @@ $list_ip = $authip->list_ip_whitelist();
} else {
$txt="Subnet IPv6";
}
}
} else {
$txt = "Unknow IP";
}
echo "<tr class='lst'><td>$txt</td><td>{$i['ip_human']}</td><td>{$i['infos']}</td>";
?>
<td><div class="ina edit"><a href="javascript:edit_ip(<?php echo "'".htmlentities($i['id'])."','".htmlentities($i['ip_human'])."','".htmlentities($i['infos'])."'"; ?>);"><?php __("Edit"); ?></a></div></td>

View File

@ -68,7 +68,7 @@ if ($pass != $passconf) {
// When changing its own account, enabled forced to 1.
if ($uid==$mem->user["uid"]) {
$enabled=1;
}
}
if (!$admin->update_mem($uid, $nmail, $nom, $prenom, $pass, $enabled, $canpass, $type, $duration, $notes, $reset_quotas)){
$error=$err->errstr();

View File

@ -41,6 +41,9 @@ $dom->lock();
if (!isset($noread) || !$noread) {
if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
$error=$err->errstr();
echo "<p class=\"alert alert-danger\">$error</p>";
include_once('foot.php');
die();
}
}