|
ob_start(); global $CURUSER, $BASEURL; if ($CURUSER["uid"]>1) { function get_settings($key) { global $TABLE_PREFIX; $curr_conf_query = do_sqlquery("SELECT `value` FROM `{$TABLE_PREFIX}settings` WHERE `key` = '".$key."'", true); $curr_conf = mysql_fetch_assoc($curr_conf_query); return $curr_conf["value"]; } $irc_server = get_settings("irc_server"); $irc_port = get_settings("irc_port"); $irc_channel = get_settings("irc_channel"); $nick = str_replace(" ", "_", $CURUSER['username']); $style = $CURUSER["style"]; ?>
|