ticket #137 done - bitte testen ob alles funktioniert

main
elfenland 11 years ago
parent 2df43e5d28
commit c16ede1133

@ -49,9 +49,10 @@ if((isset($_GET['value1']) || isset($_GET['value2']) || isset($_GET['edited']))
switch($what) {
case 'Banner':
case 'Homepage':
case 'Background':
$value1 = validateURL($_GET['value1']);
break;
case 'Info':
case 'Info':
$value1 = encodeNoHTMLWithBB($_GET['value1']);
break;
case 'Clanzeichen':
@ -66,7 +67,6 @@ if((isset($_GET['value1']) || isset($_GET['value2']) || isset($_GET['edited']))
$value1 = validateUnsignedIntegerArray($_GET['value1'], NULL); // kicked members
$value2 = validateUnsignedIntegerArray($_GET['value2'], NULL); // whitelist members
break;
case 'Background':
}
}
@ -470,6 +470,19 @@ function displayClanProfile($clanid, $userid){
} else{
displayClanProfileEditable($clan, $user['id']);
}
if($clan['background'] != "0"){ ?>
<style type="text/css">
#content
{
background-image:url('<?php echo $clan['background'] ?>');
background-repeat:no-repeat;
}
</style>
<?php
}
}
function setProfile($user, $what, $value1, $value2, $clanid, $rootlvl){
@ -749,12 +762,4 @@ if($action !== NULL) { // this is done to not require to reprogramm the whole st
if($displayMore){
displayClanProfile($clan_id, $user_ida['id']);
}
?>
<!-- Derzeitige "workaround" um jedenfalls den Background anzuzeigen sobald man ihn verändert hat zum testen -->
<style type="text/css">
#content
{
background-image:url('<?php echo $clan['background'] ?>');
background-repeat:no-repeat;
}
</style>
?>

@ -110,7 +110,7 @@ echo getHorizontalAdvertisement();
{
if($chars_bilds[$i]!='design/bilder/avatare/Char.gif')
{
echo '<td width=25% align="center" id="content">';
echo '<td width=25% align="center" background-color: rbga(255,255,255 .7);>';
echo $popup[$i].$chars_names[$i].'</a></td>';
}
}
@ -165,7 +165,7 @@ echo getHorizontalAdvertisement();
{
if($chars_bilds[$i]!='design/bilder/avatare/Char.gif')
{
echo '<td width=25% align="center" id="content">';
echo '<td width=25% align="center" background-color: rbga(255,255,255 .7);>';
echo $popup[$i].$chars_names[$i].'</td>';
}
}

@ -365,6 +365,7 @@ CREATE TABLE `clan` (
`exp` int(20) NOT NULL DEFAULT '0',
`elo` int(11) NOT NULL DEFAULT '1000',
`inactive` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`background` varchar(80) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `leader` (`leader`),
KEY `co_leader` (`co_leader`),

Loading…
Cancel
Save