From: Art Cancro Date: Fri, 31 Oct 2003 05:26:14 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v7.86~5729 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=fe46648bc882772998b30f3de4b4d13f4108ed49 *** empty log message *** --- diff --git a/ctdlphp/ctdlheader.php b/ctdlphp/ctdlheader.php index 0f56075ac..d35a62f2f 100644 --- a/ctdlphp/ctdlheader.php +++ b/ctdlphp/ctdlheader.php @@ -28,6 +28,7 @@ function bbs_page_header() { link="#0000FF" vlink="#990066" alink="#DD0000" +> LITERAL; @@ -40,7 +41,7 @@ LITERAL; function bbs_page_footer() { echo "
"; - echo "Copyright © 2003 by The SCO Group.
\n"; + echo "Powered by Citadel. And a few cups of coffee.
\n"; echo "\n"; } diff --git a/ctdlphp/ctdlsession.php b/ctdlphp/ctdlsession.php index 2407a8f76..eefde56cb 100644 --- a/ctdlphp/ctdlsession.php +++ b/ctdlphp/ctdlsession.php @@ -85,7 +85,7 @@ function ctdl_end_session() { // Now clear our PHP session. unset($session); - session_destroy(); + session_write_close(); } ?> diff --git a/ctdlphp/logout.php b/ctdlphp/logout.php index 284983c8a..3d27c5ecd 100644 --- a/ctdlphp/logout.php +++ b/ctdlphp/logout.php @@ -3,18 +3,10 @@ bbs_page_header(); - echo <<Goodbye - -You are being logged out. - -Log in again
- -LITERAL; + echo "Log in again
\n" ; bbs_page_footer(); ctdl_end_session(); - ?> - diff --git a/ctdlphp/sessionproxy.php b/ctdlphp/sessionproxy.php index 09e35503a..8d544270b 100755 --- a/ctdlphp/sessionproxy.php +++ b/ctdlphp/sessionproxy.php @@ -78,6 +78,9 @@ if ($ret < 0) { exit(4); } +// Set the permissions so someone else doesn't jump into our connection. +chmod($sockname, 0600); + // We need to get a connection to the Citadel server going now. $ctdlsock = fsockopen("uncensored.citadel.org", 504, $errno, $errstr, 30);