no domtype doc + code formatting on adm_login
This commit is contained in:
parent
041ee5dc9a
commit
0f9d936596
|
@ -39,7 +39,7 @@ include_once("head.php");
|
|||
?>
|
||||
<h3><?php __("Manage domains type"); ?></h3>
|
||||
<hr id="topbar" />
|
||||
<p><?php __("If you don't know what this page is about, don't touch anything."); ?></p>
|
||||
<p><?php __("If you don't know what this page is about, don't touch anything, and read AlternC documentation about domain types"); ?></p>
|
||||
|
||||
<br />
|
||||
<?php
|
||||
|
|
|
@ -40,8 +40,7 @@ if ($oldid) {
|
|||
die('Error : bad IP address');
|
||||
}
|
||||
|
||||
if (!$mem->setid($oldid))
|
||||
{
|
||||
if (!$mem->setid($oldid)) {
|
||||
$oldid=null;
|
||||
$error=$err->errstr();
|
||||
include("index.php");
|
||||
|
@ -59,7 +58,7 @@ if (!$admin->enabled) {
|
|||
|
||||
$fields = array (
|
||||
"id" => array ("request", "integer", 0),
|
||||
);
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$subadmin=variable_get("subadmin_restriction");
|
||||
|
@ -69,15 +68,11 @@ if ($subadmin==0 && !$admin->checkcreator($id)) {
|
|||
exit();
|
||||
}
|
||||
|
||||
if (!$r=$admin->get($id))
|
||||
{
|
||||
if (!$r=$admin->get($id)) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
setcookie('oldid',$cuid,0,'/admin/');
|
||||
if (!$mem->setid($id))
|
||||
{
|
||||
if (!$mem->setid($id)) {
|
||||
$error=$err->errstr();
|
||||
include("index.php");
|
||||
exit();
|
||||
|
@ -93,11 +88,10 @@ include_once("head.php");
|
|||
<h3><?php __("Member login"); ?></h3>
|
||||
<?php
|
||||
|
||||
if ($error)
|
||||
{
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
Loading…
Reference in New Issue