Błąd:
[b]Fatal error[/b][color=#000000][font='Times New Roman'][size=1]: Call-time pass-by-reference has been removed in [/size][/font][/color][b]/home/otherside-www/public_html/other_side_acp/applications_addon/other/grp/modules_public/leader/faction.php[/b][color=#000000][font='Times New Roman'][size=1] on line [/size][/font][/color][b]11[/b]
'
Linijka:
if(!$group->initAndValidate('faction',$this->registry, &$this->memberData)) return;
Funkcja:
public function initAndValidate($groupTypeString,ipsRegistry $registry, &$memberData)
{
$this->registry = $registry;
$this->DB = $registry->DB();
$this->request =& $this->registry->fetchRequest();
if(!$memberData['member_id'])
{
$registry->output->showError('Musisz być zalogowany(a), by przeglądać ten panel.','');
}
$this->groupTypeShortString = $groupTypeString;
switch($groupTypeString)
{
case 'faction':
$this->groupType = 1;
$this->groupTypeString = 'Instytucja';
$this->groupTable = 'grp_frac';
$this->groupTableUniqueField = 'frac_uid';
$this->groupThingOwnerType = 5;
$this->groupVehiclesOwnerType = 4;
break;
case 'org':
$this->groupType = 2;
$this->groupTypeString = 'Organizacja';
$this->groupTable = 'grp_org';
$this->groupTableUniqueField = 'org_uid';
$this->groupThingOwnerType = 6;
$this->groupVehiclesOwnerType = 3;
break;
case 'business':
$this->groupType = 3;
$this->groupTypeString = 'Firma';
$this->groupTable = 'grp_biz';
$this->groupTableUniqueField = 'biz_uid';
$this->groupThingOwnerType = 7;
$this->groupVehiclesOwnerType = 2;
break;
case 'home':
$this->groupType = 4;
$this->groupTypeString = 'Dom';
$this->groupTable = '';
$this->groupTableUniqueField = '';
$this->groupThingOwnerType = 0;
break;
case 'mayor':
$this->groupType = 1;
$this->groupTypeID = 4;
$this->groupTypeString = 'Burmistrz';
$this->groupTable = 'grp_frac';
$this->groupTableUniqueField = 'frac_uid';
$this->groupThingOwnerType = 5;
$this->groupVehiclesOwnerType = 4;
break;
default:
$registry->getClass('output')->showError('Podany w adresie rodzaj grupy nie został rozpoznany.','');
return false;
break;
}
switch($this->request['dataType'])
{
case 'permissions':
$this->dataType = 1;
break;
case 'transactions':
$this->dataType = 2;
break;
case 'dotation':
$this->dataType = 3;
break;
case 'vehicles':
$this->dataType = 4;
break;
default:
$this->dataType = 0;
break;
}
if(!GRPLib::isMembersCharacter($this->request['character'],$memberData['member_id']))
{
$registry->getClass('output')->showError('Wybrana postać nie należy do Ciebie.','');
return false;
}
else
{
$this->character = $this->request['character'];
}
$this->DB->query(sprintf('SELECT whatid,gperm,lperm,player_uid FROM grp_members WHERE player_uid=%d and what=%d LIMIT 1',intval($this->request['character']),$this->groupType));
$this->DB->execute();
$tempGroupID = $this->DB->fetch();
if(is_array($tempGroupID) && count($tempGroupID))
{
if($tempGroupID['whatid']>0)
{
$this->groupID = intval($tempGroupID['whatid']);
if(!($tempGroupID['gperm'] & GRPLEADER_GPERM_PANEMANAGE))
{
$registry->getClass('output')->showError('Wybrana postać nie ma dostępu do panelu tej grupy.','');
return false;
}
if($tempGroupID['gperm'] & GRPLEADER_GPERM_PANEMANAGE)
{
$this->allowModifications = true;
}
if($tempGroupID['gperm'] & GRPLEADER_GPERM_ZERO)
{
$registry->getClass('output')->showError('Wybrana postać nie ma dostępu do panelu tej grupy.','');
return 1;
}
}
else
{
$registry->getClass('output')->showError('Wybrana postać nie jest członkiem grupy o tym rodzaju.','');
return false;
}
}
else
{
$registry->getClass('output')->showError('Wybrana postać nie jest członkiem grupy o tym rodzaju.','');
return false;
}
return true;
}