%@include file="constants.jsp"%> <%@include file="constants_plus.jsp"%>
<%
try{
if(user!=null && user[6]!=null && !user[6].equals(folder))
{
// copy all uploaded files from folder to user[6]
java.io.File old_f = new java.io.File(ROOT+folder);
java.io.File new_f = new java.io.File(ROOT+user[6]);
boolean renamed = false;
if(!new_f.exists())
{
if(new_f.mkdirs())
{
java.io.File o_f = new java.io.File(old_f,"index.html");
java.io.File n_f = new java.io.File(new_f,"index.html");
o_f.renameTo(n_f);
}
}
String[] old_list = old_f.list();
for(int i=0; old_list!=null && i <% for(int i=0; user!=null && i <% } */ String cur_state = (String)session.getAttribute(CURR_STATE); String cu = request.getParameter("cu"); if(cur_state==null && cu!=null) { cur_state="Session has been expired! If you are a member please login again and you will restore all uploaded images. If you are not a member -- your files are no longer available."; } if(cur_state!=null) { %>
<% session.removeAttribute(CURR_STATE); } String speed = request.getParameter(SPEED); if(speed==null) speed = (String)session.getAttribute(SPEED); else session.setAttribute(SPEED, speed); int i_speed = SPEED_ARR[0]; try{i_speed = speed==null?i_speed:Integer.parseInt(speed);}catch(NumberFormatException e){} String loop_count = request.getParameter(LOOP); if(loop_count==null) loop_count = (String)session.getAttribute(LOOP); else session.setAttribute(LOOP, speed); int i_loop_count = LOOP_ARR[0]; try{i_loop_count = loop_count==null?i_loop_count:Integer.parseInt(loop_count);}catch(NumberFormatException e){} String amms = request.getParameter("new_ammount"); int ln = amms==null?0:Integer.parseInt(amms); int count = -1; if(count==-1) { java.io.DataInputStream read= null; synchronized(this) { try { read = new java.io.DataInputStream(new java.io.FileInputStream(COUNTER)); count = read.readInt(); read.close(); }catch(Exception e) { count=-1; } } } String current_image = (String)session.getAttribute(CURRENT); if(current_image!=null) { if(img_arr == null) img_arr = new java.util.Vector(); img_arr.addElement(current_image); session.setAttribute(IMAGES, img_arr); session.removeAttribute(CURRENT); } sz = img_arr==null?0:img_arr.size(); java.util.Hashtable h = (java.util.Hashtable)session.getAttribute(RENAMED); %>
|