<%@ page contentType="text/html; charset=UTF-8" errorPage="./errors/internal-error.jsp" import="java.net.*, si.noviforum.trident3.*, si.noviforum.trident3.jspbeans.UrlAdder" %><%-- $Id: addUrl.jsp,v 1.3 2001/07/12 06:59:16 gregab Exp $ URLAdder interface. $Author: gregab $ $Date: 2001/07/12 06:59:16 $ $Revision: 1.3 $ $State: Exp $ Based on addUrl.jsp by Primoz Hrvatin. Adjusted and tweaked by David Vevar. Further tweaked by Grega Bremec. --%><%@ include file="./include/InitJspService.jsp" %><%@ include file="./include/InitFrontendProperties.jsp" %><% urlAdder.init(si.noviforum.jsp2.JspService.getPropertiesRoot()); %><% String refToBaseDir = "."; String referer = request.getHeader("referer"); if (referer == null || referer.length() == 0) { referer = refToBaseDir + "/"; } %><% String urlString = request.getParameter("url"); URL urlURL = null; boolean isURLMalformed = false; if(urlString != null) { if(!urlString.toLowerCase().startsWith("http://")) // XXX FIX POSSIBLE ftp:// news:// mail:// etc. ERRORS XXX urlString = "http://" + urlString; urlString = new String(urlString.getBytes("ISO-8859-1"), "ISO-8859-2"); try { urlURL = new URL(urlString); } catch(MalformedURLException mfuX) { isURLMalformed = true; } catch(Exception x) {} } %><%= fep.getHtmlProlog() %> <%@ include file="./include/MetaInfo.jsp" %><%@ include file="./include/StyleTemplate.jsp" %> <%= fep.getFrontendTitle() %>: Add URL <%@ include file="./include/PageHeader.jsp" %>

<% if(isURLMalformed) { %>
Malformed URL encountered.

You entered a malformed URL: <%= urlString %>

Obviously, we cannot add that to our database, so please retry. A valid form of an url would be:

http://www.some.domain.dom/path/to-visit.html

Of course, any path component following the host name can be omitted.


[add new url]    [back]
<%@ include file="./include/PageFooter.jsp" %><% } else { %>
<% String url = urlAdder.getUrl(); if (url != null && url.length() > 0 ) { switch(urlAdder.addUrl() & 15) { case UrlAdder.UB_MALFORMED_URL: %>
Malformed URL encountered.

<% break; case UrlAdder.UB_ERROR: %>

You entered a malformed URL: <%= url %>

Obviously, we cannot add that to our database, so please retry. A valid form of an url would be:

http://some.host.dom/path/to-visit.html

Of course, any path component following the host name can be omitted.

Communication error.

<% break; case SpiderManager.ADD_URL_REJECTED: %>

We're sorry to inform you that your URL was not processed due to a communication error.

Please try again at some later instance.

URL rejected.

<% break; case SpiderManager.ADD_URL_OK: %>

Your URL (<%= url %>) was rejected.

This is most probably because it doesn't fulfill some of the requirements for adding a URL. (i.e. it might be outside the scope of this index, contain invalid directories such as /cgi-bin/ or /_vti_*/, etc.).

URL added successfully.

<% break; case SpiderManager.ADD_URL_EXISTS: %>

Your URL (<%= url %>) was successfully added to the index.

Our spiders will visit this page at next index refresh, after which the users will be able to see it in their search results. Thank you very much for your contribution in helping us build the most advanced index index of Sri Chaitanya Saraswat Math's webpages.

URL exists already.

<% break; case SpiderManager.ADD_URL_WAIT_FOR_ADMIN: %>

Your URL (<%= url %>) was rejected because it already exists in the index.

Users can most probably already find the information contained in this or any other page to which the links from this one point (in case this is untrue as of this moment, they will most certainly be able to when our spiders have visited it).

URL needs approval.

<% break; } %>

Your URL (<%= url %>) was successfully added,but it needs approval.

Because this URL is not from an IP/TLD range that this searcher manages by default, it needs to be approved by the webmaster before our spiders can visit it. Thank you very much for your contribution in helping us build the most advanced index of Sri Chaitanya Saraswat Math's webpages.


[add new url]    [">back]
<%@ include file="./include/PageFooter.jsp" %><% } else { %>

Please type in the URL for our spiders to visit.

URL: 

Example: http://some.host.dom/path/to-visit.html

The URL you have entered will be checked by the webmaster, and if it is approved the webpages will be added to the index during the next refresh.


[">back]
<%@ include file="./include/PageFooter.jsp" %><% } } %>