$newcookie['iwantcookie'] = $_REQUEST['iwantcookie']; $newcookie['reload'] = $_REQUEST['reload']; $newcookie['handle'] = $handle; $newcookie['password'] = $_REQUEST['password']; $newcookie['color'] = $color; $newcookie['icons'] = serialize($_REQUEST['icons']); $newcookie['link'] = $link; $newcookie['image'] = $image; $newcookie['autologin'] = $_REQUEST['autolog']; setcookie('pJJChat', serialize($newcookie), time() + 2592000); } $motd = $_REQUEST['motd']; if ($handle != $noname && $_REQUEST['reload'] == 'on') { $link = $client['plink']; $image = $client['pimage']; $color = FixColor($client['pcolor']); $_REQUEST['icons'] = unserialize($client['picon']); if (CheckFlags('A', $client['prefs'])) { $_REQUEST['mode_advanced'] = 'on'; } if (CheckFlags('S', $client['prefs'])) { $_REQUEST['mode_simple'] = 'on'; } if (CheckFlags('O', $client['prefs'])) { $motd = ''; } if (CheckFlags('b', $client['prefs'])) { $_REQUEST['st_bold'] = 'on'; } if (CheckFlags('u', $client['prefs'])) { $_REQUEST['st_ulined'] = 'on';
mysql_free_result($rez); // Fetch names for every UID seen so far sort($uids); $uids = array_unique($uids); $uids = '(' . implode(',', $uids) . ')'; $query = "SELECT uid,username,displayname,pcolor FROM uo_chat_database\n\t\t\t\t\tWHERE uid IN " . $uids; $rez = count_mysql_query($query, $handler); $uids = array(); while ($row = mysql_fetch_assoc($rez)) { if (empty($row['displayname'])) { $row['displayname'] = ucwords($row['username']); } if (empty($row['pcolor'])) { $row['pcolor'] = $servcol; } $row['pcolor'] = FixColor($row['pcolor']); $uids[$row['uid']] = $row; } mysql_free_result($rez); krsort($msgs); echo '<p><form action="reader.php" method="post" target="TextWindow"> <input type="submit" value="Archive Messages"> <input type="hidden" name="p" value="msgs"> <input type="hidden" name="cleanmsg" value="1"> <input type="hidden" name="uid" value="', $_REQUEST['uid'], '"> </form>', "\n"; echo '<p>Navigate: <a href="reader.php?p=msgs&uid=', $_REQUEST['uid'], '">Beginning</a>, <a href="reader.php?p=msgs&uid=', $_REQUEST['uid'], '&limit=50&offset=', $oldest, '">Next 50</a> <a href="reader.php?p=msgs&uid=', $_REQUEST['uid'], '&limit=250&offset=', $oldest, '">Next 250</a> <a href="reader.php?p=msgs&uid=', $_REQUEST['uid'], '&limit=500&offset=', $oldest, '">Next 500</a> <a href="reader.php?p=msgs&uid=', $_REQUEST['uid'], '&limit=2000&offset=', $oldest, '">Next 2000</a>
fwrite($fm, '$logolink = ' . var_export($_REQUEST['logolink'], true) . ";\n"); fwrite($fm, '$musiclink = ' . var_export($_REQUEST['musiclink'], true) . ";\n"); fwrite($fm, '$pimgx = ' . intval($_REQUEST['pimgx']) . ";\n"); fwrite($fm, '$pimgy = ' . intval($_REQUEST['pimgy']) . ";\n"); fwrite($fm, '$noname = ' . var_export($_REQUEST['noname'], true) . ";\n"); fwrite($fm, '$lastpos = ' . intval($_REQUEST['lastpos']) . ";\n"); fwrite($fm, '$identxtsize = ' . intval($_REQUEST['identxtsize']) . ";\n"); fwrite($fm, '$regident = ' . var_export($_REQUEST['regident'], true) . ";\n"); fwrite($fm, '$oocident = ' . var_export($_REQUEST['oocident'], true) . ";\n"); fwrite($fm, '$modident = ' . var_export($_REQUEST['modident'], true) . ";\n"); fwrite($fm, '$adminident = ' . var_export($_REQUEST['adminident'], true) . ";\n"); fwrite($fm, '$subchat = ' . var_export($_REQUEST['subchat'], true) . ";\n"); fwrite($fm, '$s_link = ' . var_export($_REQUEST['s_link'], true) . ";\n"); fwrite($fm, '$s_active = ' . var_export($_REQUEST['s_active'], true) . ";\n"); fwrite($fm, '$s_visit = ' . var_export($_REQUEST['s_visit'], true) . ";\n"); fwrite($fm, '$s_bgcol = ' . var_export(FixColor($_REQUEST['s_bgcol']), true) . ";\n"); fwrite($fm, '$s_bgimg = ' . var_export($_REQUEST['s_bgimg'], true) . ";\n"); fwrite($fm, '$c_bgimg = ' . var_export($_REQUEST['c_bgimg'], true) . ";\n"); fwrite($fm, '$u_bgimg = ' . var_export($_REQUEST['u_bgimg'], true) . ";\n"); fwrite($fm, '$max_nick = ' . intval($_REQUEST['max_nick']) . ";\n"); fwrite($fm, '$max_link = ' . intval($_REQUEST['max_link']) . ";\n"); fwrite($fm, '$max_image = ' . intval($_REQUEST['max_image']) . ";\n"); fwrite($fm, '$timer = ' . var_export($_REQUEST['timer'], true) . ";\n"); fwrite($fm, '$tzone = ' . intval($_REQUEST['tzone']) . ";\n"); fwrite($fm, '$dtcalc = ' . var_export($_REQUEST['dtcalc'], true) . ";\n"); fwrite($fm, '$initlink = ' . var_export($_REQUEST['initlink'], true) . ";\n"); fwrite($fm, '$csshead = ' . var_export($_REQUEST['csshead'], true) . ";\n"); fwrite($fm, '$altdata = ' . var_export($_REQUEST['altdata'], true) . ";\n"); fwrite($fm, $sfooter); fwrite($fm, "\n"); fclose($fm);