|
|
|
@ -373,7 +373,6 @@ function sendClanNewsletter($user, $text){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setProfile($what, $value1, $value2, $clanid, $rootlvl){
|
|
|
|
|
echo 'setProfile<br>';
|
|
|
|
|
if($rootlvl < 1) {
|
|
|
|
|
return 'Du hast keine Rechte um diese Aktion auszuführen!';
|
|
|
|
|
}
|
|
|
|
@ -391,7 +390,6 @@ function setProfile($what, $value1, $value2, $clanid, $rootlvl){
|
|
|
|
|
mysql_query('UPDATE clan SET Info = \''.$value1.'\' where id = '.$clanid);
|
|
|
|
|
return NULL;
|
|
|
|
|
case 'Leadership':
|
|
|
|
|
echo 'setLeadership!<br>';
|
|
|
|
|
$clan = getClan($clanid);
|
|
|
|
|
|
|
|
|
|
if($value1 == 0 && $rootlvl == 2){$value1 = 'null';}
|
|
|
|
@ -411,7 +409,7 @@ function setProfile($what, $value1, $value2, $clanid, $rootlvl){
|
|
|
|
|
|
|
|
|
|
if($rootlvl == 1){ // the co leader may only set the co leader XD
|
|
|
|
|
$sql = 'UPDATE clan SET co_leader = '.$value2.' where id = '.$clanid;
|
|
|
|
|
echo $sql.'<br>';
|
|
|
|
|
//echo $sql.'<br>';
|
|
|
|
|
mysql_query($sql);
|
|
|
|
|
} else if($rootlvl == 2) { // the leader may set the leader and the co leader
|
|
|
|
|
$sql = 'UPDATE clan SET leader = '.$value1.', co_leader = '.$value2.' where id = '.$clanid;
|
|
|
|
@ -540,7 +538,6 @@ if($action !== NULL) { // this is done to not require to reprogramm the whole st
|
|
|
|
|
$rootlvl = 1; // co_leader
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo 'Rootlvl = ' . $rootlvl . '<br>';;
|
|
|
|
|
switch ($action) {
|
|
|
|
|
case 'edit':
|
|
|
|
|
$errorMsg = NULL;
|
|
|
|
|