Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
/ICEcoderPublic archive

Commit972ae19

Browse files
committed
changing the alias function is_writeable to the php function is_writable
1 parentfd2603a commit972ae19

8 files changed

+16
-16
lines changed

‎lib/ftp-manager.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
$settingsContents =substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));
104104

105105
// Now update the config file
106-
if (is_writeable($settingsFile)) {
106+
if (is_writable($settingsFile)) {
107107
$fh =fopen($settingsFile,'w');
108108
fwrite($fh,$settingsContents);
109109
fclose($fh);
@@ -209,4 +209,4 @@
209209

210210
</body>
211211

212-
</html>
212+
</html>

‎lib/github-manager.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
$settingsContents =substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));
4949

5050
// Now update the config file
51-
if (is_writeable($settingsFile)) {
51+
if (is_writable($settingsFile)) {
5252
$fh =fopen($settingsFile,'w');
5353
fwrite($fh,$settingsContents);
5454
fclose($fh);
@@ -151,7 +151,7 @@
151151
$settingsContents =substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));
152152

153153
// Now update the config file
154-
if (is_writeable($settingsFile)) {
154+
if (is_writable($settingsFile)) {
155155
$fh =fopen($settingsFile,'w');
156156
fwrite($fh,$settingsContents);
157157
fclose($fh);

‎lib/go-localhost-root.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
substr($settingsContents,($repPosEnd),strlen($settingsContents));
1919

2020
// Now update the config file
21-
if (is_writeable($settingsFile)) {
21+
if (is_writable($settingsFile)) {
2222
$fh =fopen($settingsFile,'w');
2323
fwrite($fh,$settingsContents);
2424
fclose($fh);
@@ -34,4 +34,4 @@
3434
?>
3535
<?php
3636
;};
37-
?>
37+
?>

‎lib/plugins-manager.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
$settingsContents =substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));
133133

134134
// Now update the config file
135-
if (is_writeable($settingsFile)) {
135+
if (is_writable($settingsFile)) {
136136
$fh =fopen($settingsFile,'w');
137137
fwrite($fh,$settingsContents);
138138
fclose($fh);

‎lib/properties.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<br><br>
4949
<span class="column" style="width: 180px"><?phpecho$t['Type'];?>:<?phpechois_dir($fileName) ?"Folder" :"File";?></span>
5050
<span class="column" style="margin: 0 10px"><?phpecho$t['Readable Writeable'];?>:
51-
<?phpechois_readable($fileName) ?"Yes" :"No";?> /<?phpechois_writeable($fileName) ?"Yes" :"No";?>
51+
<?phpechois_readable($fileName) ?"Yes" :"No";?> /<?phpechois_writable($fileName) ?"Yes" :"No";?>
5252
</span>
5353
<span class="column"><?phpecho$t['Relative path'];?>:<?phpechostr_replace($docRoot,"",$fileName);?></span>
5454
<br><br>
@@ -172,4 +172,4 @@ function changePerms(val) {
172172

173173
</body>
174174

175-
</html>
175+
</html>

‎lib/settings-save-current-files.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
$settingsContents =substr($settingsContents,0,$repPosStart).$saveFiles.substr($settingsContents,($repPosStart+$repPosEnd),strlen($settingsContents));
2828
// Now update the config file
29-
if (is_writeable($settingsFile)) {
29+
if (is_writable($settingsFile)) {
3030
$fh =fopen($settingsFile,'w');
3131
fwrite($fh,$settingsContents);
3232
fclose($fh);
@@ -45,7 +45,7 @@
4545
if (count($last10FilesArray)>=10) {$ICEcoder["last10Files"]=substr($ICEcoder["last10Files"],0,strrpos($ICEcoder["last10Files"],','));};
4646
$settingsContents =substr($settingsContents,0,$repPosStart).$saveFilesArray[$i].$commaExtra.$ICEcoder["last10Files"].substr($settingsContents,($repPosStart+$repPosEnd),strlen($settingsContents));
4747
// Now update the config file
48-
if (is_writeable($settingsFile)) {
48+
if (is_writable($settingsFile)) {
4949
$fh =fopen($settingsFile,'w');
5050
fwrite($fh,$settingsContents);
5151
fclose($fh);
@@ -57,4 +57,4 @@
5757
}
5858
echo'<script>top.ICEcoder.serverMessage();top.ICEcoder.serverQueue("del",0);</script>';
5959
}
60-
?>
60+
?>

‎lib/settings-update.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
$settingsContents =substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,($repPosEnd),strlen($settingsContents));
6464

6565
// Now update the config file
66-
if (is_writeable($settingsFile)) {
66+
if (is_writable($settingsFile)) {
6767
$fh =fopen($settingsFile,'w');
6868
fwrite($fh,$settingsContents);
6969
fclose($fh);
@@ -94,7 +94,7 @@
9494
$generalSettingsContents =str_replace('"enableRegistration"=> true','"enableRegistration"=>'.$isEnableRegistration,$generalSettingsContents);
9595
$generalSettingsContents =str_replace('"enableRegistration"=> false','"enableRegistration"=>'.$isEnableRegistration,$generalSettingsContents);
9696

97-
if (is_writeable($configSettings)) {
97+
if (is_writable($configSettings)) {
9898
$fConfigSettings =fopen($configSettings,'w');
9999
fwrite($fConfigSettings,$generalSettingsContents);
100100
fclose($fConfigSettings);
@@ -114,4 +114,4 @@
114114
$jsBugFilePaths ="['".str_replace(",","','",str_replace("","",strClean($_POST['bugFilePaths'])))."']";
115115
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>";
116116
}
117-
?>
117+
?>

‎lib/updater.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function startUpdate() {
2424
$testPath =$source.DIRECTORY_SEPARATOR.$iterator->getSubPathName();
2525
$testPath =str_replace("\\","/",$testPath);
2626
if (strpos($testPath,"/backups/")==false &&strpos($testPath,"/plugins/")==false &&strpos($testPath,"/.git/")==false) {
27-
if (!is_writeable($item)) {
27+
if (!is_writable($item)) {
2828
array_push($cantMoveArray,substr($item,count($source)+2));
2929
}
3030
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp