ERROR: '.$error.'

'); } if(!(strlen(trim($name)))) { $error="you forgot to enter your realname!"; die('ERROR: '.$error.'

'); } if(!(strlen(trim($messenger)))) { $error="you have no icq, msn, aim etc?"; die('ERROR: '.$error.'

'); } if(!(strlen(trim($age)))) { $error="you forgot to enter your age!"; die('ERROR: '.$error.'

'); } if(!(strlen(trim($city)))) { $error="you forgot to enter your city!"; die('ERROR: '.$error.'

'); } if(!(strlen(trim($clanhistory)))) { $error="you forgot to enter your clanhistory!"; die('ERROR: '.$error.'

'); } $sem = '^[a-z0-9_\.-]+@[a-z0-9_-]+\.[a-z0-9_\.-]+$'; if(!(eregi($sem, $email))) { $error="your e-mail is not valid!"; die('ERROR: '.$error.'

'); } $ergebnis=safe_query("SELECT userID FROM ".PREFIX."squads_members WHERE joinmember='1' AND squadID='".$squad."'"); while($ds=mysql_fetch_array($ergebnis)) { $touser[]=$ds[userID]; } if($touser[0] != "") { $message = '[b]Someone want do join your Squad ('.$squad.')![/b]\n\n His/her nickname: '.$nick.'\nName: '.$name.'\nAge: '.$age.'\nMail: [URL]mailto:'.$email.'[/url]\nMessenger: '.$messenger.'\nCity: '.$city.'\n\nClanhistory: '.$clanhistory.'\nInformation: \n\n'.$info.'\n'; foreach($touser as $id) { sendmessage($id,'Join us',$message); } } redirect('index.php?site=joinus', 'thank you for your entry, you will got mail.'); } else { echo'

Join us

'; if($showonlygamingsquads) $squads=getgamesquads(); else $squads=getsquads(); eval ("\$joinus = \"".gettemplate("joinus")."\";"); echo $joinus; } ?>