<?
//-- 관리자 메인 페이지 좌측
?>
<style type="text/css">
.today		{ margin:2px; padding:10px 0 10px 10px; color:#9A9AA2; }
.dbbackupdate { margin:2px; padding:10px 0 10px 10px; text-align:center; }
.dbbackupdate a	{ color:#9A9AA2; }
.dbbackupdate:hover	{ cursor:pointer; background:#79A4CF; }
.overday1	{ font-weight:bold; color:#FF8000; font-size:13px; }
.overday0	{ font-weight:normal; color:#22A1D3; }
.ip			{ color:#9A9AA2; padding:10px 0 10px 10px; }
</style>
<?
$today		= date("Y-m-d H:i", $g4[server_time]);
?>
<div class="line"></div>
<div class="today">
오늘 : <?=$today;?>
</div>
<div class="line"></div>
<div class="ip">
IP : <?=$_SERVER[REMOTE_ADDR]?>
</div>
<div class="line"></div>

<?
$nowdate	= date("Y-m-d H:i:s", $g4[server_time] - 86400);
if($nowdate > $zm_config[db_backupdate]) $overday	= true; else $overday = false;

if($overday)	$backupcss	= "overday1";			//-- 마지막으로 백업한지 하루가 지남
else			$backupcss	= "overday0";
?>
<div class="dbbackupdate" onclick="zm_gourl('./zm.mysql_backup.php');">
	<div>마지막으로 DB를 백업한 날짜</div>
	<div><span class="<?=$backupcss?>"><?=$zm_config[db_backupdate]?></span></div>
</div>
<div class="line"></div>