One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thoa
/
www
/
admin
/
support
/
includes
/
View File Name :
client.php
<?php // define page functions function online() { // globals global $available,$config,$path; // build box echo '<div id="status_box" style="padding:0px; margin:0px; border:none; background:none;">'; #echo '<h3><img src="'.$path.'images/icons/ls.png" width="50" alt="'.$config['title'].'" title="'.$config['title'].'" style="vertical-align:middle;" /> '.$config['title'].'</h3>'; if($available == "true") { ?><div class="ls_available" style="padding:0px; margin:0px; border:none; background:none;"><a href="#" onclick="javascript:launchSupport('<?php echo $path;?>chat.php', '200', '200', '510', '440')"><img src="support/images/online3.png" border="0" /></a></div> <?php } else { ?><div class="ls_unavailable" style="padding:0px; margin:0px; border:none; background:none;"><a href="#" onclick="javascript:launchSupport('<?php echo $path;?>leavemessage.php', '200', '200', '510', '440')"><img src="support/images/offline.png" border="0" /></a></div> <?php #echo '<p>'.$config['offlineMessage'].'</p>'; } echo '</div>'; } // db connection mysql_connect("localhost","root",""); mysql_select_db("shahaj"); /* require("../config.php"); */ // first check to make sure that there is no timed out logins $agentTimeout = 180; $check = mysql_query("SELECT * FROM users "); while ($row=mysql_fetch_array($check)) { if(time() > ($row['keepAlive'] + $agentTimeout ) ) { mysql_query("UPDATE users SET available = 'no' WHERE username = '".$row['username']."' "); } } // check availablility $available = "false"; $check = mysql_query("SELECT available FROM users "); while ($row=mysql_fetch_array($check)) { if($row['available'] == "yes") { $available = "true"; } } // get config $fetch = mysql_query("SELECT * FROM config "); $config = mysql_fetch_array($fetch); ?>