} //==Report User $HTMLOUT .= tr("Report User", "<form method='post' action='report.php?type=User&id={$id}'><input type='submit' value='Report User' class='button' /> Click to Report this user for Breaking the rules.</form>", 1); //==End if ($user['paranoia'] < 1 || $CURUSER['id'] == $id || $CURUSER['class'] >= UC_STAFF) { if (isset($user['last_status'])) { $HTMLOUT .= "<tr valign='top'><td class='rowhead'>Status</td><td align='left'>" . format_urls($user['last_status']) . "<br/><small>added " . get_date($user['last_update'], '', 0, 1) . "</small></td></tr>\n"; } } $HTMLOUT .= "</table>\n"; $HTMLOUT .= "<script type='text/javascript'>\r\n /*<![CDATA[*/\r\n function togglepic(bu, picid, formid){\r\n\t var pic = document.getElementById(picid);\r\n\t var form = document.getElementById(formid);\r\n\t\r\n\t if(pic.src == bu + '/pic/plus.gif')\t{\r\n\t\tpic.src = bu + '/pic/minus.gif';\r\n\t\tform.value = 'minus';\r\n\t }else{\r\n\t\tpic.src = bu + '/pic/plus.gif';\r\n\t\tform.value = 'plus';\r\n\t }\r\n }\r\n /*]]>*/\r\n </script>"; if ($CURUSER['class'] >= UC_STAFF && $user["class"] < $CURUSER['class']) { $HTMLOUT .= begin_frame("Edit User", true); $HTMLOUT .= "<form method='post' action='modtask.php'>\n"; require_once CLASS_DIR . 'validator.php'; $HTMLOUT .= validatorForm("ModTask_{$user['id']}"); $HTMLOUT .= "<input type='hidden' name='action' value='edituser' />\n"; $HTMLOUT .= "<input type='hidden' name='userid' value='{$id}' />\n"; $HTMLOUT .= "<input type='hidden' name='returnto' value='userdetails.php?id={$id}' />\n"; $HTMLOUT .= "\r\n <table class='main' border='1' cellspacing='0' cellpadding='5'>\n"; $HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_title']}</td><td colspan='2' align='left'><input type='text' size='60' name='title' value='" . htmlspecialchars($user['title']) . "' /></td></tr>\n"; $avatar = htmlspecialchars($user["avatar"]); $HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_avatar_url']}</td><td colspan='2' align='left'><input type='text' size='60' name='avatar' value='{$avatar}' /></td></tr>\n"; $HTMLOUT .= "<tr>\r\n\t\t <td class='rowhead'>Signature Rights</td>\r\n\t\t <td colspan='2' align='left'><input name='signature_post' value='yes' type='radio'" . ($user['signature_post'] == "yes" ? " checked='checked'" : "") . " />Yes \r\n\t\t <input name='signature_post' value='no' type='radio'" . ($user['signature_post'] == "no" ? " checked='checked'" : "") . " />No Disable this members signature rights.</td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>View Signatures</td>\r\n\t\t <td colspan='2' align='left'><input name='signatures' value='yes' type='radio'" . ($user['signatures'] == "yes" ? " checked='checked'" : "") . " />Yes \r\n\t\t <input name='signatures' value='no' type='radio'" . ($user['signatures'] == "no" ? " checked='checked'" : "") . " /></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>Signature</td>\r\n\t\t <td colspan='2' align='left'><textarea cols='60' rows='2' name='signature'>" . htmlspecialchars($user['signature']) . "</textarea></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>Google Talk</td>\r\n\t\t <td colspan='2' align='left'><input type='text' size='60' name='google_talk' value='" . htmlspecialchars($user['google_talk']) . "' /></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>MSN</td>\r\n\t\t <td colspan='2' align='left'><input type='text' size='60' name='msn' value='" . htmlspecialchars($user['msn']) . "' /></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>AIM</td>\r\n\t\t <td colspan='2' align='left'><input type='text' size='60' name='aim' value='" . htmlspecialchars($user['aim']) . "' /></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>Yahoo</td>\r\n\t\t <td colspan='2' align='left'><input type='text' size='60' name='yahoo' value='" . htmlspecialchars($user['yahoo']) . "' /></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>ICQ</td>\r\n\t \t <td colspan='2' align='left'><input type='text' size='60' name='icq' value='" . htmlspecialchars($user['icq']) . "' /></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <td class='rowhead'>Website</td>\r\n\t\t <td colspan='2' align='left'><input type='text' size='60' name='website' value='" . htmlspecialchars($user['website']) . "' /></td>\r\n\t </tr>"; //== we do not want mods to be able to change user classes or amount donated... // === Donor mod time based by snuggles if ($CURUSER["class"] == UC_SYSOP) { $donor = $user["donor"] == "yes"; $HTMLOUT .= "<tr><td class='rowhead' align='right'><b>{$lang['userdetails_donor']}</b></td><td colspan='2' align='center'>"; if ($donor) { $donoruntil = $user['donoruntil'];
require_once BLOCK_DIR . 'userdetails/invitedby.php'; } $HTMLOUT .= "</table></div>"; $HTMLOUT .= "<div id='comments'>"; if (curuser::$blocks['userdetails_page'] & block_userdetails::USERCOMMENTS && $BLOCKS['userdetails_user_comments_on']) { require_once BLOCK_DIR . 'userdetails/usercomments.php'; } $HTMLOUT .= "</div>"; $HTMLOUT .= "<div id='edit'>"; //==end blocks $HTMLOUT .= "<script type='text/javascript'>\n /*<![CDATA[*/\n function togglepic(bu, picid, formid){\n var pic = document.getElementById(picid);\n var form = document.getElementById(formid);\n \n if(pic.src == bu + '/pic/plus.gif') {\n pic.src = bu + '/pic/minus.gif';\n form.value = 'minus';\n }else{\n pic.src = bu + '/pic/plus.gif';\n form.value = 'plus';\n }\n }\n /*]]>*/\n </script>"; if ($CURUSER['class'] >= UC_STAFF && $user["class"] < $CURUSER['class']) { //$HTMLOUT .= begin_frame("Edit User", true); $HTMLOUT .= "<form method='post' action='staffpanel.php?tool=modtask'>\n"; require_once CLASS_DIR . 'validator.php'; $HTMLOUT .= validatorForm('ModTask_' . $user['id']); $postkey = PostKey(array($user['id'], $CURUSER['id'])); $HTMLOUT .= "<input type='hidden' name='action' value='edituser' />\n"; $HTMLOUT .= "<input type='hidden' name='userid' value='{$id}' />\n"; $HTMLOUT .= "<input type='hidden' name='postkey' value='{$postkey}' />\n"; $HTMLOUT .= "<input type='hidden' name='returnto' value='userdetails.php?id={$id}' />\n"; $HTMLOUT .= "\n <table class='main' border='1' cellspacing='0' cellpadding='5'>\n"; $HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_title']}</td><td colspan='2' align='left'><input type='text' size='60' name='title' value='" . htmlsafechars($user['title']) . "' /></td></tr>\n"; $avatar = htmlsafechars($user["avatar"]); $HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_avatar_url']}</td><td colspan='2' align='left'><input type='text' size='60' name='avatar' value='{$avatar}' /></td></tr>\n"; $HTMLOUT .= "<tr>\n <td class='rowhead'>{$lang['userdetails_signature_rights']}</td>\n <td colspan='2' align='left'><input name='signature_post' value='yes' type='radio'" . ($user['signature_post'] == "yes" ? " checked='checked'" : "") . " />{$lang['userdetails_yes']}\n <input name='signature_post' value='no' type='radio'" . ($user['signature_post'] == "no" ? " checked='checked'" : "") . " />{$lang['userdetails_disable_signature']}</td></tr>\n <!--<tr><td class='rowhead'>{$lang['userdetails_view_signature']}</td>\n <td colspan='2' align='left'><input name='signatures' value='yes' type='radio'" . ($user['signatures'] == "yes" ? " checked='checked'" : "") . " />{$lang['userdetails_yes']}\n <input name='signatures' value='no' type='radio'" . ($user['signatures'] == "no" ? " checked='checked'" : "") . " /></td>\n </tr>-->\n <tr>\n <td class='rowhead'>{$lang['userdetails_signature']}</td>\n <td colspan='2' align='left'><textarea cols='60' rows='2' name='signature'>" . htmlsafechars($user['signature']) . "</textarea></td>\n </tr>\n \n <tr>\n <td class='rowhead'>{$lang['userdetails_gtalk']}</td>\n <td colspan='2' align='left'><input type='text' size='60' name='google_talk' value='" . htmlsafechars($user['google_talk']) . "' /></td>\n </tr>\n <tr>\n <td class='rowhead'>{$lang['userdetails_msn']}</td>\n <td colspan='2' align='left'><input type='text' size='60' name='msn' value='" . htmlsafechars($user['msn']) . "' /></td>\n </tr>\n <tr>\n <td class='rowhead'>{$lang['userdetails_aim']}</td>\n <td colspan='2' align='left'><input type='text' size='60' name='aim' value='" . htmlsafechars($user['aim']) . "' /></td>\n </tr>\n <tr>\n <td class='rowhead'>{$lang['userdetails_yahoo']}</td>\n <td colspan='2' align='left'><input type='text' size='60' name='yahoo' value='" . htmlsafechars($user['yahoo']) . "' /></td>\n </tr>\n <tr>\n <td class='rowhead'>{$lang['userdetails_icq']}</td>\n <td colspan='2' align='left'><input type='text' size='60' name='icq' value='" . htmlsafechars($user['icq']) . "' /></td>\n </tr>\n <tr>\n <td class='rowhead'>{$lang['userdetails_website']}</td>\n <td colspan='2' align='left'><input type='text' size='60' name='website' value='" . htmlsafechars($user['website']) . "' /></td>\n </tr>"; //== we do not want mods to be able to change user classes or amount donated... // === Donor mod time based by snuggles if ($CURUSER["class"] == UC_MAX) { $donor = $user["donor"] == "yes"; $HTMLOUT .= "<tr><td class='rowhead' align='right'><b>{$lang['userdetails_donor']}</b></td><td colspan='2' align='center'>";