Browse Source

fix bug

1.x v1.40
xiaoz 6 years ago
parent
commit
b71de6418d
  1. 7
      functions/cvupload.php
  2. 2
      functions/version.txt
  3. 4
      tpl/user/install1.php

7
functions/cvupload.php

@ -24,7 +24,14 @@ @@ -24,7 +24,14 @@
$picname = md5($ip.$ua.date('Y-m-d H:i:s',time()));
//截取16个字符
$picname = substr($picname,8,16).'.png';
//本月图片路径
$monthdir = APP.$updir.'/'.date('ym',time());
$onepath = $updir.'/'.date('ym',time()).'/'.$picname;
//路径不存在,则创建路径
if(!file_exists($monthdir)){
mkdir($monthdir,0777);
}
//图片完整存储路径
$picpath = APP.$onepath;

2
functions/version.txt

@ -1 +1 @@ @@ -1 +1 @@
v1.31(20180924)
v1.40(20181106)

4
tpl/user/install1.php

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
</colgroup>
<thead>
<tr>
<th>目录</th>
<th>目录/说明</th>
<th>要求</th>
<th>检测结果</th>
</tr>
@ -28,7 +28,7 @@ @@ -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>

Loading…
Cancel
Save