From 2ca2400b779484ff025b0705ff4fb84ead7c4b20 Mon Sep 17 00:00:00 2001 From: Angelo Cuccato Date: Tue, 31 Aug 2010 21:16:16 +0200 Subject: clean url handling --- www-ssl/logout.php | 2 +- www-ssl/nonpublic/einstellungen.php | 8 ++++---- www-ssl/nonpublic/index.php | 2 +- www-ssl/nonpublic/myschichtplan_ical.php | 2 +- www-ssl/nonpublic/news_output.php | 2 +- www-ssl/nonpublic/schichtplan_beamer.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'www-ssl') 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\n\t\t\t". Get_Text(23). "
\n\t\t\n"; echo "\t\t\n"; echo "\t\t\t\n"; - echo "\t\t\t\t\n"; + for ($i=1; file_exists("". "../pic/avatar/avatar$i.gif"); $i++ ) echo "\t\t\t\t\t\n"; echo "\t\t\t\t  \n"; - echo "\t\t\t\t\n"; + echo "\t\t\t\t\n"; echo "\t\t\t\n\t\t\n"; echo "\t\n"; echo "\t\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"; - echo "".mysql_result($Erg, $n, "Betreff")."\n"; + echo "". ReplaceSmilies(mysql_result($Erg, $n, "Betreff")) ."\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; Schichtpläne für Beamer - +