标签:
1 $query = DB::query("SELECT DISTINCT t.*$sqlfield 2 FROM `".DB::table(‘forum_thread‘)."` t 3 $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ 4 $sql 5 AND t.displayorder>=‘0‘ 6 ".$order_string." 7 LIMIT $startrow,$items;" 8 );
```php //$adid = $adids[array_rand($adids)]; foreach($adids as $adid){
if($parameters[$adid][\‘position\‘]==3){
$_G[\‘thread\‘][\‘contentmr\‘]= $parameters[$adid][\‘width\‘]? $parameters[$adid][\‘width\‘].\‘px\‘ : \‘auto\‘;
$extra = \‘style="margin-left:10px;width:\‘.$_G[\‘thread\‘][\‘contentmr\‘].\‘"\‘;
}
$adcode .= $codes[$adid];}````$uid = $_GET[‘uid‘];``$sign = $_GET[‘sign‘];``<form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid">``<form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid&sign=$sign">`$orderby = isset($parameter[‘orderby‘])?(in_array($parameter[‘orderby‘],array(‘lastpost‘,‘dateline‘,‘replies‘,‘views‘,‘heats‘,‘recommends‘))? $parameter[‘orderby‘]:‘lastpost‘):‘lastpost‘;$orderby = isset($parameter[‘orderby‘])?(in_array($parameter[‘orderby‘],array(‘lastpost‘,‘dateline‘,‘replies‘,‘views‘,‘heats‘,‘recommends‘))? $parameter[‘orderby‘]:‘lastpost‘):‘‘;$order_string =($orderby ==‘‘)?"ORDER BY find_in_set(t.tid,‘{$parameter[‘tids‘]}‘)":"ORDER BY t.$orderby DESC"; $query = DB::query("SELECT DISTINCT t.*$sqlfield FROM `".DB::table(‘forum_thread‘)."` t $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ $sql AND t.displayorder>=‘0‘ ORDER BY t.$orderby DESC LIMIT $startrow,$items;");|
1
2
3
4
5
6
7
8
|
$query = DB::query("SELECT DISTINCT t.*$sqlfield FROM `".DB::table(‘forum_thread‘)."` t $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ $sql AND t.displayorder>=‘0‘ ORDER BY t.$orderby DESC LIMIT $startrow,$items;" ); |
$query = DB::query("SELECT DISTINCT t.*$sqlfield FROM `".DB::table(‘forum_thread‘)."` t $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ $sql AND t.displayorder>=‘0‘ ".$order_string." LIMIT $startrow,$items;");|
1
2
3
4
5
6
7
8
|
$query = DB::query("SELECT DISTINCT t.*$sqlfield FROM `".DB::table(‘forum_thread‘)."` t $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ $sql AND t.displayorder>=‘0‘ ".$order_string." LIMIT $startrow,$items;" ); |
$query = DB::query("SELECT DISTINCT t.*$sqlfield FROM `".DB::table(‘forum_thread‘)."` t $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ $sql AND t.displayorder>=‘0‘ ".$order_string." LIMIT $startrow,$items;");|
1
2
3
4
5
6
7
8
|
$query = DB::query("SELECT DISTINCT t.*$sqlfield FROM `".DB::table(‘forum_thread‘)."` t $sqlfrom WHERE {$maxwhere}t.readperm=‘0‘ $sql AND t.displayorder>=‘0‘ ORDER BY t.$orderby DESC LIMIT $startrow,$items;" ); |
标签:
原文地址:http://www.cnblogs.com/hjqjk/p/4812639.html