<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/
defined('IN_UQ') or exit('Access Denied'); class spread_uqcms extends control { function __construct(){ $this->uid = @$_SESSION['user']['uid']; parent::__construct(); } function index(){ $disRow = $this->db->get_one("select id,price from ".table('distribute')." where uid = ".$this->uid); if(!$disRow['id']){ $insert_id = $this->db->add(table('distribute'),array('uid'=>$this->uid)); $disRow['id'] = $insert_id; $disRow['price'] = '0'; } $this->assign('disRow',$disRow); $this->display(); } }