3
Fork 0

initial commit

This commit is contained in:
Willem Cazander 2022-11-13 14:46:54 +01:00
parent 5aeabf52d6
commit 5a6bd1d07b
148 changed files with 7509 additions and 0 deletions

View file

@ -0,0 +1,36 @@
fsim.title = FSIM: File Search Index Machine
fsim.logo.alt = fsim-logo
fsim.logo.title = FSIM Searcher
fsim.header.title = File Search
fsim.topbar.results = Results:
fsim.topbar.resultsin = found in:
fsim.topbar.inms = ms.
fsim.search.button = Search
fsim.bottombar.rendered = Rendered in:
fsim.bottombar.inms = ms.
fsim.copyright = <br/>Fsim is a product of idca.nl<br/>(c)2005 idca
fsim.tech.vcss.alt = Valid CSS
fsim.tech.vcss.title = This page has an valid css file.
fsim.tech.xhtml11.alt = Valid XHML 1.1
fsim.tech.xhtml11.title = This page is build with XHTML technolocy.
fsim.tech.debian.alt = debian-logo
fsim.tech.debian.title = This service runs on Debian.
fsim.tech.java.alt = java-logo
fsim.tech.java.title = This service is written in java.
fsim.tech.postgres.alt = postgresql-logo
fsim.tech.postgres.title= This service uses an PostgreSQL DB.
fsim.tech.linux.alt = linux-logo
fsim.tech.linux.title = The OS runs Linux.
fsim.tech.tomcat.alt = tomcat-logo
fsim.tech.tomcat.title = Tomcat 5 J2EE WebServer.
fsim.text = foo {0} bar

View file

@ -0,0 +1,9 @@
fsim.test = Mmmm dit is een test
fsim.copyright = Fsim is a product of idca.nl<br/>(c)2005 idca

View file

@ -0,0 +1 @@
logging-development.properties

View file

@ -0,0 +1,26 @@
#
# COPY THIS FILE TO: logging-development.properties
# and set the properties correctly
#
# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers = java.util.logging.ConsoleHandler
# Set the default logging level for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level = ALL
# Set the default formatter for new ConsoleHandler instances ( was java.util.logging.SimpleFormatter)
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
# Set the default logging level for the root logger
.level = INFO
#org.apache.tomcat.level = ALL
#org.apache.catalina.level = ALL
#org.apache.jasper.level = ALL
#org.apache.commons.level = ALL
#org.apache.myfaces.level = ALL
#org.hibernate.level = ALL
#com.opensymphony.oscache.level = ALL

View file

@ -0,0 +1,29 @@
#
# THIS ARE THE LIVE logging properties
# when the context parameter "DEVELOPMENT" on true is set
# then we will try to read logging-development.properties.
# this parameter should be set in web-override.xml
#
#
# Specify the handlers to create in the root logger
# (all loggers are children of the root logger)
# The following creates two handlers
handlers = java.util.logging.ConsoleHandler
# Set the default logging level for new ConsoleHandler instances
java.util.logging.ConsoleHandler.level = INFO
# Set the default formatter for new ConsoleHandler instances ( was java.util.logging.SimpleFormatter)
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
# Set the default logging level for the root logger
.level = INFO
#org.apache.tomcat.level = ALL
#org.apache.catalina.level = ALL
#org.apache.jasper.level = ALL
#org.apache.commons.level = ALL
#org.apache.myfaces.level = ALL
#org.hibernate.level = ALL
#com.opensymphony.oscache.level = ALL

92
WebRoot/WEB-INF/fsim.xml Normal file
View file

