Register globals
This commit is contained in:
parent
107774ca3f
commit
9c875031c7
|
@ -99,8 +99,8 @@ for($i=0;$i<count($c);$i++) {
|
||||||
<table class="tedit">
|
<table class="tedit">
|
||||||
<tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr>
|
<tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="text" class="int" value="<?php ehe($newlogin); ?>" id="newlogin" name="newlogin" 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($newpass); ?>" id="newpass" name="newpass" 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>
|
||||||
<tr class="trbtn"><td colspan="2">
|
<tr class="trbtn"><td colspan="2">
|
||||||
<input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" />
|
<input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" />
|
||||||
|
|
|
@ -36,7 +36,6 @@ if (!$admin->enabled) {
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
"delip" => array ("request", "string", ""),
|
"delip" => array ("request", "string", ""),
|
||||||
|
|
||||||
"newip" => array ("request", "string", ""),
|
"newip" => array ("request", "string", ""),
|
||||||
"newclass" => array ("request", "string", "32"),
|
"newclass" => array ("request", "string", "32"),
|
||||||
);
|
);
|
||||||
|
@ -98,8 +97,8 @@ for($i=0;$i<count($c);$i++) {
|
||||||
<table class="tedit">
|
<table class="tedit">
|
||||||
<tr><th><label for="newip"><?php __("IP Address"); ?></label></th><th><label for="newclass"><?php __("Prefix"); ?></label></th></tr>
|
<tr><th><label for="newip"><?php __("IP Address"); ?></label></th><th><label for="newclass"><?php __("Prefix"); ?></label></th></tr>
|
||||||
<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 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($newclass); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td>
|
<td><input type="text" class="int" value="<?php ehe( (isset($newclass)?$newclass:'') ); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan="2">
|
<tr><td colspan="2">
|
||||||
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />
|
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />
|
||||||
|
|
|
@ -36,8 +36,8 @@ if (!$admin->enabled) {
|
||||||
|
|
||||||
$conf = variable_init();
|
$conf = variable_init();
|
||||||
foreach ($conf as $name => $val) {
|
foreach ($conf as $name => $val) {
|
||||||
if (isset($$name)) {
|
if (isset($GLOBALS['_POST'][$name])) {
|
||||||
variable_set($name, $$name);
|
variable_set($name, $GLOBALS['_POST'][$name]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue