/home/mjc1/public_html/lib/connect.lib.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
if (!defined('_GNUBOARD_')) exit;

// 현재 접속자수 출력
function connect($skin_dir='basic')
{
    global 
$config$g5;

    
// 회원, 방문객 카운트
    
$sql " select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from {$g5['login_table']}  where mb_id <> '{$config['cf_admin']}' ";
    
$row sql_fetch($sql);

    if(
G5_IS_MOBILE) {
        
$connect_skin_path G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/connect/'.$skin_dir;
        
$connect_skin_url  G5_MOBILE_URL.'/'.G5_SKIN_DIR.'/connect/'.$skin_dir;
    } else {
        
$connect_skin_path G5_SKIN_PATH.'/connect/'.$skin_dir;
        
$connect_skin_url  G5_SKIN_URL.'/connect/'.$skin_dir;
    }

    
ob_start();
    include_once (
$connect_skin_path.'/connect.skin.php');
    
$content ob_get_contents();
    
ob_end_clean();

    return 
$content;
}
?>