$line) { if (preg_match('/^\#/', $line, $matches)) { } elseif (preg_match('/^\s*$/', $line, $matches)) { } elseif (preg_match('/^([^=\s]+)\s*=\s*(.*)$/', $line, $matches)) { $key = $matches[1]; $val = $matches[2]; $conf{$key} = $val; } } $wordslist = file('words'); $wordslen = sizeof($wordslist); for ($n = 0; $n < 5; $n++) { $i = rand(0, $wordslen-1); $words[] = substr($wordslist[$i],0,-1); // remove newline } $passphrase = implode(" ", $words); $passphrase = ucwords($passphrase); $fpr{"passphrase"} = $passphrase; $fpr{"remoteaddr"} = $_SERVER['REMOTE_ADDR']; $fpr{"httpxforwarded"} = $_SERVER['HTTP_X_FORWARDED_FOR']; $fpr{"time"} = date("Y-m-d H:i:s"); if (isset($hashirc)) { $fpr{"hashirc"} = $hashirc; } elseif (isset($hashbnc)) { $fpr{"hashbnc"} = $hashbnc; } elseif (isset($hashshell)) { $fpr{"hashshell"} = $hashshell; } elseif (isset($hashsmtp)) { $fpr{"hashsmtp"} = $hashsmtp; } foreach (getallheaders() as $key => $value) { if ($key == "User-Agent") { $key = "useragent"; } elseif ($key == "Upgrade-Insecure-Requests") { $key = "upgradeinsecure"; } elseif ($key == "Host") { $key = "host"; } elseif ($key == "Dnt") { $key = "dnt"; } elseif ($key == "Connection") { $key = "connection"; } elseif ($key == "Cache-Control") { $key = "cachecontrol"; } elseif ($key == "Accept-Language") { $key = "acceptlanguage"; } elseif ($key == "Accept-Encoding") { $key = "acceptencoding"; } elseif ($key == "Accept") { $key = "accept"; } elseif ($key == "Cookie") { $key = "cookie"; } $fpr{$key} = $value; } setcookie("ircnow[hashirc]", $hashirc, time()+86400*30, '/', 'ircnow.org', true); setcookie("ircnow[hashbnc]", $hashbnc, time()+86400*30, '/', 'ircnow.org', true); setcookie("ircnow[hashshell]", $hashshell, time()+86400*30, '/', 'ircnow.org', true); setcookie("ircnow[hashsmtp]", $hashsmtp, time()+86400*30, '/', 'ircnow.org', true); class wwwdb extends SQLite3 { function __construct() { $this->open('/botnow/botnow.db'); } } $wwwdb = new wwwdb(); if(!$wwwdb) { echo $wwwdb->lastErrorMsg(); } else { foreach ($fpr as $key => $value) { $keys[] = $key; $values[] = $value; } $keystr = '"'.implode('","', $keys).'"'; $valstr = '"'.implode('","', $values).'"'; $sql =<<exec($sql)) { echo $db->lastErrorMsg(); } $clients = array("AdiIRC", "Adium", "AndroIRC", "Atomic", "Colloquy", "Hexchat", "HydraIRC", "IRCForAndroid", "IRCCloud", "IceChat", "ircEX", "irssi", "Igloo", "KVIrc", "KiwiIRC", "Limechat", "Mibbit", "mIRC", "nettalk", "Pidgin", "qwebirc", "Quassel", "RevolutionIRC", "SimpleIRC", "Smuxi", "Textual", "Thunderbird", "TurboIRC", "Weechat", "Yaaic", "XChat"); $sql =<<query($sql); while($row = $ret->fetchArray(SQLITE3_ASSOC)) { echo "Don't worry I got called"; $ircid = $row['id']; $ctcpversion = $row['ctcpversion']; $hostmask = $row['hostmask']; foreach ($clients as $i => $value) { if (preg_match("/$value/i", $ctcpversion, $matches)) { $client = $value; } } if (!isset($client)) { if (preg_match('/!~?uid\d+/i', $hostmask, $matches)) { $client = "IRCCloud"; } elseif(preg_match('/!~?quassel/i', $hostmask, $matches)) { $client = "Quassel"; } elseif(preg_match('/!~?IceChat/i', $hostmask, $matches)) { $client = "IceChat"; } elseif(preg_match('/Purple\s+IRC/i', $ctcpversion, $matches)) { $client = "Pidgin"; } elseif(preg_match('/X-Chat/i', $ctcpversion, $matches)) { $client = "XChat"; } elseif(preg_match('/Kiwi\s+IRC/i', $ctcpversion, $matches)) { $client = "KiwiIRC"; } elseif(preg_match('/Android\s+IRC/i', $ctcpversion, $matches)) { $client = "AndroIRC"; } elseif(preg_match('/IRC\s+for\s+Android/i', $ctcpversion, $matches)) { $client = "IRCForAndroid"; } elseif(preg_match('/Revolution\s+IRC/i', $ctcpversion, $matches)) { $client = "RevolutionIRC"; } elseif(preg_match('/Yet\s+another\s+Android\s+IRC\s+client/i', $ctcpversion, $matches)) { $client = "Yaaic"; } else { $client = "Bouncer"; } } } $sql =<<query($sql); while($row = $ret->fetchArray(SQLITE3_ASSOC)) { $username = $row['username']; } $wwwdb->close(); } function myURLEncode($string) { $replace = array('%20', '%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%23', '%5B', '%5D'); $search = array(' ', '!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "#", "[", "]"); return str_replace($search, $replace, $string); } $hostname = $conf{"hostname"}; ?> IRCNow -- Verify Account

Please email "> with the following passphrase:

IRCNow Verify:

Click here for connection instructions.

To change your password, login to ">, fill in the password field, then click on the "Save and Return" button.

Or, you can change the password from your IRC client. Once you have logged in, type:

/msg *controlpanel set password newpassword