亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? browser.jsp

?? jsp File Browser version 1.1a
?? JSP
?? 第 1 頁 / 共 5 頁
字號:
				}
				try {
					Thread.sleep(50);
				}
				catch (InterruptedException ie) {}
			}
		}
		catch (IOException e) {
			ret.append("Error: " + e);
		}
		return ret.toString();
	}

	/**
	 * Converts a dir string to a linked dir string
	 * 	@param dir the directory string (e.g. /usr/local/httpd)
	 *	@param browserLink web-path to Browser.jsp
	 */
	static String dir2linkdir(String dir, String browserLink, int sortMode) {
		File f = new File(dir);
		StringBuffer buf = new StringBuffer();
		while (f.getParentFile() != null) {
			if (f.canRead()) {
				String encPath = URLEncoder.encode(f.getAbsolutePath());
				buf.insert(0, "<a href=\"" + browserLink + "?sort=" + sortMode + "&amp;dir="
						+ encPath + "\">" + conv2Html(f.getName()) + File.separator + "</a>");
			}
			else buf.insert(0, conv2Html(f.getName()) + File.separator);
			f = f.getParentFile();
		}
		if (f.canRead()) {
			String encPath = URLEncoder.encode(f.getAbsolutePath());
			buf.insert(0, "<a href=\"" + browserLink + "?sort=" + sortMode + "&amp;dir=" + encPath
					+ "\">" + conv2Html(f.getAbsolutePath()) + "</a>");
		}
		else buf.insert(0, f.getAbsolutePath());
		return buf.toString();
	}

	/**
	 *	Returns true if the given filename tends towards a packed file
	 */
	static boolean isPacked(String name, boolean gz) {
		return (name.toLowerCase().endsWith(".zip") || name.toLowerCase().endsWith(".jar")
				|| (gz && name.toLowerCase().endsWith(".gz")) || name.toLowerCase()
				.endsWith(".war"));
	}

	/**
	 *	If RESTRICT_BROWSING = true this method checks, whether the path is allowed or not
	 */
	static boolean isAllowed(File path) throws IOException{
		if (RESTRICT_BROWSING) {
            StringTokenizer stk = new StringTokenizer(RESTRICT_PATH, ";");
            while (stk.hasMoreTokens()){
			    if (path!=null && path.getCanonicalPath().startsWith(stk.nextToken()))
                    return RESTRICT_WHITELIST;
            }
            return !RESTRICT_WHITELIST;
		}
		else return true;
	}

	//---------------------------------------------------------------------------------------------------------------

	%>
