chengkun
2025-04-27 a0402d122fee696e2b7684ef7edfc504ade12640
js/ueditor/php/controller.php
@@ -5,7 +5,7 @@
error_reporting(E_ERROR);
header("Content-Type: text/html; charset=utf-8");
$CONFIG = json_decode(preg_replace("/\/\*[\s\S]+?\*\//", "", file_get_contents("config.json")), true);
$CONFIG = json_decode(preg_replace("/\/\*[\s\S]+?\*\//", "", file_get_contents("config.json")), TRUE);
$action = $_GET['action'];
switch ($action) {
@@ -13,9 +13,9 @@
        $result =  json_encode($CONFIG);
        break;
    /* 上传图片 */
    //上传图片
    case 'uploadimage':
    /* 上传涂鸦 */
        //上传涂鸦
    case 'uploadscrawl':
    /* 上传视频 */
    case 'uploadvideo':
@@ -23,13 +23,10 @@
    case 'uploadfile':
        $result = include("action_upload.php");
        break;
    /* 列出图片 */
    case 'listimage':
        $result = include("action_list.php");
        break;
    /* 列出文件 */
    case 'listfile':
        /* 列出图片 */
    case 'listimage':
        $result = include("action_list.php");
        break;