diff --git a/adm/admin.tail.php b/adm/admin.tail.php index e30b0949f..cf8887a65 100644 --- a/adm/admin.tail.php +++ b/adm/admin.tail.php @@ -17,7 +17,6 @@ if (!defined("_GNUBOARD_")) exit; - include_once($g4['path'].'/tail.sub.php'); diff --git a/adm/popular_rank.php b/adm/popular_rank.php index 848c9417b..6313666d2 100644 --- a/adm/popular_rank.php +++ b/adm/popular_rank.php @@ -14,10 +14,7 @@ $sql_search = " where trim(pp_word) <> '' and pp_date between '{$fr_date}' and ' $sql_group = " group by pp_word "; $sql_order = " order by cnt desc "; -$sql = " select pp_word - {$sql_common} - {$sql_search} - {$sql_group} "; +$sql = " select pp_word {$sql_common} {$sql_search} {$sql_group} "; $result = sql_query($sql); $total_count = mysql_num_rows($result); @@ -26,12 +23,7 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산 if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 -$sql = " select pp_word, count(*) as cnt - {$sql_common} - {$sql_search} - {$sql_group} - {$sql_order} - limit {$from_record}, {$rows} "; +$sql = " select pp_word, count(*) as cnt {$sql_common} {$sql_search} {$sql_group} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); $listall = ''; @@ -97,15 +89,7 @@ if ($i == 0) -$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); -?> -