Fix some broken page (register globals love)

This commit is contained in:
Alan Garcia 2012-08-22 14:33:31 +00:00
parent 279fa9bd1e
commit e63be99f69
2 changed files with 4 additions and 13 deletions

View File

@ -86,5 +86,6 @@ foreach($dom->domains_type_lst() as $d) {
</tr> </tr>
<?php } // end foreach <?php } // end foreach
?> ?>
</table>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -40,9 +40,8 @@ $fields = array (
); );
getFields($fields); getFields($fields);
// * with no parameter when the admin want to go back to his admin account. // * with no parameter when the admin want to go back to his admin account.
if ( $id && $_COOKIE["oldid"]) { if ( empty($id) && isset($_COOKIE["oldid"]) && !empty($_COOKIE["oldid"])) {
// We check the cookie's value : // We check the cookie's value :
list($newuid,$passcheck)=explode("/",$_COOKIE["oldid"]); list($newuid,$passcheck)=explode("/",$_COOKIE["oldid"]);
$newuid=intval($newuid); $newuid=intval($newuid);
@ -80,11 +79,6 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"id" => array ("request", "integer", 0),
);
getFields($fields);
// Depending on subadmin_restriction, a subadmin can (or cannot) connect to account he didn't create // Depending on subadmin_restriction, a subadmin can (or cannot) connect to account he didn't create
$subadmin=variable_get("subadmin_restriction"); $subadmin=variable_get("subadmin_restriction");
if ($subadmin==0 && !$admin->checkcreator($id)) { if ($subadmin==0 && !$admin->checkcreator($id)) {
@ -116,12 +110,8 @@ include_once("head.php");
<h3><?php __("Member login"); ?></h3> <h3><?php __("Member login"); ?></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");
exit();
} }
include_once("foot.php");
include_once("foot.php");
?> ?>