205,239d204 < if ($_POST) { < < if (!is_array($user_settings["widgets"]["ipsec_widget"])) { < $user_settings["widgets"]["ipsec_widget"] = array(); < } < if (isset($_POST["newdefaulttab6"])) { < $user_settings["widgets"]["ipsec_widget"]["newdefaulttab6"] = $_POST["newdefaulttab6"]; < } < save_widget_settings($_SESSION['Username'], $user_settings["widgets"], gettext("Updated gateways widget settings via dashboard.")); < header("Location: /"); < exit(0); < } < $NewDefaultTab = $user_settings["widgets"]["ipsec_widget"]["newdefaulttab6"]; < $TunnelDefault = false; < $OverviewDefault = false; < $MobileDefault = false; < $TunnelDisplay ="none"; < $OverviewDisplay ="none"; < $MobileDisplay ="none"; < < switch($NewDefaultTab) { < case "Overview" : < $OverviewDefault = true; < $OverviewDisplay = "block"; < break; < case "tunnel" : < $TunnelDefault = true; < $TunnelDisplay = "block"; < break; < case "mobile" : < $MobileDefault = true; < $MobileDisplay = "block"; < break; < } < 242,244c207,209 < $tab_array[] = array(gettext("Overview"), $OverviewDefault, "ipsec-Overview"); < $tab_array[] = array(gettext("Tunnels"), $TunnelDefault, "ipsec-tunnel"); < $tab_array[] = array(gettext("Mobile"), $MobileDefault, "ipsec-mobile"); --- > $tab_array[] = array(gettext("Overview"), true, "ipsec-Overview"); > $tab_array[] = array(gettext("Tunnels"), false, "ipsec-tunnel"); > $tab_array[] = array(gettext("Mobile"), false, "ipsec-mobile"); 253c218 <