$du = exec("du -hs ../photo");
$arr = explode("\t","$du");
$du_result = $arr[0];
$dirhandle = opendir("../photo");
$i='0';
$j='0';
$k='0';
$total_num='0';
$total1_num='0';
$total2_num='0';
$hit_sum='0';
$hit_total_sum='0';
$year_2=date("Y"); //¿À´Ã³¯Â¥ (³âµµ)
$month_2=date("m"); //¿À´Ã³¯Â¥ (¿ù)
$day_2=date("d"); //¿À´Ã³¯Â¥ (ÀÏ)
$day_3=date("d")-1; //¾îÁ¦³¯Â¥ (ÀÏ)
if($day_3<10){
$day_3="0".$day_3;
}
while($dirname=readdir($dirhandle))
{
if( $dirname != "." && $dirname != ".." )
{
//echo"select count(*) from $dirname ";
$result=mysql_query("select count(*) from $dirname" ,$dbcon); //»çÁø ÃÑ °¹¼ö
$total=mysql_result($result,$i,0);
$total_num=$total+$total_num;
$result1=mysql_query("select count(*) from $dirname where year='$year_2' and month='$month_2' and day='$day_2'" ,$dbcon);
$total1=mysql_result($result1,$i,0);
$total1_num=$total1+$total1_num; //¿À´Ã ¾÷·Îµå °¹¼ö
$result2=mysql_query("select count(*) from $dirname where year='$year_2' and month='$month_2' and day='$day_3'" ,$dbcon);
$total2=mysql_result($result2,$i,0);
$total2_num=$total2+$total2_num; //¾îÁ¦ ¾÷·Îµå °¹¼ö
$result1_hit=mysql_query("select hit from $dirname" ,$dbcon);
$hit_total=mysql_num_rows($result1_hit);
/*for($j=0; $j<$hit_total; $j++){
$hit_num=mysql_result($result1_hit,$i,0);
$hit_sum=$hit_num+$hit_sum;
}
$hit_total_sum=$hit_total_sum+$hit_sum;*/
}
}
echo("
picdisk °ü¸®ÀÚ ÆäÀÌÁö ÀÔ´Ï´Ù. |
ÇöÀç »ç¿ëÁßÀÎ ¹öÀüÀº picdisk Ver 2.0 À̸ç, http://www.picdisk.com¿¡ °¡½Ã¸é ÃֽŹöÀüÀ¸·Î ´Ù¿î ¹ÞÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù. |
°ü¸®ÀÚ ÆäÀÌÁö¿¡¼´Â ¾Ù¹üÃß°¡, ¼öÁ¤, »èÁ¦, »ç¿ë¿ë·® È®ÀÎ, °ü¸®ÀÚ Á¤º¸º¯°æ µîÀ» ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. |
 |
|
¿À´Ã ¾÷·ÎµåµÈ »çÁø : |
$total1_num");echo("Àå |
|
¾îÁ¦ ¾÷·ÎµåµÈ »çÁø : |
$total2_num");echo("Àå |
|
ÇöÀç º¸°üÁßÀÎ »çÁø : |
ÃÑ $total_num");echo("Àå |
|
ÇöÀç ¾Ù¹ü »ç¿ë¿ë·® : |
$du_result");echo("B |
|
|
");
include "./copyright.html";
?>
|
|
|
|