瀏覽代碼

Reverted back to old method of extension grabbing.

pull/24/head
Teknikode 6 年之前
父節點
當前提交
6f162357da
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      includes/common.php

+ 1
- 2
includes/common.php 查看文件

@@ -174,8 +174,7 @@ function upload($files, $CONF, $db)
if (!empty($files)) {
$filesize = filesize($files['file']['tmp_name']);
$file_type = mime_content_type($files['file']['tmp_name']);
//$ext = pathinfo($files['file']['name'], PATHINFO_EXTENSION);
$ext = substr($files['file']['name'], strrpos($files['file']['name'], '.')+1);
$ext = pathinfo($files['file']['name'], PATHINFO_EXTENSION);
if ($logged_in == 1)
{
$user_id = $user->id;

Loading…
取消
儲存