chengkun
2025-04-29 a34a90f03cecc7658231547270f8036bb5affe4a
提交
5 files modified
14 ■■■■ changed files
app/include/libs/sysplugins/smarty_internal_function_call_handler.php 2 ●●● patch | view | raw | blame | history
app/public/action.class.php 4 ●●●● patch | view | raw | blame | history
app/public/common.php 4 ●●●● patch | view | raw | blame | history
index.php 2 ●●● patch | view | raw | blame | history
js/ueditor/php/action_crawler.php 2 ●●● patch | view | raw | blame | history
app/include/libs/sysplugins/smarty_internal_function_call_handler.php
@@ -24,7 +24,7 @@
     * @param string $_hash nocache hash value
     * @param bool $_nocache nocache flag
     */
    public static function call(string $_name, Smarty_Internal_Template $_template, array $_params, string $_hash, bool $_nocache) {
    public static function call($_name, Smarty_Internal_Template $_template, $_params, $_hash, $_nocache) {
        if ($_nocache) {
            $_function = "smarty_template_function_{$_name}_nocache";
        } else {
app/public/action.class.php
@@ -151,7 +151,7 @@
    protected function _initialize() {
    }
    
    function get_table_fields($tableName): array {
    function get_table_fields($tableName) {
        include(CONFIG_PATH . 'db.config.php');
        $mysqli = new mysqli($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname']);
        $query = $mysqli->query("SHOW COLUMNS FROM $tableName");
@@ -163,7 +163,7 @@
    }
    
    
    function insert_into($table, $data = array()): bool {
    function insert_into($table, $data = array()) {
        $value = array();
        $this->db->connect();
        include(PLUS_PATH . 'dbstruct.cache.php');
app/public/common.php
@@ -1030,7 +1030,7 @@
     * @param int $tm 跳转时间
     * @param string $type 1:后台操作
     */
    function ACT_layer_msg(string $msg = "操作已成功!", int $st = 9, string $url = '', int $tm = 2, string $type = '0') {
    function ACT_layer_msg($msg = "操作已成功!", $st = 9, $url = '', $tm = 2, $type = '0') {
        //解决ie9 $.get $.post 回调函数的返回值为undefine
        header("Content-Type: text/html; charset=UTF-8");
        
@@ -1061,7 +1061,7 @@
     * @param string $tm 时间
     * @param string $error
     */
    function layer_msg(string $msg, string $st = '9', string $type = '0', string $url = '', string $tm = '2', string $error = '0') {
    function layer_msg($msg, $st = '9', $type = '0', $url = '', $tm = '2', $error = '0') {
        if ($type == '1') {
            
            $this->ACT_layer_msg($msg, $st, $url, $tm, $type);
index.php
@@ -28,7 +28,7 @@
    $_GET['m'] = 'index';
}
$ModuleName = $_GET['m'] ?? '';
$ModuleName = $_GET['m'] ?: '';
if ($ModuleName == '') $ModuleName = 'index';
//默认情况下,调用app/controller下与当前目录名相同的模块
//如当前目录名为ask,则默认调用的是app/controller/ask/下的控制器
js/ueditor/php/action_crawler.php
@@ -35,7 +35,7 @@
/* 抓取远程图片 */
$list = array();
$source = $_POST[$fieldName] ?? $_GET[$fieldName];
$source = $_POST[$fieldName] ? $_GET[$fieldName]:"";
foreach ($source as $imgUrl) {
    $item = new Uploader($imgUrl, $config, "remote");
    $info = $item->getFileInfo();