<div class="clear"> </div> <div class="normaltext"> <?php //Getting club moderator status here since it's mostly for tab display anyway $clubModerator = mysql_num_rows(sql_query("SELECT * FROM `useClubs` WHERE `useCclub`='{$cluid}'" . "AND `useCmember`='" . $_auth['useid'] . "'" . "AND `useCModerator`='1'")); displayTabStart(); displayTab($active == 1, _HOME, url("club/" . $cluid), "club2.png"); displayTab($active == 2, _SUBMISSIONS, url("clubgallery/" . $cluid), "submission.png"); displayTab($active == 5, _ANNOUNCEMENTS, url("announcement/" . $cluid), "journal.png"); displayTab($active == 3, _MEMBERS, url("members/" . $cluid), "club.png"); // The user should be at least a supermoderator or the club owner or club moderator // to be able to access club's settings. if (atLeastModerator() || $_auth["useid"] == $cluData["cluCreator"] || $clubModerator == "1") { displayTab($active == 4, _CLUB_MANAGE, url("manageclub/" . $cluid)); } displayTabEnd(); ?> <div class="clear"> </div> </div>
function getOnlineStatus(&$useData) { global $_auth; if (!$_auth["useid"]) { return ""; } // don't show the lamps to non-registered users if ($useData["useIsHidden"] && !atLeastModerator()) { $isOnline = false; } else { $visitedAgo = strlen($useData["useLastAction"]) > 10 ? time() - $useData["useLastActionTS"] : -1; $isOnline = $visitedAgo >= 0 && $visitedAgo < 10 * 60; } if ($useData["useIsDeveloper"]) { $str = "dev" . ($isOnline ? "" : "0"); } elseif ($useData["useIsSModerator"]) { $str = "smod" . ($isOnline ? "" : "0"); } elseif ($useData["useIsModerator"]) { $str = "mod" . ($isOnline ? "" : "0"); } elseif ($useData["useIsHelpdesk"]) { $str = "hds" . ($isOnline ? "" : "0"); } elseif ($useData["useIsRetired"]) { $str = "ret" . ($isOnline ? "" : "0"); } elseif ($useData["useIsBanned"]) { $str = "banned"; } elseif ($useData["useSuspendedUntilTS"] > time()) { $str = "suspended"; } else { $str = $isOnline ? "1" : "0"; } return $str; }
iefixEnd(); ?> </div> <?php $statsPublic = $useData["useid"] != $_auth["useid"] ? $useData["useStatsPublic"] : true; if (isLoggedIn() && $objData["objCollab"] == $_auth["useid"] && $objData["objCollabConfirmed"]) { $statsPublic = true; } ?> <div class="sep caption"><?php echo _INFORMATION; ?> :</div> <div class="container2"> <?php if (!$_auth["useStatsHide"] && $statsPublic || atLeastModerator()) { ?> <div> <?php echo _VIEWS; ?> : <?php echo fuzzy_number($objData["objViewed"]); ?> </div> <?php if (!$isExtras) { ?> <div> <?php
<?php if (!atLeastModerator()) { include INCLUDES . "p_notfound.php"; return; } ?> <div class="header"> <div class="header_title"> <?php echo _ADMINISTRATION; ?> <div class="subheader"><?php echo _HOME; ?> </div> </div> <?php $active = 1; include INCLUDES . "mod_adminmenu.php"; ?> </div> <div class="container"> <h1>Search for users</h1> <form action="<?php echo url("."); ?> " method="post"> <div class="leftside"> <div class="container2">
} break; } redirect(url(".")); // Redirect to the same page. } } //Deals with the case when the final decision is made after the grace period if ($objData["objPendingUser"] == "1" && isset($_POST["pendingAction"])) { $rule = $objData["abuRule"]; $reason = "You did not fix the issues within the grace period. See the first PM for more information."; $action = $_POST["pendingAction"]; $pendingClose = "1"; if (atLeastModerator() && $action == "+") { abuseRestore($objData["objid"], $useData["useid"], $abuid); } elseif (atLeastModerator() && $action == "-" && time() - $_config["abuseGrace"] > strtotime($objData["abuCloseDate"])) { abuseDelete($objData["objid"], $useData["useid"], $abuid); notifyAbuser($objData, $useData["useid"]); } redirect(url(".")); // Redirect to the same page. } // ----------------------------------------------------------------------------- // PMs the abuse case to all involved moderators. function notifyModerator($objData, $useid) { global $_config; $title = ":abuse: Resolved: " . $objData["objTitle"]; $comment = "The abuse case has been resolved, please click on the following " . "link to review it:\n\n" . "[ [url=" . url("abuse/" . $objData["abuid"], array(), "&") . "]" . $objData["objTitle"] . "[/url] ]"; $userIp = getHexIp($_SERVER["REMOTE_ADDR"]); sql_query("INSERT INTO `pms`" . dbValues(array("pmsObj" => 0, "pmsCreator" => $_config["adminUser"], "pmsPmUser" => $useid, "pmsSubmitDate!" => "NOW()", "pmsTitle" => $title, "pmsComment" => $comment, "pmsSubmitIp" => $userIp, "pmsEditIp" => $userIp, "pmsNoEmoticons" => 1, "pmsNoSig" => 1, "pmsNoBBCode" => 0)));
<div> <?php } ?> <a href="<?php echo url("edit/" . ($isExtras ? "e" : "") . $objid, array("edit" => "keywords")); ?> "> <?php echo _KEYWORDS; ?> </a> </div> <?php if (atLeastModerator() || $useData["useid"] == $_auth["useid"]) { $oekakiSign = "/oekaki/"; if (!$isExtras && substr($objData["objFilename"], 0, strlen($oekakiSign)) == $oekakiSign) { ?> <div class="mar_top"> <a href="<?php echo url("oekaki/" . $objid); ?> "><?php echo _OEKAKI; ?> </a> </div> <?php } else { ?>
</div> </div> <?php $active = 2; include INCLUDES . "mod_usermenu.php"; ?> </div> <div class="container"> <?php $active = 4; include INCLUDES . "mod_usersubmenu.php"; if ($useData["useid"] == $_auth["useid"]) { ?> <div class="f_left"> <button onclick="document.location='<?php echo url("purgetrash"); ?> ';"> <?php echo getIMG(url() . "images/emoticons/cancel.png"); ?> Purge old trash </button> </div> <?php } include_once INCLUDES . "gallery.php"; showThumbnails(array("select" => "SELECT * FROM `objects`, `objExtData`", "where" => "`objEid` = `objid` " . "AND `objPending` = '0' AND `objDeleted` = '1' " . "AND `objCreator` = '" . $useData["useid"] . "' " . (atLeastModerator() ? "" : "AND `objDeletedBy` = '" . $useData["useid"] . "'"), "showDeleted" => true)); ?> </div>
// This script controls the "Profile" tab of the settings. if (!isLoggedIn()) { include INCLUDES . "p_notfound.php"; return; } $cluid = intval($_cmd[1]); $where = array("cluEid*" => "cluid", "cluid" => $cluid); $sql = "SELECT * FROM `clubs`, `cluExtData`" . dbWhere($where); $cluResult = sql_query($sql); if (!($cluData = mysql_fetch_assoc($cluResult))) { include INCLUDES . "p_notfound.php"; return; } $clubModerator = mysql_num_rows(sql_query("SELECT * FROM `useClubs` WHERE `useCclub`='{$cluid}'" . "AND `useCmember`='" . $_auth['useid'] . "'" . "AND `useCModerator`='1'")); if (atLeastModerator() || $cluData["cluCreator"] == $_auth["useid"]) { $clubOwner = 1; $clubModerator = 1; } elseif ($clubModerator == "1") { $clubOwner = 0; $clubModerator = 1; } else { include INCLUDES . "p_notfound.php"; return; } mysql_free_result($cluResult); $_documentTitle = ($cluData["cluIsProject"] ? _PROJECT : _CLUB1) . ": " . $cluData["cluName"] . ": " . _CLUB_MANAGE; ?> <div class="header"> <div class="f_right mar_left a_center normaltext"> <?php
function putRequestData($hlpData, $showDetails = false) { global $_auth; ?> <div class="container2 mar_bottom"> <div style="margin-left : 20px;"> <div style="margin-left : -20px; margin-top : 0.4em; float : left;"> <?php echo getIMG(url() . "images/emoticons/star.png"); ?> </div> <?php if ($hlpData["hlpReferenceType"] == "submission") { ?> <div style="float : right; margin-left : 1em; margin-bottom : 0.5em;"> <?php echo getObjectThumb($hlpData["hlpReferenceId"], 100, false); ?> </div> <?php } if ($hlpData["hlpReferenceType"] == "extras") { ?> <div style="float : right; margin-left : 1em; margin-bottom : 0.5em;"> <?php echo getObjectThumb($hlpData["hlpReferenceId"], 100, true); ?> </div> <?php } ?> <div class="header" style="padding : 0; padding-bottom : 0.3em;"> <a href="<?php echo url("helpdesk/details/" . $hlpData["hlpid"]); ?> "> <?php echo getRequestCategoryText($hlpData["hlpCategory"]); ?> </a> </div> <?php $ref = getRequestRefText($hlpData["hlpReferenceType"], $hlpData["hlpReferenceId"]); if ($ref != "--") { ?> <div> <b>In reference to</b>: <?php echo $ref; ?> </div> <?php } ?> <div> <b>Status</b>: <?php echo getRequestStatusText($hlpData["hlpStatus"]); ?> </div> <div> <b>Urgency</b>: <?php echo getRequestUrgencyText($hlpData["hlpUrgency"]); ?> </div> <?php $hasOwner = $hlpData["hlpOwner"] > 0; $isStaff = atLeastModerator(); $isSubmitter = isLoggedIn() && $_auth["useid"] == $hlpData["hlpSubmitter"]; $isOwner = isLoggedIn() && $_auth["useid"] == $hlpData["hlpOwner"]; if ($isOwner && $hlpData["hlpStatus"] == "wait-assign") { ?> <div class="mar_top"> <span class="error">Summary will be available after the request is assigned.</span> </div> <?php } else { ?> <div class="mar_top"> <?php echo formatText($hlpData["hlpSummary"], true, true); ?> </div> <?php } $allowedPrivacy = "'all'"; if ($isStaff) { $allowedPrivacy .= ",'private','submitter','owner'"; } else { if ($isSubmitter) { $allowedPrivacy .= ",'submitter'"; } if ($isOwner) { $allowedPrivacy .= ",'owner'"; } } if ($showDetails) { ?> <div style="clear : both;"></div> <?php sql_order("hddSubmitDate"); sql_where(array("hddItem" => $hlpData["hlpid"], "|1" => "`hddPrivacy` IN(" . $allowedPrivacy . ")")); $hddResult = sql_rowset("helpdeskDetails"); while ($hddData = sql_next($hddResult)) { putRequestDetail($hlpData, $hddData); } sql_free($hddResult); $doSubmitDetail = false; $detailPrivacy = "?"; if (isset($_POST["submitPrivate"])) { $doSubmitDetail = true; $detailPrivacy = "private"; } if (isset($_POST["submitSubmitter"])) { $doSubmitDetail = true; $detailPrivacy = "submitter"; } if (isset($_POST["submitOwner"])) { $doSubmitDetail = true; $detailPrivacy = "owner"; } if (isset($_POST["submitAll"])) { $doSubmitDetail = true; $detailPrivacy = "all"; } if ($doSubmitDetail) { addRequestDetail($hlpData["hlpid"], "detailText", "detailFile", $detailPrivacy); redirect(url(".")); } if ($hlpData["hlpStatus"] == "completed") { ?> <span class="error"><b>COMPLETED</b></span>. This request's status is 'completed', no further details are accepted. <?php } else { ?> <div class="container2 mar_bottom"> <div class="header" style="padding-left : 0; padding-top : 0;"> Submit new detail </div> <form action="<?php echo url("."); ?> " enctype="multipart/form-data" method="post"> <div class="mar_bottom"> <textarea name="detailText" rows="9" style="width : 95%;"></textarea> </div> <div class="mar_bottom" style="padding-right : 10%"> (optionally) <b>Upload a file</b>: </div> <div class="mar_bottom"> <input name="detailFile" type="file" size="30" /> </div> <?php if ($isSubmitter && !$hasOwner) { // A simple submit button. ?> <div class="mar_top"> <input type="submit" name="submitSubmitter" value="<?php echo _SUBMIT; ?> " /> </div> <?php } else { ?> <div class="mar_top"> Who should be able to read this detail: </div> <?php if ($hasOwner) { ?> <div class="mar_top"> <button name="submitAll"> <?php echo getRequestPrivacyText("all", $hlpData); ?> </button> </div> <?php if (!$isSubmitter) { ?> <div class="mar_top"> <button name="submitOwner"> <?php echo getRequestPrivacyText("owner", $hlpData); ?> </button> </div> <?php } } ?> <div class="mar_top"> <button name="submitSubmitter"> <?php echo getRequestPrivacyText("submitter", $hlpData); ?> </button> </div> <?php if ($isStaff) { // Only staff can submit staff-only details :3 ?> <div class="mar_top"> <button name="submitPrivate"> <?php echo getRequestPrivacyText("private", $hlpData); ?> </button> </div> <?php } ?> <div class="mar_top"> * <b>Submitter</b> — The user that made the request. <?php if ($hasOwner) { ?> <br /> * <b>Owner</b> — The user that owns the object questioned by the request. <?php } ?> </div> <?php } ?> </form> </div> <?php } } else { sql_where(array("hddItem" => $hlpData["hlpid"], "|1" => "`hddPrivacy` IN(" . $allowedPrivacy . ")")); $detailCount = sql_count("helpdeskDetails"); ?> <div style="text-align : left; margin-top : 0.6em;"> <a href="<?php echo url("helpdesk/details/" . $hlpData["hlpid"]); ?> "> View Request Details</a> (<?php echo $detailCount; ?> ) </div> <div style="clear : both;"></div> <?php } ?> </div> </div> <?php }
function showComment($comData, $level, $showParent = false, $markAsReadId = '', $commentCountId = '', $markAsReadId2 = '') { global $_config, $_signatureCache, $_auth, $_cmd, $_currentPageURL; // _HACKFIX - facsimilnym 2011-09-05 // Workaround for the "blank" useDateFormat that ~140,000 users have. // Setting it up here, since there's like 5 code paths. if (!isset($_auth["useDateFormat"]) || $_auth["useDateFormat"] == "") { $_auth["useDateFormat"] = "Y-m-d \\@ g:i A"; } if (isset($comData["pmsid"])) { $comData["comid"] = $comData["pmsid"]; $comData["comCreator"] = $comData["pmsCreator"]; $comData["comNoEmoticons"] = $comData["pmsNoEmoticons"]; $comData["comNoSig"] = $comData["pmsNoSig"]; $comData["comNoBBCode"] = $comData["pmsNoBBCode"]; $comData["comSubject"] = $comData["pmsTitle"]; $comData["comSubjectDateHide"] = true; $comData["comComment"] = $comData["pmsComment"]; $comData["comObj"] = $comData["pmsObj"]; $comData["comObjType"] = "pms"; $comData["comSubmitDate"] = $comData["pmsSubmitDate"]; $comData["comSubmitIp"] = $comData["pmsSubmitIp"]; $comData["comLastEdit"] = $comData["pmsLastEdit"]; $comData["comEditIp"] = $comData["pmsEditIp"]; $comData["comTotalEdits"] = $comData["pmsTotalEdits"]; $comData["comPmUser"] = $comData["pmsPmUser"]; } if (isTwit($comData["comCreator"])) { return; } if (!isLoggedIn()) { $result = sql_query("SELECT `useGuestAccess` FROM `useExtData`" . dbWhere(array("useEid" => $comData["comCreator"]))); if (!mysql_result($result, 0)) { return; } } $commentID = "yg-cmt" . $comData["comid"]; $instantReplyOuterId = $commentID . "InstantReplyOuter"; $instantReplyId = $commentID . "InstantReplyId"; if (!isset($comData["comNoEmoticons"])) { $comData["comNoEmoticons"] = false; } if (!isset($comData["comNoSig"])) { $comData["comNoSig"] = false; } if (!isset($comData["comNoBBCode"])) { $comData["comNoBBCode"] = false; } if (isset($comData["pmsid"])) { if ($comData["comCreator"] != $_auth["useid"] && $comData["comPmUser"] != $_auth["useid"]) { echo '<div class="container2">' . _PM_NO_ACCESS . '</div>'; return; } } $levellim = $level < 8 ? $level : 8; for ($i = 0; $i <= $levellim; $i++) { ?> <div class="<?php echo $i == $levellim ? "pad_top" : ""; echo $level > 0 && $i < $levellim ? "cmt_border_left" : ""; ?> "> <?php } // if($_cmd[0] != "comment") echo '<a name="comment' . $comData["comid"] . '"></a>'; // echo '<div'.($markAsReadId != "" ? ' id="'.$markAsReadId.'"' : "" ).'>'; // Comment outer // echo '<div'.($markAsReadId != "" ? ' id="'.$markAsReadId.'_"' : "" ).' class="container2">'; // Comment body echo '<div class="container2">'; // Comment body iefixStart(); // display parent comment if ($showParent && isset($comData["comObjType"]) && $comData["comObjType"] == "com") { $result = sql_query("SELECT * FROM `comments` WHERE `comid` = '" . $comData["comObj"] . "' LIMIT 1"); if ($parData = mysql_fetch_assoc($result)) { ?> <div class="caption reminder_cap"> <?php echo sprintf(_WROTE, getUserLink($parData["comCreator"])); ?> : </div> <div class="reminder"> <?php echo formatText($parData["comComment"], $parData["comNoEmoticons"], $parData["comNoBBCode"]); ?> </div> <?php } } elseif ($showParent && isset($comData["pmsid"])) { $result = sql_query("SELECT * FROM `pms` WHERE `pmsid` = '" . $comData["comObj"] . "' LIMIT 1"); if ($parData = mysql_fetch_assoc($result)) { if ($parData["pmsCreator"] == $_auth["useid"] || $parData["pmsPmUser"] == $_auth["useid"]) { ?> <div class="caption reminder_cap"> <?php echo sprintf(_WROTE, getUserLink($parData["pmsCreator"])); ?> : </div> <div class="reminder"> <?php echo formatText($parData["pmsComment"], $parData["pmsNoEmoticons"], $parData["pmsNoBBCode"]); ?> </div> <?php } } } if ($comData["comCreator"] != 0) { ?> <div class="f_right mar_left a_center" style="position: relative; top: -3px; left: 3px"> <?php echo getUserAvatar("", $comData["comCreator"], true); ?> </div> <?php } if (isset($comData["comSubject"])) { if (!isset($comData["comSubjectDateHide"])) { ?> <div class="smalltext mar_bottom"><?php // Show IPs to moderators+ (as an acronym). if (atLeastModerator() && isset($comData["comSubmitIp"]) && isset($comData["comEditIp"])) { ?> <acronym style="cursor: help" title="Submitted from <?php echo getDotDecIp($comData["comSubmitIp"]); ?> , last edited from <?php echo getDotDecIp($comData["comEditIp"]); ?> "> <?php } printf(_COMMENT_POSTED_ON, gmdate($_auth["useDateFormat"], applyTimezone(strtotime($comData["comSubmitDate"])))); // Close the acronym opened above. if (atLeastModerator() && isset($comData["comSubmitIp"]) && isset($comData["comEditIp"])) { ?> </acronym> <?php } ?> </div><?php } ?> <div class="largetext mar_bottom"><b><?php echo formatText($comData["comSubject"], false, true); ?> </b></div> <?php } ?> <div class="commentData"> <?php $allowImages = isset($comData["comAllowImages"]) && $comData["comAllowImages"]; echo formatText($comData["comComment"], $comData["comNoEmoticons"], $comData["comNoBBCode"], $allowImages); ?> </div> <?php if (!$comData["comNoSig"] && $_cmd[0] != "updates") { if (!isset($_signatureCache[$comData["comCreator"]])) { $result = sql_query("SELECT `useSignature` FROM `useExtData` WHERE `useEid` = '" . $comData["comCreator"] . "' LIMIT 1"); if (mysql_num_rows($result)) { $_signatureCache[$comData["comCreator"]] = mysql_result($result, 0); } else { $_signatureCache[$comData["comCreator"]] = ""; } } if ($_signatureCache[$comData["comCreator"]] != "") { ?> <div class="hline" style="margin-right: 60px;"> </div> <div class="smalltext"> <?php echo formatText($_signatureCache[$comData["comCreator"]]); ?> </div> <?php } } ?> <div class="clear"> </div> <?php if (isset($comData["newid"])) { // News page. $result = sql_query("SELECT COUNT(*) FROM `comments` " . "WHERE `comObjType` = 'new' AND `comObj` = '" . $comData["newid"] . "'"); $newsCount = mysql_result($result, 0); $newsURL = url("news/" . $comData["newid"]); ?> <div class="sep"> <a href="<?php echo $newsURL; ?> "> <span class="button smalltext" style="float: right" onclick="document.location='<?php echo $newsURL; ?> ';"><?php echo _COMMENTS; ?> <?php if (!$_auth["useStatsHide"]) { echo "(" . fuzzy_number($newsCount) . ")"; } ?> </span></a> </div> <?php } if ($comData["comid"]) { ?> <div class="sep commentActions"> <?php getCommentParent($comData, $parentURL, $parentType, $parentTitle, false); getCommentParent($comData, $rootURL, $rootType, $rootTitle, true); $replyURL = url("comment/" . $comData["comid"] . ($_config["checkSubmitDate"] ? "/" . preg_replace('/[^0-9]/', "", $comData["comSubmitDate"]) : '')); $replyCommentId = $commentID . "ReplyCommentId"; $replyButtonId = $commentID . "ReplyButtonId"; $replyScript = "var elin = get_by_id( '" . $instantReplyId . "' );" . "var elb = get_by_id( '" . $replyButtonId . "' );" . "if( !elb ) return false;" . "if( elb.innerHTML == '" . _CANCEL . "' ) {" . " reset_focus(); " . " collapseAnim( '{$instantReplyOuterId}', -30, 0, '' ); " . " elb.innerHTML = '" . _REPLY . "';" . " return false;" . "}" . "_IR = { " . "commentId: '" . $replyCommentId . "'," . "commentName: 'comment'," . "commentDefault: ''," . "commentWide: true," . "commentRows: 7," . "commentNoBBCode: " . (isLoggedIn() && $_auth["useNoBBCode"] ? "true" : "false") . "," . "commentNoEmoticons: " . (isLoggedIn() && $_auth["useNoEmoticons"] ? "true" : "false") . "," . "commentNoOptions: false," . "commentNoSig: " . (isLoggedIn() && $_auth["useNoSig"] ? "true" : "false") . "," . "emoticonPopupURL: '" . url("emoticons", array("popup" => "yes", "comment" => $replyCommentId)) . "'," . "previewURL: '" . url("preview", array("popup" => "yes")) . "'" . "};" . "var ht = showReplyForm( '" . $replyURL . "', '" . $_currentPageURL . "' );" . "elin.innerHTML = ht;" . "collapseAnim( '{$instantReplyOuterId}', 30, 0, 'set_focus( \\'' + _IR.commentId + '\\' );' ); " . "elb.innerHTML = '" . _CANCEL . "';" . "return false;"; if (!isset($comData["pmsid"]) && $replyURL != url(".") && $_cmd[0] != "editcomment") { ?> <span class="button smalltext" style="float: right" id="<?php echo $replyButtonId; ?> " onclick="<?php echo $replyScript; ?> "> <?php echo _REPLY; ?> </span> <?php } if ($_cmd[0] == "comment" && $rootURL != url(".") && $level == 0) { ?> <a href="<?php echo $rootURL; ?> " title="<?php echo htmlspecialchars($rootTitle); ?> "> <span class="button smalltext" style="float: right" onclick="document.location='<?php echo $rootURL; ?> ';"> <?php echo _ROOT; ?> (<?php echo $rootType; ?> ) </span></a> <?php } if ($_cmd[0] == "comment" && $parentURL != url(".") && $level == 0 && $parentURL != $rootURL) { ?> <a href="<?php echo $parentURL; ?> " title="<?php echo htmlspecialchars($parentTitle); ?> "> <span class="button smalltext" style="float: right" onclick="document.location='<?php echo $parentURL; ?> ';"> <?php echo _PARENT; ?> (<?php echo $parentType; ?> ) </span></a> <?php } if ($_cmd[0] == "updates") { $comid = $comData["comid"]; $script = "add_operation( 'm{$comid}' );\n" . "\$('{$markAsReadId}').hide(); " . ($markAsReadId2 != "" ? "if() \$('{$markAsReadId2}').hide(); " : "") . "var elb = \$( '{$replyButtonId}' );" . "if( !elb ) return false;" . "if( elb.innerHTML == '" . _CANCEL . "' ) {" . " reset_focus(); " . " collapseAnim( '{$instantReplyOuterId}', -30, 0, '' ); " . " elb.innerHTML = '" . _REPLY . "';" . " return false;" . "}" . "comment_count--; " . "\$('_updCmtCnt').innerHTML = fuzzy_number( comment_count ); " . "\$('_globCmtCnt').innerHTML = fuzzy_number( comment_count );"; ?> <div id="<?php echo $id1 = $commentID . "Updates1"; ?> " class="button smalltext" style="display: none; float: right" onclick="<?php echo $script; ?> "><?php echo _MARK_AS_READ; ?> : <span class="error"><?php echo _CLICK_TO_CONFIRM; ?> </span></div> <div id="<?php echo $id2 = $commentID . "Updates2"; ?> " class="button smalltext" style="float: right" onclick="$('<?php echo $id1; ?> ').show(); $('<?php echo $id2; ?> ').hide();"><?php echo _MARK_AS_READ; ?> </div> <?php } if ((atLeastSModerator() || $comData["comCreator"] == $_auth["useid"]) && $_cmd[0] != "editcomment" && $_cmd[0] != "updates") { $editURL = isset($comData["pmsid"]) ? url("editpm/" . $comData["pmsid"]) : url("editcomment/" . $comData["comid"]); ?> <a href="<?php echo $editURL; ?> "> <span class="button smalltext" style="float: right" onclick="document.location='<?php echo $editURL; ?> ';"> <?php echo _EDIT; ?> </span></a> <?php } ?> <div class="f_left mar_top smalltext"> <?php // Show IPs to moderators+ (as an acronym). if (atLeastModerator()) { ?> <acronym style="cursor: help" title="Submitted from <?php echo getDotDecIp($comData["comSubmitIp"]); ?> , last edited from <?php echo getDotDecIp($comData["comEditIp"]); ?> "> <?php } if (!isset($comData["pmsid"])) { ?> <a class="originalUrl" href="<?php echo $replyURL; ?> ">#</a> <?php } printf(_COMMENT_POSTED_ON, gmdate($_auth["useDateFormat"], applyTimezone(strtotime($comData["comSubmitDate"])))); if (isset($comData["comTotalEdits"]) && $comData["comTotalEdits"] > 0) { echo "<br />" . sprintf(_COMMENT_EDITED, $comData["comTotalEdits"], gmdate($_auth["useDateFormat"], applyTimezone(strtotime($comData["comLastEdit"])))); } // Close the acronym opened above. if (atLeastModerator()) { ?> </acronym> <?php } ?> </div> </div> <?php } ?> <div class="clear"> </div> <?php iefixEnd(); echo '</div>'; // Comment body //echo '</div>'; // Comment outer ?> <table cellspacing="0" cellpadding="0" width="100%"><tr><td> <div id="<?php echo $instantReplyOuterId; ?> " style="display: none"> <div class="cmt_border_left" style="padding: 4px; padding-right: 0;" id="<?php echo $instantReplyOuterId; ?> _"> <div class="caption smalltext"><?php echo _REPLY; ?> :</div> <div style="padding: 1px; padding-bottom: 5px" id="<?php echo $instantReplyId; ?> "><br /></div> </div> </div> </td></tr></table> <?php for ($i = 0; $i <= $levellim; $i++) { echo "</div>"; } }
<?php $viewOK = false; $active = 1; include INCLUDES . "mod_artmenu.php"; if (!$viewOK) { return; } $statsPublic = $useData["useid"] != $_auth["useid"] ? $useData["useStatsPublic"] : true; if (!$statsPublic && !atLeastModerator()) { include INCLUDES . "p_notfound.php"; return; } ?> <div class="container"> <div class="header"><?php echo _FAVOURITES; ?> :</div> <?php $offset = isset($_GET["offset"]) ? intval($_GET["offset"]) : 0; $limit = 30; $whereGuest = isLoggedIn() ? "" : " AND `useGuestAccess` = '1' "; $friendQuery = sql_query("SELECT SQL_CALC_FOUND_ROWS * FROM `favourites` " . "WHERE `favObj`='" . $objData['objid'] . "' {$whereGuest} ORDER BY `favSubmitDate` DESC LIMIT {$offset}, {$limit}"); $cntResult = sql_query("SELECT FOUND_ROWS()"); $totalCount = mysql_result($cntResult, 0); ?> <div class="container2"> <?php navControls($offset, $limit, $totalCount); ?>
include INCLUDES . "p_notfound.php"; return; } $result = sql_query("SELECT * FROM {$_objects},{$_objExtData} WHERE `objid` = '" . $objid . "' AND `objEid` = `objid` AND `objPending` = '0' AND `objDeleted` = '0' AND `objNoAbuse` = '0' LIMIT 1"); if (!mysql_num_rows($result)) { // if it is not possible to report this object, return the Not Found page include INCLUDES . "p_notfound.php"; return; } else { $objData = mysql_fetch_assoc($result); } if (mysql_result(sql_query("SELECT COUNT(*) FROM `abuses` WHERE `abuSubmitter` = '" . $_auth["useid"] . "' AND `abuResolved` = '0'"), 0) > intval($_config["maxOpenAbuse"]) && !atLeastModerator()) { notice(_ABUSE_TOO_MANY); return; } if (mysql_result(sql_query("SELECT COUNT(*) FROM `abuses` WHERE `abuSubmitter` = '" . $_auth["useid"] . "' AND `abuCreator`='" . $objData['objCreator'] . "' AND `abuResolved` = '0'"), 0) > intval($_config["maxOpenAbuseGallery"]) && !atLeastModerator()) { notice(_ABUSE_TOO_MANY); return; } $useResult = sql_query("SELECT `useid`,`useUsername` FROM `users` WHERE `useid` = '" . $objData["objCreator"] . "' LIMIT 1"); $useData = mysql_fetch_assoc($useResult); $_documentTitle = _ABUSE_REPORT; ?> <div class="header"> <div class="header_title"> <?php echo _ABUSE_REPORT; ?> <div class="subheader"><?php echo formatText($objData["objTitle"]); ?>
function oekakiViewAnimation($object) { $appletWidth = 740; $appletHeight = 550; $imageURL = ""; $query = "SELECT `objid`,`objSubmitDate`,`objLastEdit`,`objExtension`,`objImageWidth`,`objImageHeight`,`objFilename` FROM `objects`,`objExtData` WHERE `objEid` = `objid` AND `objid` = '" . intval($object) . "' AND `objAniType` <> 'no'" . (atLeastModerator() ? "" : " AND `objPending` = '0' AND `objDeleted` = '0'") . " LIMIT 1"; $result = sql_query($query); if (!($objData = mysql_fetch_assoc($result))) { redirect(url("notfound")); return; // cannot edit this submission } $imageURL = applyIdToPath("files/data/", $objData["objid"]) . "-" . preg_replace('/[^0-9]/', "", $objData["objLastEdit"]) . "." . $objData["objExtension"]; $editor = 0; switch ($objData["objFilename"]) { case "/oekaki/" . OEK_SHI: $editor = OEK_SHI; break; case "/oekaki/" . OEK_SHIPRO: $editor = OEK_SHIPRO; break; case "/oekaki/" . OEK_PAINTBBS: $editor = OEK_PAINTBBS; break; case "/oekaki/" . OEK_OEKAKIBBS: $editor = OEK_OEKAKIBBS; break; } switch ($editor) { case OEK_SHI: case OEK_SHIPRO: $appletArchive = url() . "scripts/oekaki/shipainter/PCHViewer.jar"; $appletCode = "pch2.PCHViewer"; $appletParams = array("speed" => 2, "image_width" => $objData["objImageWidth"], "image_height" => $objData["objImageHeight"], "pch_file" => preg_replace('/png$/', 'pch', urlf() . $imageURL), "res.zip" => "../scripts/oekaki/shipainter/res.zip", "tt.zip" => "../scripts/oekaki/shipainter/tt.zip", "run" => "true", "buffer_progress" => "true", "buffer_canvas" => "true", "color_icon" => "#eeeeee", "color_bar" => "#dddddd", "color_bar_select" => "#ffffff", "color_back" => "#eeeeee", "layer_count" => 5, "layer_max" => 8, "layer_last" => 2, "quality" => 1); break; case OEK_PAINTBBS: $appletArchive = url() . "scripts/oekaki/shipainter/PCHViewer.jar"; $appletCode = "pch.PCHViewer"; $appletParams = array("speed" => 2, "image_width" => $objData["objImageWidth"], "image_height" => $objData["objImageHeight"], "pch_file" => preg_replace('/png$/', 'pch', urlf() . $imageURL), "run" => "true", "buffer_progress" => "true", "buffer_canvas" => "true", "color_icon" => "#eeeeee", "color_bar" => "#dddddd", "color_bar_select" => "#ffffff", "color_back" => "#eeeeee"); break; case OEK_OEKAKIBBS: $appletArchive = url() . "scripts/oekaki/shipainter/oekakibbs.jar"; $appletCode = "a.p"; $appletParams = array("popup" => 0, "anime" => 2, "readanm" => preg_replace('/png$/', 'oeb', basename($imageURL)), "readanmpath" => urlf() . dirname($imageURL) . "/", "picw" => $objData["objImageWidth"], "pich" => $objData["objImageHeight"], "baseC" => "888888", "brightC" => "aaaaaa", "darkC" => "666666", "backC" => "000000", "buffer_canvas" => "true"); break; default: notice(_OEKAKI_UNKNOWN_EDITOR); return; } $params = ""; foreach ($appletParams as $name => $value) { $params .= '<param name="' . $name . '" value="' . htmlspecialchars(strval($value)) . '" />' . "\n\t\t"; } // Changed from embedded objects (which caused a "you need this plugin" message) // to browser detection ?> <div align="center"> <?php if (ereg("MSIE", $_SERVER["HTTP_USER_AGENT"]) && !ereg("Opera", $_SERVER["HTTP_USER_AGENT"])) { ?> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,5,0,4" width="<?php echo $appletWidth; ?> " height="<?php echo $appletHeight; ?> " > <param name="code" value="<?php echo $appletCode; ?> " /> <param name="archive" value="<?php echo $appletArchive; ?> " /> <?php echo $params; ?> </object> <?php } else { ?> <object type="application/x-java-applet" classid="java:<?php echo $appletCode; ?> .class" archive="<?php echo $appletArchive; ?> " width="<?php echo $appletWidth; ?> " height="<?php echo $appletHeight; ?> "> <?php echo $params; ?> <?php echo sprintf(_OEKAKI_NO_JAVA, 'http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jre-1.5.0_04-oth-JPR&SiteId=JSC&TransactionId=noreg'); ?> </object> <?php } ?> <form action="<?php echo url("view/" . $object); ?> " method="get"> <div class="sep"> <button type="submit" class="submit"> <?php echo getIMG(url() . "images/emoticons/nav-prev.png"); ?> <?php echo _RETURN; ?> </button> </div> </form> </div> <?php }
if (!$_auth["useid"]) { include INCLUDES . "p_notfound.php"; return; } if (substr($_cmd[1], 0, 1) == "e") { $isExtras = true; $objid = intval(substr($_cmd[1], 1)); $_objects = "`extras`"; $_objExtData = "`extExtData`"; } else { $objid = intval($_cmd[1]); $isExtras = false; $_objects = "`objects`"; $_objExtData = "`objExtData`"; } $extraRights = atLeastModerator(); if ($extraRights) { $conditions = ""; } else { if (isHelpdesk()) { $conditions = "AND `objDeleted` = '0'"; } else { $conditions = "AND (`objPending` = '0' OR `objPendingUser` = '1') AND `objDeleted` = '0' " . "AND `objCreator` = '" . $_auth["useid"] . "'"; } } $result = sql_query("SELECT * FROM {$_objects},{$_objExtData} " . "WHERE `objid` = '" . $objid . "' AND `objEid` = '" . $objid . "' {$conditions} LIMIT 1"); if (!mysql_num_rows($result)) { // If the artwork does not exist, return the Not Found page. include INCLUDES . "p_notfound.php"; return; } else {
<?php echo date("Y-m-d H:i:s"); ?> </div> <?php $active = 4; include INCLUDES . "mod_browsemenu.php"; ?> </div> <?php if (!$_auth["useid"]) { echo '<div class="container">'; notice(_PAGENOTFOUND_TITLE); echo '</div>'; return; } ?> <div class="container"> <div class="container2"> <?php $whereGuest = isLoggedIn() ? "" : " AND `useGuestAccess` = '1' "; $whereHidden = atLeastModerator() ? "" : " AND `useIsHidden` = '0' "; $whereLimit = atLeastModerator() ? "100" : "20"; $friendQuery = "SELECT `useid` FROM `users`,`useExtData` WHERE `useid` = `useEid` {$whereGuest} AND `useLastAction` > '{$minTime2}' {$whereHidden} ORDER BY `useIsSModerator` DESC, `useIsModerator` DESC, `useIsDeveloper` DESC, `useIsHelpdesk` DESC, `useLastAction` DESC LIMIT {$whereLimit}"; include INCLUDES . "mod_friends.php"; ?> </div> </div>
$showClubsTab = mysql_result($result, 0) > 0; if (isLoggedIn()) { $result = sql_query("SELECT COUNT(*) FROM `useExtData` " . "WHERE `useEid` = '" . intval($useData["useid"]) . "' AND `useStatsPublic` = '1'"); $showStatsTab = mysql_result($result, 0) > 0; } } if ($_auth["useStatsHide"]) { $showStatsTab = false; } if ($showJournalsTab) { displayTab($active == 7, _JOURNAL, url("journal/" . $useUsername), "journal.png"); } if ($showPollsTab) { displayTab($active == 8, _POLL, url("poll/" . $useUsername), "poll.png"); } displayTab($active == 3, _FRIENDS, url("friends/" . $useUsername), "watch.png"); if ($showClubsTab) { displayTab($active == 5, _CLUBS, url("clubs/" . $useUsername), "club2.png"); } if ($showStatsTab) { displayTab($active == 6, _STATS, url("stats/" . $useUsername)); } if (atLeastModerator()) { displayTab($active == 9, _MODERATION, url("moderate/" . $useUsername)); } displayTabEnd(); ?> <div class="clear"><br /></div> </div>
<?php $_documentTitle = "Translator's Tool"; $lang = preg_replace('/[^A-Za-z\\-]/', "", $_cmd[1]); $offset = isset($_GET["offset"]) ? intval($_GET["offset"]) : 0; // check if the user is allowed to make translations for this language $result = sql_query("SELECT `traid` FROM `translators` WHERE `traUser` = '" . $_auth["useid"] . "' AND `traLanguage` = '{$lang}' LIMIT 1"); if (!mysql_num_rows($result) && !atLeastModerator()) { include INCLUDES . "p_notfound.php"; return; } if (!isset($_GET["order"])) { $_GET["order"] = 1; } // Show New/Updated by default if (!isset($_GET["limit"])) { $_GET["limit"] = 0; } // Show 12 strings per page by default switch (intval($_GET["limit"])) { case 1: $limit = 8; break; case 2: $limit = 24; break; case 3: $limit = 48; break; default: $limit = 12;