g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -7,12 +7,12 @@ if (!defined('_GNUBOARD_')) exit;
// $date_cnt : 몇일 동안
function popular($skin_dir='basic', $pop_cnt=7, $date_cnt=3)
{
global $config, $g4;
global $config, $g5;
if (!$skin_dir) $skin_dir = 'basic';
$date_gap = date("Y-m-d", G4_SERVER_TIME - ($date_cnt * 86400));
$sql = " select pp_word, count(*) as cnt from {$g4['popular_table']} where pp_date between '$date_gap' and '".G4_TIME_YMD."' group by pp_word order by cnt desc, pp_word limit 0, $pop_cnt ";
$date_gap = date("Y-m-d", G5_SERVER_TIME - ($date_cnt * 86400));
$sql = " select pp_word, count(*) as cnt from {$g5['popular_table']} where pp_date between '$date_gap' and '".G5_TIME_YMD."' group by pp_word order by cnt desc, pp_word limit 0, $pop_cnt ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$list[$i] = $row;
@ -21,12 +21,12 @@ function popular($skin_dir='basic', $pop_cnt=7, $date_cnt=3)
}
ob_start();
if(G4_IS_MOBILE) {
$popular_skin_path = G4_MOBILE_PATH.'/'.G4_SKIN_DIR.'/popular/'.$skin_dir;
$popular_skin_url = G4_MOBILE_URL.'/'.G4_SKIN_DIR.'/popular/'.$skin_dir;
if(G5_IS_MOBILE) {
$popular_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/popular/'.$skin_dir;
$popular_skin_url = G5_MOBILE_URL.'/'.G5_SKIN_DIR.'/popular/'.$skin_dir;
} else {
$popular_skin_path = G4_SKIN_PATH.'/popular/'.$skin_dir;
$popular_skin_url = G4_SKIN_URL.'/popular/'.$skin_dir;
$popular_skin_path = G5_SKIN_PATH.'/popular/'.$skin_dir;
$popular_skin_url = G5_SKIN_URL.'/popular/'.$skin_dir;
}
include_once ($popular_skin_path.'/popular.skin.php');
$content = ob_get_contents();