Ejemplo n.º 1
0
?>
<div class="header">
	<div class="f_right mar_left a_center normaltext">
		<?php 
echo getUserAvatar("", $useData["useid"], true);
?>
	</div>
	<div class="f_left header_title">
		<?php 
echo $useData["useUsername"];
?>
		<div class="subheader"><?php 
echo _FAVOURITES;
?>
</div>
	</div>	
	<?php 
$active = 2;
include INCLUDES . "mod_usermenu.php";
?>
</div>

<div class="container">
	<?php 
$active = 2;
include INCLUDES . "mod_usersubmenu.php";
include_once INCLUDES . "gallery.php";
showThumbnails(array("select" => "SELECT * FROM `objects`,`favourites`", "where" => "`objid` = `favObj` AND `favCreator` = '" . $useData["useid"] . "'", "isFavorites" => true));
?>
</div>
Ejemplo n.º 2
0
    $where = "`objPending` = '0' AND `objDeleted` = '0'";
    if (!isLoggedIn()) {
        $where .= " AND `objGuestAccess` = '1'";
    }
    applyObjFilters($where);
    $objList = array();
    $result = sql_query("SELECT DISTINCT `objCreator` FROM `objects` WHERE {$where} " . "ORDER BY `objSubmitDate` DESC LIMIT 48");
    while ($objData = mysql_fetch_row($result)) {
        $creator = $objData[0];
        $result2 = sql_query("SELECT `objid` FROM `objects` WHERE ({$where}) " . "AND `objCreator` = '{$creator}' ORDER BY `objSubmitDate` DESC LIMIT 1");
        if ($obj2Data = mysql_fetch_row($result2)) {
            $objList[] = $obj2Data[0];
        }
    }
    $objList = array_unique($objList);
    showThumbnails(array("where" => "`objid` IN('" . implode("','", $objList) . "')", "maxcols" => "2", "limit" => 12, "order" => 0));
    ?>
			</div>
			</div>
		</div>
		<div class="rightside">
		<?php 
} else {
    ?>
		<div class="notsowide">
		<?php 
}
if ($ableToPost) {
    ?>
			<div id="postNews" style="<?php 
    echo $_isIE && isset($_GET["postNews"]) ? "" : "display: none";
Ejemplo n.º 3
0
?>
</div>
	</div>
	<?php 
$active = 2;
include INCLUDES . "mod_usermenu.php";
?>
</div>

<div class="container">
	<?php 
$active = 1;
include INCLUDES . "mod_usersubmenu.php";
include_once INCLUDES . "gallery.php";
// Create parameters to pass to showThumbnails.
if ($showFolders) {
    if ($folid == 0) {
        $showArray = array("folderCreator" => $useData, "folderSelect" => "SELECT `folders`.* FROM `folders` " . "LEFT JOIN `objects` ON(`objFolder` = `folid`) " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`)", "folderWhere" => "`objFolder` IS NOT NULL " . "AND (`objForClub` = '0' OR `cluIsProject` = '0') " . "AND `objCreator` = '" . $useData["useid"] . "' ", "AND `folCreator` = '" . $useData["useid"] . "'", "folderCalc" => "SELECT COUNT(*) FROM `objects` " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`) ", "folderCalcWhere" => "(`objForClub` = '0' OR `cluIsProject` = '0') " . "AND `objCreator` = '" . $useData["useid"] . "'", "select" => "SELECT `objects`.* FROM `objects` " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`) ", "where" => "(`objForClub` = '0' OR `cluIsProject` = '0') " . "AND `objFolder` = '0' " . "AND `objCreator` = '" . $useData["useid"] . "'");
    } else {
        $showArray = array("folderParent" => $useData, "select" => "SELECT `objects`.* FROM `objects` " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`) ", "where" => "(`objForClub` = '0' OR `cluIsProject` = '0') " . "AND `objCreator` = '" . $useData["useid"] . "'");
        if ($_cmd[2] != "") {
            $showArray["where"] .= " AND `objFolder` = '" . $folid . "'";
        }
    }
} else {
    $showArray = array("select" => "SELECT `objects`.* FROM `objects` " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`) ", "where" => "(`objForClub` = '0' OR `cluIsProject` = '0') " . "AND `objCreator` = '" . $useData["useid"] . "'");
}
showThumbnails($showArray);
?>
</div>
Ejemplo n.º 4
0
?>
<div class="header">
	<div class="f_right mar_left a_center normaltext">
		<?php 
echo getUserAvatar("", $useData["useid"], true);
?>
	</div>
	<div class="f_left header_title">
		<?php 
echo $useData["useUsername"];
?>
		<div class="subheader"><?php 
echo _SUBMISSIONS;
?>
</div>
	</div>	
	<?php 
$active = 2;
include INCLUDES . "mod_usermenu.php";
?>
</div>

<div class="container">
	<?php 
$active = 3;
include INCLUDES . "mod_usersubmenu.php";
include_once INCLUDES . "gallery.php";
showThumbnails(array("select" => "SELECT `objects`.* FROM `objects` " . "LEFT JOIN `clubs` ON(`objForClub` = `cluid`) ", "where" => "`objForClub` <> '0' AND `cluIsProject` = '1' " . "AND `objCreator` = '" . $useData["useid"] . "'"));
?>
</div>
Ejemplo n.º 5
0
<?php

$_documentTitle = _BROWSE . ": " . _ALL_SUBMISSIONS;
?>
<div class="header">
	<div class="header_title">
		<?php 
echo _BROWSE;
?>
		<div class="subheader"><?php 
echo _ALL_SUBMISSIONS;
?>
</div>
	</div>	
	<?php 
$active = 1;
include INCLUDES . "mod_browsemenu.php";
?>
</div>

<div class="container">
	<?php 
include_once INCLUDES . "gallery.php";
showThumbnails(array("noMostFaved" => true, "quickSearch" => true, "countDisabled" => true));
?>
</div>
Ejemplo n.º 6
0
    ?>
</div>
		</div>
	</div>

	<div class="container">
		<?php 
    if ($select == "") {
        notice(_LOAD_TOO_HIGH);
        return;
    } else {
        // Show the gallery.
        include_once INCLUDES . "gallery.php";
        $searchText = isset($_GET["searchText"]) ? trim($_GET["searchText"]) : "";
        $sortById = $searchText != "" ? "`seaObject`" : ($hasK1 ? "k1.`objKobject`" : "objid");
        showThumbnails(array("quickSearch" => true, "disableFiltering" => true, "countDisabled" => true, "onDisplayFiltering" => true, "sortById" => $sortById, "select" => $select, "where" => $where));
    }
    ?>
	</div>
	<?php 
    return;
}
?>
<form action="<?php 
echo url("search");
?>
" method="get">
<div class="header">
	<div class="header_title">
		<?php 
