From 75448045cfe70054c8f4bae1bcfaf9bb0f70d330 Mon Sep 17 00:00:00 2001 From: Moritz helios Rudert Date: Wed, 1 Jun 2011 12:13:39 +0200 Subject: fixes --- includes/footer.php | 70 ++++++++++++++++++++--------------------------------- 1 file changed, 26 insertions(+), 44 deletions(-) mode change 100755 => 100644 includes/footer.php (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php old mode 100755 new mode 100644 index f65e8a7e..8f736c4d --- a/includes/footer.php +++ b/includes/footer.php @@ -1,57 +1,39 @@ - - - - - - - - -
-

- ".Get_Text("back")." "; - ?> - -

- - +
+

+ " . Get_Text("back") . " "; + ?> + +

+ + - - - - + - - - - - - - - - -
© copyleft - Kontakt -
- - + + + +
© copyleft - Kontakt +
+ + - - + - - + + -- cgit v1.2.3-54-g00ecf From 550467697f8b3ae0b5d15d1d3a2bc3f83b003ff8 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 1 Jun 2011 13:36:24 +0200 Subject: html5 --- includes/footer.php | 39 +++++++-------- includes/header.php | 129 +++++++++++++++++++++++-------------------------- includes/menu.php | 4 ++ www-ssl/css/base.css | 39 +++++++++++++++ www-ssl/css/style6.css | 4 ++ www-ssl/index.php | 10 ++-- 6 files changed, 132 insertions(+), 93 deletions(-) create mode 100644 www-ssl/css/base.css (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php index 8f736c4d..584e4b9b 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,9 +1,10 @@

- " . Get_Text("back") . " "; - ?> + " . Get_Text("back") . " "; +?>

@@ -13,27 +14,27 @@ - - - - -
© copyleft - Kontakt -
- - +
+

+ © copyleft - Kontakt
+ This is hell. Really. +

+
+ + --> - - + +include ("funktion_counter.php"); +mysql_close($con); +?> diff --git a/includes/header.php b/includes/header.php index 3b6a4c23..6b206049 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,40 +1,37 @@ \n"; +echo "\n"; ?> - + -<?php echo $title; ?> - +<?php echo $title; ?> - Engelsystem + + + - - - -.css" /> + + +.css" /> \n"; + +if (isset ($reload)) { + if ($reload == "") + $reload = 3330; + + echo "\n\n"; } -if(isset($Page["AutoReload"])) - echo "\n\n"; +if (isset ($Page["AutoReload"])) + echo "\n\n"; echo "\n"; @@ -43,40 +40,31 @@ echo "\n"; ///////////////////////////////////////////////////////////////////////////////////////////// echo "\n"; -echo "
\n\n"; - -if( isset($_SESSION['color']) && ($_SESSION['color']==6) ) -{ - echo "\"Unser\n"; -} -else -{ - echo "\"Unser\n"; -} -echo "
\n\n"; - +echo '
'; //ausgabe new message -if( isset($_SESSION['CVS']["nonpublic/messages.php"])) -{ - if( $_SESSION['CVS']["nonpublic/messages.php"] == "Y") - { - $SQL = "SELECT `Datum` FROM `Messages` WHERE `RUID`=". $_SESSION["UID"]. " AND `isRead`='N'"; - $erg = mysql_query($SQL, $con); - if( mysql_num_rows( $erg ) > 0 ) - echo "
". Get_Text("pub_messages_new1"). - " ". mysql_num_rows( $erg ). " ". - Get_Text("pub_messages_new2"). "

"; - } +if (isset ($_SESSION['CVS']["nonpublic/messages.php"])) { + if ($_SESSION['CVS']["nonpublic/messages.php"] == "Y") { + $SQL = "SELECT `Datum` FROM `Messages` WHERE `RUID`=" . $_SESSION["UID"] . " AND `isRead`='N'"; + $erg = mysql_query($SQL, $con); + if (mysql_num_rows($erg) > 0) + echo "
" . Get_Text("pub_messages_new1") . + " " . mysql_num_rows($erg) . " " . + Get_Text("pub_messages_new2") . "

"; + } } ?> - +
@@ -84,41 +72,44 @@ if( $_SESSION['Menu'] =="L") include("menu.php");
"; - if( strlen( $header) == 0 ) - echo "\n". Get_Text($Page["Name"]). "\n"; - else - echo "\n$header\n"; + +echo ""; +if (strlen($header) == 0) + echo "\n" . Get_Text($Page["Name"]) . "\n"; +else + echo "\n$header\n"; ?>

-\n"; +if ($Page["CVS"] != "Y") { + echo "Du besitzt kein Rechte für diesen Bereich.
\n"; - if(isset($_SESSION['oldurl'])) - echo "" . Get_Text("back") . " geht's zurück...\n"; - else - echo "" . Get_Text("back") . " geht's zurück...\n"; + if (isset ($_SESSION['oldurl'])) + echo "" . Get_Text("back") . " geht's zurück...\n"; + else + echo "" . Get_Text("back") . " geht's zurück...\n"; - exit (); + exit (); } ?> diff --git a/includes/menu.php b/includes/menu.php index 799e6c75..955de8b7 100644 --- a/includes/menu.php +++ b/includes/menu.php @@ -57,6 +57,10 @@ if( isset($_SESSION['UID']))
+ + diff --git a/www-ssl/css/base.css b/www-ssl/css/base.css new file mode 100644 index 00000000..e5b1644a --- /dev/null +++ b/www-ssl/css/base.css @@ -0,0 +1,39 @@ +* { + margin: 0; + padding: 0; +} + +header { + display: block; + width: 100%; +} + +footer { + display: block; + text-align: center; + width: 100%; +} + +footer p { + margin: 10px auto; +} + +#logo { + background: url('../pic/himmel.png') top left no-repeat; + display: block; + height: 32px; + margin: 10px auto; + width: 380px; +} + +#body { + margin: 0 5%; +} + +td { + padding: 4px; +} + +.menu ul { + margin: 0 0 0 20px; +} diff --git a/www-ssl/css/style6.css b/www-ssl/css/style6.css index 72e1024d..eaca462f 100644 --- a/www-ssl/css/style6.css +++ b/www-ssl/css/style6.css @@ -6,6 +6,10 @@ body { font-size: small } +#logo { + background-image: url('../pic/himmel_w.png'); +} + a { text-decoration: none; color: #ff9900 diff --git a/www-ssl/index.php b/www-ssl/index.php index e61db41a..4a34643c 100644 --- a/www-ssl/index.php +++ b/www-ssl/index.php @@ -1,15 +1,15 @@ " . Get_Text("index_text1") . "

\n"; echo "

" . Get_Text("index_text2") . "

\n"; echo "

" . Get_Text("index_text3") . "

\n"; - include "../../camp2011/includes/login_eingabefeld.php"; + include "../includes/login_eingabefeld.php"; echo "
" . Get_Text("index_text4") . "
"; - include "../../camp2011/includes/footer.php"; + include "../includes/footer.php"; ?> -- cgit v1.2.3-54-g00ecf From 9ee80208718277954a066be26e10c5be881cc50b Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 1 Jun 2011 15:06:09 +0200 Subject: footer :) --- includes/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php index 584e4b9b..f56c299c 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -25,7 +25,7 @@ if ($_SESSION['Menu'] == "R")

© copyleft - Kontakt
- This is hell. Really. + This is hell. Temporarily.

-- cgit v1.2.3-54-g00ecf From ee3080a861fb4ac95a7cd6ef5f666798ed63c0ab Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 1 Jun 2011 15:25:05 +0200 Subject: credit page --- DB/UserCVS.sql | 174 +++++++++++++++++++++++++++------------------------ includes/footer.php | 2 +- www-ssl/credits.php | 18 ++++++ www-ssl/css/base.css | 10 ++- 4 files changed, 121 insertions(+), 83 deletions(-) create mode 100644 www-ssl/credits.php (limited to 'includes/footer.php') diff --git a/DB/UserCVS.sql b/DB/UserCVS.sql index 53b202f8..3d2d99e6 100644 --- a/DB/UserCVS.sql +++ b/DB/UserCVS.sql @@ -1,101 +1,113 @@ +-- phpMyAdmin SQL Dump +-- version 3.2.4 +-- http://www.phpmyadmin.net +-- +-- Host: localhost +-- Erstellungszeit: 01. Juni 2011 um 13:24 +-- Server Version: 5.1.44 +-- PHP-Version: 5.3.1 + +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; + +-- +-- Datenbank: `engelsystem` +-- + -- -------------------------------------------------------- --- --- Tabellenstruktur für Tabelle `UserCVS` --- -DROP TABLE IF EXISTS `UserCVS`; -CREATE TABLE `UserCVS` ( - `UID` int(11) NOT NULL default '0', - `GroupID` int(11) default '-2', - `index.php` char(1) NOT NULL default 'G', - `logout.php` char(1) NOT NULL default 'G', - `faq.php` char(1) NOT NULL default 'G', - `lageplan.php` char(1) NOT NULL default 'G', - `makeuser.php` char(1) NOT NULL default 'G', - `nonpublic/index.php` char(1) NOT NULL default 'G', - `nonpublic/news.php` char(1) NOT NULL default 'G', - `nonpublic/newsAddMeting` char(1) NOT NULL default 'G', - `nonpublic/news_comments.php` char(1) NOT NULL default 'G', - `nonpublic/myschichtplan.php` char(1) NOT NULL default 'G', - `nonpublic/myschichtplan_ical.php` char(1) NOT NULL default 'G', - `nonpublic/schichtplan_beamer.php` char(1) NOT NULL default 'G', - `nonpublic/engelbesprechung.php` char(1) NOT NULL default 'G', - `nonpublic/schichtplan.php` char(1) NOT NULL default 'G', - `nonpublic/schichtplan_add.php` char(1) NOT NULL default 'G', - `nonpublic/wecken.php` char(1) NOT NULL default 'G', - `nonpublic/waeckliste.php` char(1) NOT NULL default 'G', - `nonpublic/messages.php` char(1) NOT NULL default 'G', - `nonpublic/faq.php` char(1) NOT NULL default 'G', - `nonpublic/einstellungen.php` char(1) NOT NULL default 'G', - `Change T_Shirt Size` char(1) NOT NULL default 'G', - `admin/index.php` char(1) NOT NULL default 'G', - `admin/room.php` char(1) NOT NULL default 'G', - `admin/EngelType.php` char(1) NOT NULL default 'G', - `admin/schichtplan.php` char(1) NOT NULL default 'G', - `admin/shiftadd.php` char(1) NOT NULL default 'G', - `admin/schichtplan_druck.php` char(1) NOT NULL default 'G', - `admin/user.php` char(1) NOT NULL default 'G', - `admin/userChangeNormal.php` char(1) NOT NULL default 'G', - `admin/userSaveNormal.php` char(1) NOT NULL default 'G', - `admin/userChangeSecure.php` char(1) NOT NULL default 'G', - `admin/userSaveSecure.php` char(1) NOT NULL default 'G', - `admin/group.php` char(1) NOT NULL default 'G', - `admin/userDefaultSetting.php` char(1) NOT NULL default 'G', - `admin/UserPicture.php` char(1) NOT NULL default 'G', - `admin/userArrived.php` char(1) NOT NULL default 'G', - `admin/aktiv.php` char(1) NOT NULL default 'G', - `admin/tshirt.php` char(1) NOT NULL default 'G', - `admin/news.php` char(1) NOT NULL default 'G', - `admin/faq.php` char(1) NOT NULL default 'G', - `admin/free.php` char(1) NOT NULL default 'G', - `admin/sprache.php` char(1) NOT NULL default 'G', - `admin/dect.php` char(1) NOT NULL default 'G', - `admin/dect_call.php` char(1) NOT NULL default 'G', - `admin/dbUpdateFromXLS.php` char(1) NOT NULL default 'G', - `admin/Recentchanges.php` char(1) NOT NULL default 'G', - `admin/debug.php` char(1) NOT NULL default 'G', - `Herald` char(1) NOT NULL default 'G', - `Info` char(1) NOT NULL default 'G', - `Conference` char(1) NOT NULL default 'G', - `Kasse` char(1) NOT NULL default 'G', - PRIMARY KEY (`UID`) +-- +-- Tabellenstruktur für Tabelle `UserCVS` +-- + +CREATE TABLE IF NOT EXISTS `UserCVS` ( + `UID` int(11) NOT NULL DEFAULT '0', + `GroupID` int(11) DEFAULT '-2', + `index.php` char(1) NOT NULL DEFAULT 'G', + `logout.php` char(1) NOT NULL DEFAULT 'G', + `faq.php` char(1) NOT NULL DEFAULT 'G', + `lageplan.php` char(1) NOT NULL DEFAULT 'G', + `makeuser.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/index.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/news.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/newsAddMeting` char(1) NOT NULL DEFAULT 'G', + `nonpublic/news_comments.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/myschichtplan.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/myschichtplan_ical.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/schichtplan_beamer.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/engelbesprechung.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/schichtplan.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/schichtplan_add.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/wecken.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/waeckliste.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/messages.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/faq.php` char(1) NOT NULL DEFAULT 'G', + `nonpublic/einstellungen.php` char(1) NOT NULL DEFAULT 'G', + `Change T_Shirt Size` char(1) NOT NULL DEFAULT 'G', + `admin/index.php` char(1) NOT NULL DEFAULT 'G', + `admin/room.php` char(1) NOT NULL DEFAULT 'G', + `admin/EngelType.php` char(1) NOT NULL DEFAULT 'G', + `admin/schichtplan.php` char(1) NOT NULL DEFAULT 'G', + `admin/shiftadd.php` char(1) NOT NULL DEFAULT 'G', + `admin/schichtplan_druck.php` char(1) NOT NULL DEFAULT 'G', + `admin/user.php` char(1) NOT NULL DEFAULT 'G', + `admin/userChangeNormal.php` char(1) NOT NULL DEFAULT 'G', + `admin/userSaveNormal.php` char(1) NOT NULL DEFAULT 'G', + `admin/userChangeSecure.php` char(1) NOT NULL DEFAULT 'G', + `admin/userSaveSecure.php` char(1) NOT NULL DEFAULT 'G', + `admin/group.php` char(1) NOT NULL DEFAULT 'G', + `admin/userDefaultSetting.php` char(1) NOT NULL DEFAULT 'G', + `admin/UserPicture.php` char(1) NOT NULL DEFAULT 'G', + `admin/userArrived.php` char(1) NOT NULL DEFAULT 'G', + `admin/aktiv.php` char(1) NOT NULL DEFAULT 'G', + `admin/tshirt.php` char(1) NOT NULL DEFAULT 'G', + `admin/news.php` char(1) NOT NULL DEFAULT 'G', + `admin/faq.php` char(1) NOT NULL DEFAULT 'G', + `admin/free.php` char(1) NOT NULL DEFAULT 'G', + `admin/sprache.php` char(1) NOT NULL DEFAULT 'G', + `admin/dect.php` char(1) NOT NULL DEFAULT 'G', + `admin/dect_call.php` char(1) NOT NULL DEFAULT 'G', + `admin/dbUpdateFromXLS.php` char(1) NOT NULL DEFAULT 'G', + `admin/Recentchanges.php` char(1) NOT NULL DEFAULT 'G', + `admin/debug.php` char(1) NOT NULL DEFAULT 'G', + `Herald` char(1) NOT NULL DEFAULT 'G', + `Info` char(1) NOT NULL DEFAULT 'G', + `Conference` char(1) NOT NULL DEFAULT 'G', + `Kasse` char(1) NOT NULL DEFAULT 'G', + `credits.php` char(1) NOT NULL, + PRIMARY KEY (`UID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; --- --- Daten für Tabelle `UserCVS` --- +-- +-- Daten für Tabelle `UserCVS` +-- -INSERT INTO `UserCVS` (`UID`, `GroupID`, `index.php`, `logout.php`, `faq.php`, `lageplan.php`, `makeuser.php`, `nonpublic/index.php`, `nonpublic/news.php`, `nonpublic/newsAddMeting`, `nonpublic/news_comments.php`, `nonpublic/myschichtplan.php`, `nonpublic/myschichtplan_ical.php`, `nonpublic/schichtplan_beamer.php`, `nonpublic/engelbesprechung.php`, `nonpublic/schichtplan.php`, `nonpublic/schichtplan_add.php`, `nonpublic/wecken.php`, `nonpublic/waeckliste.php`, `nonpublic/messages.php`, `nonpublic/faq.php`, `nonpublic/einstellungen.php`, `Change T_Shirt Size`, `admin/index.php`, `admin/room.php`, `admin/EngelType.php`, `admin/schichtplan.php`, `admin/shiftadd.php`, `admin/schichtplan_druck.php`, `admin/user.php`, `admin/userChangeNormal.php`, `admin/userSaveNormal.php`, `admin/userChangeSecure.php`, `admin/userSaveSecure.php`, `admin/group.php`, `admin/userDefaultSetting.php`, `admin/UserPicture.php`, `admin/userArrived.php`, `admin/aktiv.php`, `admin/tshirt.php`, `admin/news.php`, `admin/faq.php`, `admin/free.php`, `admin/sprache.php`, `admin/dect.php`, `admin/dect_call.php`, `admin/dbUpdateFromXLS.php`, `admin/Recentchanges.php`, `admin/debug.php`, `Herald`, `Info`, `Conference`, `Kasse`) VALUES -(1, -4, 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'), -(-1, NULL, 'Y', 'N', 'Y', 'N', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N'), -(-2, NULL, 'N', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N'), -(-3, NULL, 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'Y', 'N', 'Y', 'Y', 'Y', 'Y'), -(-4, NULL, 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y'), -(-5, NULL, 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'); +INSERT INTO `UserCVS` (`UID`, `GroupID`, `index.php`, `logout.php`, `faq.php`, `lageplan.php`, `makeuser.php`, `nonpublic/index.php`, `nonpublic/news.php`, `nonpublic/newsAddMeting`, `nonpublic/news_comments.php`, `nonpublic/myschichtplan.php`, `nonpublic/myschichtplan_ical.php`, `nonpublic/schichtplan_beamer.php`, `nonpublic/engelbesprechung.php`, `nonpublic/schichtplan.php`, `nonpublic/schichtplan_add.php`, `nonpublic/wecken.php`, `nonpublic/waeckliste.php`, `nonpublic/messages.php`, `nonpublic/faq.php`, `nonpublic/einstellungen.php`, `Change T_Shirt Size`, `admin/index.php`, `admin/room.php`, `admin/EngelType.php`, `admin/schichtplan.php`, `admin/shiftadd.php`, `admin/schichtplan_druck.php`, `admin/user.php`, `admin/userChangeNormal.php`, `admin/userSaveNormal.php`, `admin/userChangeSecure.php`, `admin/userSaveSecure.php`, `admin/group.php`, `admin/userDefaultSetting.php`, `admin/UserPicture.php`, `admin/userArrived.php`, `admin/aktiv.php`, `admin/tshirt.php`, `admin/news.php`, `admin/faq.php`, `admin/free.php`, `admin/sprache.php`, `admin/dect.php`, `admin/dect_call.php`, `admin/dbUpdateFromXLS.php`, `admin/Recentchanges.php`, `admin/debug.php`, `Herald`, `Info`, `Conference`, `Kasse`, `credits.php`) VALUES +(1, -4, 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'), +(-1, NULL, 'Y', 'N', 'Y', 'N', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y'), +(-2, NULL, 'N', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y'), +(-3, NULL, 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y'), +(-4, NULL, 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'Y'), +(-5, NULL, 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'), --- -------------------------------------------------------- --- -------------------------------------------------------- -- -------------------------------------------------------- --- --- Tabellenstruktur für Tabelle `UserGroups` --- +-- +-- Tabellenstruktur für Tabelle `UserGroups` +-- -DROP TABLE IF EXISTS `UserGroups`; CREATE TABLE IF NOT EXISTS `UserGroups` ( `Name` varchar(35) NOT NULL, `UID` int(11) NOT NULL, - PRIMARY KEY (`UID`) + PRIMARY KEY (`UID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; --- --- Daten für Tabelle `UserGroups` --- +-- +-- Daten für Tabelle `UserGroups` +-- -INSERT INTO `UserGroups` (`Name`, `UID`) VALUES +INSERT INTO `UserGroups` (`Name`, `UID`) VALUES ('1-logout User', -1), ('2-Engel', -2), ('3-Shift Coordinator', -3), ('4-Erzengel', -4), ('5-Developer', -5); - diff --git a/includes/footer.php b/includes/footer.php index f56c299c..fdcf8e55 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -24,7 +24,7 @@ if ($_SESSION['Menu'] == "R") diff --git a/www-ssl/credits.php b/www-ssl/credits.php new file mode 100644 index 00000000..bbfa747d --- /dev/null +++ b/www-ssl/credits.php @@ -0,0 +1,18 @@ + +

The angelsystem has been (re)done by:

+
    +
  • ?
  • +
  • helios
  • +
  • msquare
  • +
+ diff --git a/www-ssl/css/base.css b/www-ssl/css/base.css index 0fe3e5a9..d87fc2f9 100644 --- a/www-ssl/css/base.css +++ b/www-ssl/css/base.css @@ -37,6 +37,14 @@ td, dt, dd { padding: 4px; } -.menu ul { +dt { + font-weight: bold; +} + +h4 { + padding: 0 4px; +} + +ul { margin: 0 0 0 20px; } -- cgit v1.2.3-54-g00ecf From bf64254625123ecd36662628862442ccf7671699 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 1 Jun 2011 15:37:41 +0200 Subject: fixed menu and credits link --- includes/footer.php | 2 +- includes/funktion_menu.php | 67 +++++++++++++++++++++++----------------------- 2 files changed, 35 insertions(+), 34 deletions(-) (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php index fdcf8e55..62260e55 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -24,7 +24,7 @@ if ($_SESSION['Menu'] == "R") diff --git a/includes/funktion_menu.php b/includes/funktion_menu.php index c751c764..387310aa 100644 --- a/includes/funktion_menu.php +++ b/includes/funktion_menu.php @@ -1,41 +1,42 @@ ". Get_Text("$MenuName/"). "
    "; - // Eintraege - foreach($_SESSION['CVS'] as $Key => $Entry) - if( strpos( $Key, ".php") > 0) - if( (strpos( "00$Key", "0$MenuName") > 0) || - ((strlen($MenuName)==0) && (strpos( "0$Key", "/") == 0) ) ) { - $TempName = Get_Text($Key, true); +// Menü generieren +function ShowMenu($MenuName) { + global $MenueTableStart, $MenueTableEnd, $_SESSION, $debug, $url, $ENGEL_ROOT; + $Gefunden = false; - if(( true||$debug) && (strlen($TempName)==0) ) - $TempName = "not found: \"$Key\""; + // Ueberschift + $Text = "

    " . Get_Text("$MenuName/") . "

      "; - if( $Entry == "Y") { - //zum absichtlkichen ausblenden von einträgen - if( strlen($TempName)>1) { - //sonderfälle: + // Eintraege + foreach ($_SESSION['CVS'] as $Key => $Entry) + if (strpos($Key, ".php") > 0) + if ((strpos("00$Key", "0$MenuName") > 0) || ((strlen($MenuName) == 0) && (strpos("0$Key", "/") == 0))) { + $TempName = Get_Text($Key, true); - if( $Key=="admin/faq.php") - $TempName .= " (". noAnswer(). ")"; - //ausgabe - $Text .= "\t\t\t
    • $TempName
    • \n"; - $Gefunden = true; - } - } - elseif( $debug ) - { - $Gefunden = true; - $Text .= "\t\t\t
    • $TempName ($Key)
    • \n"; - } - } - if( $Gefunden) - echo $MenueTableStart.$Text.$MenueTableEnd; -}//function ShowMenue + if ((true || $debug) && (strlen($TempName) == 0)) + $TempName = "not found: \"$Key\""; + if ($Entry == "Y") { + //zum absichtlkichen ausblenden von einträgen + if (strlen($TempName) > 1) { + //sonderfälle: + + if ($Key == "admin/faq.php") + $TempName .= " (" . noAnswer() . ")"; + elseif ($Key == "credits.php") continue; + //ausgabe + $Text .= "\t\t\t
    • $TempName
    • \n"; + $Gefunden = true; + } + } + elseif ($debug) { + $Gefunden = true; + $Text .= "\t\t\t
    • $TempName ($Key)
    • \n"; + } + } + if ($Gefunden) + echo $MenueTableStart . $Text . $MenueTableEnd; +} //function ShowMenue ?> -- cgit v1.2.3-54-g00ecf From ac8dbe835e368b9c7d97584c3722206b134db890 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Wed, 1 Jun 2011 17:41:49 +0200 Subject: html5, css rewrite --- includes/footer.php | 28 ++---------------- includes/funktion_flag.php | 4 +-- includes/header.php | 26 ++++------------- www-ssl/css/base.css | 71 ++++++++++++++++++++++++++++++++++------------ 4 files changed, 64 insertions(+), 65 deletions(-) (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php index 62260e55..8e5b35b9 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,27 +1,7 @@ - -
      -

      - " . Get_Text("back") . " "; -?> - -

      - - - - - - - + + -if ($_SESSION['Menu'] == "R") - include ("menu.php"); -?> - - -

      © copyleft | Kontakt | Credits
      @@ -30,8 +10,6 @@ if ($_SESSION['Menu'] == "R")

      diff --git a/includes/funktion_flag.php b/includes/funktion_flag.php index b394d18a..7e88466d 100644 --- a/includes/funktion_flag.php +++ b/includes/funktion_flag.php @@ -4,6 +4,6 @@ if (strpos($_SERVER["REQUEST_URI"], "?") > 0) else $URL = $_SERVER["REQUEST_URI"] . "?SetLanguage="; -echo 'DE'; -echo 'EN'; +echo '

      DE'; +echo 'EN

      '; ?> diff --git a/includes/header.php b/includes/header.php index 9fb882bf..750c82fb 100644 --- a/includes/header.php +++ b/includes/header.php @@ -57,8 +57,8 @@ if (isset ($_SESSION['CVS']["nonpublic/messages.php"])) { } } ?> - - +
      +
      - - - - - -
      + +
      "; -if (strlen($header) == 0) - echo "\n" . Get_Text($Page["Name"]) . "\n"; -else - echo "\n$header\n"; -?> -
      -
      -' . (strlen($header) == 0 ? Get_Text($Page["Name"]) : $header) . ''; +echo '
      '; if (isset ($_SESSION['UID'])) { if (isset ($_SESSION['oldurl'])) diff --git a/www-ssl/css/base.css b/www-ssl/css/base.css index b285c40d..27e20788 100644 --- a/www-ssl/css/base.css +++ b/www-ssl/css/base.css @@ -4,57 +4,92 @@ } body { - font-size: 14px; + background: #f0f0f0; + font-family: Arial; + sans-serif; + font-size: + 14px; } header { - display: block; - width: 100%; + display: block; + width: 100%; } footer { - display: block; - font-size: 12px; - text-align: center; - width: 100%; + clear: both; + display: block; + font-size: 12px; + text-align: center; + width: 100%; } footer p { - margin: 10px auto; + margin: 10px auto; } #logo { background: url('../pic/himmel.png') top left no-repeat; display: block; - height: 32px; - margin: 10px auto; + height: 32px; + margin: 10px auto; width: 380px; } #body { - margin: 0 5%; + margin: 0 5%; +} + +#menu { + float: left; + width: 200px; +} + +#content { + margin-left: 200px; +} + +a { + color: #000; } td, dt, dd { - padding: 4px; + padding: 4px; } dt { - font-weight: bold; + font-weight: bold; } dd { - margin-left: 20px; + margin-left: 20px; } -h4 { - padding: 0 4px; +h1, h4 { + font-size: 16px; + padding: 0 4px; } ul { - margin: 0 0 0 20px; + padding: 5px 0 5px 20px; +} + +nav { + margin: 0 10px 10px 0; +} + +nav, #content { + border: 1px solid #888; +} + +#content article { + padding: 10px; +} + +nav ul, nav p, #content article { + background: #fff; } a.sprache img { - margin: 5px; + margin: 5px; } -- cgit v1.2.3-54-g00ecf From a3be0289286c43d8656052217457d9162261ba90 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Thu, 2 Jun 2011 00:48:29 +0200 Subject: rewrite --- includes/UserCVS.php | 4 +- includes/footer.php | 2 +- includes/funktion_lang.php | 27 ----- includes/pages/guest_credits.php | 5 + includes/pages/guest_faq.php | 21 ++++ includes/pages/guest_login.php | 250 +++++++++++++++++++++++++++++++++++++++ includes/pages/guest_start.php | 13 ++ includes/sys_auth.php | 47 ++++++++ includes/sys_lang.php | 26 ++++ includes/sys_menu.php | 72 +++++++++++ includes/sys_mysql.php | 61 ++++++++++ includes/sys_page.php | 9 ++ includes/sys_template.php | 17 +++ templates/guest_credits.html | 12 ++ templates/guest_login_form.html | 22 ++++ templates/layout.html | 42 +++++++ www-ssl/credits.php | 18 --- www-ssl/css/base.css | 18 ++- www-ssl/index.php | 74 ++++++++++-- 19 files changed, 682 insertions(+), 58 deletions(-) delete mode 100644 includes/funktion_lang.php create mode 100644 includes/pages/guest_credits.php create mode 100644 includes/pages/guest_faq.php create mode 100644 includes/pages/guest_login.php create mode 100644 includes/pages/guest_start.php create mode 100644 includes/sys_auth.php create mode 100644 includes/sys_lang.php create mode 100644 includes/sys_menu.php create mode 100644 includes/sys_mysql.php create mode 100644 includes/sys_page.php create mode 100644 includes/sys_template.php create mode 100644 templates/guest_credits.html create mode 100644 templates/guest_login_form.html create mode 100644 templates/layout.html delete mode 100644 www-ssl/credits.php (limited to 'includes/footer.php') diff --git a/includes/UserCVS.php b/includes/UserCVS.php index 98a4fec7..b7fb412c 100644 --- a/includes/UserCVS.php +++ b/includes/UserCVS.php @@ -20,8 +20,8 @@ } // pagename ermitteln - $Page["Name"] = basename($_SERVER['PHP_SELF']); -// $Page["Name"] = str_replace($ENGEL_ROOT, '', $_SERVER['PHP_SELF']); +// $Page["Name"] = basename($_SERVER['PHP_SELF']); + $Page["Name"] = str_replace($ENGEL_ROOT, '', $_SERVER['PHP_SELF']); //recht fuer diese seite auslesen if(isset($_SESSION['CVS'][$Page["Name"]])) diff --git a/includes/footer.php b/includes/footer.php index 8e5b35b9..fdf00581 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -4,7 +4,7 @@ diff --git a/includes/funktion_lang.php b/includes/funktion_lang.php deleted file mode 100644 index 3e26ea33..00000000 --- a/includes/funktion_lang.php +++ /dev/null @@ -1,27 +0,0 @@ - diff --git a/includes/pages/guest_credits.php b/includes/pages/guest_credits.php new file mode 100644 index 00000000..89f68fde --- /dev/null +++ b/includes/pages/guest_credits.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php new file mode 100644 index 00000000..6b5eeeeb --- /dev/null +++ b/includes/pages/guest_faq.php @@ -0,0 +1,21 @@ +', $faq['Frage']); + list ($antwort_de, $antwort_en) = explode('
      ', $faq['Antwort']); + $html .= "
      "; + if ($_SESSION['Sprache'] == "DE") { + $html .= "
      " . $frage_de . "
      "; + $html .= "
      " . $antwort_de . "
      "; + } else { + $html .= "
      " . $frage_en . "
      "; + $html .= "
      " . $antwort_en . "
      "; + } + $html .= "
      "; + } + return $html; +} +?> diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php new file mode 100644 index 00000000..76a473df --- /dev/null +++ b/includes/pages/guest_login.php @@ -0,0 +1,250 @@ + 0) $error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick3"); + elseif (strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == false) $error = Get_Text("makeuser_error_mail"); + elseif (!is_numeric($_POST["Alter"])) $error = Get_Text("makeuser_error_Alter"); + elseif ($_POST["Passwort"] != $_POST["Passwort2"]) $error = Get_Text("makeuser_error_password1"); + elseif (strlen($_POST["Passwort"]) < 6) $error = Get_Text("makeuser_error_password2"); + else { + $_POST["Passwort"] = PassCrypt($_POST["Passwort"]); + unset ($_POST["Passwort2"]); + + $Erg = sql_query("INSERT INTO `User` (" . + "`Nick` , " . "`Name` , " . + "`Vorname`, " . "`Alter` , " . + "`Telefon`, " . "`DECT`, " . + "`Handy`, " . "`email`, " . + "`ICQ`, " . "`jabber`, " . + "`Size`, " . "`Passwort`, " . + "`Art` , " . "`kommentar`, " . + "`Hometown`," . "`CreateDate` ) " . + "VALUES ( " . + "'" . $_POST["Nick"] . "', " . "'" . $_POST["Name"] . "', " . + "'" . $_POST["Vorname"] . "', " . "'" . $_POST["Alter"] . "', " . + "'" . $_POST["Telefon"] . "', " . "'" . $_POST["DECT"] . "', " . + "'" . $_POST["Handy"] . "', " . "'" . $_POST["email"] . "', " . + "'" . $_POST["ICQ"] . "', " . "'" . $_POST["jabber"] . "', " . + "'" . $_POST["Size"] . "', " . "'" . $_POST["Passwort"] . "', " . + "'" . $_POST["Art"] . "', " . "'" . $_POST["kommentar"] . "', " . + "'" . $_POST["Hometown"] . "'," . "NOW())"); + + if ($Erg != 1) { + $html .= Get_Text("makeuser_error_write1") . "
      \n"; + $error = sql_error(); + } else { + $html .= "

      " . Get_Text("makeuser_writeOK") . "\n"; + + $SQL2 = "SELECT `UID` FROM `User` WHERE `Nick`='" . $_POST["Nick"] . "';"; + $Erg2 = mysql_query($SQL2, $con); + $Data = mysql_fetch_array($Erg2); + + $SQL3 = "INSERT INTO `UserCVS` (`UID`) VALUES ('" . $Data["UID"] . "');"; + $Erg3 = mysql_query($SQL3, $con); + + if ($Erg3 != 1) { + $html .= "

      " . Get_Text("makeuser_error_write2") . "
      \n"; + $error = mysql_error($con); + } else { + $html .= Get_Text("makeuser_writeOK2") . "
      \n"; + $html .= "

      " . Get_Text("makeuser_writeOK3") . "

      \n"; + } + + $html .= Get_Text("makeuser_writeOK4") . "

      \n

      \n"; + $success = "any"; + + if (isset ($SubscribeMailinglist)) { + if ($_POST["subscribe-mailinglist"] == "") { + $headers = "From: " . $_POST["email"] . "\r\n" . + "X-Mailer: PHP/" . phpversion(); + mail($SubscribeMailinglist, "subject", "message", $headers); + } + } + } + } + + if (isset ($error)) + $html .= error($error); + } else { + // init vars + $_POST["Nick"] = ""; + $_POST["Name"] = ""; + $_POST["Vorname"] = ""; + $_POST["Alter"] = ""; + $_POST["Telefon"] = ""; + $_POST["DECT"] = ""; + $_POST["Handy"] = ""; + $_POST["email"] = ""; + $_POST["subscribe-mailinglist"] = ""; + $_POST["ICQ"] = ""; + $_POST["jabber"] = ""; + $_POST["Size"] = "L"; + $_POST["Art"] = ""; + $_POST["kommentar"] = ""; + $_POST["Hometown"] = ""; + } + + if ($success == "none") { + $html .= "

      " . Get_Text("makeuser_text0") . "

      \n"; + $html .= "

      " . Get_Text("makeuser_text1") . "

      \n"; + $html .= "
      \n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + + if (isset ($SubscribeMailinglist)) + $html .= "\n"; + + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "\n"; + $html .= "
      " . Get_Text("makeuser_Nickname") . "*
      " . Get_Text("makeuser_Nachname") . "
      " . Get_Text("makeuser_Vorname") . "
      " . Get_Text("makeuser_Alter") . "
      " . Get_Text("makeuser_Telefon") . "
      " . Get_Text("makeuser_DECT") . "\n"; + $html .= "
      " . Get_Text("makeuser_Handy") . "
      " . Get_Text("makeuser_E-Mail") . "*
      " . Get_Text("makeuser_subscribe-mailinglist") . "($SubscribeMailinglist)
      ICQ
      jabber
      " . Get_Text("makeuser_T-Shirt") . " Grösse*\n"; + $html .= "\n"; + $html .= "
      " . Get_Text("makeuser_Hometown") . "
      " . Get_Text("makeuser_Passwort") . "*
      " . Get_Text("makeuser_Passwort2") . "*
       
      \n"; + $html .= "
      \n"; + $html .= Get_Text("makeuser_text3"); + } + return $html; +} + +function guest_logout() { + unset ($_SESSION['uid']); + header("Location: " . page_link_to("start")); +} + +function guest_login() { + global $user; + unset ($_SESSION['uid']); + + $html = ""; + if (isset ($_REQUEST['login_submit'])) { + $login_user = sql_select("SELECT * FROM `User` WHERE `Nick`='" . sql_escape($_REQUEST["user"]) . "'"); + + if (count($login_user) == 1) { // Check, ob User angemeldet wird... + $login_user = $login_user[0]; + if ($login_user["Passwort"] == PassCrypt($_REQUEST["password"])) { // Passwort ok... + $_SESSION['uid'] = $login_user['UID']; + $_SESSION['Sprache'] = $login_user['Sprache']; + header("Location: " . page_link_to("news")); + } else { // Passwort nicht ok... + $ErrorText = "pub_index_pass_no_ok"; + } // Ende Passwort-Check + } else { // Anzahl der User in User-Tabelle <> 1 --> keine Anmeldung + if ($user_anz == 0) + $ErrorText = "pub_index_User_unset"; + else + $ErrorText = "pub_index_User_more_as_one"; + } // Ende Check, ob User angemeldet wurde} + } + if (isset ($ErrorText)) + $html .= error(Get_Text($ErrorText)); + $html .= guest_login_form(); + return $html; +} + +function guest_login_form() { + return template_render("../templates/guest_login_form.html", array ( + 'link' => page_link_to("login"), + 'nick' => Get_Text("index_lang_nick"), + 'pass' => Get_Text("index_lang_pass"), + 'send' => Get_Text("index_lang_send") + )); +} +?> \ No newline at end of file diff --git a/includes/pages/guest_start.php b/includes/pages/guest_start.php new file mode 100644 index 00000000..286511f2 --- /dev/null +++ b/includes/pages/guest_start.php @@ -0,0 +1,13 @@ +" . Get_Text("index_text1") . "

      \n"; + $html .= "

      " . Get_Text("index_text2") . "

      \n"; + $html .= "

      " . Get_Text("index_text3") . "

      \n"; + + $html .= guest_login_form(); + + $html .= "
      " . Get_Text("index_text4") . "
      "; + return $html; +} +?> \ No newline at end of file diff --git a/includes/sys_auth.php b/includes/sys_auth.php new file mode 100644 index 00000000..1c15122e --- /dev/null +++ b/includes/sys_auth.php @@ -0,0 +1,47 @@ + 0) { + // User ist eingeloggt, Datensatz zur Verfügung stellen und Timestamp updaten + list ($user) = $user; + sql_query("UPDATE `User` SET " . "`lastLogIn` = '" . time() . "'" . " WHERE `UID` = '" . $_SESSION['uid'] . "' LIMIT 1;"); + } else + unset ($_SESSION['uid']); + } + + load_privileges(); +} + +function load_privileges() { + global $privileges, $user; + + $privileges = array (); + if (isset ($user)) { + $user_privs = sql_select("SELECT `Privileges`.`name` FROM `User` JOIN `UserGroups` ON (`User`.`UID` = `UserGroups`.`uid`) JOIN `GroupPrivileges` ON (`UserGroups`.`group_id` = `GroupPrivileges`.`group_id`) JOIN `Privileges` ON (`GroupPrivileges`.`privilege_id` = `Privileges`.`id`) WHERE `User`.`UID`=" . sql_escape($user['UID']) . ";"); + foreach ($user_privs as $user_priv) + $privileges[] = $user_priv['name']; + } else { + $guest_privs = sql_select("SELECT * FROM `GroupPrivileges` JOIN `Privileges` ON (`GroupPrivileges`.`privilege_id` = `Privileges`.`id`) WHERE `group_id`=-1;"); + foreach ($guest_privs as $guest_priv) + $privileges[] = $guest_priv['name']; + } +} + +function PassCrypt($passwort) { + global $crypt_system; + + switch ($crypt_system) { + case "crypt" : + return "{crypt}" . crypt($passwort, "77"); + case "md5" : + return md5($passwort); + } +} +?> \ No newline at end of file diff --git a/includes/sys_lang.php b/includes/sys_lang.php new file mode 100644 index 00000000..833d00b8 --- /dev/null +++ b/includes/sys_lang.php @@ -0,0 +1,26 @@ + diff --git a/includes/sys_menu.php b/includes/sys_menu.php new file mode 100644 index 00000000..8c993d1b --- /dev/null +++ b/includes/sys_menu.php @@ -0,0 +1,72 @@ +

      ' . Get_Text('/') . '

      '; + return $menu; +} + +function make_menu() { + return make_navigation() . make_onlineusers() . make_langselect(); +} + +function make_onlineusers() { + global $privileges, $user; + $html = ''; + return $html; +} + +function make_langselect() { + if (strpos($_SERVER["REQUEST_URI"], "?") > 0) + $URL = $_SERVER["REQUEST_URI"] . "&SetLanguage="; + else + $URL = $_SERVER["REQUEST_URI"] . "?SetLanguage="; + + $html = '

      DE'; + $html .= 'EN

      '; + return ''; +} +?> \ No newline at end of file diff --git a/includes/sys_mysql.php b/includes/sys_mysql.php new file mode 100644 index 00000000..c076be7c --- /dev/null +++ b/includes/sys_mysql.php @@ -0,0 +1,61 @@ + diff --git a/includes/sys_page.php b/includes/sys_page.php new file mode 100644 index 00000000..ab8b05e2 --- /dev/null +++ b/includes/sys_page.php @@ -0,0 +1,9 @@ +' . $msg . '

      '; +} + +function success($msg) { + return '

      ' . $msg . '

      '; +} +?> \ No newline at end of file diff --git a/includes/sys_template.php b/includes/sys_template.php new file mode 100644 index 00000000..ab613c07 --- /dev/null +++ b/includes/sys_template.php @@ -0,0 +1,17 @@ + $content) { + $template = str_replace("%" . $name . "%", $content, $template); + } + return $template; + } else { + die('Cannot find template file «' . $file . '».'); + } +} +?> \ No newline at end of file diff --git a/templates/guest_credits.html b/templates/guest_credits.html new file mode 100644 index 00000000..a248d431 --- /dev/null +++ b/templates/guest_credits.html @@ -0,0 +1,12 @@ +

      The angelsystem has been (re)done by:

      +
        +
      • + ? +
      • +
      • + helios +
      • +
      • + msquare +
      • +
      diff --git a/templates/guest_login_form.html b/templates/guest_login_form.html new file mode 100644 index 00000000..c0cef263 --- /dev/null +++ b/templates/guest_login_form.html @@ -0,0 +1,22 @@ +
      + + + + + + + + + +
      + %nick% + + +
      + %pass% + + +
      +
      + +
      \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 00000000..0eb67e5b --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,42 @@ + + + + %title% - Engelsystem + + + + + + + + + + + + + +
      + +
      +
      + +
      +

      %title%

      +
      + %content% +
      +
      +
      +
      +

      + © copyleft | Contact + | Credits +
      + This is hell. Temporarily. +

      +
      + + diff --git a/www-ssl/credits.php b/www-ssl/credits.php deleted file mode 100644 index bbfa747d..00000000 --- a/www-ssl/credits.php +++ /dev/null @@ -1,18 +0,0 @@ - -

      The angelsystem has been (re)done by:

      -
        -
      • ?
      • -
      • helios
      • -
      • msquare
      • -
      - diff --git a/www-ssl/css/base.css b/www-ssl/css/base.css index 6c0bc298..808fb512 100644 --- a/www-ssl/css/base.css +++ b/www-ssl/css/base.css @@ -81,8 +81,16 @@ nav { padding: 10px; } +p { + padding: 0 0 10px 0; +} + +#menu p { + padding: 4px; +} + a.sprache img { - margin: 5px; + margin-right: 5px; } .background { @@ -96,3 +104,11 @@ a.sprache img { .content { background: #fff; } + +.error { + color: #f00; +} + +.success { + color: #090; +} diff --git a/www-ssl/index.php b/www-ssl/index.php index cdec1559..5126981c 100644 --- a/www-ssl/index.php +++ b/www-ssl/index.php @@ -1,17 +1,73 @@ " . Get_Text("index_text1") . "

      \n"; -echo "

      " . Get_Text("index_text2") . "

      \n"; -echo "

      " . Get_Text("index_text3") . "

      \n"; +session_start(); -include "includes/login_eingabefeld.php"; +sql_connect($config['host'], $config['user'], $config['pw'], $config['db']); -echo "
      " . Get_Text("index_text4") . "
      "; +load_auth(); -include "includes/footer.php"; +// Gewünschte Seite/Funktion +$p = "start"; +if (isset ($_REQUEST['p'])) + $p = $_REQUEST['p']; + +$title = Get_Text($p); +$content = ""; + +// Recht dafür vorhanden? +if (in_array($p, $privileges)) { + if ($p == "news") { + //require_once ('includes/pages/user_news.php'); + $content = "news"; + } + elseif ($p == "login") { + require_once ('includes/pages/guest_login.php'); + $content = guest_login(); + } + elseif ($p == "register") { + require_once ('includes/pages/guest_login.php'); + $content = guest_register(); + } + elseif ($p == "logout") { + require_once ('includes/pages/guest_login.php'); + $content = guest_logout(); + } else { + require_once ('includes/pages/guest_start.php'); + $content = guest_start(); + } +} +elseif ($p == "credits") { + require_once ('includes/pages/guest_credits.php'); + $content = guest_credits(); +} +elseif ($p == "faq") { + require_once ('includes/pages/guest_faq.php'); + $content = guest_faq(); +} else { + // Wenn schon eingeloggt, keine-Berechtigung-Seite anzeigen + if (isset ($user)) { + $title = Get_Text("no_access_title"); + $content = Get_Text("no_access_text"); + } else { + // Sonst zur Loginseite leiten + header("Location: " . page_link_to("login")); + } +} + +echo template_render('../templates/layout.html', array ( + 'theme' => isset ($user) ? $user['color'] : $default_theme, + 'title' => $title, + 'menu' => make_menu(), + 'content' => $content +)); ?> -- cgit v1.2.3-54-g00ecf From 06497b3a5387f30ea140562cc71e371b2ec1e131 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Thu, 2 Jun 2011 01:18:08 +0200 Subject: cleanup --- includes/footer.php | 18 ---- includes/funktion_activeUser.php | 34 ------- includes/funktion_faq.php | 10 -- includes/funktion_flag.php | 9 -- includes/header_start.php | 40 -------- includes/login_eingabefeld.php | 17 ---- includes/pages/guest_faq.php | 9 ++ includes/secure.php | 25 ----- includes/sys_auth.php | 8 ++ www-ssl/css/style.css.old | 53 ---------- www-ssl/css/style.css.old2 | 69 ------------- www-ssl/css/style1.css.old | 79 --------------- www-ssl/faq.php | 31 ------ www-ssl/logout.php | 15 --- www-ssl/makeuser.php | 214 --------------------------------------- 15 files changed, 17 insertions(+), 614 deletions(-) delete mode 100644 includes/footer.php delete mode 100644 includes/funktion_activeUser.php delete mode 100644 includes/funktion_faq.php delete mode 100644 includes/funktion_flag.php delete mode 100644 includes/header_start.php delete mode 100644 includes/login_eingabefeld.php delete mode 100644 includes/secure.php delete mode 100644 www-ssl/css/style.css.old delete mode 100644 www-ssl/css/style.css.old2 delete mode 100644 www-ssl/css/style1.css.old delete mode 100644 www-ssl/faq.php delete mode 100644 www-ssl/logout.php delete mode 100644 www-ssl/makeuser.php (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php deleted file mode 100644 index fdf00581..00000000 --- a/includes/footer.php +++ /dev/null @@ -1,18 +0,0 @@ -
      - - - - - - - - - diff --git a/includes/funktion_activeUser.php b/includes/funktion_activeUser.php deleted file mode 100644 index 631ec2d1..00000000 --- a/includes/funktion_activeUser.php +++ /dev/null @@ -1,34 +0,0 @@ -Engel online"; - -$SQL = "SELECT UID, Nick, lastLogIn " . -"FROM User " . -"WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "' AND NOT (UID=" . $_SESSION['UID'] . ")) " . -"ORDER BY lastLogIn DESC;"; - -$Erg = mysql_query($SQL, $con); - -echo "
        "; - -for ($i = 0; $i < mysql_num_rows($Erg); $i++) { - echo "
      • "; - - if ($_SESSION['UID'] > 0) - echo DisplayAvatar(mysql_result($Erg, $i, "UID")); - - // Show Admin Page - echo funktion_isLinkAllowed_addLink_OrLinkText("admin/userChangeNormal.php?enterUID=" . mysql_result($Erg, $i, "UID") . "&Type=Normal", mysql_result($Erg, $i, "Nick")); - - $timestamp = mktime($hour, $minute, $second, $month, $day, $year); - - $Tlog = time() - mysql_result($Erg, $i, "lastLogIn"); - - echo " " . date("i:s", $Tlog); - echo "
      • \n"; -} - -echo "
      "; -?> diff --git a/includes/funktion_faq.php b/includes/funktion_faq.php deleted file mode 100644 index e9f09e7c..00000000 --- a/includes/funktion_faq.php +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/includes/funktion_flag.php b/includes/funktion_flag.php deleted file mode 100644 index 6b4e2f06..00000000 --- a/includes/funktion_flag.php +++ /dev/null @@ -1,9 +0,0 @@ - 0) - $URL = $_SERVER["REQUEST_URI"] . "&SetLanguage="; -else - $URL = $_SERVER["REQUEST_URI"] . "?SetLanguage="; - -echo '

      DE'; -echo 'EN

      '; -?> diff --git a/includes/header_start.php b/includes/header_start.php deleted file mode 100644 index 4795cee3..00000000 --- a/includes/header_start.php +++ /dev/null @@ -1,40 +0,0 @@ - 0)) { - echo "" . $SystemDisableMessage . ""; - echo "" . $SystemDisableMessage . "\n"; - die(); -} - -if (!isset ($_SESSION)) - session_start(); - -include "secure.php"; - -if (!isset ($_SESSION['IP'])) - $_SESSION['IP'] = $_SERVER['REMOTE_ADDR']; - -if (isset ($_SESSION['UID']) && ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) { - session_destroy(); - header("Location: " . $url . $ENGEL_ROOT); -} - -include "UserCVS.php"; - -// update LASTlogin -if (isset ($_SESSION['UID'])) { - $SQLlastLogIn = "UPDATE `User` SET " . - "`lastLogIn` = '" . time() . "'" . - " WHERE `UID` = '" . $_SESSION['UID'] . "' LIMIT 1;"; - mysql_query($SQLlastLogIn, $con); -} -?> diff --git a/includes/login_eingabefeld.php b/includes/login_eingabefeld.php deleted file mode 100644 index 9e10271d..00000000 --- a/includes/login_eingabefeld.php +++ /dev/null @@ -1,17 +0,0 @@ - - -
      - - - - - - - - - -
      -
      "> -
      diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php index 6b5eeeeb..48e75d16 100644 --- a/includes/pages/guest_faq.php +++ b/includes/pages/guest_faq.php @@ -18,4 +18,13 @@ function guest_faq() { } return $html; } + +function noAnswer() { + global $con; + + $SQL = "SELECT UID FROM Questions WHERE `AID`='0'"; + $Res = mysql_query($SQL, $con); + + return mysql_num_rows($Res); +} ?> diff --git a/includes/secure.php b/includes/secure.php deleted file mode 100644 index 1d1a9e46..00000000 --- a/includes/secure.php +++ /dev/null @@ -1,25 +0,0 @@ -\n"; - - foreach ($_GET as $k => $v) { - $v = htmlentities($v, ENT_QUOTES); - preg_replace('/([\'"`\'])/', '', $v); - $_GET[$k] = $v; - - if($debug) - echo "GET $k=\"$v\"
      "; - } - - foreach ($_POST as $k => $v) { - $v = htmlentities($v, ENT_QUOTES); - preg_replace('/([\'"`\'])/', '', $v); - $_POST[$k] = $v; - - if($debug) - echo "POST $k=\"$v\"
      "; - } - - if($debug) - echo "secure.php END
      \n"; -?> diff --git a/includes/sys_auth.php b/includes/sys_auth.php index 1c15122e..68e336b0 100644 --- a/includes/sys_auth.php +++ b/includes/sys_auth.php @@ -5,6 +5,14 @@ function load_auth() { global $user; + if (!isset ($_SESSION['IP'])) + $_SESSION['IP'] = $_SERVER['REMOTE_ADDR']; + + if ($_SESSION['IP'] != $_SERVER['REMOTE_ADDR']) { + session_destroy(); + header("Location: " . link_to_page($start)); + } + $user = null; if (isset ($_SESSION['uid'])) { $user = sql_select("SELECT * FROM `User` WHERE `UID`=" . sql_escape($_SESSION['uid']) . " LIMIT 1"); diff --git a/www-ssl/css/style.css.old b/www-ssl/css/style.css.old deleted file mode 100644 index 254fb1b7..00000000 --- a/www-ssl/css/style.css.old +++ /dev/null @@ -1,53 +0,0 @@ -H1 { - font-family : Helvetica,Arial,Verdana; - font-size : 25pt; -} -H4 { - font-family : Arial,Verdana; -} -A { - font-family : Arial; - font-size : small; - text-decoration : none; - color : #0000a0; -} -A:Visited { - font-family : Arial; - font-size : small; - color : #0000a0; - text-decoration : none; -} - A:Active { - text-decoration : none; - font-family : Arial; - font-size : small; -} -A:Hover { - font-family : Arial; - font-size : small; - color : #0000a0; - text-decoration : underline; - font-weight : bold; -} -B { - font-weight : bold; - font-family : Arial; - font-size : small; -} - -TD { - font-size : small; - font-family : Arial; - padding-left : 1cm; -} - -BODY { - font-size : small; - font-family : Arial; - background-color : #f3b115; - color : navy; -} -a.title { - color:#ffa000; -} - diff --git a/www-ssl/css/style.css.old2 b/www-ssl/css/style.css.old2 deleted file mode 100644 index 9f7c0c90..00000000 --- a/www-ssl/css/style.css.old2 +++ /dev/null @@ -1,69 +0,0 @@ -H1 { - font-family : Helvetica,Arial,Verdana; - font-size : 25pt; -} - -H4 { - font-family : Arial,Verdana; -} - -A { - font-family : Arial; - font-size : small; - text-decoration : none; - color : #778899; -} - -A:Visited { - font-family : Arial; - font-size : small; - color : #778899; - text-decoration : none; -} - -A:Active { - text-decoration : none; - font-family : Arial; - font-size : small; -} - -A:Hover { - font-family : Arial; - font-size : small; - color : #778899; - text-decoration : underline; - font-weight : bold; -} - -B { - font-weight : bold; - font-family : Arial; - font-size : small; -} - -TD { - font-size : small; - font-family : Arial; -} - -BODY { - font-size : small; - font-family : Arial; - background-color : #f3b115; - color : navy; -} - - -a.title { -color:#ffa000; -} - - -p.question { - font-weight: bold; -} - -p.answer { - margin-left: 30px; - margin-right: 30px; -} diff --git a/www-ssl/css/style1.css.old b/www-ssl/css/style1.css.old deleted file mode 100644 index 4a597f35..00000000 --- a/www-ssl/css/style1.css.old +++ /dev/null @@ -1,79 +0,0 @@ - -body { - font-family: Arial; - background-color: #3e9fef; - color: #000000; - font-size: small -} - -a { - text-decoration: none; - color: #304930 -} - -td { - font-size: small -} - -a:active, a:hover { - font-weight: bold -} - -li { - font-size: small -} - -.content { - background-color: #bdd9ef; - color: #000000 -} - -.contenttopic { - font-weight: bold; - font-size: small; - color: #fe961e; - background-color: #157cc1 -} - -.border { - background-color: #050509 -} - -.menu { - background-color: #bdd9ef; - color: #000022; - font-size: small -} -h4.menu { - font-weight: bold; - font-size: small; - color: #3e9fef -} - -.linkbox { - background-color: #ffffff -} - -.linkboxtitle { - font-weight: bold; - background-color: #000000; - color: #bdd9ef -} - -.question { - font-weight: bold; - font-size: 9pt -} - -.engeltreffen { - font-weight: bold; - font-size: 9pt; - color: #ff0000; -} - -.answer { - font-size: 9pt; -} -.comment { - font-size : 6pt; -} diff --git a/www-ssl/faq.php b/www-ssl/faq.php deleted file mode 100644 index 8a7b3ede..00000000 --- a/www-ssl/faq.php +++ /dev/null @@ -1,31 +0,0 @@ -', mysql_result($Erg, $n, "Frage")); - list ($antwort_de, $antwort_en) = split('
      ', mysql_result($Erg, $n, "Antwort")); - echo "
      "; - if ($_SESSION['Sprache'] == "DE") { - echo "
      " . $frage_de . "
      "; - echo "
      " . $antwort_de . "
      "; - } else { - echo "
      " . $frage_en . "
      "; - echo "
      " . $antwort_en . "
      "; - } - echo "
      "; - } -} - -include "includes/footer.php"; -?> diff --git a/www-ssl/logout.php b/www-ssl/logout.php deleted file mode 100644 index 12b284f9..00000000 --- a/www-ssl/logout.php +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/www-ssl/makeuser.php b/www-ssl/makeuser.php deleted file mode 100644 index a67f4bd5..00000000 --- a/www-ssl/makeuser.php +++ /dev/null @@ -1,214 +0,0 @@ - 0) $error = Get_Text("makeuser_error_nick1") . $_POST["Nick"] . Get_Text("makeuser_error_nick3"); - elseif (strlen($_POST["email"]) <= 6 && strstr($_POST["email"], "@") == FALSE && strstr($_POST["email"], ".") == false) $error = Get_Text("makeuser_error_mail"); - elseif (!is_numeric($_POST["Alter"])) $error = Get_Text("makeuser_error_Alter"); - elseif ($_POST["Passwort"] != $_POST["Passwort2"]) $error = Get_Text("makeuser_error_password1"); - elseif (strlen($_POST["Passwort"]) < 6) $error = Get_Text("makeuser_error_password2"); - else { - $_POST["Passwort"] = PassCrypt($_POST["Passwort"]); - unset ($_POST["Passwort2"]); - - $SQL = "INSERT INTO `User` (" . - "`Nick` , " . "`Name` , " . - "`Vorname`, " . "`Alter` , " . - "`Telefon`, " . "`DECT`, " . - "`Handy`, " . "`email`, " . - "`ICQ`, " . "`jabber`, " . - "`Size`, " . "`Passwort`, " . - "`Art` , " . "`kommentar`, " . - "`Hometown`," . "`CreateDate` ) " . - "VALUES ( " . - "'" . $_POST["Nick"] . "', " . "'" . $_POST["Name"] . "', " . - "'" . $_POST["Vorname"] . "', " . "'" . $_POST["Alter"] . "', " . - "'" . $_POST["Telefon"] . "', " . "'" . $_POST["DECT"] . "', " . - "'" . $_POST["Handy"] . "', " . "'" . $_POST["email"] . "', " . - "'" . $_POST["ICQ"] . "', " . "'" . $_POST["jabber"] . "', " . - "'" . $_POST["Size"] . "', " . "'" . $_POST["Passwort"] . "', " . - "'" . $_POST["Art"] . "', " . "'" . $_POST["kommentar"] . "', " . - "'" . $_POST["Hometown"] . "'," . "NOW());"; - $Erg = mysql_query($SQL, $con); - - if ($Erg != 1) { - echo Get_Text("makeuser_error_write1") . "
      \n"; - $error = mysql_error($con); - } else { - echo "

      " . Get_Text("makeuser_writeOK") . "\n"; - - $SQL2 = "SELECT `UID` FROM `User` WHERE `Nick`='" . $_POST["Nick"] . "';"; - $Erg2 = mysql_query($SQL2, $con); - $Data = mysql_fetch_array($Erg2); - - $SQL3 = "INSERT INTO `UserCVS` (`UID`) VALUES ('" . $Data["UID"] . "');"; - $Erg3 = mysql_query($SQL3, $con); - - if ($Erg3 != 1) { - echo "

      " . Get_Text("makeuser_error_write2") . "
      \n"; - $error = mysql_error($con); - } else { - echo Get_Text("makeuser_writeOK2") . "
      \n"; - echo "

      " . Get_Text("makeuser_writeOK3") . "

      \n"; - } - - echo Get_Text("makeuser_writeOK4") . "

      \n

      \n"; - $success = "any"; - - if (isset ($SubscribeMailinglist)) { - if ($_POST["subscribe-mailinglist"] == "") { - $headers = "From: " . $_POST["email"] . "\r\n" . - "X-Mailer: PHP/" . phpversion(); - mail($SubscribeMailinglist, "subject", "message", $headers); - } - } - } - } - - if (isset ($error)) - echo "

      \n" . $error . "\n

      \n\n"; -} else { - // init vars - $_POST["Nick"] = ""; - $_POST["Name"] = ""; - $_POST["Vorname"] = ""; - $_POST["Alter"] = ""; - $_POST["Telefon"] = ""; - $_POST["DECT"] = ""; - $_POST["Handy"] = ""; - $_POST["email"] = ""; - $_POST["subscribe-mailinglist"] = ""; - $_POST["ICQ"] = ""; - $_POST["jabber"] = ""; - $_POST["Size"] = "L"; - $_POST["Art"] = ""; - $_POST["kommentar"] = ""; - $_POST["Hometown"] = ""; -} - -if ($success == "none") { - echo "

      " . Get_Text("makeuser_text0") . "

      \n"; - echo "

      " . Get_Text("makeuser_text1") . "

      \n"; - echo "
      \n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - - if (isset ($SubscribeMailinglist)) - echo "\n"; - - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "
      " . Get_Text("makeuser_Nickname") . "*
      " . Get_Text("makeuser_Nachname") . "
      " . Get_Text("makeuser_Vorname") . "
      " . Get_Text("makeuser_Alter") . "
      " . Get_Text("makeuser_Telefon") . "
      " . Get_Text("makeuser_DECT") . "\n"; - echo "
      " . Get_Text("makeuser_Handy") . "
      " . Get_Text("makeuser_E-Mail") . "*
      " . Get_Text("makeuser_subscribe-mailinglist") . "($SubscribeMailinglist)
      ICQ
      jabber
      " . Get_Text("makeuser_T-Shirt") . " Grösse*\n"; - echo "\n"; - echo "
      " . Get_Text("makeuser_Engelart") . "\n"; - echo "\n"; - echo "
      " . Get_Text("makeuser_text2") . "
      " . Get_Text("makeuser_Hometown") . "
      " . Get_Text("makeuser_Passwort") . "*
      " . Get_Text("makeuser_Passwort2") . "*
       
      \n"; - echo "
      \n"; - Print_Text("makeuser_text3"); -} - -include "includes/footer.php"; -?> -- cgit v1.2.3-54-g00ecf