*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Fri, 31 Oct 2003 05:26:14 +0000 (05:26 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 31 Oct 2003 05:26:14 +0000 (05:26 +0000)
ctdlphp/ctdlheader.php
ctdlphp/ctdlsession.php
ctdlphp/logout.php
ctdlphp/sessionproxy.php

index 0f56075acf9847f4699bfa7446046279c859d20b..d35a62f2f34fb117e99b80f2ea37121fb7f65547 100644 (file)
@@ -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 "<HR>";
-       echo "Copyright &copy; 2003 by The SCO Group.<BR>\n";
+       echo "Powered by Citadel.  And a few cups of coffee.<BR>\n";
        echo "</BODY></HTML>\n";
 }
 
index 2407a8f76601596867a8da193df0213675938d89..eefde56cb09304937a9920b6f60b4f43b9ed98ed 100644 (file)
@@ -85,7 +85,7 @@ function ctdl_end_session() {
 
        // Now clear our PHP session.
        unset($session); 
-       session_destroy();
+       session_write_close();
 }
 
 ?>
index 284983c8a1cfe10df5eacfe7b31e21e51fb34f58..3d27c5ecd1bd2d0b269aa49edb1d6fa0f131fdf1 100644 (file)
@@ -3,18 +3,10 @@
 
        bbs_page_header();
 
-       echo <<<LITERAL
+       ctdl_mesg("goodbye");
 
-<h1>Goodbye</h1>
-
-You are being logged out.
-
-<a href="index.php">Log in again</a><BR>
-
-LITERAL;
+       echo "<a href=\"index.php\">Log in again</a><BR>\n" ;
 
        bbs_page_footer();
        ctdl_end_session();
-
 ?>
-
index 09e35503a683429702b43b0c6386ff668b1a8220..8d544270b7552a89cd2e3725e551a26567493729 100755 (executable)
@@ -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);