summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-08-31 21:16:16 +0200
committerAngelo Cuccato <cuccato@web.de>2010-08-31 21:16:16 +0200
commit2ca2400b779484ff025b0705ff4fb84ead7c4b20 (patch)
tree4e39b0b4cc6bfe705015824c7aed6b3c5d28ccce
parent18060e60cc94c02df9680773bf5cafd35fe2aecf (diff)
clean url handling
-rwxr-xr-xdefault-conf/var_www_includes/config.php2
-rwxr-xr-xincludes/error_handler.php2
-rwxr-xr-xincludes/footer.php10
-rw-r--r--includes/funktion_flag.php4
-rwxr-xr-xincludes/funktion_menu.php2
-rwxr-xr-xincludes/funktion_user.php48
-rwxr-xr-xincludes/header.php77
-rwxr-xr-xincludes/header_start.php15
-rwxr-xr-xincludes/login_eingabefeld.php33
l---------services/inc1
-rwxr-xr-xwww-ssl/logout.php2
-rwxr-xr-xwww-ssl/nonpublic/einstellungen.php8
-rwxr-xr-xwww-ssl/nonpublic/index.php2
-rwxr-xr-xwww-ssl/nonpublic/myschichtplan_ical.php2
-rwxr-xr-xwww-ssl/nonpublic/news_output.php2
-rwxr-xr-xwww-ssl/nonpublic/schichtplan_beamer.php2
16 files changed, 105 insertions, 107 deletions
diff --git a/default-conf/var_www_includes/config.php b/default-conf/var_www_includes/config.php
index 68b51acc..54dbd5f3 100755
--- a/default-conf/var_www_includes/config.php
+++ b/default-conf/var_www_includes/config.php
@@ -1,6 +1,6 @@
<?PHP
// Adresse des Webservers
-$url = "https://SEDENGELURL/";
+$url = "https://SEDENGELURL";
// Startverzeichnis des Engelhome
$ENGEL_ROOT = "/";
diff --git a/includes/error_handler.php b/includes/error_handler.php
index 00a76058..10f27d58 100755
--- a/includes/error_handler.php
+++ b/includes/error_handler.php
@@ -46,8 +46,6 @@
if (!$error_messages) return;
- $url = $_SERVER['PHP_SELF'];
-
$message = "";
foreach($error_messages as $value)
$message .= $value."\n";
diff --git a/includes/footer.php b/includes/footer.php
index 47dbfce9..f65e8a7e 100755
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -1,9 +1,5 @@
<?PHP
-if( $Page["ShowTabel"]=="Y" )
-{
-//############################### ShowTable Start ##############################
-
?>
@@ -57,11 +53,5 @@ if( $_SESSION['Menu'] =="R") include("menu.php");
</div>
-<?PHP
-//############################### ShowTable Start ##############################
-} /* if (ShowTabel....*/
-?>
-
-
</BODY>
</HTML>
diff --git a/includes/funktion_flag.php b/includes/funktion_flag.php
index 08c29ac1..56d8a993 100644
--- a/includes/funktion_flag.php
+++ b/includes/funktion_flag.php
@@ -6,7 +6,7 @@ if( strpos( $_SERVER["REQUEST_URI"], "?") >0)
else
$URL = $_SERVER["REQUEST_URI"]. "?SetLanguage=";
-echo "<a href=\"". $URL. "DE\"><img src=\"". $url. substr( $ENGEL_ROOT, 1). "pic/flag/de.gif\" alt=\"DE\"></a> ";
-echo "<a href=\"". $URL. "EN\"><img src=\"". $url. substr( $ENGEL_ROOT, 1). "pic/flag/en.gif\" alt=\"EN\"></a> ";
+echo "<a href=\"". $URL. "DE\"><img src=\"". $url. $ENGEL_ROOT. "pic/flag/de.gif\" alt=\"DE\"></a> ";
+echo "<a href=\"". $URL. "EN\"><img src=\"". $url. $ENGEL_ROOT. "pic/flag/en.gif\" alt=\"EN\"></a> ";
?>
diff --git a/includes/funktion_menu.php b/includes/funktion_menu.php
index e728e339..87196ede 100755
--- a/includes/funktion_menu.php
+++ b/includes/funktion_menu.php
@@ -27,7 +27,7 @@ function ShowMenu( $MenuName)
if( $Key=="admin/faq.php")
$TempName .= " (". noAnswer(). ")";
//ausgabe
- $Text .= "\t\t\t<li><a href=\"". $url. substr( $ENGEL_ROOT, 1). $Key. "\">$TempName</a></li>\n";
+ $Text .= "\t\t\t<li><a href=\"". $url. $ENGEL_ROOT. $Key. "\">$TempName</a></li>\n";
$Gefunden = TRUE;
}
}
diff --git a/includes/funktion_user.php b/includes/funktion_user.php
index 742b2624..58ee6ea4 100755
--- a/includes/funktion_user.php
+++ b/includes/funktion_user.php
@@ -41,29 +41,31 @@ function TID2Type($TID)
}
-function ReplaceSmilies($eckig) {
+function ReplaceSmilies($eckig)
+{
+ global $url, $ENGEL_ROOT;
$neueckig = $eckig;
- $neueckig = str_replace(";o))","<img src=\"/pic/smiles/icon_redface.gif\">",$neueckig);
- $neueckig = str_replace(":-))","<img src=\"/pic/smiles/icon_redface.gif\">",$neueckig);
- $neueckig = str_replace(";o)","<img src=\"/pic/smiles/icon_wind.gif\">",$neueckig);
- $neueckig = str_replace(":)","<img src=\"/pic/smiles/icon_smile.gif\">",$neueckig);
- $neueckig = str_replace(":-)","<img src=\"/pic/smiles/icon_smile.gif\">",$neueckig);
- $neueckig = str_replace(":(","<img src=\"/pic/smiles/icon_sad.gif\">",$neueckig);
- $neueckig = str_replace(":-(","<img src=\"/pic/smiles/icon_sad.gif\">",$neueckig);
- $neueckig = str_replace(":o(","<img src=\"/pic/smiles/icon_sad.gif\">",$neueckig);
- $neueckig = str_replace(":o)","<img src=\"/pic/smiles/icon_lol.gif\">",$neueckig);
- $neueckig = str_replace(";o(","<img src=\"/pic/smiles/icon_cry.gif\">",$neueckig);
- $neueckig = str_replace(";(","<img src=\"/pic/smiles/icon_cry.gif\">",$neueckig);
- $neueckig = str_replace(";-(","<img src=\"/pic/smiles/icon_cry.gif\">",$neueckig);
- $neueckig = str_replace("8)","<img src=\"/pic/smiles/icon_rolleyes.gif\">",$neueckig);
- $neueckig = str_replace("8o)","<img src=\"/pic/smiles/icon_rolleyes.gif\">",$neueckig);
- $neueckig = str_replace(":P","<img src=\"/pic/smiles/icon_evil.gif\">",$neueckig);
- $neueckig = str_replace(":-P","<img src=\"/pic/smiles/icon_evil.gif\">",$neueckig);
- $neueckig = str_replace(":oP","<img src=\"/pic/smiles/icon_evil.gif\">",$neueckig);
- $neueckig = str_replace(";P","<img src=\"/pic/smiles/icon_mad.gif\">",$neueckig);
- $neueckig = str_replace(";oP","<img src=\"/pic/smiles/icon_mad.gif\">",$neueckig);
- $neueckig = str_replace("?)","<img src=\"/pic/smiles/icon_question.gif\">",$neueckig);
+ $neueckig = str_replace(";o))", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_redface.gif\">",$neueckig);
+ $neueckig = str_replace(":-))", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_redface.gif\">",$neueckig);
+ $neueckig = str_replace(";o)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_wind.gif\">",$neueckig);
+ $neueckig = str_replace(":)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_smile.gif\">",$neueckig);
+ $neueckig = str_replace(":-)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_smile.gif\">",$neueckig);
+ $neueckig = str_replace(":(", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_sad.gif\">",$neueckig);
+ $neueckig = str_replace(":-(", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_sad.gif\">",$neueckig);
+ $neueckig = str_replace(":o(", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_sad.gif\">",$neueckig);
+ $neueckig = str_replace(":o)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_lol.gif\">",$neueckig);
+ $neueckig = str_replace(";o(", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_cry.gif\">",$neueckig);
+ $neueckig = str_replace(";(", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_cry.gif\">",$neueckig);
+ $neueckig = str_replace(";-(", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_cry.gif\">",$neueckig);
+ $neueckig = str_replace("8)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_rolleyes.gif\">",$neueckig);
+ $neueckig = str_replace("8o)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_rolleyes.gif\">",$neueckig);
+ $neueckig = str_replace(":P", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_evil.gif\">",$neueckig);
+ $neueckig = str_replace(":-P", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_evil.gif\">",$neueckig);
+ $neueckig = str_replace(":oP", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_evil.gif\">",$neueckig);
+ $neueckig = str_replace(";P", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_mad.gif\">",$neueckig);
+ $neueckig = str_replace(";oP", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_mad.gif\">",$neueckig);
+ $neueckig = str_replace("?)", "<img src=\"". $url. $ENGEL_ROOT. "pic/smiles/icon_question.gif\">",$neueckig);
return $neueckig;
}
@@ -98,7 +100,7 @@ function displayPictur($UID, $height="30")
[<Höhe des Bildes (wenn die höhe kleiner 1 ist wird die höhe nicht begrenzt)>] */
function displayavatar( $UID, $height="30")
{
- global $con;
+ global $con, $url, $ENGEL_ROOT;
if( GetPicturShow($UID) == 'Y')
return "&nbsp;". displayPictur( $UID, $height);
@@ -108,7 +110,7 @@ function displayavatar( $UID, $height="30")
$aerg = mysql_query ($asql, $con);
if( mysql_num_rows($aerg) )
if( mysql_result($aerg, 0, "Avatar") > 0)
- return ("&nbsp;<img src=\"/pic/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
+ return ("&nbsp;<img src=\"". $url. $ENGEL_ROOT. "pic/avatar/avatar". mysql_result($aerg, 0, "Avatar"). ".gif\">");
}
diff --git a/includes/header.php b/includes/header.php
index 9a39ab53..e5d97a0c 100755
--- a/includes/header.php
+++ b/includes/header.php
@@ -7,7 +7,7 @@ echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
<HEAD>
<?PHP
-echo "<TITLE>--- $title ---</TITLE>";
+echo "<TITLE>--- $title ---</TITLE>\n";
?>
<meta name="keywords" content="Engel, Himmelsverwaltung">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
@@ -16,61 +16,64 @@ echo "<TITLE>--- $title ---</TITLE>";
<meta name="robots" content="index">
<meta name="revisit-after" content="1 days">
<meta http-equiv="content-language" content="de">
-<script type="text/javascript" src="<?PHP echo $url. substr( $ENGEL_ROOT, 1); ?>/css/grossbild.js"></script>
-<link rel=stylesheet type="text/css" href="<?PHP echo $url. substr( $ENGEL_ROOT, 1); ?>css/style<?PHP
+<script type="text/javascript" src="<?PHP echo $url. $ENGEL_ROOT; ?>/css/grossbild.js"></script>
+<link rel=stylesheet type="text/css" href="<?PHP echo $url. $ENGEL_ROOT; ?>css/style<?PHP
if (!IsSet($_SESSION['color']))
echo "6";
else
echo $_SESSION['color'];
?>.css">
<?PHP
-if (isset($reload)) {
- if ($reload=="") $reload=3330;
- echo "\n<meta http-equiv=\"refresh\" content=\"".$reload.
- "; URL=./?reload=".$reload."\">\n";
- }
-
-if (isset($Page["AutoReload"])) {
- echo "\n<meta http-equiv=\"refresh\" content=\"". $Page["AutoReload"].
- "; URL=". substr($url, 0, strlen($url)-1). $ENGEL_ROOT. $Page["Name"]."\">\n";
- }
-?>
-</HEAD>
-<BODY>
-<?PHP
-
-if( isset($SystemDisableMessage))
- if( strlen($SystemDisableMessage)>0)
+if (isset($reload))
+{
+ if ($reload=="")
{
- echo $SystemDisableMessage;
- echo "\n\n<BODY>\n</HTML>";
- die();
- }
+ $reload=3330;
+ }
+ echo "\n<meta http-equiv=\"refresh\" content=\"".$reload.
+ "; URL=./?reload=".$reload."\">\n";
+}
+
+if (isset($Page["AutoReload"]))
+{
+ echo "\n<meta http-equiv=\"refresh\" content=\"". $Page["AutoReload"].
+ "; URL=". $url. $ENGEL_ROOT. $Page["Name"]."\">\n";
+}
+
+echo "</HEAD>\n";
+
+/////////////////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////// B O D Y
+/////////////////////////////////////////////////////////////////////////////////////////////
+echo "<BODY>\n";
+echo "<div name=\"topic\" align=\"center\">\n\n";
-if( !isset($Page["ShowTabel"]) ) $Page["ShowTabel"]="Y";
-if( $Page["ShowTabel"]=="Y" )
+if( isset($_SESSION['color']) && ($_SESSION['color']==6) )
{
-//############################### ShowTable Start ##############################
+ echo "\t<a name=\"#top\"><img src=\"". $url. $ENGEL_ROOT. "pic/himmel_w.png\" alt=\"Unser Himmel\"></a>\n";
+}
+else
+{
+ echo "\t<a name=\"#top\"><img src=\"". $url. $ENGEL_ROOT. "pic/himmel.png\" alt=\"Unser Himmel\"></a>\n";
+}
+echo "</div>\n\n";
+
-?>
- <div align="center">
- <a name="#top"><img src="<?PHP echo $url. substr( $ENGEL_ROOT, 1); ?>pic/himmel<?PHP if( isset($_SESSION['color']))
- if ($_SESSION['color']==6) echo "_w"; ?>.png" alt="Unser Himmel"></a>
- <p>
-<?PHP
//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 "<br><a href=\"". $url. substr($ENGEL_ROOT, 1).
+ echo "<br><a href=\"". $url. $ENGEL_ROOT.
"nonpublic/messages.php\">". Get_Text("pub_messages_new1").
" ". mysql_num_rows( $erg ). " ".
Get_Text("pub_messages_new2"). "</a><br><br>";
}
+}
?>
<table width="95%" align="center" border="0" cellpadding="7" cellspacing="0">
<tr>
@@ -109,10 +112,6 @@ if (IsSet($_SESSION['UID'])) {
}
-//############################### ShowTable Start ##############################
-} /* if (ShowTabel....*/
-
-
function SetHeaderGo2Back ()
{
global $BACKUP_SESSION_OLDURL;
@@ -126,7 +125,7 @@ if ( $Page["CVS"] != "Y" )
If (IsSet($_SESSION['oldurl']))
echo "<a href=\"". $_SESSION["oldurl"]. "\">".Get_Text("back")."</a> geht's zur&uuml;ck...\n";
else
- echo "<a href=\"". $url. substr($ENGEL_ROOT, 0, -1 )."\">".Get_Text("back")."</a> geht's zur&uuml;ck...\n";
+ echo "<a href=\"". $url. $ENGEL_ROOT. "\">".Get_Text("back")."</a> geht's zur&uuml;ck...\n";
exit ();
}
?>
diff --git a/includes/header_start.php b/includes/header_start.php
index 218a30ec..997fa94e 100755
--- a/includes/header_start.php
+++ b/includes/header_start.php
@@ -9,17 +9,30 @@ include ("funktion_faq.php"); //für noAnswer() im menu
include ("funktion_menu.php");
include ("funktion_user.php");
+
+if( isset($SystemDisableMessage) && ( strlen($SystemDisableMessage)>0) )
+{
+ echo "<HTML>\n".
+ "<BODY>\n". $SystemDisableMessage. "\n<BODY>\n".
+ "</HTML>";
+ die();
+}
+
if( !isset($_SESSION))
+{
session_start();
+}
include ("secure.php");
if( !isset($_SESSION['IP']))
+{
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
+}
if (IsSet($_SESSION['UID']) and ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR']))
{
session_destroy ();
- header("Location: $url". substr($ENGEL_ROOT,1) );
+ header("Location: $url". $ENGEL_ROOT );
}
include ("UserCVS.php");
diff --git a/includes/login_eingabefeld.php b/includes/login_eingabefeld.php
index 437e030d..bed1a2fd 100755
--- a/includes/login_eingabefeld.php
+++ b/includes/login_eingabefeld.php
@@ -1,21 +1,18 @@
-
-
-<form action="<?PHP
+<?PHP
include ("config.php");
-echo substr($url, 0, strlen($url)-1). $ENGEL_ROOT
-?>nonpublic/index.php" method="post">
-<table>
-<tr>
- <td align="right"><?PHP echo Get_Text("index_lang_nick");?></td>
- <td><input type="text" name="user" size="23"></td>
-</tr>
-<tr>
- <td align="right"><?PHP echo Get_Text("index_lang_pass");?></td>
- <td><input type="password" name="password" size="23"></td>
-</tr>
-</table>
-<br>
-<input type="submit" value="<?PHP echo Get_Text("index_lang_send");?>">
-</form>
+
+echo "<form action=\"". $url. $ENGEL_ROOT. "nonpublic/index.php\" method=\"post\">";
+echo "<table>\n".
+ "\t<tr>".
+ "\t\t<td align=\"right\">". Get_Text("index_lang_nick"). "</td>".
+ "\t\t<td><input type=\"text\" name=\"user\" size=\"23\"></td>".
+ "\t</tr>".
+ "\t<tr>".
+ "\t\t<td align=\"right\">". Get_Text("index_lang_pass"). "</td>".
+ "\t\t<td><input type=\"password\" name=\"password\" size=\"23\"></td>".
+ "\t</tr>".
+ "</table>".
+ "<br><input type=\"submit\" value=\"". Get_Text("index_lang_send"). "\">";
+echo "</form>";
diff --git a/services/inc b/services/inc
deleted file mode 120000
index 54c38819..00000000
--- a/services/inc
+++ /dev/null
@@ -1 +0,0 @@
-../www-ssl/inc \ No newline at end of file
diff --git a/www-ssl/logout.php b/www-ssl/logout.php
index 38b3b575..e038be69 100755
--- a/www-ssl/logout.php
+++ b/www-ssl/logout.php
@@ -8,6 +8,6 @@ session_destroy ();
session_start();
header("HTTP/1.1 302 Moved Temporarily");
-header("Location: ". substr($url, 0, strlen($url)-1). $ENGEL_ROOT);
+header("Location: ". $url. $ENGEL_ROOT);
?>
diff --git a/www-ssl/nonpublic/einstellungen.php b/www-ssl/nonpublic/einstellungen.php
index 191db729..aabcb830 100755
--- a/www-ssl/nonpublic/einstellungen.php
+++ b/www-ssl/nonpublic/einstellungen.php
@@ -175,12 +175,12 @@ if( $_SESSION['CVS'][ "Change T_Shirt Size" ] == "Y" )
echo "\t\t<tr>\n\t\t\t<td>". Get_Text(23). "<br></td>\n\t\t</tr>\n";
echo "\t\t<tr>\n";
echo "\t\t\t<td>\n";
- echo "\t\t\t\t<select name=\"eAvatar\" onChange=\"document.avatar.src = '../pic/avatar/avatar' + this.value + '.gif'\"".
- "onKeyup=\"document.avatar.src = '../pic/avatar/avatar' + this.value + '.gif'\">\n";
- for ($i=1; file_exists("../pic/avatar/avatar$i.gif"); $i++ )
+ echo "\t\t\t\t<select name=\"eAvatar\" onChange=\"document.avatar.src = '". $url. $ENGEL_ROOT. "pic/avatar/avatar' + this.value + '.gif'\"".
+ "onKeyup=\"document.avatar.src = '". $url. $ENGEL_ROOT. "pic/avatar/avatar' + this.value + '.gif'\">\n";
+ for ($i=1; file_exists("". "../pic/avatar/avatar$i.gif"); $i++ )
echo "\t\t\t\t\t<option value=\"$i\"". ($_SESSION['Avatar'] == $i ? " selected":""). ">avatar$i</option>\n";
echo "\t\t\t\t</select>&nbsp;&nbsp;\n";
- echo "\t\t\t\t<img src=\"../pic/avatar/avatar". $_SESSION['Avatar']. ".gif\" name=\"avatar\" border=\"0\" align=\"top\">\n";
+ echo "\t\t\t\t<img src=\"". $url. $ENGEL_ROOT. "pic/avatar/avatar". $_SESSION['Avatar']. ".gif\" name=\"avatar\" border=\"0\" align=\"top\">\n";
echo "\t\t\t</td>\n\t\t</tr>\n";
echo "\t</table>\n";
echo "\t<input type=\"submit\" value=\"". Get_Text("save"),"\">\n";
diff --git a/www-ssl/nonpublic/index.php b/www-ssl/nonpublic/index.php
index de833eb4..affb571e 100755
--- a/www-ssl/nonpublic/index.php
+++ b/www-ssl/nonpublic/index.php
@@ -11,7 +11,7 @@ function LoginOK()
{
include ("../../includes/config.php");
header("HTTP/1.1 302 Moved Temporarily");
- header("Location: ". substr($url, 0, strlen($url)-1). $ENGEL_ROOT. "nonpublic/news.php");
+ header("Location: ". $url. $ENGEL_ROOT. "nonpublic/news.php");
}
if ( !IsSet($_POST["user"]))
diff --git a/www-ssl/nonpublic/myschichtplan_ical.php b/www-ssl/nonpublic/myschichtplan_ical.php
index dfe06f07..9cbef3b2 100755
--- a/www-ssl/nonpublic/myschichtplan_ical.php
+++ b/www-ssl/nonpublic/myschichtplan_ical.php
@@ -35,7 +35,7 @@ for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
echo "SUMMARY:". str_replace( ',', '\\,',mysql_result( $erg, $i, "Man" ) ). "\n";
echo "CLASS:PUBLIC\n";
echo "STATUS:CONFIRMED\n";
- echo "URL:". $url. substr($ENGEL_ROOT,1). "nonpublic/myschichtplan.php\n";
+ echo "URL:". $url. $ENGEL_ROOT. "nonpublic/myschichtplan.php\n";
echo "LOCATION:". $RoomID[mysql_result( $erg, $i, "RID" )]. "\n";
echo "BEGIN:VALARM\n";
echo "TRIGGER;VALUE=DURATION:-PT5M\n";
diff --git a/www-ssl/nonpublic/news_output.php b/www-ssl/nonpublic/news_output.php
index a85c23ee..e1afc067 100755
--- a/www-ssl/nonpublic/news_output.php
+++ b/www-ssl/nonpublic/news_output.php
@@ -32,7 +32,7 @@ for ($n = 0 ; $n < $news_rows ; $n++)
else
echo "<p class='engeltreffen'>";
- echo "<u>".mysql_result($Erg, $n, "Betreff")."</u>\n";
+ echo "<u>". ReplaceSmilies(mysql_result($Erg, $n, "Betreff")) ."</u>\n";
// Schow Admin Page
if( $_SESSION['CVS'][ "admin/news.php" ] == "Y" )
diff --git a/www-ssl/nonpublic/schichtplan_beamer.php b/www-ssl/nonpublic/schichtplan_beamer.php
index 25979db2..cd410fc2 100755
--- a/www-ssl/nonpublic/schichtplan_beamer.php
+++ b/www-ssl/nonpublic/schichtplan_beamer.php
@@ -12,7 +12,7 @@ $Time = time()+3600+3600;
<HEAD>
<TITLE>Schichtpl&auml;ne f&uuml;r Beamer</TITLE>
<!--<link rel=stylesheet type="text/css" href="/css/style1.css">-->
-<meta http-equiv="refresh" content="30; URL=<?PHP echo substr($url, 0, strlen($url)-1). $_SERVER['PHP_SELF']?>">
+<meta http-equiv="refresh" content="30; URL=<?PHP echo $url. $_SERVER['PHP_SELF']?>">
</HEAD>
<BODY>
<?PHP