<?php
include("../includes/db.inc.php");
include("../includes/config.php");
$msql=new SHARP_SQL;
$fsql=new SHARP_SQL;
if(!isset($ADMINSTAR)){
sendback('對不起，您尚未登錄');
}else{

}
///////////////內容圖片
$comimg=0;
$msql->query("select id from auto_con where userid='$userid'");
while($msql->next_record()){
$id=$msql->f('id');
$comimgf="../comimg/$id.jpg";
if(file_exists($comimgf)){
$comimg1=filesize($comimgf);
$comimg=$comimg+$comimg1;
}
}
//////////////其他圖片
$bannerf="../banner/$userid.jpg";
if(file_exists($bannerf)){
$banner=filesize($bannerf);

}
$webf="../webimg/$userid.jpg";
if(file_exists($webf)){
$web=filesize($webf);

}
$other=$banner+$web+10000;
$size=$fnums*10000+5240;
$all=$size+$other+$comimg;
?>
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=big5" http-equiv=Content-Type>
<STYLE>HTML {
	TEXT-DECORATION: none
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	COLOR: rgb(0,147,43); TEXT-DECORATION: underline
}
EM {
	FONT-FAMILY: CourierNew; FONT-SIZE: 16pt; FONT-STYLE: normal
}
A {
	FONT-SIZE: 9pt
}
TD {
	FONT-SIZE: 9pt
}
P {
	FONT-SIZE: 9pt
}
</STYLE>

<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY aLink=#000000 bgColor=#FFFFFF leftMargin=0 link=#000000 topMargin=0 
vLink=#000000 marginwidth="0" marginheight="0">
<table width="150" border="0" cellspacing="1" cellpadding="1" height="150">
  <tr bgcolor="#EEEEEE"> 
    <td height="25">網站文件：<?php  echo "$size"; ?> BYTE</td>
  </tr>
  <tr bgcolor="#EEEEEE"> 
    <td height="25">內容圖片： <?php echo "$comimg"; ?> BYTE</td>
  </tr>
  <tr bgcolor="#EEEEEE"> 
    <td height="25">其他文件： <?php echo "$other"; ?> BYTE</td>
  </tr>
  <tr bgcolor="#EEEEEE"> 
    <td>合計：<?php echo "$all"; ?> BYTE</td>
  </tr>
</table>
<p>&nbsp; </p>
<p align="center">&nbsp;</p>
</BODY></HTML>