@ -0,0 +1,92 @@
<?xml version="1.0"?>
<fsimConfig name="WTH-SEARCH">
<pluginPage name="file_mirrors"
file="/fragments/searchers/files/file_mirrors.jsp"
/>
<pluginPage name="file_redirect"
file="/fragments/searchers/files/file_redirect.jsp"
/>
<pluginPage name="host_browse"
file="/fragments/searchers/files/host_browse.jsp"
/>
<pluginPage name="host_redirect"
file="/fragments/searchers/files/host_redirect.jsp"
/>
<pluginPage name="path_browse"
file="/fragments/searchers/files/path_browse.jsp"
/>
<pluginPage name="path_redirect"
file="/fragments/searchers/files/path_redirect.jsp"
/>
<!--
<database name="fsim_db"
driver="org.postgresql.Driver"
url="jdbc:postgresql://dbhost/fsim"
username="fsimdb"
password="bdmisf"
/>
-->
<listener class="com.idca.fsim.searchers.files.FilesListener"/>
<optionRenderer dataModel="com.idca.fsim.searchers.files.models.File"
optionRenderer="com.idca.fsim.searchers.files.renderers.options.FileDownloadOptionRenderer"
/>
<optionRenderer dataModel="com.idca.fsim.searchers.files.models.File"
optionRenderer="com.idca.fsim.searchers.files.renderers.options.FileDownloadOptionRenderer"
/>
<optionRenderer dataModel="com.idca.fsim.searchers.files.models.File"
optionRenderer="com.idca.fsim.searchers.files.renderers.options.FileDownloadOptionRenderer"
/>
<!-- this is really an DB saerchSource...maybe include others.(v2) -->
<searchSource name="fsim-files"
searchSource="com.idca.fsim.core.plugins.DBSearchSource"
dataModel="com.idca.fsim.searchers.generic.models.File"
indexer="com.idca.fsim.core.plugins.DBIndexer"
resultCollector="com.idca.fsim.searchers.files.collectors.FileResultCollector"
resultRenderer="com.idca.fsim.searchers.files.renderers.FileResultRenderer"
resultCacheResolver=""
dbName="fsim_dba"
tableName="file"
idColumnName="id"
searchColumnName="name"
>
<!--
<initParam name="DB_NAME" value="fsim_dba"/>
<initParam name="TABLE_NAME" value="fsim_file"/>
<initParam name="ID_COLUMN_NAME" value="file"/>
<initParam name="SEARCH_COLUMN_NAME" value="name"/>
<hitParamLong1 name="size"/>
<hitParamLong2 name="date"/>
-->
</searchSource>
<searchSource name="fsim-paths"
searchSource="com.idca.fsim.core.plugins.DBSearchSource"
dataModel="com.idca.fsim.searchers.generic.models.Path"
indexer="com.idca.fsim.core.plugins.DBIndexer"
dbName="fsim_dba"
tableName="path"
idColumnName="id"
searchColumnName="directory"
resultCollector="com.idca.fsim.searchers.files.collectors.PathResultCollector"
resultRenderer="com.idca.fsim.searchers.files.renderers.PathResultRenderer"
/>
<searchSource name="fsim-hosts"
searchSource="com.idca.fsim.core.plugins.DBSearchSource"
dataModel="com.idca.fsim.searchers.generic.models.Host"
indexer="com.idca.fsim.core.plugins.DBIndexer"
dbName="fsim_dba"
tableName="host"
idColumnName="id"
searchColumnName="hostname"
resultCollector="com.idca.fsim.searchers.files.collectors.HostResultCollector"
resultRenderer="com.idca.fsim.searchers.files.renderers.HostResultRenderer"
/>
</fsimConfig>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
WebRoot/WEB-INF/lib/dom.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
WebRoot/WEB-INF/lib/sax.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

