Userprofil.php:
ich gehe jetzt mal von der standard version aus.
PHP-Code:
$_POST['max_forced'] = (int)$_POST['max_forced'];
ersetzen mit
PHP-Code:
$sonderuser = array(298414,298415,298416); // KID's die weniger banner klicken dürfen...
if(in_array($_SESSION['uid'],$sonderuser)) {
if(!in_array($_POST['max_forced'], array(3,5,10))) $_POST['max_forced']=1;
}else {
if(!in_array($_POST['max_forced'], array(3,5,10,20,30,40,50))) $_POST['max_forced']=1;
}
Al nächstes
PHP-Code:
<select name="max_forced">
<option value="3" <? if ($info['max_forced'] == 3) echo 'selected';?>>3</option>
<option value="5" <? if ($info['max_forced'] == 5) echo 'selected';?>>5</option>
<option value="10" <? if ($info['max_forced'] == 10) echo 'selected';?>>10</option>
<option value="20" <? if ($info['max_forced'] == 20) echo 'selected';?>>20</option>
<option value="30" <? if ($info['max_forced'] == 30) echo 'selected';?>>30</option>
<option value="40" <? if ($info['max_forced'] == 40) echo 'selected';?>>40</option>
<option value="50" <? if ($info['max_forced'] == 50) echo 'selected';?>>50</option>
</select>
ersetzen mit
PHP-Code:
<select name="max_forced">
<option value="3" <? if ($info['max_forced'] == 3) echo 'selected';?>>3</option>
<option value="5" <? if ($info['max_forced'] == 5) echo 'selected';?>>5</option>
<option value="10" <? if ($info['max_forced'] == 10) echo 'selected';?>>10</option>
<?php if(!in_array($_SESSION['uid'],$sonderuser)) { ?>
<option value="20" <? if ($info['max_forced'] == 20) echo 'selected';?>>20</option>
<option value="30" <? if ($info['max_forced'] == 30) echo 'selected';?>>30</option>
<option value="40" <? if ($info['max_forced'] == 40) echo 'selected';?>>40</option>
<option value="50" <? if ($info['max_forced'] == 50) echo 'selected';?>>50</option>
<?php } ?>
</select>