add option for deleting invalid textures automatically
This commit is contained in:
parent
c6b2d6c1cc
commit
8970c17472
|
|
@ -39,6 +39,7 @@
|
|||
$_POST['user_can_register'] = isset($_POST['user_can_register']) ? $_POST['user_can_register'] : "0";
|
||||
$_POST['allow_chinese_playername'] = isset($_POST['allow_chinese_playername']) ? $_POST['allow_chinese_playername'] : "0";
|
||||
$_POST['avatar_query_string'] = isset($_POST['avatar_query_string']) ? $_POST['avatar_query_string'] : "0";
|
||||
$_POST['auto_del_invalid_texture'] = isset($_POST['auto_del_invalid_texture']) ? $_POST['auto_del_invalid_texture'] : "0";
|
||||
|
||||
foreach ($_POST as $key => $value) {
|
||||
// remove slash if site_url is ended with slash
|
||||
|
|
@ -119,6 +120,17 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="key">失效材质
|
||||
<i class="fa fa-question-circle" title="自动从皮肤库中删除文件不存在的材质记录" data-toggle="tooltip" data-placement="top"></i>
|
||||
</td>
|
||||
<td class="value">
|
||||
<label for="auto_del_invalid_texture">
|
||||
<input {{ (Option::get('auto_del_invalid_texture') == '1') ? 'checked="true"' : '' }} type="checkbox" id="auto_del_invalid_texture" name="auto_del_invalid_texture" value="1"> 自动删除失效材质
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="key">评论代码
|
||||
<i class="fa fa-question-circle" title="就是 Disqus,多说,畅言等评论服务提供的代码。留空以停用评论功能" data-toggle="tooltip" data-placement="top"></i>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @Author: printempw
|
||||
* @Date: 2016-07-29 11:53:11
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-08-17 18:06:10
|
||||
* @Last Modified time: 2016-08-19 23:11:29
|
||||
*/
|
||||
|
||||
return [
|
||||
|
|
@ -33,5 +33,5 @@ return [
|
|||
'check_update' => '1',
|
||||
'update_source' => 'github',
|
||||
'copyright_text' => '<strong>Copyright © 2016 <a href="{site_url}">{site_name}</a>.</strong> All rights reserved.',
|
||||
'auto_del_invalid_texture' => '1'
|
||||
'auto_del_invalid_texture' => '0'
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user