175
WebRoot/WEB-INF/web.xml Normal file
View file

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!--
Copyright 2004-2006 IDCA. All rights reserved.
IDCA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<!--
=========== GENERAL CONFIG
-->
<display-name>FSIM</display-name>
<description>FSIM: File Search Index Machine</description>
<session-config>
<session-timeout>1</session-timeout>
<!-- An 1min session. -->
</session-config>
<welcome-file-list>
<!-- this file redirects to /search -->
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<description>The fsimcontext xml file</description>
<param-name>FSIM_CONFIG_FILE</param-name>
<param-value>/WEB-INF/fsim.xml</param-value>
</context-param>
<context-param>
<description>
All servlets / listeners and filters use
this context.
</description>
<param-name>FsimContextName</param-name>
<param-value>WTH-SEARCH</param-value>
</context-param>
<context-param>
<description>
The page when a host is blocked.
note: should be on other server ivm DDOS
</description>
<param-name>hostBlockedRedirectURL</param-name>
<param-value>/denied/host_blocked.jsp</param-value>
</context-param>
<!--
================== LISTENERS ========================
-->
<listener>
<listener-class>com.idca.fsim.core.FsimListener</listener-class>
<!-- Start fsim and loads config. -->
</listener>
<listener>
<listener-class>com.idca.fsim.core.indexer.IndexerManagerListener</listener-class>
<!-- Start fsim and loads config. -->
</listener>
<!--
======================== SERVLETS ======================
-->
<servlet>
<description>Fsim Search Servlet</description>
<display-name>Fsim Search Servlet</display-name>
<servlet-name>searchServlet</servlet-name>
<servlet-class>com.idca.fsim.web.SearchServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>searchServlet</servlet-name>
<url-pattern>/search</url-pattern>
</servlet-mapping>
<servlet>
<description>Fsim Admin Servlet</description>
<display-name>Fsim Admin Servlet</display-name>
<servlet-name>adminServlet</servlet-name>
<servlet-class>com.idca.fsim.web.AdminServlet</servlet-class>
<init-param>
<description>
When an hosts session is not an admin session then
hosty is blocked, time is increased with this value in minutes.
</description>
<param-name>hostBlockedNoAdminPeneltyTime</param-name>
<param-value>1</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>adminServlet</servlet-name>
<url-pattern>/admin</url-pattern>
</servlet-mapping>
<servlet>
<description>Fsim Redirect Servlet</description>
<display-name>Fsim Redirect Servlet</display-name>
<servlet-name>redirectServlet</servlet-name>
<servlet-class>com.idca.fsim.web.RedirectServlet</servlet-class>
<init-param>
<description>when click is done send to this url.</description>
<param-name>pluginPageRedirectURL</param-name>
<param-value>/ppage</param-value>
</init-param>
<init-param>
<description>blocked time im mins when parameter(s) is wrong</description>
<param-name>hostBlockedParameterPeneltyTime</param-name>
<param-value>0</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>redirectServlet</servlet-name>
<url-pattern>/redirect</url-pattern>
</servlet-mapping>
<servlet>
<description>Fsim Plugin Page Servlet</description>
<display-name>Fsim Plugin Page Servlet</display-name>
<servlet-name>pluginPageServlet</servlet-name>
<servlet-class>com.idca.fsim.web.PluginPageServlet</servlet-class>
<init-param>
<description>blocked time im mins when parameter(s) is wrong</description>
<param-name>hostBlockedParameterPeneltyTime</param-name>
<param-value>0</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>pluginPageServlet</servlet-name>
<url-pattern>/ppage</url-pattern>
</servlet-mapping>
<!--
===================== FILTERS =================================
-->
<!--
note: volgorde belangrijk !!
aangezien servlet andere resources include bv !!
en session of de aanwezig is !!
Na de SessionFilter is er altijd een session beschikbaar.
NU: request -> RequestLoggerFilter -> HostMonitoringFilter -> PagePathFilter -> SessionFilter -> AutenticationFilter -> RequestPerTimeFilter -> page(s)
-->
<filter>
<description>Manages user inlog/output</description>
<filter-name>authenticationFilter</filter-name>
<filter-class>com.idca.fsim.web.filters.AuthenticationFilter</filter-class>
<init-param>
<description>The page where a user comes when he logs out.</description>
<param-name>logoutRedirectURL</param-name>
<param-value>/search</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>authenticationFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>