0) && ($admin_memb == false))){ login_mem_skin($tb['board_info'],$admin[memb],$msg['user_dn'],$level_arr[9],$u_level,$admin_memb_arr[0],$level_arr[15]); } // end auth $upoint = explode(':',$admin[point]); // Æ÷ÀÎÆ® Â÷°¨ if(($admin_memb <> 0) && ($upoint[3] > 0) && ($u_myid != $row[myid])) { $po_sql=sql_array(query("select total from ".$tb['point']." where u_id='".$u_myid."' order by id desc limit 1")); $po_d_chk = addrchk_n('po_d'); if(($po_sql[total] < $upoint[3]) && ($upoint[1]==1) && ($po_d_chk==false)) { $_msg_chk = $msg['po_mb_dn_n']; u_error(); } // Æ÷ÀÎÆ® ¸Þ½ÃÁö $log_msg = '['.$admin[boardtitle].'] '.$msg['po_dn_m']; $mtotal = $po_sql[total]-$upoint[3]; $po_dchk = addrchk('po_d'); if ($po_dchk==true) { // sortno ÃÖ¼Ò°ª ±¸Çϱâ $po_min=sql_array(query("select min(sortno) as mine from ".$tb['point']." where sortno > '0'")); $po_sort = $po_min[mine] ? $po_min[mine]-1 : '99999999'; query("insert into ".$tb['point']." values('','".$po_sort."','".$u_memb."','".$u_myid."','','".$upoint[3]."','".$log_msg."','".$mtotal."','".$dtime."')"); } } // end point } // end admin auth header("Cache-control: private"); header("Content-type: file/unknown"); header("Content-Disposition: attachment; filename=$filename"); header("Content-Length: $upm[2]"); header("Cache-Control: cache, must-revalidate"); header("Content-Description: PHP3 Generated Data"); header("Pragma: no-cache"); header("Expires: 0"); if(is_file($efile)) { $fp = fopen($efile, "rb"); while(!feof($fp)) { print(fread($fp,1024*100)); flush(); } fclose($fp); clearstatcache(); // ´Ù¿î¼ö ¿Ã¸² $hitchk = addrchk('d',$k); if ($hitchk==true) { query("update ".bbs_table($admin_idx)." set upfile='".$upfiles."' where ".$ss_idx); } } ?>