Registers globals

This commit is contained in:
Alan Garcia 2012-08-20 15:34:04 +00:00
parent 9be64ddcde
commit 6c88dd84bc
2 changed files with 20 additions and 1 deletions

View File

@ -33,13 +33,17 @@ include_once ("head.php");
$fields = array (
"R" => array ("request", "string", ""),
"o" => array ("request", "array", ""),
"d" => array ("request", "array", ""),
"formu" => array ("request", "integer", ""),
"actextract" => array ("request", "string", ""),
"fileextract" => array ("request", "string", ""),
"actdel" => array ("request", "string", ""),
"actcopy" => array ("request", "string", ""),
"actrename" => array ("request", "string", ""),
"actmove" => array ("request", "string", ""),
"actmoveto" => array ("request", "string", ""),
"nomfich" => array ("request", "string", ""),
);
getFields($fields);

View File

@ -29,6 +29,21 @@
*/
require_once("../class/config.php");
$fields = array (
"submit" => array ("post", "string", ""),
"editsizex" => array ("post", "string", ""),
"listmode" => array ("post", "string", ""),
"editsizey" => array ("post", "string", ""),
"showicons" => array ("post", "string", ""),
"downfmt" => array ("post", "string", ""),
"createfile" => array ("post", "string", ""),
"showtype" => array ("post", "string", ""),
"editor_font" => array ("post", "string", ""),
"editor_size" => array ("post", "string", ""),
"golastdir" => array ("post", "string", ""),
);
getFields($fields);
if ($submit) {
$bro->SetPrefs($editsizex, $editsizey, $listmode, $showicons, $downfmt, $createfile, $showtype, $editor_font, $editor_size, $golastdir);
$error=_("Your preferences have been updated.");
@ -40,7 +55,7 @@ $p=$bro->GetPrefs();
include_once("head.php");
?>
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
<?php if (isset($error) && $error) echo "<font color=\"red\">$error</font><br />"; ?>
<h3><?php __("File browser preferences"); ?></h3>
<hr id="topbar"/>
<br />