selectquery($query); if (is_array($row)) { $department = $row['department']; $query = "SELECT count(`id`) FROM " . $table_prefix . "sessions WHERE (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`refresh`)) < '$connection_timeout' AND `active` = '0' AND `department` LIKE '%$department%'"; } else { $query = "SELECT count(`id`) FROM " . $table_prefix . "sessions WHERE (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`refresh`)) < '$connection_timeout' AND `active` = '0'"; } $row = $SQL->selectquery($query); if (is_array($row)) { $users_online = $row['count(`id`)']; } else { $users_online = '1'; } header("Content-type: text/html; charset=utf-8"); $language = substr(LANGUAGE_TYPE,0,2); $language_file = './i18n/' . $language . '/lang_guest_' . $language . '.php'; if (file_exists($language_file)) { include($language_file); } else { include('./i18n/en/lang_guest_en.php'); } ?> <?php echo($livehelp_name); ?>
 
. []