";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='centrale' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->hoeveel centrale(s) gekocht. |
");
ENDHTML;
}exit;
}
if($_GET['x'] == "belcen") {
include("_include-leaderlogs.php");
print " Centrales gekocht via belcredit's | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='belcen' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->hoeveel centrale(s) gekocht. |
");
ENDHTML;
}exit;
}
if($_GET['x'] == "aan") {
include("_include-leaderlogs.php");
print " Members wel aangenomen | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='aang' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->wat2 wel aangenomen in de clan. |
");
}
print " Members niet aangenomen | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='aann' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->wat2 niet aangenomen in de clan. |
");
ENDHTML;
}
}
else if($_GET['p'] == "geblock") {
print <<Ban list |
Hiermee kun je mensen uit je clan bannen. |
ENDHTML;
if(isset($_POST['update_list'])) {
$newlist = "";
if(isset($_POST['blocklist'])) {
foreach($_POST['blocklist'] as $blocked) {
if($info = mysql_fetch_object(mysql_query("SELECT `login` FROM `[users]` WHERE `login`='{$blocked}'"))) {
$newlist = preg_replace("/,{$info->login},/i",'',$newlist);
$newlist .= ",{$info->login},";
}
}
}
mysql_query("UPDATE `[clan]` SET `blocklist`='$newlist' WHERE `name`='{$data->clan}'");
print " De ban list is geupdate | ";
$blocklist = $newlist;
}
else {
$dbres = mysql_query("SELECT `blocklist` FROM `[clan]` WHERE `name`='{$data->clan}'");
$blocklist = mysql_fetch_object($dbres);
$blocklist = $blocklist->blocklist;
}
if(isset($_GET['add'])) {
$dbres = mysql_query("SELECT `login` FROM `[users]` WHERE `login`='{$_GET['add']}'");
if($sender = mysql_fetch_object($dbres)) {
$blocklist = preg_replace("/,{$sender->login},/i",'',$blocklist);
$blocklist .= ",{$sender->login},";
mysql_query("UPDATE `[clan]` SET `blocklist`='$blocklist' WHERE `name`='{$data->clan}'");
print " {$sender->login} is geband | \n";
}
}
print << | \n";
}
else if($_GET['x'] == "muren") {
include("_include-leaderlogs.php");
print " Muren | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='def_lvl1' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->hoeveel muur gekocht. |
");
ENDHTML;
}
}
else if($_GET['x'] == "kick") {
include("_include-leaderlogs.php");
print " Kicken | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='KICK' ORDER BY `datum` DESC LIMIT 0,500");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wat2
Heeft $rij->wie Gekickt. |
");
ENDHTML;
}
}
else if($_GET['x'] == "land") {
include("_include-leaderlogs.php");
print " Land | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='land'ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->hoeveel00 land gekocht. |
");
ENDHTML;
}
}
else if($_GET['x'] == "huizen") {
include("_include-leaderlogs.php");
print " Huizen | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='homes'ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->hoeveel Huis gekocht. |
");
ENDHTML;
}
}
else if($_GET['x'] == "clickss") {
include("_include-leaderlogs.php");
print " Kliks | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='clicks'ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie
Heeft $rij->hoeveel clicks gekocht. |
");
ENDHTML;
}
}
else if($_GET['x'] == "Uitstappers") {
include("_include-leaderlogs.php");
print " Uitstappers | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='Uitgestapt' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
if ($rij->hoeveel == 1){
$hoeveel = "Heeft zijn attack gegeven";
}
if ($rij->hoeveel == 2){
$hoeveel = "Heeft betaald";
}
echo("
$rij->datum |
$rij->wie
is uit de clan gestapt. $hoeveel |
");
ENDHTML;
}
}
else if($_GET['x'] == "verwijderd") {
include("_include-leaderlogs.php");
print " Clan profiel wijzigt | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='info' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
echo("
$rij->datum |
$rij->wie heeft
claninfo gewijzigt. |
");
ENDHTML;
}
}
else if($_GET['x'] == "bank") {
include("_include-leaderlogs.php");
print " Bank in/uit | \n ";
$gegevens = mysql_query("SELECT * FROM `[clanlogs]` WHERE `waar`='$data->clan' AND `wat`='bank' ORDER BY `datum` DESC LIMIT 0,25");
while($rij = mysql_fetch_object($gegevens)) {
if ($rij->hoeveel == 1){
$hoeveel = "Uit de bank gehaald";
}
if ($rij->hoeveel == 2){
$hoeveel = "In de bank gestopt";
}
echo("
$rij->datum |
$rij->wie heeft
€$rij->wat2 $hoeveel. |
");
ENDHTML;
}
}
else if($_GET['x'] == "forum") {
include("_include-leaderopties.php");
?>
Clan members bannen van de clanforum. |
|
Members die al gebant zijn |
$gegevens2 = mysql_query("SELECT * FROM `[users]` WHERE `forumc`='1' AND `clan`='$data->clan'") or die(mysql_error());
while($rij2 = mysql_fetch_object($gegevens2)) {
echo("
$rij2->login |
login\">forum ban weg halen |
");
}
}
else if($_GET['x'] == "clandon") {
include("_include-leaderopties.php");
print " Clan donatie's | \n ";
if(isset($_POST['profile'])) {
$profiel->maandag = preg_replace('/\','<',substr($_POST['maandag'],0,20));
$profiel->dinsdag = preg_replace('/\','<',substr($_POST['dinsdag'],0,20));
$profiel->woensdag = preg_replace('/\','<',substr($_POST['woensdag'],0,20));
$profiel->donderdag = preg_replace('/\','<',substr($_POST['donderdag'],0,20));
$profiel->vrijdag = preg_replace('/\','<',substr($_POST['vrijdag'],0,20));
$profiel->zaterdag = preg_replace('/\','<',substr($_POST['zaterdag'],0,20));
$profiel->zondag = preg_replace('/\','<',substr($_POST['zondag'],0,20));
mysql_query("UPDATE `[clans]` SET `maandag`='{$profiel->maandag}',`donatie`='{$data->login}',`zondag`='{$profiel->zondag}',`dinsdag`='{$profiel->dinsdag}',`zaterdag`='{$profiel->zaterdag}',`woensdag`='{$profiel->woensdag}',`donderdag`='{$profiel->donderdag}',`vrijdag`='{$profiel->vrijdag}' WHERE `name`='{$data->clan}'");
print " Je clandonatie's is veranderd | \n";
}
$dbres = mysql_query("SELECT * FROM `[clans]` WHERE `name`='{$data->clan}'");
if($profiel = mysql_fetch_object($dbres)) {
print <<
ENDHTML;
}
}
else if($_GET['x'] == "logs") {
include("_include-leaderlogs.php");
}
else if($_GET['x'] == "clanban") {
include("_include-leaderopties.php");
if(isset($_POST['del'])) {
$id = $_POST['id'];
mysql_query("DELETE FROM `[clanban]` WHERE `speler`='$id' AND `clan`='$data->clan'");
print " Clan members bannen van de clan. | $id kan zich weer aan melden. | \n";
exit;
}
?>
Clan members bannen van de clan. |
|
|
| | | | | | | | | |
| | |