| |
|
| |
 |
|
$_zb_url ="http://www.medceptech.x-y.net/zeroboard/";
$_zb_path = "/home/01/medceptech41/www/zeroboard/";
include $_zb_path."outlogin.php";
function list_new($zb_id) {
global $connect, $t_board, $t_comment;
$recent_time = 60*60*24; //24½Ã°£ À̳»
$data=mysql_fetch_array(mysql_query("select reg_date from $t_board"."_".$zb_id." order by reg_date desc limit 1", $connect));
$reg_time = $data[reg_date];
$com_data=mysql_fetch_array(mysql_query("select reg_date from $t_comment"."_".$zb_id." order by reg_date desc limit 1", $connect));
$com_reg_time = $com_data[reg_date];
if(time() - $reg_time < $recent_time) { $new_icon = "new"; }
else { $new_icon = ""; }
if(time() - $com_reg_time < $recent_time) { $comment_new = "*"; }
else { $comment_new = ""; }
echo "$new_icon$comment_new";
}
?>
|
|
| |
|
|
|
|
|
|
|