⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 error.class.php

📁 是一个基于PHP+Mysql架构的开源内容管理系统
💻 PHP
字号:
<?php
class error
{
	var $db;
	var $table_error;
    var $pay ;
	function error()
	{
		global $db;
		$this->db = $db;
		$this->table_error = DB_PRE.'error_report';
	}
	function get_list( $condition = null, $page = 1, $pagesize )
	{

		$errors = array();
		$arg['where']	= $this->_make_condition($condition);
		$page			= max(intval($page), 1);
        $offset			= $pagesize*($page-1);
		$errors['num']	= $this->db->get_one("SELECT COUNT(*) AS number FROM `$this->table_error` WHERE 1 {$arg['where']} ");
		$errors['pages'] = pages($errors['num']['number'], $page, $pagesize);
		$sql = "SELECT * FROM `$this->table_error`  WHERE 1 {$arg['where']}   ORDER BY `error_id` DESC LIMIT $offset,$pagesize";
		$result = $this->db->query($sql);
		while($r = $this->db->fetch_array($result))
		{
			$errors['info'][] = $r;
		}
		return $errors;
	}

	function drop( $ids, $where='' )
	{
		if(!empty($ids))
		{
			$query_in = $this->db_create_in($ids);
			$where = 'where `error_id` '.$query_in;
		}
		return $this->db->query("DELETE FROM `$this->table_error` $where");
	}

	function check($ids)
	{
        global $M, $_userid, $_username;
        if($M['ispoint'])
        {
            $this->pay	= load('pay_api.class.php', 'pay', 'api');
            $module = 'error_report';
            $type = 'point';
            $number = $M['ispoint'];
            $note = "鎻愪氦閿欒

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -