$clan->setField('password', $_POST['clanpassword']); /* Clan Website */ $clan->setField('websiteURL', $_POST['clanwebsite']); /* Clan Email */ $clan->setField('email', $_POST['clanemail']); /* Clan IM */ $clan->setField('IM', $_POST['clanIM']); /* Clan Description */ $clan->setField('Description', $_POST['clandescription']); if ($clan_id) { // Need to update the event in database $clan->updateDB(); } else { // Need to create a clan. $clan->setField('Owner', USERID); $clan_id = $clan->insert(); } //echo "-- clansettingssave --<br />"; header("Location: clanmanage.php?clanid={$clan_id}"); exit; } if (isset($_POST['clanchangeowner'])) { /* Clan Owner */ $clan->setFieldDB('Owner', $_POST['clanowner']); //echo "-- clanchangeowner --<br />"; header("Location: clanmanage.php?clanid={$clan_id}"); exit; } if (isset($_POST['clanchangedivcaptain'])) { $clan_div = $_POST['clandiv']; $div_captain = $tp->toDB($_POST['divcaptain']);