Register globals

This commit is contained in:
Alan Garcia 2012-08-20 16:06:06 +00:00
parent 107774ca3f
commit 9c875031c7
3 changed files with 6 additions and 7 deletions

View File

@ -99,8 +99,8 @@ for($i=0;$i<count($c);$i++) {
<table class="tedit">
<tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr>
<tr>
<td><input type="text" class="int" value="<?php ehe($newlogin); ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /></td>
<td><input type="password" class="int" value="<?php ehe($newpass); ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td>
<td><input type="text" class="int" value="<?php ehe( isset($newlogin)?$newlogin:'') ; ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /></td>
<td><input type="password" class="int" value="<?php ehe( (isset($newpass)?$newpass:'') ) ; ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td>
</tr>
<tr class="trbtn"><td colspan="2">
<input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" />

View File

@ -36,7 +36,6 @@ if (!$admin->enabled) {
$fields = array (
"delip" => array ("request", "string", ""),
"newip" => array ("request", "string", ""),
"newclass" => array ("request", "string", "32"),
);
@ -98,8 +97,8 @@ for($i=0;$i<count($c);$i++) {
<table class="tedit">
<tr><th><label for="newip"><?php __("IP Address"); ?></label></th><th><label for="newclass"><?php __("Prefix"); ?></label></th></tr>
<tr>
<td style="text-align: right"><input type="text" class="int" value="<?php ehe($newip); ?>" id="newip" name="newip" maxlength="15" size="20" style="text-align:right" /> / </td>
<td><input type="text" class="int" value="<?php ehe($newclass); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td>
<td style="text-align: right"><input type="text" class="int" value="<?php ehe( (isset($newip)?$newip:'') ); ?>" id="newip" name="newip" maxlength="15" size="20" style="text-align:right" /> / </td>
<td><input type="text" class="int" value="<?php ehe( (isset($newclass)?$newclass:'') ); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td>
</tr>
<tr><td colspan="2">
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />

View File

@ -36,8 +36,8 @@ if (!$admin->enabled) {
$conf = variable_init();
foreach ($conf as $name => $val) {
if (isset($$name)) {
variable_set($name, $$name);
if (isset($GLOBALS['_POST'][$name])) {
variable_set($name, $GLOBALS['_POST'][$name]);
}
}