Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2882 → Rev 2883

/web/still_connected.php
1,5 → 1,5
<?php
 
// this script is executed by status page (controler.js) of each users
// store user @IP who can join this page (still have their status.php tab open) in a file.
$filename = '/tmp/current_users.txt';
$user_ip = $_SERVER['REMOTE_ADDR'];
24,7 → 24,6
}
}
fclose($fh);
 
// else we write user IP in the file
if (!$found) {
file_put_contents($filename, $user_ip.':TEMP'.PHP_EOL, FILE_APPEND);