<%
		//Get the current browsing directory
		request.setAttribute("dir", request.getParameter("dir"));
		// The browser_name variable is used to keep track of the URI
		// of the jsp file itself.  It is used in all link-backs.
		final String browser_name = request.getRequestURI();
		final String FOL_IMG = "";
		boolean nohtml = false;
		boolean dir_view = true;
		// View file
		if (request.getParameter("file") != null) {
            File f = new File(request.getParameter("file"));
            if (!isAllowed(f)) {
                request.setAttribute("dir", f.getParent());
                request.setAttribute("error", "You are not allowed to access "+f.getAbsolutePath());
            }
            else if (f.exists() && f.canRead()) {
                if (isPacked(f.getName(), false)) {
                    //If zipFile, do nothing here
                }
                else{
                    String mimeType = getMimeType(f.getName());
                    response.setContentType(mimeType);
                    if (mimeType.equals("text/plain")) response.setHeader(
                            "Content-Disposition", "inline;filename=\"temp.txt\"");
                    else response.setHeader("Content-Disposition", "inline;filename=\""
                            + f.getName() + "\"");
                    BufferedInputStream fileInput = new BufferedInputStream(new FileInputStream(f));
                    byte buffer[] = new byte[8 * 1024];
                    out.clearBuffer();
                    OutputStream out_s = new Writer2Stream(out);
                    copyStreamsWithoutClose(fileInput, out_s, buffer);
                    fileInput.close();
                    out_s.flush();
                    nohtml = true;
                    dir_view = false;
                }
            }
            else {
                request.setAttribute("dir", f.getParent());
                request.setAttribute("error", "File " + f.getAbsolutePath()
                        + " does not exist or is not readable on the server");
            }
		}
		// Download selected files as zip file
		else if ((request.getParameter("Submit") != null)
				&& (request.getParameter("Submit").equals(SAVE_AS_ZIP))) {
			Vector v = expandFileList(request.getParameterValues("selfile"), false);
			//Check if all files in vector are allowed
			String notAllowedFile = null;
			for (int i = 0;i < v.size(); i++){
				File f = (File) v.get(i);
				if (!isAllowed(f)){
					notAllowedFile = f.getAbsolutePath();
					break;
				}
			}
			if (notAllowedFile != null){
				request.setAttribute("error", "You are not allowed to access " + notAllowedFile);
			}
			else if (v.size() == 0) {
				request.setAttribute("error", "No files selected");
			}
			else {
				File dir_file = new File("" + request.getAttribute("dir"));
				int dir_l = dir_file.getAbsolutePath().length();
				response.setContentType("application/zip");
				response.setHeader("Content-Disposition", "attachment;filename=\"rename_me.zip\"");
				out.clearBuffer();
				ZipOutputStream zipout = new ZipOutputStream(new Writer2Stream(out));
				zipout.setComment("Created by jsp File Browser v. " + VERSION_NR);
				zipout.setLevel(COMPRESSION_LEVEL);
				for (int i = 0; i < v.size(); i++) {
					File f = (File) v.get(i);
					if (f.canRead()) {
						zipout.putNextEntry(new ZipEntry(f.getAbsolutePath().substring(dir_l + 1)));
						BufferedInputStream fr = new BufferedInputStream(new FileInputStream(f));
						byte buffer[] = new byte[0xffff];
						copyStreamsWithoutClose(fr, zipout, buffer);
						/*					int b;
						 while ((b=fr.read())!=-1) zipout.write(b);*/
						fr.close();
						zipout.closeEntry();
					}
				}
				zipout.finish();
				out.flush();
				nohtml = true;
				dir_view = false;
			}
		}
		// Download file
		else if (request.getParameter("downfile") != null) {
			String filePath = request.getParameter("downfile");
			File f = new File(filePath);
			if (!isAllowed(f)){
				request.setAttribute("dir", f.getParent());
				request.setAttribute("error", "You are not allowed to access " + f.getAbsoluteFile());
			}
			else if (f.exists() && f.canRead()) {
				response.setContentType("application/octet-stream");
				response.setHeader("Content-Disposition", "attachment;filename=\"" + f.getName()
						+ "\"");
				response.setContentLength((int) f.length());
				BufferedInputStream fileInput = new BufferedInputStream(new FileInputStream(f));
				byte buffer[] = new byte[8 * 1024];
				out.clearBuffer();
				OutputStream out_s = new Writer2Stream(out);
				copyStreamsWithoutClose(fileInput, out_s, buffer);
				fileInput.close();
				out_s.flush();
				nohtml = true;
				dir_view = false;
			}
			else {
				request.setAttribute("dir", f.getParent());
				request.setAttribute("error", "File " + f.getAbsolutePath()
						+ " does not exist or is not readable on the server");
			}
		}
		if (nohtml) return;
		//else
			// If no parameter is submitted, it will take the path from jsp file browser
			if (request.getAttribute("dir") == null) {
				String path = null;
				if (application.getRealPath(request.getRequestURI()) != null) path = new File(
						application.getRealPath(request.getRequestURI())).getParent();

				if (path == null) { // handle the case where we are not in a directory (ex: war file)
					path = new File(".").getAbsolutePath();
				}
				//Check path
                if (!isAllowed(new File(path))){
                    if (RESTRICT_PATH.indexOf(";")<0) path = RESTRICT_PATH;
                    else path = RESTRICT_PATH.substring(0, RESTRICT_PATH.indexOf(";"));
                }
				request.setAttribute("dir", path);
			}%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="robots" content="noindex">
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
<%
			//If a cssfile exists, it will take it
			String cssPath = null;
			if (application.getRealPath(request.getRequestURI()) != null) cssPath = new File(
					application.getRealPath(request.getRequestURI())).getParent()
					+ File.separator + CSS_NAME;
			if (cssPath == null) cssPath = application.getResource(CSS_NAME).toString();
			if (new File(cssPath).exists()) {
%>
<link rel="stylesheet" type="text/css" href="<%=CSS_NAME%>">
      <%}
			else if (request.getParameter("uplMonitor") == null) {%>
	<style type="text/css">
		.button {background-color: #c0c0c0; color: #666666;
		border: 1px solid #999999; }
		.button:Hover { color: #444444 }
		table.filelist {background-color:#666666; width:100%; border:0px none #ffffff}
		th { background-color:#c0c0c0 }
		tr.mouseout { background-color:#ffffff; }
		tr.mousein  { background-color:#eeeeee; }
		tr.checked  { background-color:#cccccc }
		tr.mousechecked { background-color:#c0c0c0 }
		td { font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #666666;}
		td.message { background-color: #FFFF00; color: #000000; text-align:center; font-weight:bold}
		td.error { background-color: #FF0000; color: #000000; text-align:center; font-weight:bold}
		A { text-decoration: none; }
		A:Hover { color : Red; text-decoration : underline; }
		BODY { font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #666666;}
	</style>
	<%}
		
        //Check path
        if (!isAllowed(new File((String)request.getAttribute("dir")))){
            request.setAttribute("error", "You are not allowed to access " + request.getAttribute("dir"));
        }
		//Upload monitor
		else if (request.getParameter("uplMonitor") != null) {%>
	<style type="text/css">
		BODY { font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #666666;}
	</style><%
			String fname = request.getParameter("uplMonitor");
			//First opening
			boolean first = false;
			if (request.getParameter("first") != null) first = true;
			UplInfo info = new UplInfo();
			if (!first) {
				info = UploadMonitor.getInfo(fname);
				if (info == null) {
					//Windows
					int posi = fname.lastIndexOf("\\");
					if (posi != -1) info = UploadMonitor.getInfo(fname.substring(posi + 1));
				}
				if (info == null) {
					//Unix
					int posi = fname.lastIndexOf("/");
					if (posi != -1) info = UploadMonitor.getInfo(fname.substring(posi + 1));
				}
			}
			dir_view = false;
			request.setAttribute("dir", null);
			if (info.aborted) {
				UploadMonitor.remove(fname);
				%>
</head>
<body>
<b>Upload of <%=fname%></b><br><br>
Upload aborted.</body>
</html><%
			}
			else if (info.totalSize != info.currSize || info.currSize == 0) {
				%>
<META HTTP-EQUIV="Refresh" CONTENT="<%=UPLOAD_MONITOR_REFRESH%>;URL=<%=browser_name %>?uplMonitor=<%=URLEncoder.encode(fname)%>">
</head>
<body>
<b>Upload of <%=fname%></b><br><br>
<center>
<table height="20px" width="90%" bgcolor="#eeeeee" style="border:1px solid #cccccc"><tr>
<td bgcolor="blue" width="<%=info.getPercent()%>%"></td><td width="<%=100-info.getPercent()%>%"></td>
</tr></table></center>
<%=convertFileSize(info.currSize)%> from <%=convertFileSize(info.totalSize)%>
(<%=info.getPercent()%> %) uploaded (Speed: <%=info.getUprate()%>).<br>
Time: <%=info.getTimeElapsed()%> from <%=info.getTimeEstimated()%>
</body>
</html><%
			}
			else {
				UploadMonitor.remove(fname);
				%>
</head>
<body onload="javascript:window.close()">
<b>Upload of <%=fname%></b><br><br>
Upload finished.
</body>
</html><%
			}
		}
		//Comandwindow
		else if (request.getParameter("command") != null) {
            if (!NATIVE_COMMANDS){
                request.setAttribute("error", "Execution of native commands is not allowed!");
            }
			else if (!"Cancel".equalsIgnoreCase(request.getParameter("Submit"))) {
%>
<title>Launch commands in <%=request.getAttribute("dir")%></title>
</head>
<body>
<%
				out.println("<form action=\"" + browser_name + "\" method=\"Post\">\n"
						+ "<textarea name=\"text\" wrap=\"off\" cols=\"" + EDITFIELD_COLS
						+ "\" rows=\"" + EDITFIELD_ROWS + "\" readonly>");
				String ret = "";
				if (!request.getParameter("command").equalsIgnoreCase(""))
                    ret = startProcess(
						request.getParameter("command"), (String) request.getAttribute("dir"));
				out.println(ret);
%></textarea>
	<input type="hidden" name="dir" value="<%= request.getAttribute("dir")%>">
	<br>
	<table>
	<tr><td title="Enter your command">
	<input size="<%=EDITFIELD_COLS%>" type="text" name="command" value="">
	</td></tr>
	<tr><td><input type="Submit" name="Submit" value="Launch">
	<input type="hidden" name="sort" value="<%=request.getParameter("sort")%>">
	<input type="Submit" name="Submit" value="Cancel"></td></tr>
	</table>
	</form>
</body>
</html>
<%
				dir_view = false;
				request.setAttribute("dir", null);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级中文字幕| 亚洲视频在线一区二区| 中文字幕在线不卡| 日韩国产高清在线| 色综合天天综合给合国产| 日韩一区二区视频| 亚洲国产精品视频| 白白色 亚洲乱淫| 久久综合九色综合97婷婷女人| 亚洲午夜精品网| jlzzjlzz欧美大全| 国产亚洲一二三区| 国产最新精品免费| 欧美一级淫片007| 亚洲国产欧美在线| 99精品视频一区| 国产午夜亚洲精品理论片色戒| 午夜激情综合网| 欧美日韩一区二区三区视频| 国产精品白丝在线| 成人一区二区三区中文字幕| 精品日韩在线一区| 免费在线一区观看| 欧美高清精品3d| 亚洲成人av福利| 欧美日韩精品高清| 午夜久久电影网| 欧美三级欧美一级| 亚洲国产sm捆绑调教视频 | 国产精品久久久久毛片软件| 麻豆精品视频在线观看视频| 69堂亚洲精品首页| 日本欧美加勒比视频| 欧美精品第1页| 香蕉久久夜色精品国产使用方法| 色综合久久中文综合久久牛| 亚洲女同一区二区| 欧美性猛片aaaaaaa做受| 一区二区三区中文字幕电影| 亚洲成av人影院| 欧美一级免费观看| 久久久不卡影院| 国产成人一区在线| 日本一区二区三区在线不卡| 成人黄色电影在线| 亚洲视频在线一区观看| 91激情在线视频| 亚洲高清免费视频| 日韩欧美国产一区在线观看| 久久国产精品99久久久久久老狼| 精品国产乱码久久久久久1区2区| 国产酒店精品激情| 亚洲欧美日韩国产一区二区三区| 色哟哟一区二区三区| 视频一区欧美日韩| 久久久久久麻豆| 91豆麻精品91久久久久久| 婷婷国产v国产偷v亚洲高清| 欧美www视频| 成人毛片视频在线观看| 亚洲精品免费电影| 欧美一级精品在线| 成人av电影在线网| 五月天久久比比资源色| 亚洲精品在线一区二区| 色综合久久88色综合天天| 免费观看在线综合| ●精品国产综合乱码久久久久| 色琪琪一区二区三区亚洲区| 麻豆精品视频在线观看视频| 国产精品国产三级国产| 在线成人高清不卡| www.欧美亚洲| 久久精品国产久精国产爱| 国产精品久久久久永久免费观看| 在线91免费看| eeuss影院一区二区三区| 日韩成人精品在线| 亚洲天堂网中文字| 日韩亚洲欧美中文三级| 97久久久精品综合88久久| 美国av一区二区| 一区二区三区中文字幕精品精品 | 欧洲一区二区三区免费视频| 美洲天堂一区二卡三卡四卡视频| 亚洲图片你懂的| 国产丝袜欧美中文另类| 欧美伦理视频网站| 91伊人久久大香线蕉| 国产一区二区三区黄视频| 亚洲国产一区在线观看| **网站欧美大片在线观看| 久久人人超碰精品| 日韩三级在线免费观看| 欧美老人xxxx18| 色激情天天射综合网| 成人黄色国产精品网站大全在线免费观看| 奇米一区二区三区| 亚洲与欧洲av电影| 亚洲色欲色欲www| 国产精品无遮挡| 国产三级精品在线| 国产网站一区二区| 久久久久久久电影| 久久久久国色av免费看影院| 欧美mv日韩mv亚洲| 欧美一区二区三区在| 欧美日韩日日夜夜| 欧美日本在线视频| 欧美日韩亚洲国产综合| 精品视频999| 欧美亚洲国产bt| 在线观看av不卡| 欧美午夜影院一区| 在线视频一区二区三| 在线观看一区二区视频| 欧美艳星brazzers| 欧洲生活片亚洲生活在线观看| 91在线高清观看| 色婷婷综合久久久中文一区二区| 色婷婷精品大在线视频| 欧美性一区二区| 欧美日韩精品欧美日韩精品一 | 91麻豆精品91久久久久久清纯| 欧美视频精品在线观看| 欧美喷水一区二区| 日韩精品一区二区三区swag| 日韩精品一区在线观看| 国产日韩欧美综合在线| 亚洲欧美日韩一区二区| 亚洲国产精品麻豆| 蜜臀a∨国产成人精品| 韩国欧美国产1区| 99久久婷婷国产综合精品电影 | 久久久一区二区三区捆绑**| 中文字幕第一区第二区| 亚洲精品一二三区| 日韩av电影免费观看高清完整版在线观看 | 国产精品美女久久久久久久久| 国产精品婷婷午夜在线观看| 亚洲精品国久久99热| 五月天激情小说综合| 久草中文综合在线| 91蜜桃免费观看视频| 欧美久久久久中文字幕| 欧美精品一区二区三区四区| 亚洲色欲色欲www| 美日韩一区二区| 99精品久久免费看蜜臀剧情介绍| 欧美伊人久久大香线蕉综合69| 日韩欧美的一区| 亚洲人123区| 久久精品国产在热久久| 91在线视频官网| 日韩欧美综合在线| 亚洲人成精品久久久久久| 久久66热偷产精品| 91官网在线观看| 国产日韩精品一区二区三区在线| 亚洲综合成人在线视频| 国内精品国产成人国产三级粉色| 色综合天天在线| 亚洲精品一区二区三区99| 亚洲一区二区av在线| 成人av免费在线观看| 日韩精品影音先锋| 亚洲第一福利视频在线| 成人爱爱电影网址| 2023国产精华国产精品| 亚洲成人免费视| 91日韩一区二区三区| 国产人成一区二区三区影院| 日韩精品电影在线| 色综合久久天天综合网| 欧美激情综合网| 久久se精品一区精品二区| 欧美日韩dvd在线观看| 亚洲欧美一区二区三区久本道91| 激情文学综合丁香| 日韩丝袜美女视频| 亚洲图片一区二区| 91免费看片在线观看| 欧美激情一区二区三区四区| 久久99久久久欧美国产| 欧美唯美清纯偷拍| 亚洲专区一二三| 色综合夜色一区| 亚洲日本在线a| 成人av电影在线| 欧美高清在线精品一区| 国产精品一级二级三级| 久久久久久久久岛国免费| 国产一区二区精品在线观看| 日韩欧美视频在线| 美女在线视频一区| 日韩欧美中文字幕一区| 日本成人中文字幕| 欧美精品 日韩| 琪琪一区二区三区| 欧美一级一区二区|