Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed Nov 6, 2018
1 parent 3c91867 commit b71de64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion functions/cvupload.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
$picname = md5($ip.$ua.date('Y-m-d H:i:s',time()));
//截取16个字符
$picname = substr($picname,8,16).'.png';
$onepath = $updir.'/'.date('ym',time()).'/'.$picname;
//本月图片路径
$monthdir = APP.$updir.'/'.date('ym',time());

$onepath = $updir.'/'.date('ym',time()).'/'.$picname;
//路径不存在,则创建路径
if(!file_exists($monthdir)){
mkdir($monthdir,0777);
}
//图片完整存储路径
$picpath = APP.$onepath;

Expand Down
2 changes: 1 addition & 1 deletion functions/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.31(20180924)
v1.40(20181106)
4 changes: 2 additions & 2 deletions tpl/user/install1.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</colgroup>
<thead>
<tr>
<th>目录</th>
<th>目录/说明</th>
<th>要求</th>
<th>检测结果</th>
</tr>
Expand All @@ -28,7 +28,7 @@
<td><?php echo $statusarr['db']; ?></td>
</tr>
<tr>
<td>组建</td>
<td>组件</td>
<td>pdo_sqlite </td>
<td><?php echo $statusarr['pdo']; ?></td>
</tr>
Expand Down

0 comments on commit b71de64

Please sign in to comment.