forked from dirkriehle/wahlzeit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b345568
commit 35f1219
Showing
248 changed files
with
19,954 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="test"/> | ||
<classpathentry kind="lib" path="lib/activation.jar"/> | ||
<classpathentry kind="lib" path="lib/c3p0.jar"/> | ||
<classpathentry kind="lib" path="lib/commons-el.jar"/> | ||
<classpathentry kind="lib" path="lib/commons-logging-api.jar"/> | ||
<classpathentry kind="lib" path="lib/javax.servlet.jar"/> | ||
<classpathentry kind="lib" path="lib/mail.jar"/> | ||
<classpathentry kind="lib" path="lib/org.mortbay.jetty.jar"/> | ||
<classpathentry kind="lib" path="lib/org.mortbay.jmx.jar"/> | ||
<classpathentry kind="lib" path="lib/postgresql-9.1-901.jdbc4.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>wahlzeit</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: org.wahlzeit.main.WahlzeitMain | ||
Class-Path: lib/activation.jar lib/c3p0.jar lib/commons-el.jar lib/commons-logging-api.jar lib/javax.servlet.jar lib/mail.jar lib/org.mortbay.jetty.jar lib/org.mortbay.jmx.jar lib/postgresql-9.1-901.jdbc4.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
Wahlzeit - An Open Source Package for Rating Sites | ||
|
||
|
||
|
||
PART I - INTRODUCTION | ||
|
||
Wahlzeit is an open source web application that lets users upload photos and rate photos of other users, usually on a 1..10 scale. Users get to present their best photos and learn what other users thought of their photos. | ||
|
||
Wahlzeit is used to teach agile methods and open source software development at the Professorship of Open Source Software at the University of Erlangen. | ||
|
||
It is an easy-to-learn yet complete Java application that is available under the GNU Affero Public License v3 license, see the LICENSE.txt file. | ||
|
||
For more information, see http://wahlzeit.sourceforge.net and http://osr.cs.fau.de. | ||
|
||
|
||
|
||
PART II: WAHLZEIT SETUP | ||
|
||
1. Login using your database administrative user, e.g. postgres. | ||
|
||
sudo su - postgres | ||
|
||
2. Create a new user for the Wahlzeit application, for example using the PostgreSQL command line tools: | ||
|
||
createuser wahlzeit -SDRP | ||
|
||
When asked, enter "wahlzeit" (without the quotes) as the password. | ||
|
||
See: http://www.postgresql.org/docs/8.3/static/app-createuser.html | ||
|
||
3. Create the database for the application and give it to the new user: | ||
|
||
createdb wahlzeit -O wahlzeit | ||
|
||
See http://www.postgresql.org/docs/8.3/static/app-createdb.html | ||
|
||
4. Download and compile Wahlzeit | ||
|
||
Check out the codebase from wahlzeit.sourceforge.net into your Eclipse environment | ||
|
||
5. On a command line, populate the database: | ||
|
||
cd workspace/wahlzeit | ||
|
||
java -cp .:bin:lib/* org.wahlzeit.tools.SetUpFlowers | ||
|
||
This should initialize the database for the Flowers application. | ||
|
||
|
||
|
||
PART III: RUNNING WAHLZEIT | ||
|
||
6. Run Wahlzeit itself | ||
|
||
java -cp .:bin:lib/* org.wahlzeit.main.Wahlzeit | ||
|
||
Direct your browser to http://localhost:8585 | ||
|
||
Login using admin/admin as the user/password combination. | ||
|
||
Change the admin password to something safer. | ||
|
||
Wahlzeit plays nicely with Apache virtual hosts. | ||
|
||
Done! | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Version information | ||
|
||
# Which code base is this supposed to be? | ||
CodeVersion = 2.0 | ||
|
||
# Which schema version is this supposed to start with? | ||
DataVersion = 1.3.11 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
CREATE TABLE users ( | ||
id integer PRIMARY KEY, | ||
name text, | ||
name_as_tag text, | ||
email_address text, | ||
"password" text, | ||
rights integer, | ||
"language" integer, | ||
notify_about_praise boolean, | ||
home_page text, | ||
gender integer, | ||
status integer, | ||
confirmation_code bigint, | ||
photo integer, | ||
creation_time bigint | ||
); | ||
|
||
CREATE TABLE photos ( | ||
id integer PRIMARY KEY, | ||
owner_id integer REFERENCES users(id), | ||
owner_name text, | ||
owner_notify_about_praise boolean, | ||
owner_email_address text, | ||
owner_language integer, | ||
owner_home_page text, | ||
width integer, | ||
height integer, | ||
tags text, | ||
status integer, | ||
praise_sum integer, | ||
no_votes integer, | ||
creation_time bigint | ||
); | ||
|
||
CREATE TABLE tags ( | ||
tag text, | ||
photo_id integer | ||
); | ||
|
||
CREATE TABLE cases ( | ||
id integer PRIMARY KEY, | ||
photo integer, | ||
flagger text, | ||
reason integer, | ||
explanation text, | ||
creation_time bigint, | ||
was_decided boolean, | ||
decision_time bigint | ||
); | ||
|
||
CREATE TABLE globals ( | ||
id integer PRIMARY KEY, | ||
last_user_id integer, | ||
last_photo_id integer, | ||
last_case_id integer, | ||
last_session_id integer | ||
); | ||
|
||
INSERT INTO globals (id, last_user_id, last_photo_id, last_case_id, last_session_id) | ||
VALUES (0, 1, 0, 0, 0); | ||
|
||
INSERT INTO users (id, name, name_as_tag, email_address, "password", rights, status) | ||
VALUES (1, 'admin', 'admin', 'root@localhost', 'admin', 4, 1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DROP TABLE globals; | ||
DROP TABLE cases; | ||
DROP TABLE tags; | ||
DROP TABLE photos; | ||
DROP TABLE users; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
body,form,table,td { | ||
font-family: verdana, tahoma, arial, helvetica, sans-serif; | ||
font-size: 10pt; | ||
} | ||
|
||
input,textarea { | ||
font-family: verdana, tahoma, arial, helvetica, sans-serif; | ||
font-size: 9pt; | ||
} | ||
|
||
body, table, p { | ||
margin-top: 0pt; | ||
margin-bottom: 6pt; | ||
} | ||
|
||
p.menu { | ||
margin-top: 0pt; | ||
margin-bottom: 6pt; | ||
} | ||
|
||
h1 { | ||
font-size: 10pt; | ||
margin-top: 6pt; | ||
margin-bottom: 6pt; | ||
} | ||
|
||
h2 { | ||
font-size: 12; | ||
margin-top: 18pt; | ||
margin-bottom: 12pt; | ||
} | ||
|
||
h2.topbox { | ||
margin-top: 0pt; | ||
} | ||
|
||
h2.mission { | ||
font-size: 11pt; | ||
margin-top: 12pt; | ||
margin-bottom: 12pt; | ||
} | ||
|
||
h3 { | ||
font-size: 10pt; | ||
margin-top: 0pt; | ||
margin-bottom: 6pt; | ||
} | ||
|
||
h3.topbox { | ||
border: 1px double #99ccff; | ||
background: #ddeeff; | ||
padding: 4px; | ||
} | ||
|
||
h3.inline { | ||
border: 1px double #99ccff; | ||
background: #ddeeff; | ||
padding: 4px; | ||
margin-top: 30pt; | ||
} | ||
|
||
h4 { | ||
font-size: 9pt; | ||
} | ||
|
||
img { | ||
border: none; | ||
} | ||
|
||
div#imageCaption { | ||
display: none; | ||
} | ||
|
||
div#basicFilter { | ||
display: block; | ||
} | ||
|
||
div#advancedFilter { | ||
display: none; | ||
} | ||
|
||
table.inline { | ||
margin-bottom: 0pt; | ||
} | ||
|
||
table.info { | ||
width: 760px; | ||
margin-bottom: 0pt; | ||
} | ||
|
||
table.border { | ||
border: 1px solid #0066cc; | ||
} | ||
|
||
table.form { | ||
width: 760px; | ||
margin-bottom: 0pt; | ||
} | ||
|
||
td { | ||
border: 0px; | ||
padding: 0px; | ||
vertical-align: top; | ||
} | ||
|
||
td.inline { | ||
vertical-align: middle; | ||
} | ||
|
||
td.spacer { | ||
border: 0px; | ||
padding: 8px; | ||
} | ||
|
||
td.side { | ||
border: 1px solid #99ccff; | ||
width: 140px; | ||
height: 100%; | ||
padding: 8px; | ||
} | ||
|
||
td.main { | ||
border: 1px solid #0066cc; | ||
padding: 8px; | ||
} | ||
|
||
td.label { | ||
font-size: 7pt; | ||
font-weight: bold; | ||
text-align: left; | ||
} | ||
|
||
td.thumb { | ||
text-align: center; | ||
vertical-align: middle; | ||
border: 1px solid #99ccff; | ||
padding: 8px; | ||
width: 105px; | ||
height: 150px; | ||
} | ||
|
||
td.twoCol1 { | ||
width: 40%; | ||
height: 2.0em; | ||
text-align: right; | ||
vertical-align: middle; | ||
} | ||
|
||
td.twoCol2 { | ||
width: 60%; | ||
height: 2.0em; | ||
text-align: left; | ||
vertical-align: middle; | ||
} | ||
|
||
td.threeCol2 { | ||
width: 25%; | ||
height: 2.0em; | ||
text-align: right; | ||
vertical-align: middle; | ||
} | ||
|
||
td.threeCol3 { | ||
width: 59%; | ||
height: 2.0em; | ||
text-align: left; | ||
vertical-align: middle; | ||
} | ||
|
||
td.fiveCol2 { | ||
width: 20%; | ||
height: 2.0em; | ||
text-align: right; | ||
vertical-align: middle; | ||
} | ||
|
||
td.fiveCol3 { | ||
width: 22%; | ||
height: 2.0em; | ||
text-align: left; | ||
vertical-align: middle; | ||
} | ||
|
||
td.fiveCol3x { | ||
width: 66%; | ||
height: 2.0em; | ||
text-align: left; | ||
vertical-align: middle; | ||
} | ||
|
||
td.fiveCol4 { | ||
width: 20%; | ||
height: 2.0em; | ||
text-align: right; | ||
vertical-align: middle; | ||
} | ||
|
||
td.fiveCol5 { | ||
width: 22%; | ||
height: 2.0em; | ||
text-align: left; | ||
vertical-align: middle; | ||
} | ||
|
Oops, something went wrong.