echo _SEARCH;
Ejemplo n.º 7
0
<?php

$_documentTitle = _BROWSE . ": " . _DELETED_SUBMISSIONS;
if (!atLeastModerator()) {
    include INCLUDES . "p_notfound.php";
    return;
}
?>
<div class="header">
	<div class="header_title">
		<?php 
echo _BROWSE;
?>
		<div class="subheader"><?php 
echo _DELETED_SUBMISSIONS;
?>
</div>
	</div>	
	<?php 
$active = 6;
include INCLUDES . "mod_browsemenu.php";
?>
</div>

<div class="container">
	<?php 
include_once INCLUDES . "gallery.php";
showThumbnails(array("quickSearch" => true, "where" => "`objPending` = '1' OR `objDeleted` = '1'", "showDeleted" => true));
?>
</div>
Ejemplo n.º 8
0
</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>
Ejemplo n.º 9
0
$_documentTitle = ($cluData["cluIsProject"] ? _PROJECT : _CLUB1) . ": " . $cluData["cluName"] . ": " . _SUBMISSIONS;
?>

<div class="header">
	<div class="f_right mar_left a_center normaltext">
		<?php 
echo getClubIcon($cluData["cluid"]);
?>
	</div>
	<div class="header_title">
		<?php 
echo $cluData["cluName"];
?>
		<div class="subheader"><?php 
echo _SUBMISSIONS;
?>
</div>
	</div>	
	<?php 
$active = 2;
include INCLUDES . "mod_clubmenu.php";
?>
</div>

<div class="container">
	<?php 
include_once INCLUDES . "gallery.php";
showThumbnails(array("select" => "SELECT * FROM `objects`,`clubObjects`", "where" => "`cloObject` = `objid` AND `cloClub` = '{$cluid}'"));
?>
</div>
Ejemplo n.º 10
0
?>
<div class="header">
	<div class="header_title">
		<?php 
echo _BROWSE;
?>
		<div class="subheader"><?php 
echo _MOST_RECENT_FAVS;
?>
</div>
	</div>
	<?php 
$active = 7;
include INCLUDES . "mod_browsemenu.php";
?>
</div>

<div class="container">
	<?php 
include_once INCLUDES . "gallery.php";
$where = "`objPending` = '0' AND `objDeleted` = '0' " . "AND `objPopularity` >= '2000' " . "AND `objSubmitDate` > DATE_SUB(NOW(), INTERVAL " . $_config["mostRecentDays"] . " DAY)";
applyObjFilters($where);
$objList = array();
$result = sql_query("SELECT DISTINCT `objid` FROM `objects` WHERE {$where} " . "ORDER BY `objPopularity` DESC, `objSubmitDate` DESC LIMIT 96");
while ($objData = mysql_fetch_row($result)) {
    $objList[] = $objData[0];
}
showThumbnails(array("noMostFaved" => true, "where" => "`objid` IN('" . implode("','", $objList) . "')"));
?>
</div>