Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2840 → Rev 2841

/web/still_connected.php
1,7 → 1,7
<?php
 
// store user @IP who can join this page (still have their status.php tab open) in a file.
$filename = '/var/tmp/havp/current_users.txt';
$filename = '/tmp/current_users.txt';
$user_ip = $_SERVER['REMOTE_ADDR'];
 
$isConnected = exec('sudo /usr/sbin/chilli_query list | awk '.escapeshellarg('($2 == "'.$user_ip.'") {print $5}'));