Beispiel #1
0
                }
            }
        }
        if (!$acc_invited) {
            $guild_errors[] = 'Any character from your account isn\'t invited to <b>' . htmlspecialchars($guild->getName()) . '</b>.';
        }
    }
    if (!empty($guild_errors)) {
        $main_content .= '<div class="SmallBox" >  <div class="MessageContainer" >    <div class="BoxFrameHorizontal" style="background-image:url(' . $layout_name . '/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeRightTop" style="background-image:url(' . $layout_name . '/images/content/box-frame-edge.gif);" /></div>    <div class="ErrorMessage" >      <div class="BoxFrameVerticalLeft" style="background-image:url(' . $layout_name . '/images/content/box-frame-vertical.gif);" /></div>      <div class="BoxFrameVerticalRight" style="background-image:url(' . $layout_name . '/images/content/box-frame-vertical.gif);" /></div>      <div class="AttentionSign" style="background-image:url(' . $layout_name . '/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>';
        foreach ($guild_errors as $guild_error) {
            $main_content .= '<li>' . $guild_error;
        }
        $main_content .= '</div>    <div class="BoxFrameHorizontal" style="background-image:url(' . $layout_name . '/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/content/box-frame-edge.gif);" /></div>  </div></div><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild=' . $guild_id . '" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="' . $layout_name . '/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
    } else {
        if ($_REQUEST['todo'] == 'save') {
            $guild->acceptInvite($player);
            $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR=' . $config['site']['vdarkborder'] . '><TD CLASS=white><B>Accept invitation</B></TD></TR><TR BGCOLOR=' . $config['site']['darkborder'] . '><TD WIDTH=100%>Player with name <b>' . htmlspecialchars($player->getName()) . '</b> has been added to guild <b>' . htmlspecialchars($guild->getName()) . '</b>.</TD></TR></TABLE><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild=' . $guild_id . '" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="' . $layout_name . '/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
        } else {
            $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR=' . $config['site']['vdarkborder'] . '><TD CLASS=white><B>Accept invitation</B></TD></TR>';
            $main_content .= '<TR BGCOLOR=' . $config['site']['lightborder'] . '><TD WIDTH=100%>Select character to join guild:</TD></TR>';
            $main_content .= '<TR BGCOLOR=' . $config['site']['darkborder'] . '><TD>
			<form action="?subtopic=guilds&action=acceptinvite&guild=' . $guild_id . '&todo=save" METHOD="post">';
            sort($list_of_invited_players);
            foreach ($list_of_invited_players as $invited_player_from_list) {
                $main_content .= '<input type="radio" name="name" value="' . htmlspecialchars($invited_player_from_list) . '" />' . htmlspecialchars($invited_player_from_list) . '<br>';
            }
            $main_content .= '<br><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="' . $layout_name . '/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></form></TD></TR></TABLE><br/><center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><TR><FORM ACTION="?subtopic=guilds&action=show&guild=' . $guild_id . '" METHOD=post><TD><INPUT TYPE=image NAME="Back" ALT="Back" SRC="' . $layout_name . '/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></center>';
        }
    }
}
//-----------------------------------------------------------------------------//-----------------------------------------------------------------------------