<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/
defined('IN_UQ') or exit('Access Denied'); class user_uqcms extends control { function __construct(){ $this->uid = @$_SESSION['user']['uid']; parent::__construct(); } public function info(){ if($_POST){ $setArr['nick'] = isset($_POST['nick'])?$_POST['nick']:''; $setArr['name'] = isset($_POST['name'])?$_POST['name']:''; $query = $this->db->update(table('member'),$setArr,'uid = '.$this->uid); if($query){ mshowmsg('保存成功','','-1'); }else{ mshowmsg('保存失败'); } } $row = $this->db->get_one("select * from ".table('member')." where uid = ".$this->uid); $this->assign('row',$row); $this->display(); } }