fwrite($clientsocket, $buf . "\n", (strlen($buf)+1) );
}
+
+
+//
+// Identify this client, and the hostname where the user is, to Citadel.
+//
+function ctdl_iden() {
+ global $clientsocket;
+
+ serv_puts("IDEN 0|8|001|PHP web client|" . $_SERVER['REMOTE_ADDR'] );
+ $buf = serv_gets();
+}
+
+
+
//
// login_existing_user() -- attempt to login using a supplied username/password
// Returns an array with two variables:
// Try to log the user back in.
if ($clientsocket) {
+ ctdl_iden(); // Identify client
if ($_SESSION["username"]) {
login_existing_user(
// 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);
include "ctdlheader.php";
bbs_page_header();
-
echo "<TABLE border=1>";
echo "<TR>";
echo "<TD><B>User</B></TD>";