add text
parent
4894981cf3
commit
a035e68be2
|
@ -180,13 +180,13 @@ if (isset($_GET['reimg'])) {
|
||||||
<label>缩略图生成方式</label>
|
<label>缩略图生成方式</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio-primary">
|
<div class="radio-primary">
|
||||||
<input type="radio" name="thumbnail" value="0" <?php if ($config['thumbnail'] === 0) echo 'checked="checked"'; ?> id="thumbnail0"><label for="thumbnail0" data-toggle="tooltip" title="广场直接输出上传图片,会导致流量增加"> 关闭</label>
|
<input type="radio" name="thumbnail" value="0" <?php if ($config['thumbnail'] === 0) echo 'checked="checked"'; ?> id="thumbnail0"><label for="thumbnail0" data-toggle="tooltip" title="直接输出上传图片,会导致流量增加"> 关闭</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio-primary">
|
<div class="radio-primary">
|
||||||
<input type="radio" name="thumbnail" value="1" <?php if ($config['thumbnail'] === 1) echo 'checked="checked"'; ?> id="thumbnail1"><label for="thumbnail1" data-toggle="tooltip" title="每次浏览都请求服务器,不会影响广场页面布局但会影响服务器性能"> 实时生成</label>
|
<input type="radio" name="thumbnail" value="1" <?php if ($config['thumbnail'] === 1) echo 'checked="checked"'; ?> id="thumbnail1"><label for="thumbnail1" data-toggle="tooltip" title="利用TimThumb生成 | 优点: 带缓存周期 缺点:无法生成webp动图"> 实时生成 | 推荐</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio-primary">
|
<div class="radio-primary">
|
||||||
<input type="radio" name="thumbnail" value="2" <?php if ($config['thumbnail'] === 2) echo 'checked="checked"'; ?> id="thumbnail2"><label for="thumbnail2" data-toggle="tooltip" title="每日首张缩略图生成会使广场页面代码布局异常 [ 刷新即可 ]"> 用户浏览广场实时生成</label>
|
<input type="radio" name="thumbnail" value="2" <?php if ($config['thumbnail'] === 2) echo 'checked="checked"'; ?> id="thumbnail2"><label for="thumbnail2" data-toggle="tooltip" title="优点: 缩略图直链 | 缺点:无缓存周期, 每日首张缩略图会使广场页面代码布局异常 [ 刷新即可 ]"> 实时生成 | 缩略图直链</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -68,9 +68,14 @@ function write_log($filePath, $sourceName, $absolutePath, $fileSize, $from = "We
|
||||||
|
|
||||||
$log = json_encode($log, JSON_UNESCAPED_UNICODE);
|
$log = json_encode($log, JSON_UNESCAPED_UNICODE);
|
||||||
file_put_contents($logFileName, PHP_EOL . $log, FILE_APPEND | LOCK_EX);
|
file_put_contents($logFileName, PHP_EOL . $log, FILE_APPEND | LOCK_EX);
|
||||||
|
|
||||||
|
/* 以数组存放 并发会丢日志
|
||||||
|
if (!is_file($logFileName)) {
|
||||||
|
file_put_contents($logFileName, '<?php $logs=Array();?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
include $logFileName;
|
||||||
|
$log = array_replace($logs, $log);
|
||||||
|
cache_write($logFileName, $log, 'logs');
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
for ($i = 0; $i < 100000; $i++) {
|
|
||||||
write_log('/i/2021/11/13/12der8s.jpg', '/i/cache/2021_11_13_12der8s.jpg');
|
|
||||||
}
|
|
||||||
*/
|
|
Loading…
Reference in New Issue