vendor_user/uc_client/lib/db.class.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

/*
    [UCenter] (C)2001-2009 Comsenz Inc.
    This is NOT a freeware, use is subject to license terms

    $Id: db.class.php 922 2009-02-19 01:30:22Z zhaoxiongfei $
*/

class ucclient_db
{
    public $querynum = 0;
    public $link;
    public $histories;

    public $dbhost;
    public $dbuser;
    public $dbpw;
    public $dbcharset;
    public $pconnect;
    public $tablepre;
    public $time;

    public $goneaway = 5;

    public function connect($dbhost, $dbuser, $dbpw, $dbname = '', $dbcharset = '', $pconnect = 0, $tablepre = '', $time = 0)
    {
        $this->dbhost = $dbhost;
        $this->dbuser = $dbuser;
        $this->dbpw = $dbpw;
        $this->dbname = $dbname;
        $this->dbcharset = $dbcharset;
        $this->pconnect = $pconnect;
        $this->tablepre = $tablepre;
        $this->time = $time;

        if (!$this->link = new mysqli($dbhost, $dbuser, $dbpw, $dbname)) {
            $this->halt('Can not connect to MySQL server');
        }

        if ($this->version() > '4.1') {
            if ($dbcharset) {
                $this->link->set_charset($dbcharset);
            }

            if ($this->version() > '5.0.1') {
                $this->link->query("SET sql_mode=''");
            }
        }
    }

    public function fetch_array($query, $result_type = MYSQLI_ASSOC)
    {
        return $query ? $query->fetch_array($result_type) : null;
    }

    public function result_first($sql)
    {
        $query = $this->query($sql);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。