]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/sessionproxy.php
* Added a room list function to the library
[citadel.git] / ctdlphp / sessionproxy.php
index a9e627e8770ead45575da98f20a266d059d3dbdf..986eb2a5219a84a702f9daff22b6214fc162afe9 100755 (executable)
@@ -84,7 +84,7 @@ chmod($sockname, 0600);
 // We need to get a connection to the Citadel server going now.
 
 $ctdlsock = fsockopen("uncensored.citadel.org", 504, $errno, $errstr, 30);
-// $ctdlsock = fsockopen("/appl/citadel/citadel.socket", 0, $errno, $errstr, 30);
+//$ctdlsock = fsockopen("/appl/citadel/citadel.socket", 0, $errno, $errstr, 30);
 if (!$ctdlsock) {
        socket_close ($sock);
        system("/bin/rm -f " . $sockname);
@@ -107,6 +107,9 @@ if (substr($buf, 0, 1) != "2") {
 
 do {
        // Wait for connections, but time out after 15 minutes.
+       // socket_select() is completely b0rken in PHP 4.1, which is why
+       // this program requires PHP 4.3 or newer.
+       //
        if (socket_select($readsock = array($sock),
                        $writesock = NULL,
                        $exceptsock = NULL,