parent
910d1fc432
commit
d97ab41972
|
@ -46,22 +46,22 @@ file_put_contents(APP_ROOT . '/config/EasyIamge.lock', '安装环境检测锁定
|
|||
}
|
||||
}
|
||||
// 文件权限检测
|
||||
$quanxian = substr(base_convert(fileperms("file.php"), 10, 8), 3);
|
||||
$quanxian = substr(base_convert(fileperms("./application/upload.php"), 10, 8), 3);
|
||||
if (IS_WIN) {
|
||||
echo '
|
||||
<p style="color:green">file.php 文件可执行</p>
|
||||
<p style="color:green">upload.php 文件可执行</p>
|
||||
<p style="color:green">/i 目录可读写</p>
|
||||
';
|
||||
}
|
||||
if (!IS_WIN) {
|
||||
if ($quanxian !== '755' and !is_writable(APP_ROOT . '/i/')) {
|
||||
echo '
|
||||
<p style="color:red">file.php 文件不可执行</font>>
|
||||
<p style="color:red">upload.php 文件不可执行</font>>
|
||||
<p style="color:red">/i 目录可读写</font>>
|
||||
';
|
||||
} else {
|
||||
echo '
|
||||
<p style="color:green">file.php 文件可执行</p>
|
||||
<p style="color:green">upload.php 文件可执行</p>
|
||||
<p style="color:green">/i 目录可读写</p>
|
||||
';
|
||||
}
|
||||
|
|
20
index.php
20
index.php
|
@ -50,28 +50,28 @@ mustLogin();
|
|||
<div class="tab-content" style="text-align:right;">
|
||||
<div class="tab-pane fade <?php if ($config['upload_first_show'] == 1) echo 'active in'; ?>" id="tab2Content1">
|
||||
<textarea class="form-control" rows="5" id="links" readonly></textarea>
|
||||
<button class="btn" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnLinks" class="btn copyBtn1" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
<button class="btn btn-primary" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnLinks" class="btn btn-primary copyBtn1" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
</div>
|
||||
<div class="tab-pane fade <?php if ($config['upload_first_show'] == 2) echo 'active in'; ?>" id="tab2Content2">
|
||||
<textarea class="form-control" rows="5" id="bbscode" readonly></textarea>
|
||||
<button class="btn" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnBbscode" class="btn copyBtn2" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
<button class="btn btn-primary" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnBbscode" class="btn btn-primary copyBtn2" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
</div>
|
||||
<div class="tab-pane fade <?php if ($config['upload_first_show'] == 3) echo 'active in'; ?>" id="tab2Content3">
|
||||
<textarea class="form-control" rows="5" id="markdown" readonly></textarea>
|
||||
<button class="btn" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnMarkDown" class="btn copyBtn3" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
<button class="btn btn-primary" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnMarkDown" class="btn btn-primary copyBtn3" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
</div>
|
||||
<div class="tab-pane fade <?php if ($config['upload_first_show'] == 4) echo 'active in'; ?>" id="tab2Content4">
|
||||
<textarea class="form-control" rows="5" id="html" readonly></textarea>
|
||||
<button class="btn" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnHtml" class="btn copyBtn4" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
<button class="btn btn-primary" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btnHtml" class="btn btn-primary copyBtn4" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
</div>
|
||||
<div class="tab-pane fade <?php if ($config['upload_first_show'] == 5) echo 'active in'; ?>" id="tab2Content5">
|
||||
<pre><textarea class="form-control" rows="5" id="del" readonly></textarea></pre>
|
||||
<button class="btn" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btndel" class="btn copyBtn5" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
<button class="btn btn-primary" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-undo"></i> 刷新</button>
|
||||
<button id="btndel" class="btn btn-primary copyBtn5" data-loading-text="已经复制链接..." style="margin-top:10px;"><i class="icon icon-copy"></i> 复制</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
require_once __DIR__ . '/../application/function.php';
|
||||
clearstatcache();
|
||||
// 存在程序锁则跳转主页
|
||||
if (file_exists(APP_ROOT . '/install/install.lock')) {
|
||||
exit(header("Location:/../index.php"));
|
||||
|
@ -9,7 +10,7 @@ $fileinfo = extension_loaded('fileinfo') ? true : false;
|
|||
$gd = extension_loaded('gd') ? true : false;
|
||||
$openssl = extension_loaded('openssl') ? true : false;
|
||||
|
||||
$file = substr(base_convert(fileperms(APP_ROOT . "/file.php"), 10, 8), 3);
|
||||
$file = substr(base_convert(fileperms(APP_ROOT . "/application/upload.php"), 10, 8), 3);
|
||||
if (IS_WIN) {
|
||||
$file_php = true;
|
||||
$i_wjj = true;
|
||||
|
@ -92,7 +93,7 @@ function checkPASS($name)
|
|||
<td> <?php checkPASS($openssl); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>file.php</td>
|
||||
<td>upload.php</td>
|
||||
<td>0755可执行权限 | 非windows系统</td>
|
||||
<td> <?php checkPASS($file_php); ?></td>
|
||||
</tr>
|
||||
|
|
|
@ -216,7 +216,7 @@ $('#btndel').on('click', function () {
|
|||
xhr.onerror = function () {
|
||||
alert('上传失败3');
|
||||
};
|
||||
xhr.open('POST', './file.php', true);
|
||||
xhr.open('POST', './application/upload.php', true);
|
||||
xhr.send(formData);
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue