<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/
defined('IN_UQ') or exit('Access Denied'); class template_mod extends module { function theme($id){ $data = $this->db->get_one("select * from ".table('theme')." where id = ".$id); return $data; } function nav($arr){ $limit = $arr['limit']?$arr['limit']:'8'; $data = $this->db->get_all("select * from ".table('navigate')." where status = 1 order by px desc limit ".$limit); return $data; } }