AlexMicKeY94
Usuario Novato
Usuario Novato

Hola a todos, tengo un problema con este codigo que me esta generando un error de aplicación de byte, me vendria bien una ayuda para resolverlo. Gracias de antemano.

public function getServerTree($id = 0, $wildcard = '')
{
if (empty($this->clist))
{
return false;
}
$return = '';
foreach ($this->clist as $key => $var)
{
if ($var['pid'] == $id)
{
$return .= $wildcard;
$return .= '<div class="ts3leer">&nbsp;</div>' . "n";
$return .= '<div class="ts3ca"><img src="' . $this->img_path . ($var['channel_flag_password'] == 1 ? 'channel_locked.png' : 'channel.png') . '" alt="channel.png" title="' . $this->rep($var['channel_topic']) . '" /></div>' . "n";
$return .= '<div class="ts3ca">' . $this->rep($var['channel_name']) . '</div>' . "n";
if ($var['channel_flag_default'] == 1)
{
$return .= '<div class="ts3ca" style="float:right;"><img src="' . $this->img_path . 'home.png" alt="home.png" title="' . $this->rep($var['channel_topic']) . '" /></div>' . "n";
}
if ($var['channel_flag_password'] == 1)
{
$return .= '<div class="ts3ca" style="float:right;"><img src="' . $this->img_path . 'locked.png" alt="locked.png" title="locked" /></div>' . "n";
}
if ($var['channel_codec'] == 3)
{
$return .= '<div class="ts3ca" style="float:right;"><img src="' . $this->img_path . 'channel_music.png" alt="channel_music.png" title="Music Codec" /></div>' . "n";
}
$return .= '<div style="clear:both"></div>' . "n";
if ($var['total_clients'] >= '1')
{
if (!empty($this->plist))
{
foreach ($this->plist as $u_key => $u_var)
{
if ($u_var['cid'] == $var['cid'])
{
$p_img = $this->getPlayerIcon($u_var);
$g_img = '';
$g_temp = '';
if (strpos($u_var['client_servergroups'], ',') !== FALSE)
{
$g_temp = explode(',', $u_var['client_servergroups']);
}
else
{
$g_temp[0] = $u_var['client_servergroups'];
}
if (!$g_temp)
{
foreach ($g_temp as $sg_var)
{
if (isset($this->groups['sgroup'][$sg_var]['p']))
{
$g_img .= '<div class="ts3ca" style="float:right"><img src="' . $this->img_path . $this->groups['sgroup'][$sg_var]['p'] . '" title="' . $this->groups['sgroup'][$sg_var]['n'] . '" alt="" /></div>' . "n";
}
}
}
if (isset($this->groups['cgroup'][$u_var['client_channel_group_id']]['p']))
{
if (isset($this->groups['cgroup'][$u_var['client_channel_group_id']]['p']))
{
$g_img .= '<div class="ts3ca" style="float:right"><img src="' . $this->img_path . $this->groups['cgroup'][$u_var['client_channel_group_id']]['p'] . '" title="' . $this->groups['cgroup'][$u_var['client_channel_group_id']]['n'] . '" alt="" /></div>' . "n";
}
}
if ($u_var['client_is_priority_speaker'] == 1)
{
$g_img .= '<div class="ts3ca" style="float:right"><img src="' . $this->img_path . 'client_is_priority_speaker.png" alt="client_is_priority_speaker.png" title="Priority speaker" /></div>' . "n";
}
$return .= $wildcard . '<div class="ts3leer">&nbsp;</div><div class="ts3leer">&nbsp;</div><div class="ts3ca"><img src="' . $this->img_path . $p_img . '" alt="' . $p_img . '" /></div><div class="ts3na">' . $this->rep($u_var['client_nickname']) . '</div>' . $g_img . '<div style="clear:both"></div>' . "n";
}
}
}
}
$return .= $this->getServerTree($var['cid'], $wildcard . '<div class="ts3leer">&nbsp;</div>');
}
}
return $return;
}
ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES,
te recomendamos abrir un nuevo tema en lugar de responder al actual
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
TemaUsuariosRespuestasVisitasActividad
Por: , el 01/Oct/2010, 12:57
lagoon10924Oct/10