public function removeRelationship($user, $repeat = null)
 {
     global $wgUser;
     if ($this->Friends->contains($user)) {
         $this->Friends->remove($user);
     } elseif ($this->Foes->contains($user)) {
         $this->Foes->remove($user);
     } else {
         return false;
     }
     $this->save();
     //repeats the same for another user
     if (is_null($repeat)) {
         $other = new SSPUser($user);
         $other->removeRelationship($wgUser->getName(), 1);
     }
 }
function wfNewAccountUserpage($user, $byEmail)
{
    $user = SSPUser::getInstance();
    $user->saveEmpty();
    return true;
}
 public function setBirthday($fbd)
 {
     if ($fbd == '' || strpos($fbd, '-')) {
         parent::setBirthday($fbd);
     } else {
         $timestamp = strtotime($fbd . ' 2007');
         //OMG 2007 should be corrected!!!
         parent::setBirthday(date('Y-m-d', $timestamp));
     }
 }