環境: redhat linux 9.0 /phpbb 2.0.5
我己安裝了attach mod
若我想在下載的頁面去改成,若是以"瀏覽器"去開啟檔案的話\r
會導向用另一個"沒有工具列"的新視窗去開啟那個檔案(只要可以用的出來,不是用java也請指教)
請問要怎麼作啊? 弄很久弄不出來 =.= ,而且為什麼我加的鎖右鍵語法沒有作用?
(真的是因特殊原因要這個功能,不要再罵我鎖那個東西沒有用,防君子不防小人用的,謝謝)
檔案如下,是不是我那裡搞錯? 請指教,謝謝 ^^
ps. 己看download.php 看到頭昏昏的了,不太了解它用ie作開檔案的流程
是否和下面這段有關? 謝謝
代碼: 選擇全部
// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $redirect_path);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $redirect_path . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $redirect_path . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $redirect_path);
exit;
代碼: 選擇全部
<?php
?>
<html>
<head>
<script language="JavaScript">
<!--
splashWin = window.open("",'x','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=1');
function right(e) {
if (navigator.appName =='Netscape'&&
(e.which ==3|| e.which ==2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2|| event.button ==3)) {
alert("nothing");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
-->
</script>
</head>
<body>
</body>
</html>