本會會員或志工於完成註冊後,請務必寫訊息給我(按這裡),並註明您的真實姓名,以便開放會員權限給您,謝謝欲前往舊討論區請按此
因為不明原因討論區又掛了整整一天幸好這次有充份的準備及時救回但可能少了幾篇文章敬請見諒另外發現如果上傳以中文為檔名的照片可能會無法正常顯示努力中......
header('Content-Disposition: attachment; filename="' . $real_filename . '"');header('Content-Type: application/octet-stream');
if(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') || strstr($_SERVER['HTTP_USER_AGENT'], 'Internet Explorer'))$real_filename = urlencode($real_filename);header('Content-Disposition: attachment; filename="' . $real_filename . '"');header('Content-Type: application/octet-stream');
db_query(" INSERT INTO {$db_prefix}attachments (ID_MSG, filename, size, width, height) VALUES (" . (int) $attachmentOptions['post'] . ", SUBSTRING('" . $attachmentOptions['name'] . "', 1, 255), " . (int) $attachmentOptions['size'] . ', ' . (empty($attachmentOptions['width']) ? '0' : (int) $attachmentOptions['width']) . ', ' . (empty($attachmentOptions['height']) ? '0' : (int) $attachmentOptions['height']) . ')', __FILE__, __LINE__);$attachmentOptions['id'] = db_insert_id();
$a="\\"; $attachmentOptions['name']=$a.$attachmentOptions['name'];db_query(" INSERT INTO {$db_prefix}attachments (ID_MSG, filename, size, width, height) VALUES (" . (int) $attachmentOptions['post'] . ", SUBSTRING('" . $attachmentOptions['name'] . "', 1, 255), " . (int) $attachmentOptions['size'] . ', ' . (empty($attachmentOptions['width']) ? '0' : (int) $attachmentOptions['width']) . ', ' . (empty($attachmentOptions['height']) ? '0' : (int) $attachmentOptions['height']) . ')', __FILE__, __LINE__);$attachmentOptions['id'] = db_insert_id();