|
|
|
Upload speed will vary depending on your Internet connection speed and the size of the picture you are uploading. Generally, a picture between 25 to 50 Kb in size renders nicely on the browser page. Keep in mind that when our friends download the picture using a web page, the bigger the picture, the longer the download delay. Be nice to those who use dial-up to connect to the Internet and use the recommended picture size.
|
|
Pic of the Day
<%
// Determine if slideShow parameter is sent, and if so, include script for the slideshow, otherwise, include the pic_of_the_day
try {
if (doSlideShow.equals("1")) {
%>
<%@ include file="images/iibatch72/incoming/slide_show.part1" %>
<%@ include file="images/iibatch72/incoming/slide_show.part2" %>
<%@ include file="images/iibatch72/incoming/slide_show.part3" %>
<%
}
}
catch (Exception ex) {
%>
<%@ include file="images/iibatch72/incoming/pic_of_the_day.html" %>
View Slide Show
<%
}
%>
|
<%
// Now, if the session variable is set, show the upload form, else, show the logon button along with "It appears that you have not logged on prior to getting here. ..."
// First, establish the ID to be used
try {mbr_id = request.getParameter("id");} catch (Exception eid) {}
if (mbr_id == null) {
if ((session.getAttribute("iibatch72_id") != null) || (session.getAttribute("iibatch72_id") != "invalid")) {
mbr_id = (String)session.getAttribute("iibatch72_id");
}
}
// Then check the database for this ID
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/uspare2_mango", "uspare2_jspuser", "iimanok");
Statement stmt = con.createStatement();
if (mbr_id != null) {
sql = "select * from grads where id = " + mbr_id;
rs = stmt.executeQuery(sql);
if (rs.next()) {
// If the two fields for logon are set and logon is < 1Hour old and this browser ip = ip in database
// then, the user must be an authorized user; but, if the confstatus is 0, do not allow an upload
if ((rs.getString("time_on") != String.valueOf(0)) &&
(rs.getString("ip") != null) &&
(rs.getString("ip").equals(ip)) &&
((Long.parseLong(currTimeStamp) - Long.parseLong(rs.getString("time_on"))) < 10000)
) {
msg1 = msg1 + " Hello " + rs.getString("alias") + "! (We cannot wait to see the picture you will upload ...)
";
session.setAttribute("iibatch72_id", mbr_id);
} else {
session.setAttribute("iibatch72_id", "invalid");
}
// If the confstatus field is 0, tell the user to conclude by checking the email
confstatus = rs.getString("confstatus");
try {
if (confstatus.equals("0")) {
msg1 = msg1 + "It appears that you have not concluded your activation, please check your email for instruction.
";
session.setAttribute("iibatch72_id", "invalid");
}
} catch (Exception ecs) {}
}
rs.close();
}
%>
|
II Batch 72
|
|
Picture Of The Day Upload
|
|
<%=msg1%>
|
<%
if (confstatus.equals("1")) {
%>
<%
} else {
%>
|
|
Only members are authorized to upload to this website. Please logon if you are a member. You need to activate your account if you are a member and have not yet done so.
Visitors are welcome to view the slide show (click on the link below the picture on the left).
|
<%
}
%>
|
Reminder: If you want to see more pictures, go to our collaboration website, friends72 at Yahoo!.
|
|
|
|
Page Hit Counter
|
|
<%-- End of try to check if this is a submit operation with result:
-- java.io.IOException: Posted content type isn't multipart/form-data
--%>
<%
}
%>
|