echo $_auth["useUpdPms"] > 0 ? getIMG(url() . "images/emoticons/pmnew.png") . " " . _PRIVATE . " (" . $_auth["useUpdPms"] . ")" : getIMG(url() . "images/emoticons/pmnonew.png") . " " . _PRIVATE; ?> </a> </div> <div class="ui2-section-body" style="text-align : center;"> <div> <a href="javascript:popup('<?php echo url("tos", array("popup" => "yes")); ?> ','tos',900,700)"><?php echo _TOS; ?> </a> </div> <?php if (atLeastHelpdesk()) { ?> <div><a href="<?php echo url("admin"); ?> "><?php echo _ADMINISTRATION; ?> </a></div> <?php } if ($_newUI == 1) { ?> <div> <a style="font-weight : normal;" href="<?php echo url("settings/site");
function getObjectThumb($objid = 0, $size = 30, $isExtras = false) { global $_auth; $objid = intval($objid); $where = "`objid` = '{$objid}'"; if (!atLeastHelpdesk()) { $where = "({$where}) AND `objDeleted` = '0' AND `objPending` = '0'"; } applyObjFilters($where); $result = sql_query("SELECT * FROM `" . ($isExtras ? "extras" : "objects") . "` WHERE {$where} LIMIT 1"); // check if the object exists - Why did this say club before? if (!($objData = mysql_fetch_assoc($result))) { // no? return getIMG(urlf() . "images/nothumb.gif", 'alt="[' . _BBCODE_THUMB . '=' . $objid . ']" title="' . sprintf(_UNKNOWN_SUBMISSION, $objid) . '" class="microthumb"'); } if (!isLoggedIn()) { $sql = "SELECT `useGuestAccess` FROM `useExtData`" . dbWhere(array("useEid" => $objData["objCreator"])); $result = sql_query($sql); if (!mysql_result($result, 0)) { return getIMG(urlf() . "images/nothumb.gif", 'alt="[' . _BBCODE_THUMB . '=' . $objid . ']" title="' . sprintf(_UNKNOWN_SUBMISSION, $objid) . '" class="microthumb"'); } } // found the object if (!$isExtras && $objData["objThumbDefault"]) { $filename = "images/litthumb.png"; } else { $filename = $isExtras ? "" : findNewestFileById("files/thumbs/", $objid, "images/nothumb.gif"); } $width = round($objData["objThumbWidth"] * $size / 100); $height = round($objData["objThumbHeight"] * $size / 100); $objTitle = htmlspecialchars($objData["objTitle"]) . ' <br /> '; if ($objData["objCollab"] > 0) { $objTitle .= sprintf(_BY_AND, getUserLink($objData["objCreator"]), getUserLink($objData["objCollab"])); } else { $objTitle .= sprintf(_BY, getUserLink($objData["objCreator"])); } $src = $isExtras ? $objData["objThumbURL"] : urlf() . $filename; if ($size < 100) { makeFloatingThumb(strip_tags($objTitle), $src, $objData["objThumbWidth"], $objData["objThumbHeight"], $objData["objMature"], true, $onmouseover, $onmouseout); } else { $onmouseover = ""; $onmouseout = ""; } $str = '<a href="' . url("view/" . ($isExtras ? "e" : "") . $objData["objid"]) . '">' . getIMG($src, 'alt="[' . _BBCODE_THUMB . '=' . $objid . ']" class="microthumb' . ($objData["objMature"] ? " mature" : "") . '" ' . 'style="width: ' . $width . 'px; height: ' . $height . 'px" ' . 'onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '" ' . 'title="' . strip_tags($objTitle) . '"', true) . '</a> '; return $str; }
<?php $_documentTitle = "Administrative Chat"; if (!atLeastHelpdesk()) { include INCLUDES . "p_notfound.php"; return; } if (isset($_POST["submitLog"])) { sql_query("INSERT INTO `adminChat`" . dbValues(array("adcText" => str_replace("\r\n", "\n", $_POST['modMessage']), "adcCreator" => $_auth["useid"], "adcSubmitDate!" => "NOW()"))); redirect(url(".")); } $modOffset = isset($_GET["offset"]) ? $_GET["offset"] : "0"; ?> <div class="header"> <div class="header_title"> <?php echo _ADMINISTRATION; ?> <div class="subheader">Admin Chat</div> </div> <?php $active = 6; include INCLUDES . "mod_adminmenu.php"; ?> </div> <div class="container"> <h1>Site Statistics</h1> <div class="container2 mar_bottom"> <?php //facs 2011-09-15
<?php } ?> </div> <?php $found = true; } ?> </div> <?php if ($found) { ob_end_flush(); } else { ob_end_clean(); } if (atLeastHelpdesk() || $useData["useid"] == $_auth["useid"]) { // The creator of this submission and also HDStaff (and higher) // are allowed to edit the submission's details: title, comment, // mature rating, club/project belonging, keywords, files, and also // delete the submission. // // Note: Only the creator or a moderator/supermoderator can edit submission's // files. HDStaff can only edit keywords. Only the creator/supermod can delete/undelete. // Admin can purge, which involves permanently deleting the file. ?> <div class="sep caption"> <?php echo _EDIT_SUBMISSION; ?> : </div>