} elseif (issuperadmin($ds['userID'])) { $status = $_language->module['superadmin']; } elseif (isanyadmin($ds['userID']) && isclanmember($ds['userID'])) { $status = $_language->module['admin'] . '<br />& ' . $_language->module['clanmember']; } elseif (isanyadmin($ds['userID'])) { $status = $_language->module['admin']; } elseif (isanymoderator($ds['userID']) && isclanmember($ds['userID'])) { $status = $_language->module['moderator'] . '<br />& ' . $_language->module['clanmember']; } elseif (isanymoderator($ds['userID'])) { $status = $_language->module['moderator']; } elseif (isclanmember($ds['userID'])) { $status = $_language->module['clanmember']; } else { $status = $_language->module['user']; } if (isbanned($ds['userID'])) { $banned = '<input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=users&action=ban&id=' . $ds['userID'] . '\');return document.MM_returnValue" value="' . $_language->module['undo_ban'] . '" />'; } else { $banned = '<input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=users&action=ban&id=' . $ds['userID'] . '\');return document.MM_returnValue" value="' . $_language->module['banish'] . '" />'; } if ($ds['activated'] == "1") { $actions = '<input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=users&page=' . $page . '&type=' . $type . '&sort=' . $sort . '&search=' . $search . '&action=addtoclan&id=' . $ds['userID'] . '\');return document.MM_returnValue" value="' . $_language->module['to_clan'] . '" /> <input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=members&action=edit&id=' . $ds['userID'] . '\');return document.MM_returnValue" value="' . $_language->module['rights'] . '" /> <input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=users&action=profile&page=' . $page . '&type=' . $type . '&sort=' . $sort . '&search=' . $search . '&id=' . $ds['userID'] . '\');return document.MM_returnValue" value="' . $_language->module['profile'] . '" />'; } else { $actions = '<input type="button" onclick="MM_goToURL(\'parent\',\'admincenter.php?site=users&action=activate&id=' . $ds['userID'] . '&captcha_hash=' . $hash . '\');return document.MM_returnValue" value="' . $_language->module['activate'] . '" />'; } echo '<tr> <td class="' . $td . '">' . $registered . '</td> <td class="' . $td . '"><a href="../index.php?site=profile&id=' . $id . '" target="_blank">' . strip_tags(stripslashes($nickname)) . '</a></td> <td class="' . $td . '" align="center"><small>' . $status . '</small></td> <td class="' . $td . '" align="center">' . $banned . '</td> <td class="' . $td . '" align="center">' . $actions . '</td>
} if (isset($_GET['action'])) { $action = $_GET['action']; } else { $action = ''; } if (isset($_GET['username'])) { $id = getuserid($_GET['username']); } if (isset($id) and getnickname($id) != '') { if (isbanned($id)) { $banned = '<div id="profile_banned">This user is Banned.</div>'; } else { $banned = ''; } if (isbanned($id)) { $bannedpic = ''; } else { $bannedpic = ''; } if ($action == "galleries") { //galleries eval("\$title_profile = \"" . gettemplate("title_profile") . "\";"); echo $title_profile; $galclass = new Gallery(); $border = BORDER; $bgcat = BGCAT; $pagebg = PAGEBG; $galleries = safe_query("SELECT * FROM " . PREFIX . "gallery WHERE userID='" . $id . "'"); echo '<br /><table width="100%" cellpadding="2" cellspacing="0" bgcolor="' . $border . '"> <tr>
} if ($_POST["attachment" . $i . "del"]) { $in["attachment" . $i] = ""; } } # Text Handling ################################################################################################# $query = mysql_query("select * FROM " . $prefix . "config WHERE type='cat' AND value='{$in['catid']}'"); while ($db = mysql_fetch_array($query)) { $fieldname = $db[name]; $requirederror .= adfieldinputcheck($in[catid], "{$fieldname}", $in[$fieldname]); } if (!$in[location] || !$in[header] || !$in[text] || $requirederror) { died($error[14]); } else { if (isbanned($_SESSION[suserid])) { $error = rawurlencode($error[27]); header(headerstr("classified.php?status=6&errormessage={$error}")); exit; } if (strlen($in['text']) < $limit["0"] || strlen($in['text']) > $limit["1"]) { died("Sorry, your text has to be between {$limit['0']} and {$limit['1']} characters."); } $in = strip_array($in); $in[text] = encode_msg($in[text]); if ($in[icon1] == "on") { $in[icon1] = 1; } else { $in[icon1] = 0; } if ($in[icon2] == "on") {