app/controller/admfor035/ordersua.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace WY\app\controller\admfor035;
use WY\app\libs\Controller;
if (!defined('WY_ROOT')) {
exit;
}
class ordersua extends CheckAdmin
{
public function index()
{
$kw = $this->req->get('kw');
$fdate = $this->req->get('fdate');
$tdate = $this->req->get('tdate');
$fdate = isset($_GET['fdate']) ? $fdate : date('Y-m-d');
$tdate = isset($_GET['tdate']) ? $tdate : date('Y-m-d');
$superid = $this->req->get('superid');
$sort = $this->req->get('sort');
$by = $this->req->get('by');
$orderby = 'userid desc';
if ($by) {
$orderby = $sort ? $by . ' desc' : $by . ' asc';
}
$cons = '';
$consOR = '';
$consArr = array();
if ($superid) {
$cons .= $cons ? ' and ' : '';
$cons .= 'agentid=?';
$consArr[] = $superid;
}
if ($kw) {
$user = $this->model()->select('id')->from('users')->where(array('fields' => 'username = ?', 'values' => array($kw)))->fetchRow();
if ($user) {
$consOR .= $consOR ? ' or ' : '';
$consOR .= 'userid=?';
$consArr[] = $user['id'];
}
}
if ($kw) {
$consOR .= $consOR ? ' or ' : '';
$consOR .= 'userid = ?';
$consArr[] = $kw;
}
if ($consOR) {
$cons .= $cons ? ' and ' : '';
$cons .= '(' . $consOR . ')';
}
if ($fdate) {
$cons .= $cons ? ' and ' : '';
$cons .= 'addtime>=?';
$consArr[] = strtotime($fdate);
}
if ($tdate) {
$cons .= $cons ? ' and ' : '';
$cons .= 'addtime<=?';
$consArr[] = strtotime($tdate . ' 23:59:59');
}
$page = $this->req->get('p');
$page = $page ? $page : 1;
后面还有 16 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
