$status = 0; } $options = "\n<li><a href='?action=clan'>info</a></li>\n<li><a href='?action=clan&act=search'>szukaj</a></li>\n<li><a href='?action=clan&act=list'>lista klanów</a></li>\n"; $msg = ''; if (!empty($_POST['clan_name'])) { require_once 'functions/ClanMgr.php'; $ClanMgr = new ClanMgr(); $msg = $ClanMgr->new_clan($config, $player, $_POST['clan_name']); echo $msg; $player = getUser($config); $player->town = getTown($config, $player); } if (!empty($_POST['text'])) { require_once 'functions/MsgMgr.php'; $MsgMgr = new MsgMgr(); $msg = $MsgMgr->clan_msg($config, $player, $_POST['text']); echo $msg; } if (!empty($_GET['del'])) { require_once 'functions/ClanMgr.php'; $ClanMgr = new ClanMgr(); $msg = $ClanMgr->del_clan($config, $player); echo $msg; $player = getUser($config); $player->town = getTown($config, $player); } if (!empty($_GET['del_app'])) { require_once 'functions/ClanMgr.php'; $ClanMgr = new ClanMgr(); $ClanMgr->del_app($config, $player, $_GET['del_app']); }