* use isset() to be correct and don't produce warnings
[citadel.git] / ctdlphp / sessionproxy.php
index 75bd902438306cc0160626bc4d1a35bf86546fee..2e59e81dfae80e451afe7d3e77901ab075599707 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php -q
 
 <?php
-
+include "config.php";
 // $Id$
 //
 // This is the session proxy that binds a unix domain socket to a Citadel
@@ -86,8 +86,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(CITADEL_HOSTNAME, CITADEL_TCP_PORTNO, $errno, $errstr, 30);
 if (!$ctdlsock) {
        socket_close ($sock);
        system("/bin/rm -f " . $sockname);