<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/
defined('IN_UQ') or exit('Access Denied'); class ad_mod extends module { public function alias($alias){ $label_row = $this->db->get_one("select * from ".table('ad_postion')." where alias = '".$alias."' limit 1"); if(isset($label_row['id'])){ $query = $this->db->get_all("select * from ".table('ad')." where postion = ".$label_row['id']." and start_time < ".time()." and end_time > ".time()." order by px desc"); if($query){ foreach($query as $v){ $data[] = $v; } return $data; }else{ return false; } } } public function link(){ return $this->db->get_all("select * from ".table('link')); } } 