Scroll speed & find on input settings, fix tab sticking on close

This commit is contained in:
mattpass
2021-04-11 10:34:58 +01:00
parent f5c1640dbd
commit da88db20fb
6 changed files with 74 additions and 51 deletions

View File

@@ -28,48 +28,50 @@ if (false === $demoMode && true === isset($_SESSION['loggedIn']) && true === $_S
// Prepare all our vars
$updatedSettings = [
"versionNo" => $currentSettings['versionNo'],
"configCreateDate" => $currentSettings['configCreateDate'],
"root" => xssClean($_POST['root'], "html"),
"checkUpdates" => isset($_POST['checkUpdates']),
"openLastFiles" => isset($_POST['openLastFiles']),
"updateDiffOnSave" => isset($_POST['updateDiffOnSave']),
"languageUser" => $_POST['languageUser'],
"backupsKept" => isset($_POST['backupsKept']),
"backupsDays" => intval($_POST['backupsDays']),
"deleteToTmp" => isset($_POST['deleteToTmp']),
"findFilesExclude" => explode(",", str_replace(" ", "", $_POST['findFilesExclude'])),
"codeAssist" => isset($_POST['codeAssist']),
"visibleTabs" => isset($_POST['visibleTabs']),
"lockedNav" => isset($_POST['lockedNav']),
"tagWrapperCommand" => $_POST['tagWrapperCommand'],
"autoComplete" => $_POST['autoComplete'],
"password" => $currentSettings['password'],
"bannedFiles" => explode(",", str_replace(" ", "", $_POST['bannedFiles'])),
"bannedPaths" => explode(",", str_replace(" ", "", $_POST['bannedPaths'])),
"allowedIPs" => explode(",", str_replace(" ", "", $_POST['allowedIPs'])),
"autoLogoutMins" => intval($_POST['autoLogoutMins']),
"theme" => $_POST['theme'],
"fontSize" => $_POST['fontSize'],
"lineWrapping" => isset($_POST['lineWrapping']),
"lineNumbers" => isset($_POST['lineNumbers']),
"showTrailingSpace" => isset($_POST['showTrailingSpace']),
"matchBrackets" => isset($_POST['matchBrackets']),
"autoCloseTags" => isset($_POST['autoCloseTags']),
"autoCloseBrackets" => isset($_POST['autoCloseBrackets']),
"indentType" => $_POST['indentType'],
"indentAuto" => isset($_POST['indentAuto']),
"indentSize" => intval($_POST['indentSize']),
"pluginPanelAligned" => $_POST['pluginPanelAligned'],
"scrollbarStyle" => $_POST['scrollbarStyle'],
"bugFilePaths" => explode(",", str_replace(" ", "", $_POST['bugFilePaths'])),
"bugFileCheckTimer" => intval($_POST['bugFileCheckTimer']) >= 0 ? intval($_POST['bugFileCheckTimer']) : 0,
"bugFileMaxLines" => intval($_POST['bugFileMaxLines']),
"plugins" => $currentSettings['plugins'],
"tutorialOnLogin" => isset($_POST['tutorialOnLogin']),
"previousFiles" => $currentSettings['previousFiles'],
"last10Files" => $currentSettings['last10Files'],
"favoritePaths" => $currentSettings['favoritePaths'],
"versionNo" => $currentSettings['versionNo'],
"configCreateDate" => $currentSettings['configCreateDate'],
"root" => xssClean($_POST['root'], "html"),
"checkUpdates" => isset($_POST['checkUpdates']),
"openLastFiles" => isset($_POST['openLastFiles']),
"updateDiffOnSave" => isset($_POST['updateDiffOnSave']),
"languageUser" => $_POST['languageUser'],
"backupsKept" => isset($_POST['backupsKept']),
"backupsDays" => intval($_POST['backupsDays']),
"deleteToTmp" => isset($_POST['deleteToTmp']),
"findFilesExclude" => explode(",", str_replace(" ", "", $_POST['findFilesExclude'])),
"codeAssist" => isset($_POST['codeAssist']),
"visibleTabs" => isset($_POST['visibleTabs']),
"lockedNav" => isset($_POST['lockedNav']),
"tagWrapperCommand" => $_POST['tagWrapperCommand'],
"autoComplete" => $_POST['autoComplete'],
"password" => $currentSettings['password'],
"bannedFiles" => explode(",", str_replace(" ", "", $_POST['bannedFiles'])),
"bannedPaths" => explode(",", str_replace(" ", "", $_POST['bannedPaths'])),
"allowedIPs" => explode(",", str_replace(" ", "", $_POST['allowedIPs'])),
"autoLogoutMins" => intval($_POST['autoLogoutMins']),
"theme" => $_POST['theme'],
"fontSize" => $_POST['fontSize'],
"lineWrapping" => isset($_POST['lineWrapping']),
"lineNumbers" => isset($_POST['lineNumbers']),
"showTrailingSpace" => isset($_POST['showTrailingSpace']),
"matchBrackets" => isset($_POST['matchBrackets']),
"autoCloseTags" => isset($_POST['autoCloseTags']),
"autoCloseBrackets" => isset($_POST['autoCloseBrackets']),
"indentType" => $_POST['indentType'],
"indentAuto" => isset($_POST['indentAuto']),
"indentSize" => intval($_POST['indentSize']),
"pluginPanelAligned" => $_POST['pluginPanelAligned'],
"scrollbarStyle" => $_POST['scrollbarStyle'],
"selectNextOnFindInput" => isset($_POST['selectNextOnFindInput']),
"goToLineScrollSpeed" => intval($_POST['goToLineScrollSpeed']),
"bugFilePaths" => explode(",", str_replace(" ", "", $_POST['bugFilePaths'])),
"bugFileCheckTimer" => intval($_POST['bugFileCheckTimer']) >= 0 ? intval($_POST['bugFileCheckTimer']) : 0,
"bugFileMaxLines" => intval($_POST['bugFileMaxLines']),
"plugins" => $currentSettings['plugins'],
"tutorialOnLogin" => isset($_POST['tutorialOnLogin']),
"previousFiles" => $currentSettings['previousFiles'],
"last10Files" => $currentSettings['last10Files'],
"favoritePaths" => $currentSettings['favoritePaths'],
];
if ("" !== $_POST['password']) {
@@ -137,6 +139,8 @@ if (false === $demoMode && true === isset($_SESSION['loggedIn']) && true === $_S
"indentSize: " . $ICEcoder["indentSize"] . ", " .
"pluginPanelAligned: '" . $ICEcoder["pluginPanelAligned"] . "', " .
"scrollbarStyle: '" . $ICEcoder["scrollbarStyle"] . "', " .
"selectNextOnFindInput: " . (true === $ICEcoder["selectNextOnFindInput"] ? "true" : "false") . ", " .
"goToLineScrollSpeed: " . $ICEcoder["goToLineScrollSpeed"] . ", " .
"bugFilePaths: " . $jsBugFilePaths . ", " .
"bugFileCheckTimer: " . $ICEcoder["bugFileCheckTimer"] . ", " .
"bugFileMaxLines: " . $ICEcoder["bugFileMaxLines"] . ", " .