Skip to content

Commit

Permalink
修复搜索翻页问题
Browse files Browse the repository at this point in the history
  • Loading branch information
magicblack committed Aug 13, 2021
1 parent 1788ac2 commit e72ebf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/admin_conn.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
define('MAC_ADMIN', preg_replace("|[/\\\]{1,}|",'/',dirname(__FILE__) ) );
require(MAC_ADMIN."/../inc/conn.php");
require(MAC_ADMIN.'/../inc/common/phplib.php');
define('MAC_VERSION','2022.3002');
define('MAC_VERSION','2022.3003');
define('MAC_MODULE','admin');

if(strpos($_SERVER["SCRIPT_NAME"],'/admin/')>0){
Expand Down
5 changes: 2 additions & 3 deletions inc/common/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ function getLink($f,$l,$t,$d,$pg='')
}
$strpg='';
$colarr=array('pg','wd','year','starring','directed','pinyin','letter','ids','area','lang','tag','typeid','classid','order','by');

$valarr=array();
foreach($colarr as $k=>$v){
$c = $colarr[$k];
$valarr[$c] = rawurlencode($this->P[$c]);
$valarr[$c] = $this->P[$c];
}
foreach($d as $k=>$v){
$valarr[$k]=$v;
Expand Down Expand Up @@ -90,7 +89,7 @@ function getLink($f,$l,$t,$d,$pg='')
$str = $r;
}
$colarr = array('{id}','{pg}','{order}','{by}','{class}','{year}','{letter}','{area}','{lang}');
$valarr = array('id'=>$this->P['id'],'pg'=>'1','order'=>$this->P['order'],'by'=>$this->P['by'],'class'=>rawurlencode($this->P['class']),'year'=>rawurlencode($this->P['year']),'letter'=>rawurlencode($this->P['letter']),'area'=>rawurlencode($this->P['area']),'lang'=>rawurlencode($this->P['lang']));
$valarr = array('id'=>$this->P['id'],'pg'=>'1','order'=>$this->P['order'],'by'=>$this->P['by'],'class'=>urlencode($this->P['class']),'year'=>urlencode($this->P['year']),'letter'=>urlencode($this->P['letter']),'area'=>urlencode($this->P['area']),'lang'=>urlencode($this->P['lang']));
foreach($d as $k=>$v){
$valarr[$k]= $v;
}
Expand Down

0 comments on commit e72ebf8

Please sign in to comment.