AvocadoAmber/AvocadoEdition_Light/lib/connect.lib.php

24 lines
608 B
PHP
Raw Normal View History

2022-09-17 20:50:50 +09:00
<?php
2024-09-19 20:57:39 +09:00
if (!defined('_GNUBOARD_'))
exit;
2022-09-17 20:50:50 +09:00
// 현재 접속자수 출력
2024-09-19 20:57:39 +09:00
function connect($skin_dir = 'basic')
2022-09-17 20:50:50 +09:00
{
2024-09-19 20:57:39 +09:00
global $config, $g5;
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
// 회원, 방문객 카운트
2024-09-30 01:58:32 +09:00
$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']}' ";
2024-09-19 20:57:39 +09:00
$row = sql_fetch($sql);
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
$connect_skin_path = G5_SKIN_PATH . '/connect/' . $skin_dir;
$connect_skin_url = G5_SKIN_URL . '/connect/' . $skin_dir;
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
ob_start();
include_once($connect_skin_path . '/connect.skin.php');
$content = ob_get_contents();
ob_end_clean();
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
return $content;
2022-09-17 20:50:50 +09:00
}