$text[180]"; }else{ include ('function_upload.php'); } if ($_REQUEST[filedel] == 'filedel'){ $sql = "select * from file where people_id='$_SESSION[usid]' and file_id = '$_REQUEST[file_id]'"; $dbquery = mysql_db_query($dbname, $sql); $filedel = mysql_fetch_array($dbquery); $filesdel = "$destination_path/$filedel[file_path]"; if(file_exists("$filesdel")) unlink("$filesdel"); $filesdel = "$destination_path/resize_$filedel[file_path]"; if(file_exists("$filesdel")) unlink("$filesdel"); $filesdel = "$destination_path/display_$filedel[file_path]"; if(file_exists("$filesdel")) unlink("$filesdel"); $filesdel = "$destination_path/bigsize_$filedel[file_path]"; if(file_exists("$filesdel")) unlink("$filesdel"); $sql = "delete from file where people_id='$_SESSION[usid]' and file_id = '$_REQUEST[file_id]'"; $dbquery = mysql_db_query($dbname, $sql); //echo ''; } ?>
'.bytes2str($currentstroage).'
'; $sql = "select sum(file_size) as usestorage from file where people_id='$_SESSION[usid]'"; $dbquery = mysql_db_query($dbname, $sql); $min = mysql_fetch_array($dbquery); echo ''.$text[58].' '.bytes2str($min[usestorage]).''; ?>


'; $openlink ='Preview '; }else{ $thumb = " "; $openlink =" "; } if ($arr[file_detail] != null){ $file_detail = "
 $arr[file_detail]"; }else{ $file_detail = " "; } echo ''. ''. ''. ''. ''. ''. ''; } ?>
'.$thumb.'
 '.$arr[file_name].' '.$file_detail.'
 '.$arr[file_date].' Path : '.$destination_path.'/'.$arr[file_path].''; if ($arr[file_type] == 'jpg' || $arr[file_type] == 'gif' || $arr[file_type] == 'png'){ if ($_REQUEST[p] == 'photoalbum' || $_REQUEST[p] == 'newsblog'){ echo '
 ตั้งรูปนี้เป็นโลโก้ บทความ/อัลบั้มภาพ ตั้งเป็นรูปโลโก้ บทความ/อัลบั้มภาพ
'; $_SESSION[scid] = ''; }else if ($_REQUEST[p] == 'profiles'){ echo '
 ตั้งภาพนี้สำหรับดีสเพลของคุณ ตั้งเป็นรูปภาพแสดงผล (Display)'; $_SESSION[scid] = ''; }else if ($_SESSION[scid] != ''){ echo '
 ตั้งภาพนี้สำหรับชมรมของคุณ ตั้งเป็นรูปภาพชมรม'; }else{ } }else{ } echo '
 '.$arr[file_type].'
 '.bytes2str($arr[file_size]).'   
'. ' '.$openlink.' '; if ($_SESSION[people_level] >= 3 && ($arr[file_type] == 'jpg' || $arr[file_type] == 'gif')){ echo ' |  System Default Icon'; } echo '
'. ''. ''.$text[40].'