mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
0d9c71f563
commit
fbb107f586
@ -1,4 +1,6 @@
|
||||
<?
|
||||
|
||||
|
||||
$Orders = array('Time', 'Name', 'Seeders', 'Leechers', 'Snatched', 'Size');
|
||||
$Ways = array('ASC'=>'Ascending', 'DESC'=>'Descending');
|
||||
$UserVotes = Votes::get_user_votes($LoggedUser['ID']);
|
||||
|
@ -522,22 +522,30 @@
|
||||
|
||||
//----- Start inserts
|
||||
if(!$GroupID && $Type == 'Music') {
|
||||
//array to store which artists we have added already, to prevent adding an artist twice
|
||||
$ArtistsAdded = array();
|
||||
foreach($ArtistForm as $Importance => $Artists) {
|
||||
foreach($Artists as $Num => $Artist) {
|
||||
if(!$Artist['id']) {
|
||||
// Create artist
|
||||
$DB->query("INSERT INTO artists_group (Name) VALUES ('".db_string($Artist['name'])."')");
|
||||
$ArtistID = $DB->inserted_id();
|
||||
if(isset($ArtistsAdded[strtolower($Artist['name'])])) {
|
||||
$ArtistForm[$Importance][$Num] = $ArtistsAdded[strtolower($Artist['name'])];
|
||||
} else {
|
||||
// Create artist
|
||||
$DB->query("INSERT INTO artists_group (Name) VALUES ('".db_string($Artist['name'])."')");
|
||||
$ArtistID = $DB->inserted_id();
|
||||
|
||||
$Cache->increment('stats_artist_count');
|
||||
$Cache->increment('stats_artist_count');
|
||||
|
||||
$DB->query("INSERT INTO artists_alias (ArtistID, Name) VALUES (".$ArtistID.", '".db_string($Artist['name'])."')");
|
||||
$AliasID = $DB->inserted_id();
|
||||
$DB->query("INSERT INTO artists_alias (ArtistID, Name) VALUES (".$ArtistID.", '".db_string($Artist['name'])."')");
|
||||
$AliasID = $DB->inserted_id();
|
||||
|
||||
$ArtistForm[$Importance][$Num] = array('id' => $ArtistID, 'aliasid' => $AliasID, 'name' => $Artist['name']);
|
||||
$ArtistForm[$Importance][$Num] = array('id' => $ArtistID, 'aliasid' => $AliasID, 'name' => $Artist['name']);
|
||||
$ArtistsAdded[strtolower($Artist['name'])] = $ArtistForm[$Importance][$Num];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($ArtistsAdded);
|
||||
}
|
||||
|
||||
if(!$GroupID) {
|
||||
|
@ -485,7 +485,8 @@ function check_paranoia_here($Setting) {
|
||||
<? } ?>
|
||||
<div class="box">
|
||||
<div class="head">
|
||||
<span style="float:left;">Profile<? if ($CustomTitle) { echo " - ".html_entity_decode($DisplayCustomTitle); } ?></span>
|
||||
<span style="float:left;">Profile - </span>
|
||||
<span class="user_title"><? if ($CustomTitle) { echo html_entity_decode($DisplayCustomTitle); } ?></span>
|
||||
<span style="float:right;"><?=!empty($Badges)?"$Badges ":''?><a href="#" onclick="$('#profilediv').toggle(); this.innerHTML=(this.innerHTML=='Hide'?'Show':'Hide'); return false;" class="brackets">Hide</a></span>
|
||||
</div>
|
||||
<div class="pad" id="profilediv">
|
||||
|
@ -424,3 +424,7 @@ tr.torrent .bookmark>a:after {
|
||||
.group_image img {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.user_title {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user