function putSidebarUpdates() { global $_auth; $result = false; ?> <div id="updates"> <?php // This is just a macro so to not write the same code 5 times // in a row (see below). function __updIcon($count, $hint, $icon) { global $_auth; if ($count > 0) { return getIMG(url() . "images/emoticons/" . $icon, 'alt="' . substr($hint, 0, 1) . '" title="' . $hint . '"') . ($_auth["useFuzzyNumbers"] ? " " : "") . ($hint == _COMMENTS ? '<span id="_globCmtCnt">' : "") . ($hint == _JOURNALS ? '<span id="_globJouCnt">' : "") . fuzzy_number($count) . ($hint == _COMMENTS || $hint == _JOURNALS ? '</span>' : "") . ($_auth["useFuzzyNumbers"] ? "<br />" : " "); } else { return ""; } } $updates = __updIcon($_auth["useUpdWat"], _MESSAGES, "watch.png") . __updIcon($_auth["useUpdFav"], _FAVOURITES, "fav1.png") . __updIcon($_auth["useUpdCom"], _COMMENTS, "comment.png") . __updIcon($_auth["useUpdJou"], _JOURNALS, "journal.png") . __updIcon($_auth["useUpdObj"], _SUBMISSIONS, "submission.png"); if (isExtras()) { $updates .= __updIcon($_auth["useUpdExt"], _SUBMIT_TYPE_EXTRA, "star4.png"); } if ($updates != "") { ?> <a href="<?php echo url("updates"); ?> "><?php echo $updates; ?> </a> <?php $result = true; } ?> </div> <?php return $result; }
<?php if (!isExtras() && !atLeastSModerator() || !isArtist($_auth["useid"]) && !atLeastSModerator()) { include INCLUDES . "p_notfound.php"; return; } $_documentTitle = _EXTRA_SUBMIT; $objid = intval($_cmd[1]); if ($objid > 0) { $where = array("objid" => $objid, "objid*" => "objEid"); if (!atLeastSModerator()) { $where["objCreator"] = $_auth["useid"]; } $result = sql_query("SELECT * FROM `extras`, `extExtData`" . dbWhere($where)); if ($objData = mysql_fetch_assoc($result)) { if (!isset($_POST["submit"])) { $_POST["title"] = $objData["objTitle"]; $_POST["comment"] = $objData["objComment"]; $objFilters = preg_split('/[\\s\\,\\;]/', $objData["objMature"], 64, PREG_SPLIT_NO_EMPTY); foreach ($objFilters as $filter) { $_POST["filter" . $filter] = 1; } $_POST["thumbURL"] = $objData["objThumbURL"]; $_POST["previewURL"] = $objData["objPreviewURL"]; $_POST["fullURL"] = $objData["objImageURL"]; } } else { include INCLUDES . "p_notfound.php"; return; } }
<?php if (isset($_GET["newartview"])) { ?> toggle_visibility( "tab_collabs" ); toggle_visibility( "tab_clubs" ); <?php } if (isExtras()) { ?> toggle_visibility( "tab_extras" ); <?php } $default_page = "messages"; // Auto-click on the tab that has some updates. if (!isset($_GET["newartview"])) { if (isExtras()) { if ($_auth["useUpdExt"] > 0) { $default_page = "extras"; } } if ($_auth["useUpdObj"] > 0) { $default_page = "art"; } } if ($_auth["useUpdJou"] > 0) { $default_page = "journals"; } if ($_auth["useUpdCom"] > 0) { $default_page = "comments"; } if ($_auth["useUpdFav"] + $_auth["useUpdWat"] > 0) {
?> ; var isReadOnly = <?php echo $_config["readOnly"] ? "true" : "false"; ?> ; var isLoggedIn = <?php echo $_auth["useid"] != 0 ? "true" : "false"; ?> ; var isFuzzyNumbers = <?php echo $_auth["useid"] && $_auth["useFuzzyNumbers"] ? "true" : "false"; ?> ; var isExtras = <?php echo isExtras() ? "true" : "false"; ?> ; var isCookiesDisabled = <?php echo isset($_GET["yGalSession"]) ? "true" : "false"; ?> ; var yGalSession = <?php echo isset($_GET["yGalSession"]) ? "'" . $_GET["yGalSession"] . "'" : "''"; ?> ; var baseURL = '<?php echo url(); ?> '; var baseURLF = '<?php
<?php if (!isExtras()) { include INCLUDES . "p_notfound.php"; return; } $_documentTitle = _SUBMIT_TYPE_EXTRA; ?> <div class="header"> <div class="header_title"> <?php echo $_documentTitle; ?> </div> </div> <div class="container"> <?php include_once INCLUDES . "gallery.php"; // Create parameters to pass to showThumbnails. $showArray = array("isExtras" => true, "select" => "SELECT `extras`.* FROM `extras` " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`) "); showThumbnails($showArray); ?> </div>
<?= getIMG( url()."images/emoticons/zip.png" ) ?> ZIP archive</label> </div> <div class="sep notsowide normaltext"> <b>Coming soon</b>. You will be able to upload a ZIP file containing multiple images and assign them a common description. Each image from the archive will become a separate submission. If you want the images to expand into a project, please <a href="<?= url( "newclub" ) ?>">create the project</a> first, then choose it while submitting your ZIP file. </div> */ ?> <?php if (isExtras() && isArtist($_auth["useid"])) { ?> <div class="sep"> <input id="idType4" type="radio" class="radio" name="type" value="4" /> <label for="idType4"> <?php echo getIMG(url() . "images/emoticons/star4.png"); ?> <?php echo _SUBMIT_TYPE_EXTRA; ?> </label> </div> <div class="sep notsowide normaltext"> <?php echo sprintf(_SUBMIT_TYPE_EXTRA_EXPLAIN, $_config["extrasLiftedRules"]);