63
63
$ settingsContents =substr ($ settingsContents ,0 ,$ repPosStart ).$ settingsNew .substr ($ settingsContents ,($ repPosEnd ),strlen ($ settingsContents ));
64
64
65
65
// Now update the config file
66
- if (is_writeable ($ settingsFile )) {
66
+ if (is_writable ($ settingsFile )) {
67
67
$ fh =fopen ($ settingsFile ,'w ' );
68
68
fwrite ($ fh ,$ settingsContents );
69
69
fclose ($ fh );
94
94
$ generalSettingsContents =str_replace ('"enableRegistration"=> true ' ,'"enableRegistration"=> ' .$ isEnableRegistration ,$ generalSettingsContents );
95
95
$ generalSettingsContents =str_replace ('"enableRegistration"=> false ' ,'"enableRegistration"=> ' .$ isEnableRegistration ,$ generalSettingsContents );
96
96
97
- if (is_writeable ($ configSettings )) {
97
+ if (is_writable ($ configSettings )) {
98
98
$ fConfigSettings =fopen ($ configSettings ,'w ' );
99
99
fwrite ($ fConfigSettings ,$ generalSettingsContents );
100
100
fclose ($ fConfigSettings );
114
114
$ jsBugFilePaths ="[' " .str_replace (", " ,"',' " ,str_replace (" " ,"" ,strClean ($ _POST ['bugFilePaths ' ])))."'] " ;
115
115
echo "<script>top.ICEcoder.settingsScreen('hide');top.ICEcoder.useNewSettings(' " .$ themeURL ."', " .$ ICEcoder ["codeAssist " ].", " .$ ICEcoder ["lockedNav " ].",' " .$ ICEcoder ["tagWrapperCommand " ]."',' " .$ ICEcoder ["autoComplete " ]."', " .$ ICEcoder ["visibleTabs " ].",' " .$ ICEcoder ["fontSize " ]."', " .$ ICEcoder ["lineWrapping " ].", " .$ ICEcoder ["lineNumbers " ].", " .$ ICEcoder ["showTrailingSpace " ].", " .$ ICEcoder ["matchBrackets " ].", " .$ ICEcoder ["autoCloseTags " ].", " .$ ICEcoder ["autoCloseBrackets " ].", " .$ ICEcoder ["indentWithTabs " ].", " .$ ICEcoder ["indentAuto " ].", " .$ ICEcoder ["indentSize " ].",' " .$ ICEcoder ["pluginPanelAligned " ]."', " .$ jsBugFilePaths .", " .$ ICEcoder ["bugFileCheckTimer " ].", " .$ ICEcoder ["bugFileMaxLines " ].",' " .$ githubAuthTokenSet ."', " .$ ICEcoder ["updateDiffOnSave " ].", " .$ ICEcoder ["autoLogoutMins " ].", " .$ refreshFM .");top.iceRoot = ' " .$ ICEcoder ["root " ]."';</script> " ;
116
116
}
117
- ?>
117
+ ?>