From f8d3f14cbd6ae3bc1c47362a03466ce222c625a0 Mon Sep 17 00:00:00 2001
From: Eberhard Graether
Date: Wed, 27 May 2015 12:24:18 +0200
Subject: [PATCH] web: prepared webpage for publishing
* renamed admin directory to php because adblocker blocked ajax
* don't refresh page when pressing enter
* improved english
* added db_config for live page
---
web/mediacube/imprint.php | 14 ++---
web/mediacube/index.php | 62 ++++++++++++----------
web/mediacube/{admin => php}/db_config.php | 0
web/mediacube/php/db_config_.php | 7 +++
web/mediacube/{admin => php}/head.php | 0
web/mediacube/{admin => php}/submit.php | 0
6 files changed, 48 insertions(+), 35 deletions(-)
rename web/mediacube/{admin => php}/db_config.php (100%)
create mode 100644 web/mediacube/php/db_config_.php
rename web/mediacube/{admin => php}/head.php (100%)
rename web/mediacube/{admin => php}/submit.php (100%)
diff --git a/web/mediacube/imprint.php b/web/mediacube/imprint.php
index 653c5ce0..0f10915e 100644
--- a/web/mediacube/imprint.php
+++ b/web/mediacube/imprint.php
@@ -3,8 +3,8 @@
+ include("php/head.php");
+?>
@@ -22,9 +22,9 @@
if ($lan == "en")
echo(" class='selected'");
-
- echo(">english");
-?>
+
+ echo(">english");
+?>
@@ -58,7 +58,7 @@
}
else
{
- echo("Coati has been developed by master-degree students of the university of applied sciences Salzburg.");
+ echo("Coati has been developed by master-degree students of Salzburg University of Applied Sciences.");
}
?>
@@ -91,7 +91,7 @@
}
else
{
- echo("The team of Coati is responsible for all contents of this page.");
+ echo("Team Coati is responsible for all contents of this page.");
}
?>
diff --git a/web/mediacube/index.php b/web/mediacube/index.php
index 7461d9a0..2e1feb93 100644
--- a/web/mediacube/index.php
+++ b/web/mediacube/index.php
@@ -1,10 +1,10 @@
-
+
+ include("php/head.php");
+?>
@@ -18,9 +18,9 @@
if ($lan == "en")
echo(" class='selected'");
-
- echo(">english
");
-?>
+
+ echo(">english
");
+?>
@@ -38,18 +38,18 @@
if ($lan == "de")
{
echo(
- "An einem normalen Arbeitstag produziert ein Programmierer im Durchschnitt 12 Zeilen Code. Unterstützt
- wird er dabei von mächtiger Software, die ihm das Schreiben auf alle erdenkliche Arten erleichtert. Den
- Großteil seiner Zeit verbringt der Programmierer jedoch nicht damit, neuen Code zu schreiben, sondern
+ "An einem normalen Arbeitstag produziert ein Programmierer im Durchschnitt 12 Zeilen Code. Unterstützt
+ wird er dabei von mächtiger Software, die ihm das Schreiben auf alle erdenkliche Arten erleichtert. Den
+ Großteil seiner Zeit verbringt der Programmierer jedoch nicht damit, neuen Code zu schreiben, sondern
damit, bestehenden Code zu lesen."
);
}
else
{
echo(
- "The average programmer spends his ordinary working day writing around 12 lines of code. He is often supported
- by powerful software that simplifies this task. The larger part of the day, however he does not use to write
- new code but to read existing code."
+ "The average programmer spends his common work day with writing around 12 lines of code. He is often supported
+ by powerful software that simplifies this task. The major part of the day however, he does not write
+ new code but reads existing code."
);
}
?>
@@ -64,17 +64,17 @@
"Für diese Aufgabe gibt es bisher vergleichsweise wenig unterstützende Tools.
- Coati schließt diese Lücke und bietet ein Interface, mit dem die Navigation in der Codebase
+ Coati schließt diese Lücke und bietet ein Interface, mit dem die Navigation in der Codebase
beschleunigt und das Verstehen von Zusammenhängen erleichtert wird."
);
}
else
{
echo(
- "Currently there are only few tools that support this task.
+ "Currently there are only few tools that support this task.
- Coati is developed to close this gap and provide an interface that accelerates navigating the codebase and support
+ Coati is developed to close this gap. It provides an interface that accelerates navigation of the codebase and eases
the comprehension of relations."
);
}
@@ -90,7 +90,7 @@
-
+
@@ -98,15 +98,15 @@
if ($lan == "de")
{
echo(
- "Coati tritt demnächst in die erste Phase des Betatests ein. Aktuell unterstützen wir die Programmiersprache C++.
+ "Coati tritt demnächst in die erste Phase des Betatests ein. Aktuell unterstützen wir die Programmiersprache C++.
Wenn die Beta beginnt, benachrichtigen wir dich gerne per Newsletter."
);
}
else
{
echo(
- "Coati will enter the first phase of a private beta soon. At the moment Coati supports the programming language
- C++. When the beta starts we will be glad to inform you via newsletter."
+ "Coati will soon enter a Private Beta phase. At the moment Coati supports the programming language
+ C++. We are glad if we can inform you via newsletter when the Beta starts."
);
}
?>
@@ -114,7 +114,7 @@
-
+
\ No newline at end of file
diff --git a/web/mediacube/admin/db_config.php b/web/mediacube/php/db_config.php
similarity index 100%
rename from web/mediacube/admin/db_config.php
rename to web/mediacube/php/db_config.php
diff --git a/web/mediacube/php/db_config_.php b/web/mediacube/php/db_config_.php
new file mode 100644
index 00000000..593849e6
--- /dev/null
+++ b/web/mediacube/php/db_config_.php
@@ -0,0 +1,7 @@
+
diff --git a/web/mediacube/admin/head.php b/web/mediacube/php/head.php
similarity index 100%
rename from web/mediacube/admin/head.php
rename to web/mediacube/php/head.php
diff --git a/web/mediacube/admin/submit.php b/web/mediacube/php/submit.php
similarity index 100%
rename from web/mediacube/admin/submit.php
rename to web/mediacube/php/submit.php