Esempio n. 1
0
        redirect(url("themedesigner/" . strtolower($_auth["useUsername"])));
    }
    $useName = $_cmd[1];
    // Current user can only design their own custom theme.
    if (strtolower($useName) != strtolower($_auth["useUsername"])) {
        include INCLUDES . "p_notfound.php";
        return;
    }
    $useid = getUserId($useName);
    if ($useid == 0) {
        include INCLUDES . "p_notfound.php";
        return;
    }
    // The user must be an artist (have at least 1 submission)
    // to be able to design custom themes.
    if (!isArtist($useid)) {
        include INCLUDES . "p_notfound.php";
        return;
    }
}
$_documentTitle = "Theme Designer";
include_once INCLUDES . "customthemes.php";
$data = loadCustomThemeData($useid, $isClub);
$lastThemeFile = getLastCustomThemeFile($useid, $isClub);
?>
<div class="header">
	<div class="header_title" style="height: 100px">
		Theme Designer
		<div class="subheader">A tool for designing your custom theme</div>
	</div>
	<?php 
Esempio n. 2
0
<?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;
    }
}
 //$XMLbody .= '<artists>' . array_to_xmlCD($artists, 2) . '</artists>';
 //http://lwbe01.search.re2.yahoo.com/annotate
 //http://lwd1.search.corp.yahoo.com/annotate
 //extract event information
 //$liveWordsURL = 'http://lwd1.search.corp.yahoo.com/annotate?text=' . urlencode($eventName) . '&output=xml';
 //echo("<a href='$liveWordsURL'>title keywords</a><br>");
 //$liveWordsURL = 'http://lwd1.search.corp.yahoo.com/annotate?text=' . urlencode($eventDescription) . '&output=xml';
 //echo("<a href='$liveWordsURL'>description keywords</a><br>");
 $liveWordsURL = 'http://lwbe01.search.re2.yahoo.com/annotate?text=' . urlencode($eventName . "\n" . $eventDescription) . '&output=xml';
 //echo("<a href='$liveWordsURL'>description + title keywords</a><br>");
 $livewords = returnParsedXML($liveWordsURL);
 if ($debug) {
     show_keys($livewords);
 }
 foreach ($livewords['result']['annotationSet']['entity'] as $entity) {
     if ($entity['categorys']['category'] != 'PLACE' and isArtist($entity['text']['_value'])) {
         $artists[] = $entity['text']['_value'];
     }
     //show_keys($entity);
 }
 /*	
 	$url = 'http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction';
 
 	$postVars['appid'] = 'CaaOmv3V34HxgbIJ67YI0DFiW1tsNj8o4FqF22gKcnbRbQIQ1T8Bq9SYJC928ktZgeB0Lw--';
 	//$postVars['context'] = urlencode($eventName . "\n" . $eventDescription);
 	$postVars['context'] = urlencode($eventName);
 	
 	$livewords = returnParsedXMLPost($url, $postVars); 
 	//show_keys($livewords);
 	foreach($livewords['ResultSet']['Result'] as $term)
 	{
Esempio n. 4
0
?>
</div>

<div class="tab<?php 
echo $active == 5 ? " tab_active" : "";
?>
"
	onclick="document.location='<?php 
echo url("settings/folders");
?>
'"><?php 
echo _SET_FOLDERS;
?>
</div>
<?php 
if (isArtist($_auth["useid"])) {
    ?>
	<div class="tab<?php 
    echo $active == 6 ? " tab_active" : "";
    ?>
"
		onclick="document.location='<?php 
    echo url("themedesigner");
    ?>
'"><?php 
    echo _SET_THEME_DESIGNER;
    ?>
</div>
	<?php 
}
?>
Esempio n. 5
0
        		<?= 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"]);