X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Foptions.php;h=abf23cc97abee2256a5bb4a7d87acca801893f67;hp=068810e48469d6ef6dde50575008b0600c4c41de;hb=a32985a59fe460e2bf5c2e9ea2dd6004d0f66b54;hpb=fe2a5f768f2c3458c6d0545a9d64c7e2f16593be diff --git a/src/options.php b/src/options.php index 068810e4..abf23cc9 100644 --- a/src/options.php +++ b/src/options.php @@ -115,6 +115,26 @@ function print_optionpages_row($leftopt, $rightopt = false) { /* ---------------------------- main ---------------------------- */ +/* get the globals that we may need */ +if (isset($_GET['optpage'])) { + $optpage = $_GET['optpage']; +} +elseif (isset($_POST['optpage'])) { + $optpage = $_POST['optpage']; +} +if (isset($_POST['optmode'])) { + $optmode = $_POST['optmode']; +} +if (isset($_POST['optpage_data'])) { + $optpage_data = $_POST['optpage_data']; +} +$username = $_SESSION['username']; +$key = $_COOKIE['key']; +$onetimepad = $_SESSION['onetimepad']; +$delimiter = $_SESSION['delimiter']; + +/* end of getting globals */ + /* Make sure we have an Option Page set. Default to main. */ if ( !isset($optpage) || $optpage == '' ) { $optpage = SMOPT_PAGE_MAIN; @@ -177,7 +197,7 @@ switch ($optpage) { /*** Second, load the option information for this page. ***/ /**********************************************************/ -if ( !is_file( $optpage_file ) ) { +if ( !@is_file( $optpage_file ) ) { $optpage = SMOPT_PAGE_MAIN; } else if ($optpage != SMOPT_PAGE_MAIN ) { /* Include the file for this optionpage. */