@$word = urldecode($this->post['word'] ? $this->post['word'] : $this->get[3])word 经过 urldecode编码 如果是post提交那么就 $this->post['word'] 否则就 $this->get[3])对吗???如果对
那么$this->get[3]) 是啥意思 取前三个值吗??如果不对
那是什么意思啊??
那么$this->get[3]) 是啥意思 取前三个值吗??如果不对
那是什么意思啊??
你得参看这个类才能知道$this->get 是什么,反正不是取前三个值.
function onsearch() {
$navtitle = '搜索问题';
$qstatus = $status = $this->get[2];
(3 == $status) && ($qstatus = "1,2");
@$word = urldecode($this->post['word'] ? $this->post['word'] : $this->get[3]);//
$navtitle = '搜索问题';
$qstatus = $status = $this->get[2];
(3 == $status) && ($qstatus = "1,2");
@$word = urldecode($this->post['word'] ? $this->post['word'] : $this->get[3]);//
function onsearch() {
$navtitle = '搜索问题';
$qstatus = $status = $this->get[2];
(3 == $status) && ($qstatus = "1,2");
@$word = urldecode($this->post['word'] ? $this->post['word'] : $this->get[3]);//这句话的意思
empty($word) && $this->message("搜索关键!", 'BACK');
$encodeword = urlencode($word); @$page = max(1, intval($this->get[4]));
$pagesize = $this->setting['list_default'];
$startindex = ($page - 1) * $pagesize; //每页面显示25条
$rownum = $_ENV['question']->search_title_num($word, $qstatus); //获取总的记录数
$questionlist = $_ENV['question']->search_title($word, $qstatus, $startindex, $pagesize); //问题列表数据
$departstr = page($rownum, $pagesize, $page, "question/search/$status/$word"); //得到分页字符串
$this->load('setting');
$wordslist = unserialize($this->setting['hot_words']);
include template('search');;
}
$navtitle = '搜索问题';
$qstatus = $status = $this->get[2];
(3 == $status) && ($qstatus = "1,2");
@$word = urldecode($this->post['word'] ? $this->post['word'] : $this->get[3]);//这句话的意思
empty($word) && $this->message("搜索关键!", 'BACK');
$encodeword = urlencode($word); @$page = max(1, intval($this->get[4]));
$pagesize = $this->setting['list_default'];
$startindex = ($page - 1) * $pagesize; //每页面显示25条
$rownum = $_ENV['question']->search_title_num($word, $qstatus); //获取总的记录数
$questionlist = $_ENV['question']->search_title($word, $qstatus, $startindex, $pagesize); //问题列表数据
$departstr = page($rownum, $pagesize, $page, "question/search/$status/$word"); //得到分页字符串
$this->load('setting');
$wordslist = unserialize($this->setting['hot_words']);
include template('search');;
}
$navtitle = '搜索问题';
$qstatus = $status = $this->get[2];
(3 == $status) && ($qstatus = "1,2");
@$word = urldecode($this->post['word'] ? $this->post['word'] : $this->get[3]);//这句话的意思
empty($word) && $this->message("搜索关键!", 'BACK');
$encodeword = urlencode($word); @$page = max(1, intval($this->get[4]));
$pagesize = $this->setting['list_default'];
$startindex = ($page - 1) * $pagesize; //每页面显示25条
$rownum = $_ENV['question']->search_title_num($word, $qstatus); //获取总的记录数
$questionlist = $_ENV['question']->search_title($word, $qstatus, $startindex, $pagesize); //问题列表数据
$departstr = page($rownum, $pagesize, $page, "question/search/$status/$word"); //得到分页字符串
$this->load('setting');
$wordslist = unserialize($this->setting['hot_words']);
include template('search');;
}
我估计是如果没有post就认为是get传过来的值,取得出去域名后的第3个参数的值(有点像ci)