Browse Source

fix bug

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

9
functions/cvupload.php

@ -24,7 +24,14 @@
$picname = md5($ip.$ua.date('Y-m-d H:i:s',time())); $picname = md5($ip.$ua.date('Y-m-d H:i:s',time()));
//截取16个字符 //截取16个字符
$picname = substr($picname,8,16).'.png'; $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; $picpath = APP.$onepath;

2
functions/version.txt

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

4
tpl/user/install1.php

@ -11,7 +11,7 @@
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
<th>目录</th> <th>目录/说明</th>
<th>要求</th> <th>要求</th>
<th>检测结果</th> <th>检测结果</th>
</tr> </tr>
@ -28,7 +28,7 @@
<td><?php echo $statusarr['db']; ?></td> <td><?php echo $statusarr['db']; ?></td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td>pdo_sqlite </td> <td>pdo_sqlite </td>
<td><?php echo $statusarr['pdo']; ?></td> <td><?php echo $statusarr['pdo']; ?></td>
</tr> </tr>

Loading…
Cancel
Save