* moved most of guilds html-in-php code to twig
* moved buttons to separate templates * moved online search for to twig
@ -28,7 +28,7 @@ h1, h2, h3, h4, h5, h6 {color: #313334; font-weight: bold;}
|
|||||||
margin-left:5px;
|
margin-left:5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button { background:#eee url(images/button.gif) repeat-x 0 0; border:solid 1px #b1a874; color:#7f7f7f; font-size:11px; padding:2px 6px 2px 6px; cursor:pointer; line-height:14px !important; }
|
.button { background:#eee repeat-x 0 0; border:solid 1px #b1a874; color:#7f7f7f; font-size:11px; padding:2px 6px 2px 6px; cursor:pointer; line-height:14px !important; }
|
||||||
.button:hover { color:#333; border-color:#857b42; }
|
.button:hover { color:#333; border-color:#857b42; }
|
||||||
|
|
||||||
.field, .button { -moz-border-radius:4px; -webkit-border-radius:4px; }
|
.field, .button { -moz-border-radius:4px; -webkit-border-radius:4px; }
|
||||||
@ -126,7 +126,7 @@ a.ico:hover { color:#333;}
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
#status .success {
|
#status .success {
|
||||||
margin: 0px:
|
margin: 0px;
|
||||||
}
|
}
|
||||||
#version {
|
#version {
|
||||||
position: absolute; top: 10px; right: 10px;
|
position: absolute; top: 10px; right: 10px;
|
||||||
|
@ -87,19 +87,18 @@ else
|
|||||||
<td width="30"> </td>
|
<td width="30"> </td>
|
||||||
<td align=left>
|
<td align=left>
|
||||||
<form action="' . getLink('account/email') . '" method="post"><input type="hidden" name="changeemailsave" value=1 >
|
<form action="' . getLink('account/email') . '" method="post"><input type="hidden" name="changeemailsave" value=1 >
|
||||||
<INPUT TYPE=image NAME="I Agree" SRC="' . $template_path . '/images/buttons/sbutton_iagree.gif" BORDER=0 WIDTH=120 HEIGHT=17>
|
<INPUT TYPE=image NAME="I Agree" SRC="' . $template_path . '/images/global/buttons/sbutton_iagree.gif" BORDER=0 WIDTH=120 HEIGHT=17>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td align=left>
|
<td align=left>
|
||||||
<form action="' . getLink('account/email') . '" method="post">
|
<form action="' . getLink('account/email') . '" method="post">
|
||||||
<input type="hidden" name="emailchangecancel" value=1 >
|
<input type="hidden" name="emailchangecancel" value=1 >
|
||||||
<input type=image name="Cancel" src="' . $template_path . '/images/buttons/sbutton_cancel.gif" BORDER=0 WIDTH=120 HEIGHT=17>
|
' . $twig->render('buttons.cancel.html.twig') . '
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td align=right>
|
<td align=right>
|
||||||
<form action="?subtopic=accountmanagement" method="post" >
|
<form action="?subtopic=accountmanagement" method="post" >
|
||||||
<div class="BigButton" style="background-image:url(' . $template_path . '/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(' . $template_path . '/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="' . $template_path . '/images/buttons/_sbutton_back.gif" ></div>
|
' . $twig->render('buttons.back.html.twig') . '
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td width="30"> </td>
|
<td width="30"> </td>
|
||||||
@ -123,8 +122,7 @@ else
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<input type="hidden" name="emailchangecancel" value="1" >
|
<input type="hidden" name="emailchangecancel" value="1" >
|
||||||
<div class="BigButton" style="background-image:url(' . $template_path . '/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(' . $template_path . '/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Cancel" alt="Cancel" src="'.$template_path.'/images/buttons/_sbutton_cancel.gif" ></div>
|
' . $twig->render('buttons.cancel.html.twig') . '
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@ -135,8 +133,7 @@ else
|
|||||||
<form action="' . getLink('account/manage') . '" method="post" >
|
<form action="' . getLink('account/manage') . '" method="post" >
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<div class="BigButton" style="background-image:url(' . $template_path . '/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(' . $template_path . '/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="' . $template_path . '/images/buttons/_sbutton_back.gif" ></div>
|
' . $twig->render('buttons.back.html.twig') . '
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@ -155,7 +152,7 @@ if(isset($_POST['emailchangecancel']) && $_POST['emailchangecancel'] == 1) {
|
|||||||
$account_logged->setCustomField("email_new", "");
|
$account_logged->setCustomField("email_new", "");
|
||||||
$account_logged->setCustomField("email_new_time", 0);
|
$account_logged->setCustomField("email_new_time", 0);
|
||||||
|
|
||||||
$custom_buttons = '<center><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=accountmanagement" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></center>';
|
$custom_buttons = '<center><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=accountmanagement" method="post" ><tr><td style="border:0px;" >' . $twig->render('buttons.back.html.twig') . '</td></tr></form></table></center>';
|
||||||
|
|
||||||
echo $twig->render('success.html.twig', array(
|
echo $twig->render('success.html.twig', array(
|
||||||
'title' => 'Email Address Change Cancelled',
|
'title' => 'Email Address Change Cancelled',
|
||||||
|
@ -250,5 +250,5 @@ else
|
|||||||
echo 'Monster with name <b>'.$monster_name.'</b> doesn\'t exist.';
|
echo 'Monster with name <b>'.$monster_name.'</b> doesn\'t exist.';
|
||||||
}
|
}
|
||||||
//back button
|
//back button
|
||||||
echo '<br/></br><center><form action="?subtopic=creatures" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('creatures.back_button.html.twig');
|
||||||
?>
|
?>
|
||||||
|
@ -90,31 +90,35 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$acc_invited) {
|
if(!$acc_invited) {
|
||||||
$errors[] = 'Any character from your account isn\'t invited to <b>'.$guild->getName().'</b>.';
|
$errors[] = "Any character from your account isn't invited to <b>" . $guild->getName() . "</b>.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
echo '
|
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
||||||
$guild->acceptInvite($player);
|
$guild->acceptInvite($player);
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Accept invitation</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Player with name <b>'.$player->getName().'</b> has been added to guild <b>'.$guild->getName().'</b>.</TD></TR></TABLE><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
echo $twig->render('success.html.twig', array(
|
||||||
|
'title' => 'Accept invitation',
|
||||||
|
'description' => 'Player with name <b>'.$player->getName().'</b> has been added to guild <b>'.$guild->getName() . '</b>.',
|
||||||
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
))
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Accept invitation</B></TD></TR>';
|
|
||||||
echo '<TR BGCOLOR='.$config['lightborder'].'><TD WIDTH=100%>Select character to join guild:</TD></TR>';
|
|
||||||
echo '<TR BGCOLOR='.$config['darkborder'].'><TD>
|
|
||||||
<form action="?subtopic=guilds&action=accept_invite&guild='.$guild_name.'&todo=save" METHOD="post">';
|
|
||||||
sort($list_of_invited_players);
|
sort($list_of_invited_players);
|
||||||
$i = 0;
|
|
||||||
foreach($list_of_invited_players as $invited_player_from_list) {
|
echo $twig->render('guilds.accept_invite.html.twig', array(
|
||||||
echo '<input type="radio" name="name" id="name_' . $i . '" value="'.$invited_player_from_list.'" /><label for="name_' . $i++ . '">'.$invited_player_from_list.'</label><br>';
|
'guild_name' => $guild_name,
|
||||||
}
|
'invited_players' => $list_of_invited_players
|
||||||
echo '<br><input type="image" name="Submit" alt="Submit" SRC="'.$template_path.'/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_name.'" method="post"><td><input type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/sbutton_back.gif" border=0 width=120 height=18></td></tr></form></table></center>';
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,10 @@ if(empty($guild_errors)) {
|
|||||||
if(!empty($guild_errors)) {
|
if(!empty($guild_errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds&guild='.$guild_name.'&action=show" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds&guild='.$guild_name.'&action=show'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -65,7 +68,9 @@ else
|
|||||||
if(!empty($guild_errors)) {
|
if(!empty($guild_errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,10 @@ if(empty($errors)) {
|
|||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -118,6 +118,9 @@ if(empty($errors)) {
|
|||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@ -69,7 +69,10 @@ if(empty($errors)) {
|
|||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -13,189 +13,192 @@ defined('MYAAC') or die('Direct access not allowed!');
|
|||||||
|
|
||||||
$guild_name = $_REQUEST['guild'];
|
$guild_name = $_REQUEST['guild'];
|
||||||
if(!Validator::guildName($guild_name))
|
if(!Validator::guildName($guild_name))
|
||||||
$guild_errors[] = Validator::getLastError();
|
$errors[] = Validator::getLastError();
|
||||||
if(!$logged)
|
if(!$logged)
|
||||||
$guild_errors[] = 'You are not logged in. You can\'t change rank.';
|
$errors[] = 'You are not logged in. You can\'t change rank.';
|
||||||
if(empty($guild_errors))
|
if(empty($errors))
|
||||||
{
|
{
|
||||||
$guild = $ots->createObject('Guild');
|
$guild = $ots->createObject('Guild');
|
||||||
$guild->find($guild_name);
|
$guild->find($guild_name);
|
||||||
if(!$guild->isLoaded())
|
if(!$guild->isLoaded())
|
||||||
$guild_errors[] = 'Guild with name <b>' . $guild_name . '</b> doesn\'t exist.';
|
$errors[] = 'Guild with name <b>' . $guild_name . '</b> doesn\'t exist.';
|
||||||
}
|
}
|
||||||
if(!empty($guild_errors))
|
if(!empty($errors))
|
||||||
{
|
{
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
echo '
|
echo $twig->render('guilds.back_button.html.twig');
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
//check is it vice or/and leader account (leader has vice + leader rights)
|
||||||
|
$rank_list = $guild->getGuildRanksList();
|
||||||
|
$rank_list->orderBy('level', POT::ORDER_DESC);
|
||||||
|
$guild_leader = false;
|
||||||
|
$guild_vice = false;
|
||||||
|
$account_players = $account_logged->getPlayers();
|
||||||
|
foreach($account_players as $player)
|
||||||
{
|
{
|
||||||
//check is it vice or/and leader account (leader has vice + leader rights)
|
$player_rank = $player->getRank();
|
||||||
$rank_list = $guild->getGuildRanksList();
|
if($player_rank->isLoaded()) {
|
||||||
$rank_list->orderBy('level', POT::ORDER_DESC);
|
foreach($rank_list as $rank_in_guild)
|
||||||
$guild_leader = false;
|
{
|
||||||
$guild_vice = false;
|
if($rank_in_guild->getId() == $player_rank->getId())
|
||||||
$account_players = $account_logged->getPlayers();
|
|
||||||
foreach($account_players as $player)
|
|
||||||
{
|
|
||||||
$player_rank = $player->getRank();
|
|
||||||
if($player_rank->isLoaded()) {
|
|
||||||
foreach($rank_list as $rank_in_guild)
|
|
||||||
{
|
{
|
||||||
if($rank_in_guild->getId() == $player_rank->getId())
|
$players_from_account_in_guild[] = $player->getName();
|
||||||
|
if($player_rank->getLevel() > 1) {
|
||||||
|
$guild_vice = true;
|
||||||
|
$level_in_guild = $player_rank->getLevel();
|
||||||
|
}
|
||||||
|
if($guild->getOwner()->getId() == $player->getId()) {
|
||||||
|
$guild_vice = true;
|
||||||
|
$guild_leader = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($guild_vice)
|
||||||
|
{
|
||||||
|
$rid = 0;
|
||||||
|
$sid = 0;
|
||||||
|
foreach($rank_list as $rank)
|
||||||
|
{
|
||||||
|
if($guild_leader || $rank->getLevel() < $level_in_guild)
|
||||||
|
{
|
||||||
|
$ranks[$rid]['0'] = $rank->getId();
|
||||||
|
$ranks[$rid]['1'] = $rank->getName();
|
||||||
|
$rid++;
|
||||||
|
|
||||||
|
if(fieldExist('rank_id', 'players'))
|
||||||
|
$players_with_rank = $db->query('SELECT `id`, `rank_id` FROM `players` WHERE `rank_id` = ' . $rank->getId() . ' AND `deleted` = 0;');
|
||||||
|
else
|
||||||
|
$players_with_rank = $db->query('SELECT `players`.`id` as `id`, `' . GUILD_MEMBERS_TABLE . '`.`rank_id` as `rank_id` FROM `players`, `' . GUILD_MEMBERS_TABLE . '` WHERE `' . GUILD_MEMBERS_TABLE . '`.`rank_id` = ' . $rank->getId() . ' AND `players`.`id` = `' . GUILD_MEMBERS_TABLE . '`.`player_id` ORDER BY `name`;');
|
||||||
|
|
||||||
|
$players_with_rank_number = $players_with_rank->rowCount();
|
||||||
|
if(count($players_with_rank) > 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach($players_with_rank as $result)
|
||||||
{
|
{
|
||||||
$players_from_account_in_guild[] = $player->getName();
|
$player = new OTS_Player();
|
||||||
if($player_rank->getLevel() > 1) {
|
$player->load($result['id']);
|
||||||
$guild_vice = true;
|
if(!$player->isLoaded())
|
||||||
$level_in_guild = $player_rank->getLevel();
|
continue;
|
||||||
}
|
|
||||||
if($guild->getOwner()->getId() == $player->getId()) {
|
if($guild->getOwner()->getId() != $player->getId() || $guild_leader)
|
||||||
$guild_vice = true;
|
{
|
||||||
$guild_leader = true;
|
$players_with_lower_rank[$sid][0] = $player->getName();
|
||||||
|
$players_with_lower_rank[$sid][1] = $player->getName().' ('.$rank->getName().')';
|
||||||
|
$sid++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//tworzenie listy osob z nizszymi uprawnieniami i rank z nizszym levelem
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save')
|
||||||
if($guild_vice)
|
|
||||||
{
|
{
|
||||||
$rid = 0;
|
$player_name = stripslashes($_REQUEST['name']);
|
||||||
$sid = 0;
|
$new_rank = (int) $_REQUEST['rankid'];
|
||||||
foreach($rank_list as $rank)
|
if(!Validator::characterName($player_name))
|
||||||
|
$change_errors[] = 'Invalid player name format.';
|
||||||
|
$rank = $ots->createObject('GuildRank');
|
||||||
|
$rank->load($new_rank);
|
||||||
|
if(!$rank->isLoaded())
|
||||||
|
$change_errors[] = 'Rank with this ID doesn\'t exist.';
|
||||||
|
if($level_in_guild <= $rank->getLevel() && !$guild_leader)
|
||||||
|
$change_errors[] = 'You can\'t set ranks with equal or higher level than your.';
|
||||||
|
if(empty($change_errors))
|
||||||
{
|
{
|
||||||
if($guild_leader || $rank->getLevel() < $level_in_guild)
|
$player_to_change = $ots->createObject('Player');
|
||||||
|
$player_to_change->find($player_name);
|
||||||
|
if(!$player_to_change->isLoaded())
|
||||||
|
$change_errors[] = 'Player with name '.$player_name.'</b> doesn\'t exist.';
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$ranks[$rid]['0'] = $rank->getId();
|
$player_in_guild = false;
|
||||||
$ranks[$rid]['1'] = $rank->getName();
|
if($guild->getName() == $player_to_change->getRank()->getGuild()->getName() || $guild_leader)
|
||||||
$rid++;
|
|
||||||
|
|
||||||
if(fieldExist('rank_id', 'players'))
|
|
||||||
$players_with_rank = $db->query('SELECT `id`, `rank_id` FROM `players` WHERE `rank_id` = ' . $rank->getId() . ' AND `deleted` = 0;');
|
|
||||||
else
|
|
||||||
$players_with_rank = $db->query('SELECT `players`.`id` as `id`, `' . GUILD_MEMBERS_TABLE . '`.`rank_id` as `rank_id` FROM `players`, `' . GUILD_MEMBERS_TABLE . '` WHERE `' . GUILD_MEMBERS_TABLE . '`.`rank_id` = ' . $rank->getId() . ' AND `players`.`id` = `' . GUILD_MEMBERS_TABLE . '`.`player_id` ORDER BY `name`;');
|
|
||||||
|
|
||||||
$players_with_rank_number = $players_with_rank->rowCount();
|
|
||||||
if(count($players_with_rank) > 0)
|
|
||||||
{
|
{
|
||||||
|
$player_in_guild = true;
|
||||||
foreach($players_with_rank as $result)
|
$player_has_lower_rank = false;
|
||||||
{
|
if($player_to_change->getRank()->getLevel() < $level_in_guild || $guild_leader)
|
||||||
$player = $ots->createObject('Player');
|
$player_has_lower_rank = true;
|
||||||
$player->load($result['id']);
|
|
||||||
if(!$player->isLoaded())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if($guild->getOwner()->getId() != $player->getId() || $guild_leader)
|
|
||||||
{
|
|
||||||
$players_with_lower_rank[$sid]['0'] = $player->getName();
|
|
||||||
$players_with_lower_rank[$sid]['1'] = $player->getName().' ('.$rank->getName().')';
|
|
||||||
$sid++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$rank_in_guild = false;
|
||||||
|
foreach($rank_list as $rank_from_guild)
|
||||||
|
if($rank_from_guild->getId() == $rank->getId())
|
||||||
|
$rank_in_guild = true;
|
||||||
|
if(!$player_in_guild)
|
||||||
|
$change_errors[] = 'This player isn\'t in your guild.';
|
||||||
|
if(!$rank_in_guild)
|
||||||
|
$change_errors[] = 'This rank isn\'t in your guild.';
|
||||||
|
if(!$player_has_lower_rank)
|
||||||
|
$change_errors[] = 'This player has higher rank in guild than you. You can\'t change his/her rank.';
|
||||||
}
|
}
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save')
|
if(empty($change_errors))
|
||||||
{
|
{
|
||||||
$player_name = stripslashes($_REQUEST['name']);
|
$player_to_change->setRank($rank);
|
||||||
$new_rank = (int) $_REQUEST['rankid'];
|
echo $twig->render('success.html.twig', array(
|
||||||
if(!Validator::characterName($player_name))
|
'title' => 'Rank Changed',
|
||||||
$change_errors[] = 'Invalid player name format.';
|
'description' => 'Rank of player <b>'.$player_to_change->getName().'</b> has been changed to <b>'.$rank->getName().'</b>.',
|
||||||
$rank = $ots->createObject('GuildRank');
|
'custom_buttons' => ''
|
||||||
$rank->load($new_rank);
|
));
|
||||||
if(!$rank->isLoaded())
|
|
||||||
$change_errors[] = 'Rank with this ID doesn\'t exist.';
|
|
||||||
if($level_in_guild <= $rank->getLevel() && !$guild_leader)
|
|
||||||
$change_errors[] = 'You can\'t set ranks with equal or higher level than your.';
|
|
||||||
if(empty($change_errors))
|
|
||||||
{
|
|
||||||
$player_to_change = $ots->createObject('Player');
|
|
||||||
$player_to_change->find($player_name);
|
|
||||||
if(!$player_to_change->isLoaded())
|
|
||||||
$change_errors[] = 'Player with name '.$player_name.'</b> doesn\'t exist.';
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$player_in_guild = false;
|
|
||||||
if($guild->getName() == $player_to_change->getRank()->getGuild()->getName() || $guild_leader)
|
|
||||||
{
|
|
||||||
$player_in_guild = true;
|
|
||||||
$player_has_lower_rank = false;
|
|
||||||
if($player_to_change->getRank()->getLevel() < $level_in_guild || $guild_leader)
|
|
||||||
$player_has_lower_rank = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$rank_in_guild = false;
|
|
||||||
foreach($rank_list as $rank_from_guild)
|
|
||||||
if($rank_from_guild->getId() == $rank->getId())
|
|
||||||
$rank_in_guild = true;
|
|
||||||
if(!$player_in_guild)
|
|
||||||
$change_errors[] = 'This player isn\'t in your guild.';
|
|
||||||
if(!$rank_in_guild)
|
|
||||||
$change_errors[] = 'This rank isn\'t in your guild.';
|
|
||||||
if(!$player_has_lower_rank)
|
|
||||||
$change_errors[] = 'This player has higher rank in guild than you. You can\'t change his/her rank.';
|
|
||||||
}
|
|
||||||
if(empty($change_errors))
|
|
||||||
{
|
|
||||||
$player_to_change->setRank($rank);
|
|
||||||
echo '<div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$template_path.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Guild Deleted</div> <span class="CaptionVerticalRight" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$template_path.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><tr><td>Rank of player <b>'.$player_to_change->getName().'</b> has been changed to <b>'.$rank->getName().'</b>.</td></tr> </table> </div> </table></div></td></tr><br>';
|
|
||||||
unset($players_with_lower_rank);
|
|
||||||
unset($ranks);
|
|
||||||
$rid = 0;
|
|
||||||
$sid= 0;
|
|
||||||
foreach($rank_list as $rank)
|
|
||||||
{
|
|
||||||
if($guild_leader || $rank->getLevel() < $level_in_guild)
|
|
||||||
{
|
|
||||||
$ranks[$rid]['0'] = $rank->getId();
|
|
||||||
$ranks[$rid]['1'] = $rank->getName();
|
|
||||||
$rid++;
|
|
||||||
|
|
||||||
if(fieldExist('rank_id', 'players'))
|
unset($players_with_lower_rank);
|
||||||
$players_with_rank = $db->query('SELECT `id`, `rank_id` FROM `players` WHERE `rank_id` = ' . $rank->getId() . ' AND `deleted` = 0;');
|
unset($ranks);
|
||||||
else
|
$rid = 0;
|
||||||
$players_with_rank = $db->query('SELECT `players`.`id` as `id`, `' . GUILD_MEMBERS_TABLE . '`.`rank_id` as `rank_id` FROM `players`, `' . GUILD_MEMBERS_TABLE . '` WHERE `' . GUILD_MEMBERS_TABLE . '`.`rank_id` = ' . $rank->getId() . ' AND `players`.`id` = `' . GUILD_MEMBERS_TABLE . '`.`player_id` ORDER BY `name`;');
|
$sid= 0;
|
||||||
|
foreach($rank_list as $rank)
|
||||||
|
{
|
||||||
|
if($guild_leader || $rank->getLevel() < $level_in_guild)
|
||||||
|
{
|
||||||
|
$ranks[$rid]['0'] = $rank->getId();
|
||||||
|
$ranks[$rid]['1'] = $rank->getName();
|
||||||
|
$rid++;
|
||||||
|
|
||||||
$players_with_rank_number = $players_with_rank->rowCount();
|
if(fieldExist('rank_id', 'players'))
|
||||||
if(count($players_with_rank) > 0)
|
$players_with_rank = $db->query('SELECT `id`, `rank_id` FROM `players` WHERE `rank_id` = ' . $rank->getId() . ' AND `deleted` = 0;');
|
||||||
|
else
|
||||||
|
$players_with_rank = $db->query('SELECT `players`.`id` as `id`, `' . GUILD_MEMBERS_TABLE . '`.`rank_id` as `rank_id` FROM `players`, `' . GUILD_MEMBERS_TABLE . '` WHERE `' . GUILD_MEMBERS_TABLE . '`.`rank_id` = ' . $rank->getId() . ' AND `players`.`id` = `' . GUILD_MEMBERS_TABLE . '`.`player_id` ORDER BY `name`;');
|
||||||
|
|
||||||
|
$players_with_rank_number = $players_with_rank->rowCount();
|
||||||
|
if(count($players_with_rank) > 0)
|
||||||
|
{
|
||||||
|
foreach($players_with_rank as $result)
|
||||||
{
|
{
|
||||||
foreach($players_with_rank as $result)
|
$player = $ots->createObject('Player');
|
||||||
{
|
$player->load($result['id']);
|
||||||
$player = $ots->createObject('Player');
|
if(!$player->isLoaded())
|
||||||
$player->load($result['id']);
|
continue;
|
||||||
if(!$player->isLoaded())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if($guild->getOwner()->getId() != $player->getId() || $guild_leader)
|
if($guild->getOwner()->getId() != $player->getId() || $guild_leader)
|
||||||
{
|
{
|
||||||
$players_with_lower_rank[$sid]['0'] = $player->getName();
|
$players_with_lower_rank[$sid][0] = $player->getName();
|
||||||
$players_with_lower_rank[$sid]['1'] = $player->getName().' ('.$rank->getName().')';
|
$players_with_lower_rank[$sid][1] = $player->getName().' ('.$rank->getName().')';
|
||||||
$sid++;
|
$sid++;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $change_errors));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
echo '<FORM ACTION="?subtopic=guilds&action=change_rank&guild='.$guild->getName().'&todo=save" METHOD=post>
|
else
|
||||||
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
|
{
|
||||||
<TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Change Rank</B></TD></TR>
|
echo $twig->render('error_box.html.twig', array('errors' => $change_errors));
|
||||||
<TR BGCOLOR='.$config['darkborder'].'><TD>Name: <SELECT NAME="name">';
|
}
|
||||||
foreach($players_with_lower_rank as $player_to_list)
|
|
||||||
echo '<OPTION value="'.$player_to_list['0'].'">'.$player_to_list['1'];
|
|
||||||
echo '</SELECT> Rank: <SELECT NAME="rankid">';
|
|
||||||
foreach($ranks as $rank)
|
|
||||||
echo '<OPTION value="'.$rank['0'].'">'.$rank['1'];
|
|
||||||
echo '</SELECT> <INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD><TR>
|
|
||||||
</TABLE></FORM><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild->getName().'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
|
||||||
}
|
}
|
||||||
else
|
echo $twig->render('guilds.change_rank.html.twig', array(
|
||||||
echo 'Error. You are not a leader or vice leader in guild '.$guild->getName().'.<FORM ACTION="?subtopic=guilds&action=show&guild='.$guild->getName().'" METHOD=post><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></FORM>';
|
'players' => $players_with_lower_rank,
|
||||||
|
'guild_name' => $guild->getName(),
|
||||||
|
'ranks' => $ranks
|
||||||
|
));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo 'Error. You are not a leader or vice leader in guild ' . $guild->getName();
|
||||||
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => getLink('guilds') . '/' . $guild->getName()
|
||||||
|
));
|
||||||
}
|
}
|
@ -61,5 +61,6 @@ if($logged)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo "You are not logged in.";
|
echo "You are not logged in.";
|
||||||
echo "<center><h3><a href=\"?subtopic=guilds\">BACK</a></h3></center>";
|
|
||||||
|
echo $twig->render('guilds.back_button.html.twig');
|
||||||
?>
|
?>
|
@ -63,5 +63,6 @@ if($logged)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo "You are not logged in.";
|
echo "You are not logged in.";
|
||||||
echo "<center><h3><a href=\"?subtopic=guilds\">BACK</a></h3></center>";
|
|
||||||
|
echo $twig->render('guilds.back_button.html.twig');
|
||||||
?>
|
?>
|
@ -116,10 +116,9 @@ if(isset($todo) && $todo == 'save')
|
|||||||
$player->setRank($rank);
|
$player->setRank($rank);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo $twig->render('success.html.twig', array(
|
echo $twig->render('guilds.create_guild.success.html.twig', array(
|
||||||
'title' => 'Created guild',
|
'guild_name' => $guild_name,
|
||||||
'description' => '<b>Congratulations!</b><br/>You have created guild <b>' . $guild_name . '</b>. <b>'.$player->getName().'</b> is leader of this guild. Now you can invite players, change picture, description' . (MOTD_EXISTS ? ' and motd' : '') . ' of guild. Press submit to open guild manager.',
|
'leader_name' => $player->getName()
|
||||||
'custom_buttons' => '<table border="0" cellspacing="0" cellpadding="0" width="100%"><form action="?subtopic=guilds&action=show&guild='.$guild_name.'" method="post"><tr><td><center><input type="image" name="Submit" alt="Submit" src="'.$template_path.'/images/buttons/sbutton_Submit.gif" border="0" width="120" height="18"></center></td></tr></form></table>'
|
|
||||||
));
|
));
|
||||||
|
|
||||||
/*$db->query('INSERT INTO `guild_ranks` (`id`, `guild_id`, `name`, `level`) VALUES (null, '.$new_guild->getId().', "the Leader", 3)');
|
/*$db->query('INSERT INTO `guild_ranks` (`id`, `guild_id`, `name`, `level`) VALUES (null, '.$new_guild->getId().', "the Leader", 3)');
|
||||||
|
@ -37,15 +37,15 @@ if(empty($errors)) {
|
|||||||
echo $twig->render('success.html.twig', array(
|
echo $twig->render('success.html.twig', array(
|
||||||
'title' => 'Guild Deleted',
|
'title' => 'Guild Deleted',
|
||||||
'description' => 'Guild with name <b>' . $guild_name . '</b> has been deleted.',
|
'description' => 'Guild with name <b>' . $guild_name . '</b> has been deleted.',
|
||||||
'custom_buttons' => '<center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url(' . $template_path . '/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(' . $template_path . '/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo $twig->render('success.html.twig', array(
|
echo $twig->render('success.html.twig', array(
|
||||||
'title' => 'Delete Guild',
|
'title' => 'Delete Guild',
|
||||||
'description' => 'Are you sure you want delete guild <b>' . $guild_name . '</b>?<br>
|
'description' => 'Are you sure you want delete guild <b>' . $guild_name . '</b>?<br/>
|
||||||
<form action="?subtopic=guilds&guild=' . $guild->getName() . '&action=delete_by_admin" METHOD="post"><input type="hidden" name="todo" value="save"><input type="submit" value="Yes, delete"></form>',
|
<form action="?subtopic=guilds&guild=' . $guild->getName() . '&action=delete_by_admin" METHOD="post"><input type="hidden" name="todo" value="save"><input type="submit" value="Yes, delete"></form>',
|
||||||
'custom_buttons' => '<center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,7 +60,10 @@ if(empty($errors)) {
|
|||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -52,7 +52,7 @@ if(empty($errors)) {
|
|||||||
echo $twig->render('success.html.twig', array(
|
echo $twig->render('success.html.twig', array(
|
||||||
'title' => 'Guild Deleted',
|
'title' => 'Guild Deleted',
|
||||||
'description' => 'Guild with name <b>'.$guild_name.'</b> has been deleted.',
|
'description' => 'Guild with name <b>'.$guild_name.'</b> has been deleted.',
|
||||||
'custom_buttons' => '<center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -73,7 +73,9 @@ if(empty($errors)) {
|
|||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -18,7 +18,7 @@ if(!$logged)
|
|||||||
$guild_errors[] = 'You are not logged in. You can\'t delete invitations.';
|
$guild_errors[] = 'You are not logged in. You can\'t delete invitations.';
|
||||||
if(!Validator::guildName($guild_name))
|
if(!Validator::guildName($guild_name))
|
||||||
$guild_errors[] = Validator::getLastError();
|
$guild_errors[] = Validator::getLastError();
|
||||||
if(!Validator($name))
|
if(!Validator::characterName($name))
|
||||||
$guild_errors[] = 'Invalid name format.';
|
$guild_errors[] = 'Invalid name format.';
|
||||||
if(empty($guild_errors))
|
if(empty($guild_errors))
|
||||||
{
|
{
|
||||||
@ -88,16 +88,24 @@ if(empty($guild_errors))
|
|||||||
if(!empty($guild_errors))
|
if(!empty($guild_errors))
|
||||||
{
|
{
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
||||||
echo '
|
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
echo $twig->render('guilds.back_button.html.twig', array('action' => '?subtopic=guilds&action=show&guild=' . $guild_name));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save')
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save')
|
||||||
{
|
{
|
||||||
$guild->deleteInvite($player);
|
$guild->deleteInvite($player);
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Delete player invitation</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Player with name <b>'.$player->getName().'</b> has been deleted from "invites list".</TD></TR></TABLE><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
echo $twig->render('success.html.twig', array(
|
||||||
|
'title' => 'Deleted player invitation',
|
||||||
|
'description' => 'Player with name <b>' . $player->getName() . '</b> has been deleted from invites list.',
|
||||||
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig', array('action' => '?subtopic=guilds&action=show&guild=' . $guild_name))
|
||||||
|
));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo $twig->render('guilds.delete_invite.html.twig', array(
|
||||||
|
'player_name' => $player->getName(),
|
||||||
|
'guild_name' => $guild->getName()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Delete player invitation</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Are you sure you want to delete player with name <b>'.$player->getName().'</b> from "invites list"?</TD></TR></TABLE><br/><center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><TR><FORM ACTION="?subtopic=guilds&action=delete_invite&guild='.$guild->getName().'&name='.$player->getName().'&todo=save" METHOD=post><TD align="right" width="50%"><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18> </TD></FORM><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TD> <INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></center>';
|
|
||||||
}
|
}
|
@ -87,12 +87,19 @@ if(empty($guild_errors)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($saved) {
|
if($saved) {
|
||||||
echo '<div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$template_path.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Rank Deleted</div> <span class="CaptionVerticalRight" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$template_path.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><tr><td>Rank <b>'.$rank->getName().'</b> has been deleted. Players with this rank has now other rank.</td></tr> </table> </div> </table></div></td></tr>';
|
echo $twig->render('success.html.twig', array(
|
||||||
|
'title' => 'Rank Deleted',
|
||||||
|
'description' => 'Rank <b>'.$rank->getName().'</b> has been deleted. Players with this rank has now other rank.',
|
||||||
|
'custom_buttons' => ''
|
||||||
|
));
|
||||||
} else {
|
} else {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors2));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors2));
|
||||||
}
|
}
|
||||||
//back button
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds&guild='.$guild->getName().'&action=manager" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds&guild='.$guild->getName().'&action=manager'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -107,7 +114,10 @@ if(empty($guild_errors)) {
|
|||||||
if(!empty($guild_errors)) {
|
if(!empty($guild_errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'new_line' => true,
|
||||||
|
'action' => '?subtopic=guilds'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -15,22 +15,22 @@ defined('MYAAC') or die('Direct access not allowed!');
|
|||||||
$guild_name = isset($_REQUEST['guild']) ? $_REQUEST['guild'] : NULL;
|
$guild_name = isset($_REQUEST['guild']) ? $_REQUEST['guild'] : NULL;
|
||||||
$name = isset($_REQUEST['name']) ? stripslashes($_REQUEST['name']) : NULL;
|
$name = isset($_REQUEST['name']) ? stripslashes($_REQUEST['name']) : NULL;
|
||||||
if(!$logged) {
|
if(!$logged) {
|
||||||
$guild_errors[] = 'You are not logged in. You can\'t invite players.';
|
$errors[] = "You are not logged in. You can't invite players.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!Validator::guildName($guild_name)) {
|
if(!Validator::guildName($guild_name)) {
|
||||||
$guild_errors[] = Validator::getLastError();
|
$errors[] = Validator::getLastError();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($guild_errors)) {
|
if(empty($errors)) {
|
||||||
$guild = $ots->createObject('Guild');
|
$guild = $ots->createObject('Guild');
|
||||||
$guild->find($guild_name);
|
$guild->find($guild_name);
|
||||||
if(!$guild->isLoaded()) {
|
if(!$guild->isLoaded()) {
|
||||||
$guild_errors[] = 'Guild with name <b>'.$guild_name.'</b> doesn\'t exist.';
|
$errors[] = 'Guild with name <b>'.$guild_name.'</b> doesn\'t exist.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($guild_errors)) {
|
if(empty($errors)) {
|
||||||
$rank_list = $guild->getGuildRanksList();
|
$rank_list = $guild->getGuildRanksList();
|
||||||
$rank_list->orderBy('level', POT::ORDER_DESC);
|
$rank_list->orderBy('level', POT::ORDER_DESC);
|
||||||
$guild_leader = false;
|
$guild_leader = false;
|
||||||
@ -58,53 +58,69 @@ if(empty($guild_errors)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$guild_vice) {
|
if(!$guild_vice) {
|
||||||
$guild_errors[] = 'You are not a leader or vice leader of guild <b>'.$guild_name.'</b>.'.$level_in_guild;
|
$errors[] = 'You are not a leader or vice leader of guild <b>'.$guild_name.'</b>.'.$level_in_guild;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
||||||
if(!Validator::characterName($name)) {
|
if(!Validator::characterName($name)) {
|
||||||
$guild_errors[] = 'Invalid name format.';
|
$errors[] = 'Invalid name format.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($guild_errors)) {
|
if(empty($errors)) {
|
||||||
$player = new OTS_Player();
|
$player = new OTS_Player();
|
||||||
$player->find($name);
|
$player->find($name);
|
||||||
if(!$player->isLoaded()) {
|
if(!$player->isLoaded()) {
|
||||||
$guild_errors[] = 'Player with name <b>' . $name . '</b> doesn\'t exist.';
|
$errors[] = 'Player with name <b>' . $name . '</b> doesn\'t exist.';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$rank_of_player = $player->getRank();
|
$rank_of_player = $player->getRank();
|
||||||
if($rank_of_player->isLoaded()) {
|
if($rank_of_player->isLoaded()) {
|
||||||
$guild_errors[] = 'Player with name <b>' . $name . '</b> is already in guild. He must leave guild before you can invite him.';
|
$errors[] = 'Player with name <b>' . $name . '</b> is already in guild. He must leave guild before you can invite him.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(empty($guild_errors)) {
|
if(empty($errors)) {
|
||||||
include(SYSTEM . 'libs/pot/InvitesDriver.php');
|
include(SYSTEM . 'libs/pot/InvitesDriver.php');
|
||||||
new InvitesDriver($guild);
|
new InvitesDriver($guild);
|
||||||
$invited_list = $guild->listInvites();
|
$invited_list = $guild->listInvites();
|
||||||
if(count($invited_list) > 0) {
|
if(count($invited_list) > 0) {
|
||||||
foreach($invited_list as $invited) {
|
foreach($invited_list as $invited) {
|
||||||
if($invited->getName() == $player->getName()) {
|
if($invited->getName() == $player->getName()) {
|
||||||
$guild_errors[] = '<b>'.$invited->getName().'</b> is already invited to your guild.';
|
$errors[] = '<b>'.$invited->getName().'</b> is already invited to your guild.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($guild_errors)) {
|
$show = true;
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
if(!empty($errors)) {
|
||||||
echo '
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
<table border="0" cellspacing="0" cellpadding="0" width="100%"><form action="?subtopic=guilds&action=show&guild='.$guild_name.'" method="post"><tr><td><center><input type=image name="Back" alt="Back" src="'.$template_path.'/images/buttons/sbutton_back.gif" border=0 width=120 height="18"></center></td></tr></form></table>';
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
||||||
$guild->invite($player);
|
$guild->invite($player);
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Invite player</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Player with name <b>'.$player->getName().'</b> has been invited to your guild.</TD></TR></TABLE><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
echo $twig->render('success.html.twig', array(
|
||||||
}
|
'title' => 'Invite player',
|
||||||
else {
|
'description' => 'Player with name <b>' . $player->getName() . '</b> has been invited to your guild.',
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Invite player</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%><FORM ACTION="?subtopic=guilds&action=invite&guild='.$guild->getName().'&todo=save" METHOD=post>Invite player with name: <INPUT TYPE="text" NAME="name"> <INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></FORM></TD></TD></TR></TR></TABLE><br/><center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><TR><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TD><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></center>';
|
'custom_buttons' => ''
|
||||||
|
));
|
||||||
|
|
||||||
|
$show = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($show) {
|
||||||
|
echo $twig->render('success.html.twig', array(
|
||||||
|
'title' => 'Invite player',
|
||||||
|
'description' => $twig->render('guilds.invite.html.twig', array(
|
||||||
|
'guild_name' => $guild->getName()
|
||||||
|
)),
|
||||||
|
'custom_buttons' => ''
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
));
|
@ -94,19 +94,28 @@ if(empty($errors)) {
|
|||||||
|
|
||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
echo '
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
||||||
$player->setRank();
|
$player->setRank();
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Kick player</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Player with name <b>'.$player->getName().'</b> has been kicked from your guild.</TD></TR></TABLE><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
|
||||||
|
echo $twig->render('success.html.twig', array(
|
||||||
|
'title' => 'Kick player',
|
||||||
|
'description' => 'Player with name <b>'.$player->getName().'</b> has been kicked from your guild.',
|
||||||
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
))
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
echo $twig->render('guilds.kick_player.html.twig', array(
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Kick player</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Are you sure you want to kick player with name <b>'.$player->getName().'</b> from your guild?</TD></TR></TABLE><br/><center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><TR><FORM ACTION="?subtopic=guilds&action=kick_player&guild='.$guild->getName().'&name='.$player->getName().'&todo=save" METHOD=post><TD align="right" width="50%"><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18> </TD></FORM><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TD> <INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></center>';
|
'player_name' => $player->getName(),
|
||||||
|
'guild_name' => $guild->getName()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -15,7 +15,7 @@ defined('MYAAC') or die('Direct access not allowed!');
|
|||||||
$guild_name = isset($_REQUEST['guild']) ? $_REQUEST['guild'] : NULL;
|
$guild_name = isset($_REQUEST['guild']) ? $_REQUEST['guild'] : NULL;
|
||||||
$name = isset($_REQUEST['name']) ? stripslashes($_REQUEST['name']) : NULL;
|
$name = isset($_REQUEST['name']) ? stripslashes($_REQUEST['name']) : NULL;
|
||||||
if(!$logged) {
|
if(!$logged) {
|
||||||
$errors[] = 'You are not logged in. You can\'t leave guild.';
|
$errors[] = "You are not logged in. You can't leave guild.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!Validator::guildName($guild_name)) {
|
if(!Validator::guildName($guild_name)) {
|
||||||
@ -26,7 +26,7 @@ if(empty($errors)) {
|
|||||||
$guild = new OTS_Guild();
|
$guild = new OTS_Guild();
|
||||||
$guild->find($guild_name);
|
$guild->find($guild_name);
|
||||||
if(!$guild->isLoaded()) {
|
if(!$guild->isLoaded()) {
|
||||||
$errors[] = 'Guild with name <b>'.$guild_name.'</b> doesn\'t exist.';
|
$errors[] = "Guild with name <b>" . $guild_name . "</b> doesn't exist.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,11 +42,11 @@ if(empty($errors)) {
|
|||||||
$player = new OTS_Player();
|
$player = new OTS_Player();
|
||||||
$player->find($name);
|
$player->find($name);
|
||||||
if(!$player->isLoaded()) {
|
if(!$player->isLoaded()) {
|
||||||
$errors[] = 'Character <b>'.$name.'</b> doesn\'t exist.';
|
$errors[] = "Character <b>" . $name . "</b> doesn't exist.";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if($player->getAccount()->getId() != $account_logged->getId()) {
|
if($player->getAccount()->getId() != $account_logged->getId()) {
|
||||||
$errors[] = 'Character <b>'.$name.'</b> isn\'t from your account!';
|
$errors[] = "Character <b>" . $name . "</b> isn't from your account!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -55,17 +55,17 @@ if(empty($errors)) {
|
|||||||
$player_loaded_rank = $player->getRank();
|
$player_loaded_rank = $player->getRank();
|
||||||
if($player_loaded_rank->isLoaded()) {
|
if($player_loaded_rank->isLoaded()) {
|
||||||
if($player_loaded_rank->getGuild()->getName() != $guild->getName()) {
|
if($player_loaded_rank->getGuild()->getName() != $guild->getName()) {
|
||||||
$errors[] = 'Character <b>'.$name.'</b> isn\'t from guild <b>'.$guild->getName().'</b>.';
|
$errors[] = "Character <b>" . $name . "</b> isn't from guild <b>" . $guild->getName() . "</b>.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$errors[] = 'Character <b>'.$name.'</b> isn\'t in any guild.';
|
$errors[] = "Character <b>" . $name . "</b> isn't in any guild.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($errors)) {
|
if(empty($errors)) {
|
||||||
if($guild_owner_name == $player->getName()) {
|
if($guild_owner_name == $player->getName()) {
|
||||||
$errors[] = 'You can\'t leave guild. You are an owner of guild.';
|
$errors[] = "You can't leave guild. You are an owner of guild.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -87,39 +87,30 @@ if(empty($errors)) {
|
|||||||
|
|
||||||
if(!empty($errors)) {
|
if(!empty($errors)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
echo '
|
echo $twig->render('guilds.back_button.html.twig', array(
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
if(isset($_REQUEST['todo']) && $_REQUEST['todo'] == 'save') {
|
||||||
$player->setRank();
|
$player->setRank();
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Leave guild</B></TD></TR><TR BGCOLOR='.$config['darkborder'].'><TD WIDTH=100%>Player with name <b>'.$player->getName().'</b> leaved guild <b>'.$guild->getName().'</b>.</TD></TR></TABLE><br/><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
$twig->render('success.html.twig', array(
|
||||||
|
'title' => 'Leave guild',
|
||||||
|
'description' => 'Player with name <b>'.$player->getName().'</b> leaved guild <b>'.$guild->getName().'</b>.',
|
||||||
|
'custom_buttons' => $twig->render('guilds.back_button.html.twig', array(
|
||||||
|
'action' => getLink('guilds') . '/' . $guild_name
|
||||||
|
))
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD class="white"><B>Leave guild</B></TD></TR>';
|
sort($array_of_player_ig);
|
||||||
if(count($array_of_player_ig) > 0) {
|
|
||||||
echo '<TR BGCOLOR='.$config['lightborder'].'><TD WIDTH=100%>Select character to leave guild:</TD></TR>';
|
|
||||||
echo '<TR BGCOLOR='.$config['darkborder'].'><TD>
|
|
||||||
<form action="?subtopic=guilds&action=leave_guild&guild='.$guild_name.'&todo=save" METHOD="post">';
|
|
||||||
|
|
||||||
sort($array_of_player_ig);
|
echo $twig->render('guilds.leave_guild.html.twig', array(
|
||||||
foreach($array_of_player_ig as $player_to_leave) {
|
'players' => $array_of_player_ig,
|
||||||
echo '<input type="radio" name="name" value="'.$player_to_leave.'" />'.$player_to_leave.'<br>';
|
'guild_name' => $guild_name
|
||||||
}
|
));
|
||||||
echo '</TD></TR><br></TABLE>';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo '<TR BGCOLOR='.$config['lightborder'].'><TD WIDTH=100%>Any of your characters can\'t leave guild.</TD></TR>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><tr>';
|
|
||||||
if(count($array_of_player_ig) > 0) {
|
|
||||||
echo '<td width="130" valign="top"><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></form></td>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<td><FORM ACTION="?subtopic=guilds&action=show&guild='.$guild_name.'" METHOD=post><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></FORM></td></tr></table>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ if($_REQUEST['preview'] == 2)
|
|||||||
if($logged)
|
if($logged)
|
||||||
echo '
|
echo '
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=create_guild" METHOD=post><TR><TD>
|
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=create_guild" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Create Guild" ALT="Create Guild" SRC="'.$template_path.'/images/buttons/sbutton_createguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Create Guild" ALT="Create Guild" SRC="'.$template_path.'/images/global/buttons/sbutton_createguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE>';
|
</TD></TR></FORM></TABLE>';
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
@ -95,7 +95,7 @@ else
|
|||||||
if(admin())
|
if(admin())
|
||||||
echo '<br /><a href="?subtopic=guilds&action=delete_by_admin&guild='.$guild->getName().'">Delete this guild (for ADMIN only!)</a>';
|
echo '<br /><a href="?subtopic=guilds&action=delete_by_admin&guild='.$guild->getName().'">Delete this guild (for ADMIN only!)</a>';
|
||||||
echo '</TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="' . $link . '" METHOD=post><TR><TD>
|
echo '</TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="' . $link . '" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="View" ALT="View" SRC="'.$template_path.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="View" ALT="View" SRC="'.$template_path.'/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE>
|
</TD></TR></FORM></TABLE>
|
||||||
</TD></TR>';
|
</TD></TR>';
|
||||||
}
|
}
|
||||||
@ -106,7 +106,7 @@ else
|
|||||||
<TD>';
|
<TD>';
|
||||||
if($logged)
|
if($logged)
|
||||||
echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=create_guild" METHOD=post><TR><TD>
|
echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=create_guild" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Create Guild" ALT="Create Guild" SRC="'.$template_path.'/images/buttons/sbutton_createguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Create Guild" ALT="Create Guild" SRC="'.$template_path.'/images/global/buttons/sbutton_createguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE>';
|
</TD></TR></FORM></TABLE>';
|
||||||
echo '
|
echo '
|
||||||
</TD></TR>';
|
</TD></TR>';
|
||||||
@ -116,13 +116,13 @@ else
|
|||||||
echo '</TABLE><br><br>';
|
echo '</TABLE><br><br>';
|
||||||
if($logged)
|
if($logged)
|
||||||
echo '<TABLE BORDER=0 WIDTH=100%><TR><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD><TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=create_guild" METHOD=post><TR><TD>
|
echo '<TABLE BORDER=0 WIDTH=100%><TR><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD><TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=create_guild" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Create Guild" ALT="Create Guild" SRC="'.$template_path.'/images/buttons/sbutton_createguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Create Guild" ALT="Create Guild" SRC="'.$template_path.'/images/global/buttons/sbutton_createguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD></TR></TABLE>
|
</TD></TR></FORM></TABLE></TD><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD></TR></TABLE>
|
||||||
<BR />If you have any problem with guilds try:
|
<BR />If you have any problem with guilds try:
|
||||||
<BR /><a href="?subtopic=guilds&action=cleanup_players">Cleanup players</a> - can\'t join guild/be invited? Can\'t create guild? Try cleanup players.
|
<BR /><a href="?subtopic=guilds&action=cleanup_players">Cleanup players</a> - can\'t join guild/be invited? Can\'t create guild? Try cleanup players.
|
||||||
<BR /><a href="?subtopic=guilds&action=cleanup_guilds">Cleanup guilds</a> - made guild, you are a leader, but you are not on players list? Cleanup guilds!';
|
<BR /><a href="?subtopic=guilds&action=cleanup_guilds">Cleanup guilds</a> - made guild, you are a leader, but you are not on players list? Cleanup guilds!';
|
||||||
else
|
else
|
||||||
echo 'Before you can create guild you must login.<br><TABLE BORDER=0 WIDTH=100%><TR><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD><TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=accountmanagement&redirect=' . getLink('guilds') . '" METHOD=post><TR><TD>
|
echo 'Before you can create guild you must login.<br><TABLE BORDER=0 WIDTH=100%><TR><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD><TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=accountmanagement&redirect=' . getLink('guilds') . '" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD></TR></TABLE>';
|
</TD></TR></FORM></TABLE></TD><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD></TR></TABLE>';
|
||||||
?>
|
?>
|
@ -86,7 +86,7 @@ if(empty($guild_errors) && empty($guild_errors2)) {
|
|||||||
echo $twig->render('success.html.twig', array(
|
echo $twig->render('success.html.twig', array(
|
||||||
'title' => 'Leadership passed',
|
'title' => 'Leadership passed',
|
||||||
'description' => '<b>'.$to_player->getName().'</b> is now a Leader of <b>'.$guild_name.'</b>.',
|
'description' => '<b>'.$to_player->getName().'</b> is now a Leader of <b>'.$guild_name.'</b>.',
|
||||||
'custom_buttons' => '<center><form action="?subtopic=guilds&guild='.$guild->getName().'&action=show" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'
|
'custom_buttons' => '<center><form action="' . getLink('guilds') . '/' . $guild->getName().'" METHOD=post>' . $twig->render('buttons.back.html.twig') . '</form></center>'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -106,7 +106,7 @@ if(empty($guild_errors) && empty($guild_errors2)) {
|
|||||||
if(empty($guild_errors) && !empty($guild_errors2)) {
|
if(empty($guild_errors) && !empty($guild_errors2)) {
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors2));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors2));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds&guild='.$guild->getName().'&action=pass_leadership" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo '<br/><center><form action="?subtopic=guilds&guild='.$guild->getName().'&action=pass_leadership" method="post">' . $twig->render('buttons.back.html.twig') . '</form></center>';
|
||||||
}
|
}
|
||||||
if(!empty($guild_errors)) {
|
if(!empty($guild_errors)) {
|
||||||
if(!empty($guild_errors2)) {
|
if(!empty($guild_errors2)) {
|
||||||
@ -114,7 +114,7 @@ if(!empty($guild_errors)) {
|
|||||||
}
|
}
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
||||||
|
|
||||||
echo '<br/><center><form action="?subtopic=guilds" METHOD=post><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$template_path.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>';
|
echo '<br/><center><form action="?subtopic=guilds" method="post">' . $twig->render('buttons.back.html.twig') . '</form></center>';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -13,19 +13,19 @@ defined('MYAAC') or die('Direct access not allowed!');
|
|||||||
|
|
||||||
$guild_name = $_REQUEST['guild'];
|
$guild_name = $_REQUEST['guild'];
|
||||||
if(!Validator::guildName($guild_name))
|
if(!Validator::guildName($guild_name))
|
||||||
$guild_errors[] = Validator::getLastError();
|
$errors[] = Validator::getLastError();
|
||||||
if(empty($guild_errors))
|
if(empty($errors))
|
||||||
{
|
{
|
||||||
$guild = $ots->createObject('Guild');
|
$guild = $ots->createObject('Guild');
|
||||||
$guild->find($guild_name);
|
$guild->find($guild_name);
|
||||||
if(!$guild->isLoaded())
|
if(!$guild->isLoaded())
|
||||||
$guild_errors[] = 'Guild with name <b>'.$guild_name.'</b> doesn\'t exist.';
|
$errors[] = 'Guild with name <b>'.$guild_name.'</b> doesn\'t exist.';
|
||||||
}
|
}
|
||||||
if(!empty($guild_errors))
|
if(!empty($errors))
|
||||||
{
|
{
|
||||||
echo $twig->render('error_box.html.twig', array('errors' => $guild_errors));
|
echo $twig->render('error_box.html.twig', array('errors' => $errors));
|
||||||
echo '
|
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><FORM ACTION="?subtopic=guilds" METHOD=post><TR><TD><center><INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center></TD></TR></FORM></TABLE>';
|
echo $twig->render('guilds.back_button.html.twig');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -88,7 +88,7 @@ else
|
|||||||
<TD WIDTH=64><IMG SRC="images/guilds/' . $guild_logo.'" WIDTH=64 HEIGHT=64></TD></TR>
|
<TD WIDTH=64><IMG SRC="images/guilds/' . $guild_logo.'" WIDTH=64 HEIGHT=64></TD></TR>
|
||||||
</TABLE><BR>'.$description.'<BR><BR><a href="' . getPlayerLink($guild_owner, false).'"><b>'.$guild_owner.'</b></a> is guild leader of <b>'.$guild->getName().'</b>.<BR>The guild was founded on '.$config['lua']['serverName'].' on '.date("j F Y", $guild->getCreationData()).'.';
|
</TABLE><BR>'.$description.'<BR><BR><a href="' . getPlayerLink($guild_owner, false).'"><b>'.$guild_owner.'</b></a> is guild leader of <b>'.$guild->getName().'</b>.<BR>The guild was founded on '.$config['lua']['serverName'].' on '.date("j F Y", $guild->getCreationData()).'.';
|
||||||
if($guild_leader)
|
if($guild_leader)
|
||||||
echo ' <a href="?subtopic=guilds&action=manager&guild='.$guild->getName().'"><IMG SRC="'.$template_path.'/images/buttons/sbutton_manageguild.png" BORDER=0 WIDTH=120 HEIGHT=18 alt="Manage Guild"></a>';
|
echo ' <a href="?subtopic=guilds&action=manager&guild='.$guild->getName().'"><IMG SRC="'.$template_path.'/images/global/buttons/sbutton_manageguild.png" BORDER=0 WIDTH=120 HEIGHT=18 alt="Manage Guild"></a>';
|
||||||
echo '<BR><BR>
|
echo '<BR><BR>
|
||||||
|
|
||||||
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
|
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
|
||||||
@ -196,7 +196,7 @@ else
|
|||||||
<B>'.$houseInfo['name'].'</B>
|
<B>'.$houseInfo['name'].'</B>
|
||||||
<FORM ACTION=?subtopic=houses&page=view METHOD=post>
|
<FORM ACTION=?subtopic=houses&page=view METHOD=post>
|
||||||
<INPUT TYPE=hidden NAME=houseid VALUE='.$houseInfo['id'].'>
|
<INPUT TYPE=hidden NAME=houseid VALUE='.$houseInfo['id'].'>
|
||||||
<INPUT TYPE=image NAME="View" ALT="View" SRC="'.$template_path.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120>
|
<INPUT TYPE=image NAME="View" ALT="View" SRC="'.$template_path.'/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120>
|
||||||
</FORM>
|
</FORM>
|
||||||
</TD>
|
</TD>
|
||||||
</TR>';
|
</TR>';
|
||||||
@ -219,7 +219,7 @@ else
|
|||||||
$showed_invited = 1;
|
$showed_invited = 1;
|
||||||
foreach($invited_list as $invited_player)
|
foreach($invited_list as $invited_player)
|
||||||
{
|
{
|
||||||
if(count($account_players) > 0)
|
if($logged && count($account_players) > 0)
|
||||||
foreach($account_players as $player_from_acc)
|
foreach($account_players as $player_from_acc)
|
||||||
if($player_from_acc->getName() == $invited_player->getName())
|
if($player_from_acc->getName() == $invited_player->getName())
|
||||||
$show_accept_invite++;
|
$show_accept_invite++;
|
||||||
@ -235,30 +235,30 @@ else
|
|||||||
<TABLE BORDER=0 WIDTH=100%><TR><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD>';
|
<TABLE BORDER=0 WIDTH=100%><TR><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD>';
|
||||||
if(!$logged)
|
if(!$logged)
|
||||||
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=accountmanagement&redirect='.getGuildLink($guild->getName(), false).'" METHOD=post><TR><TD>
|
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=accountmanagement&redirect='.getGuildLink($guild->getName(), false).'" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD>';
|
</TD></TR></FORM></TABLE></TD>';
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if($show_accept_invite > 0)
|
if($show_accept_invite > 0)
|
||||||
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=accept_invite&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=accept_invite&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Accept Invite" ALT="Accept Invite" SRC="'.$template_path.'/images/buttons/sbutton_acceptinvite.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Accept Invite" ALT="Accept Invite" SRC="'.$template_path.'/images/global/buttons/sbutton_acceptinvite.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD>';
|
</TD></TR></FORM></TABLE></TD>';
|
||||||
if($guild_vice)
|
if($guild_vice)
|
||||||
{
|
{
|
||||||
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=invite&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=invite&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Invite Player" ALT="Invite Player" SRC="'.$template_path.'/images/buttons/sbutton_inviteplayer.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Invite Player" ALT="Invite Player" SRC="'.$template_path.'/images/global/buttons/sbutton_inviteplayer.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD>';
|
</TD></TR></FORM></TABLE></TD>';
|
||||||
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=change_rank&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=change_rank&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Change Rank" ALT="Change Rank" SRC="'.$template_path.'/images/buttons/sbutton_changerank.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Change Rank" ALT="Change Rank" SRC="'.$template_path.'/images/global/buttons/sbutton_changerank.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD>';
|
</TD></TR></FORM></TABLE></TD>';
|
||||||
}
|
}
|
||||||
if(count($players_from_account_in_guild) > 0)
|
if(count($players_from_account_in_guild) > 0)
|
||||||
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=leave_guild&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds&action=leave_guild&guild='.$guild->getName().'" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Leave Guild" ALT="Leave Guild" SRC="'.$template_path.'/images/buttons/sbutton_leaveguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="Leave Guild" ALT="Leave Guild" SRC="'.$template_path.'/images/global/buttons/sbutton_leaveguild.png" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR></FORM></TABLE></TD>';
|
</TD></TR></FORM></TABLE></TD>';
|
||||||
}
|
}
|
||||||
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds" METHOD=post><TR><TD>
|
echo '<TD ALIGN=center><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=guilds" METHOD=post><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
' . $twig->render('buttons.back.html.twig') . '
|
||||||
</TD></TR></FORM></TABLE>
|
</TD></TR></FORM></TABLE>
|
||||||
</TD><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD></TR></TABLE>
|
</TD><TD ALIGN=center><IMG SRC="'.$template_path.'/images/general/blank.gif" WIDTH=80 HEIGHT=1 BORDER=0<BR></TD></TR></TABLE>
|
||||||
</TD><TD><IMG src="'.$template_path.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD>
|
</TD><TD><IMG src="'.$template_path.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD>
|
||||||
|
@ -225,7 +225,7 @@ $type = '';
|
|||||||
<FORM ACTION=?subtopic=houses&page=view METHOD=post>
|
<FORM ACTION=?subtopic=houses&page=view METHOD=post>
|
||||||
<TR><TD>
|
<TR><TD>
|
||||||
<INPUT TYPE=hidden NAME=house VALUE="'.$house['name'].'">
|
<INPUT TYPE=hidden NAME=house VALUE="'.$house['name'].'">
|
||||||
<INPUT TYPE=image NAME="View" ALT="View" SRC="'.$template_path.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
<INPUT TYPE=image NAME="View" ALT="View" SRC="'.$template_path.'/images/global/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
||||||
</TD></TR>
|
</TD></TR>
|
||||||
</FORM>
|
</FORM>
|
||||||
</TABLE>
|
</TABLE>
|
||||||
@ -301,7 +301,7 @@ $type = '';
|
|||||||
<BR>
|
<BR>
|
||||||
<CENTER>
|
<CENTER>
|
||||||
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD>
|
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18>
|
' . $twig->render('buttons.submit.html.twig') . '
|
||||||
</TD></TR></FORM></TABLE>
|
</TD></TR></FORM></TABLE>
|
||||||
</CENTER>';
|
</CENTER>';
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ elseif($action == 'step1' && $action_type == 'email')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -70,7 +70,7 @@ elseif($action == 'step1' && $action_type == 'email')
|
|||||||
else
|
else
|
||||||
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
||||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<a href="?subtopic=lostaccount" border="0"><IMG SRC="'.$template_path.'/images/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
<a href="?subtopic=lostaccount" border="0"><IMG SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
elseif($action == 'sendcode')
|
elseif($action == 'sendcode')
|
||||||
@ -133,7 +133,7 @@ elseif($action == 'sendcode')
|
|||||||
else
|
else
|
||||||
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
||||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<a href="?subtopic=lostaccount&action=step1&action_type=email&nick='.urlencode($nick).'" border="0"><IMG SRC="'.$template_path.'/images/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
<a href="?subtopic=lostaccount&action=step1&action_type=email&nick='.urlencode($nick).'" border="0"><IMG SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
elseif($action == 'step1' && $action_type == 'reckey')
|
elseif($action == 'step1' && $action_type == 'reckey')
|
||||||
@ -162,7 +162,7 @@ elseif($action == 'step1' && $action_type == 'reckey')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -174,7 +174,7 @@ elseif($action == 'step1' && $action_type == 'reckey')
|
|||||||
else
|
else
|
||||||
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
||||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<a href="?subtopic=lostaccount" border="0"><IMG SRC="'.$template_path.'/images/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
<a href="?subtopic=lostaccount" border="0"><IMG SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
elseif($action == 'step2')
|
elseif($action == 'step2')
|
||||||
@ -248,7 +248,7 @@ elseif($action == 'step2')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -263,7 +263,7 @@ elseif($action == 'step2')
|
|||||||
else
|
else
|
||||||
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
||||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<a href="?subtopic=lostaccount&action=step1&action_type=reckey&nick='.urlencode($nick).'" border="0"><IMG SRC="'.$template_path.'/images/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
<a href="?subtopic=lostaccount&action=step1&action_type=reckey&nick='.urlencode($nick).'" border="0"><IMG SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
elseif($action == 'step3')
|
elseif($action == 'step3')
|
||||||
@ -341,7 +341,7 @@ elseif($action == 'step3')
|
|||||||
<INPUT TYPE=hidden NAME="password_login" VALUE="'.$new_pass.'">
|
<INPUT TYPE=hidden NAME="password_login" VALUE="'.$new_pass.'">
|
||||||
</TD></TR></TABLE><BR>
|
</TD></TR></TABLE><BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -362,7 +362,7 @@ elseif($action == 'step3')
|
|||||||
else
|
else
|
||||||
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
echo 'Invalid player name format. If you have other characters on account try with other name.';
|
||||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<a href="?subtopic=lostaccount&action=step1&action_type=reckey&nick='.urlencode($nick).'" border="0"><IMG SRC="'.$template_path.'/images/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
<a href="?subtopic=lostaccount&action=step1&action_type=reckey&nick='.urlencode($nick).'" border="0"><IMG SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" NAME="Back" ALT="Back" BORDER=0 WIDTH=120 HEIGHT=18></a></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
elseif($action == 'checkcode')
|
elseif($action == 'checkcode')
|
||||||
@ -381,7 +381,7 @@ elseif($action == 'checkcode')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -431,7 +431,7 @@ elseif($action == 'checkcode')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -452,7 +452,7 @@ elseif($action == 'checkcode')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
elseif($action == 'setnewpassword')
|
elseif($action == 'setnewpassword')
|
||||||
@ -465,7 +465,7 @@ elseif($action == 'setnewpassword')
|
|||||||
echo '<font color="red"><b>Error. Try again.</b></font><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
echo '<font color="red"><b>Error. Try again.</b></font><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||||
<BR><FORM ACTION="?subtopic=lostaccount&action=checkcode" METHOD=post>
|
<BR><FORM ACTION="?subtopic=lostaccount&action=checkcode" METHOD=post>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -519,7 +519,7 @@ elseif($action == 'setnewpassword')
|
|||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<FORM ACTION="?subtopic=accountmanagement" METHOD=post>
|
<FORM ACTION="?subtopic=accountmanagement" METHOD=post>
|
||||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -543,7 +543,7 @@ elseif($action == 'setnewpassword')
|
|||||||
</TABLE>
|
</TABLE>
|
||||||
<BR>
|
<BR>
|
||||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||||
<INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$template_path.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||||
</TD></TR></FORM></TABLE></TABLE>';
|
</TD></TR></FORM></TABLE></TABLE>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -69,7 +69,7 @@ if(isset($_GET['archive']))
|
|||||||
?>
|
?>
|
||||||
<center>
|
<center>
|
||||||
<table cellspacing="0" cellpadding="0" border="0"><form method="post" action="<?php echo getLink('news/archive'); ?>"><tbody><tr><td>
|
<table cellspacing="0" cellpadding="0" border="0"><form method="post" action="<?php echo getLink('news/archive'); ?>"><tbody><tr><td>
|
||||||
<input width="120" height="18" border="0" type="image" src="<?php echo $template_path; ?>/images/buttons/sbutton_back.gif" alt="Back" name="Back">
|
<input width="120" height="18" border="0" type="image" src="<?php echo $template_path; ?>/images/global/buttons/sbutton_back.gif" alt="Back" name="Back">
|
||||||
</form></td></tr></tbody></table>
|
</form></td></tr></tbody></table>
|
||||||
</center>
|
</center>
|
||||||
<?php
|
<?php
|
||||||
|
@ -127,29 +127,5 @@ echo $twig->render('online.html.twig', array(
|
|||||||
));
|
));
|
||||||
|
|
||||||
//search bar
|
//search bar
|
||||||
echo '<br/>
|
echo $twig->render('online.form.html.twig');
|
||||||
<form action="?subtopic=characters" method=post>
|
|
||||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="'.$config['vdarkborder'].'" class="white">
|
|
||||||
<b>Search Character</b>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor="'.$config['darkborder'].'">
|
|
||||||
<table border=0 cellpadding=1>
|
|
||||||
<tr>
|
|
||||||
<td>Name:</td>
|
|
||||||
<td>
|
|
||||||
<input name="name" value=""size=29 maxlength=29>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<input type="image" name="Submit" src="'.$template_path.'/images/buttons/sbutton_submit.gif" border="0" width="120" height="18">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>';
|
|
||||||
?>
|
?>
|
||||||
|
@ -46,24 +46,33 @@ if(!in_array($order, array('spell', 'words', 'type', 'mana', 'level', 'maglevel'
|
|||||||
<td class="white"><b>Spell Search</b></td>
|
<td class="white"><b>Spell Search</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr bgcolor="<?php echo $config['darkborder']; ?>">
|
<tr bgcolor="<?php echo $config['darkborder']; ?>">
|
||||||
<td>Only for vocation: <select name="vocation_id">
|
<td>
|
||||||
<option value="All" <?php
|
<table border="0" cellpadding="1">
|
||||||
if('All' == $vocation_id)
|
<tr>
|
||||||
echo 'SELECTED';
|
<td>Only for vocation: <select name="vocation_id">
|
||||||
|
<option value="All" <?php
|
||||||
|
if('All' == $vocation_id)
|
||||||
|
echo 'SELECTED';
|
||||||
|
|
||||||
echo '>All';
|
echo '>All';
|
||||||
|
|
||||||
foreach($config['vocations'] as $id => $vocation)
|
foreach($config['vocations'] as $id => $vocation)
|
||||||
{
|
{
|
||||||
echo '<option value="' . $id . '" ';
|
echo '<option value="' . $id . '" ';
|
||||||
if($id == $vocation_id && $vocation_id != "All" && $vocation_id != '')
|
if($id == $vocation_id && $vocation_id != "All" && $vocation_id != '')
|
||||||
echo 'SELECTED';
|
echo 'SELECTED';
|
||||||
|
|
||||||
echo '>' . $vocation;
|
echo '>' . $vocation;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<input type="hidden" name="order" value="<?php echo $order; ?>"> <input type="image" name="Submit" alt="Submit" src="<?php echo $template_path; ?>/images/buttons/sbutton_submit.gif" border="0" width="120" height="18">
|
<input type="hidden" name="order" value="<?php echo $order; ?>">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php echo $twig->render('buttons.submit.html.twig'); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -90,8 +90,7 @@ If you do not want to specify a certain field, just leave it blank.<br/><br/>
|
|||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<input type="hidden" name="name" value="{{ player.getName() }}">
|
<input type="hidden" name="name" value="{{ player.getName() }}">
|
||||||
<input type="hidden" name="changecommentsave" value="1">
|
<input type="hidden" name="changecommentsave" value="1">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@ -102,8 +101,7 @@ If you do not want to specify a certain field, just leave it blank.<br/><br/>
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -79,9 +79,7 @@ Here you can tell other players about yourself. This information will be display
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<input type="hidden" name="changeinfosave" value="1">
|
<input type="hidden" name="changeinfosave" value="1">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
<input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -92,9 +90,7 @@ Here you can tell other players about yourself. This information will be display
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post" >
|
<form action="{{ getLink('account/manage') }}" method="post" >
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" >
|
{{ include('buttons.back.html.twig') }}
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);"></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -49,8 +49,7 @@ Please enter your password and the new email address. Make sure that you enter a
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<input type="hidden" name="changeemailsave" value="1"/>
|
<input type="hidden" name="changeemailsave" value="1"/>
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
</table>
|
</table>
|
||||||
@ -61,8 +60,7 @@ Please enter your password and the new email address. Make sure that you enter a
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -55,8 +55,7 @@ To change a name of character select player and choose a new name.<br/>
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@ -67,8 +66,7 @@ To change a name of character select player and choose a new name.<br/>
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -57,8 +57,7 @@ Please enter your current password and a new password. For your security, please
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
</table>
|
</table>
|
||||||
@ -69,8 +68,7 @@ Please enter your current password and a new password. For your security, please
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -54,8 +54,7 @@ To change a sex of character select player and choose a new sex.<br/>
|
|||||||
<table border="0" cellspacing="0" cellpadding="0" >
|
<table border="0" cellspacing="0" cellpadding="0" >
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -67,8 +66,7 @@ To change a sex of character select player and choose a new sex.<br/>
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -124,12 +124,7 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;" >
|
<td style="border:0px;" >
|
||||||
<input type="hidden" name="step" value="save" >
|
<input type="hidden" name="step" value="save" >
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" >
|
{{ include('buttons.submit.html.twig') }}
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" >
|
|
||||||
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
|
||||||
<input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -126,9 +126,7 @@ In any case the name must not violate the naming conventions stated in the <a hr
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)">
|
{{ include('buttons.submit.html.twig') }}
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@ -139,7 +137,7 @@ In any case the name must not violate the naming conventions stated in the <a hr
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -45,8 +45,7 @@ To delete a character enter the name of the character and your password.<br/><br
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
</form>
|
</form>
|
||||||
@ -57,8 +56,7 @@ To delete a character enter the name of the character and your password.<br/><br
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -38,8 +38,7 @@ To generate new recovery key for your account please enter your password.<br/>
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
@ -50,8 +49,7 @@ To generate new recovery key for your account please enter your password.<br/>
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -41,8 +41,7 @@ To generate recovery key for your account please enter your password.<br/><br/>
|
|||||||
<table border="0" cellspacing="0" cellpadding="0" >
|
<table border="0" cellspacing="0" cellpadding="0" >
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
</table>
|
</table>
|
||||||
@ -53,8 +52,7 @@ To generate recovery key for your account please enter your password.<br/><br/>
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border: 0px;">
|
<td style="border: 0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -55,10 +55,7 @@ Please enter your account {{ account|lower }} and your password.<br/><a href="?s
|
|||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
<input class="ButtonText" type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/_sbutton_submit.gif" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
</form>
|
</form>
|
||||||
@ -69,10 +66,7 @@ Please enter your account {{ account|lower }} and your password.<br/><a href="?s
|
|||||||
<form action="{{ getLink('account/lost') }}" method="post">
|
<form action="{{ getLink('account/lost') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
{{ include('buttons.account_lost.html.twig') }}
|
||||||
<input class="ButtonText" type="image" name="Account lost?" alt="Account lost?" src="{{ template_path }}/images/buttons/_sbutton_accountlost.gif" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
@ -28,7 +28,7 @@ The Lost Account Interface can help you to get back your account name and passwo
|
|||||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<input type="image" name="Submit" alt="Submit" src="{{ template_path }}/images/buttons/sbutton_submit.gif" border="0" width="120" height="18">
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -3,7 +3,7 @@ Please select action.<br/>
|
|||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="{{ getLink('account/lost') }}" border="0">
|
<a href="{{ getLink('account/lost') }}" border="0">
|
||||||
<img src="{{ template_path }}/images/buttons/sbutton_back.gif" name="back" alt="back" border="0" width="120" height="18">
|
{{ include('buttons.back.html.twig') }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
2
system/templates/buttons.account_lost.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Account lost?' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.back.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Back' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
1
system/templates/buttons.base.html.twig
Normal file
@ -0,0 +1 @@
|
|||||||
|
<input type="submit" name="{{ button_name }}" value="{{ button_name }}" />
|
2
system/templates/buttons.cancel.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Cancel' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.change_email.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Change Email' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.change_name.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Change Name' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.change_password.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Change Password' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.change_sex.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Change Sex' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.create_character.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Create Character' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.delete_character.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Delete Character' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.edit.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Edit' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.login.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Login' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.logout.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Logout' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.register_account.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Register Account' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
2
system/templates/buttons.submit.html.twig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{% set button_name = 'Submit' %}
|
||||||
|
{% include('buttons.base.html.twig') %}
|
@ -1,15 +1,17 @@
|
|||||||
<form action="{{ link }}" method="post">
|
<form action="{{ link }}" method="post">
|
||||||
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||||
<tr><td bgcolor="{{ config.vdarkborder }}" class="white"><B>Search Character</B></TD></TR>
|
<tr><td bgcolor="{{ config.vdarkborder }}" class="white"><B>Search Character</B></TD></TR>
|
||||||
<tr><td bgcolor="{{ config.darkborder }}">
|
<tr>
|
||||||
<table border="0" cellpadding="1">
|
<td bgcolor="{{ config.darkborder }}">
|
||||||
<tr>
|
<table border="0" cellpadding="1">
|
||||||
<td>Name:</td><td><input name="name" value="" size="29" maxlength="29"{% if autofocus %} autofocus{% endif %}></TD>
|
<tr>
|
||||||
<td>
|
<td>Name:</td><td><input name="name" value="" size="29" maxlength="29"{% if autofocus %} autofocus{% endif %}></TD>
|
||||||
<input type=image name="Submit" src="{{ template_path }}/images/buttons/sbutton_submit.gif" border="0" width="120" height="18"/>
|
<td>
|
||||||
</td>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
</td></tr>
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
@ -95,7 +95,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<form action="?subtopic=houses&page=view" method="post">
|
<form action="?subtopic=houses&page=view" method="post">
|
||||||
<input type="hidden" name="house" value="{{ house.name }}">
|
<input type="hidden" name="house" value="{{ house.name }}">
|
||||||
<input type="image" name="View" alt="View" src="{{ template_path }}/images/buttons/sbutton_view.gif" border="0" width="120">
|
<input type="image" name="View" alt="View" src="{{ template_path }}/images/global/buttons/sbutton_view.gif" border="0" width="120">
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -365,7 +365,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="name" value="{{ player.getName() }}"/>
|
<input type="hidden" name="name" value="{{ player.getName() }}"/>
|
||||||
<input type="image" name="View {{ player.getName() }}" alt="View {{ player.getName() }}" src="{{ template_path }}/images/buttons/sbutton_view.gif" border="0" width="120" height="18"/>
|
<input type="image" name="View {{ player.getName() }}" alt="View {{ player.getName() }}" src="{{ template_path }}/images/global/buttons/sbutton_view.gif" border="0" width="120" height="18"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
6
system/templates/creatures.back_button.html.twig
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<br/></br>
|
||||||
|
<center>
|
||||||
|
<form action="{{ getLink('creatures') }}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</center>
|
32
system/templates/guilds.accept_invite.html.twig
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||||
|
<tr bgcolor="{{ config.vdarkborder }}">
|
||||||
|
<td class="white"><b>Accept invitation</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr bgcolor="{{ config.lightborder }}">
|
||||||
|
<td width="100%">Select character to join guild:</td>
|
||||||
|
</tr>
|
||||||
|
<tr bgcolor="{{ config.darkborder }}">
|
||||||
|
<td>
|
||||||
|
<form action="?subtopic=guilds&action=accept_invite&guild={{ guild_name }}&todo=save" method="post">
|
||||||
|
{% set i = 0 %}
|
||||||
|
{% for player in invited_players %}
|
||||||
|
<input type="radio" name="name" id="name_{{ i }}" value="{{ player }}" /><label for="name_{{ i }}">{{ player }}</label>
|
||||||
|
{% set i = i + 1 %}
|
||||||
|
{% endfor %}
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br/>
|
||||||
|
<center>
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<form action="{{ getLink('guilds') ~ '/' ~ guild_name }}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
8
system/templates/guilds.back_button.html.twig
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{% if new_line is defined and new_line %}
|
||||||
|
<br/>
|
||||||
|
{% endif %}
|
||||||
|
<center>
|
||||||
|
<form action="{% if action is not defined %}{{ getLink('guilds') }}{% else %}{{ action }}{% endif %}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</center>
|
@ -5,15 +5,8 @@ Here you can change description of your guild.<br/>
|
|||||||
<textarea name="description" cols="60" rows="{{ rows }}">{{ guild.getCustomField('description')|raw }}</textarea><br>
|
<textarea name="description" cols="60" rows="{{ rows }}">{{ guild.getCustomField('description')|raw }}</textarea><br>
|
||||||
(max. {{ config.guild_description_lines_limit }} lines, max. {{ config.guild_description_chars_limit }} chars) <input type="submit" value="Save description"/></form><br/>
|
(max. {{ config.guild_description_lines_limit }} lines, max. {{ config.guild_description_chars_limit }} chars) <input type="submit" value="Save description"/></form><br/>
|
||||||
<br/>
|
<br/>
|
||||||
{% spaceless %}
|
|
||||||
<center>
|
<center>
|
||||||
<form action="?subtopic=guilds&guild='.$guild->getName().'&action=manager" method="post">
|
<form action="?subtopic=guilds&guild='.$guild->getName().'&action=manager" method="post">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)">
|
{{ include('buttons.back.html.twig') }}
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);">
|
|
||||||
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
|
||||||
<input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
{% endspaceless %}
|
|
@ -11,11 +11,8 @@ Only <b>jpg, gif, png, bmp</b> pictures. Max. size: <b>{{ config.guild_image_siz
|
|||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<center>
|
<center>
|
||||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)">
|
<div class="BigButton" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif)">
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);">
|
{{ include('buttons.back.html.twig') }}
|
||||||
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
|
||||||
<input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
|
@ -8,11 +8,8 @@ Here you can change MOTD (Message of the Day, showed in game!) of your guild.<br
|
|||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<center>
|
<center>
|
||||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)">
|
<div class="BigButton" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif)">
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);">
|
{{ include('buttons.back.html.twig') }}
|
||||||
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);"></div>
|
|
||||||
<input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
|
37
system/templates/guilds.change_rank.html.twig
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<form action="?subtopic=guilds&action=change_rank&guild={{ guild_name }}&todo=save" method="post">
|
||||||
|
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||||
|
<tr bgcolor="{{ config.vdarkborder }}"><td class="white"><b>Change Rank</b></td></tr>
|
||||||
|
<tr bgcolor="{{ config.darkborder }}">
|
||||||
|
<td>
|
||||||
|
<table border="0" cellpadding="1">
|
||||||
|
<tr>
|
||||||
|
<td>Name: <select name="name">
|
||||||
|
{% for player in players %}
|
||||||
|
<option value="{{ player[0] }}">{{ player[1] }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select> Rank: <select name="rankid">
|
||||||
|
{% for rank in ranks %}
|
||||||
|
<option value="{{ rank[0] }}">{{ rank[1] }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<center>
|
||||||
|
<form action="?subtopic=guilds&action=show&guild={{ guild_name }}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</center>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
@ -42,12 +42,12 @@
|
|||||||
<img src="{{ template_path }}/images/general/blank.gif" width=120 height=1 border=0><br/>
|
<img src="{{ template_path }}/images/general/blank.gif" width=120 height=1 border=0><br/>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" valign="top">
|
<td align="center" valign="top">
|
||||||
<input type=image name="Submit" src="{{ template_path }}/images/buttons/sbutton_submit.gif" border="0" width="120" height="18"/>
|
{{ include('buttons.submit.html.twig') }}
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<form action="?subtopic=guilds" method="post">
|
<form action="?subtopic=guilds" method="post">
|
||||||
<input type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/sbutton_back.gif" border="0" width="120" height="18"/>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
22
system/templates/guilds.create_guild.success.html.twig
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{% set title = 'Created guild' %}
|
||||||
|
|
||||||
|
{% set motd = '' %}
|
||||||
|
{% if constant('MOTD_EXISTS') %}
|
||||||
|
{% set motd = ' and motd' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% set description = '<b>Congratulations!</b><br/>You have created guild <b>' ~ guild_name ~ '</b>. <b>' ~ leader_name ~ '</b> is leader of this guild. Now you can invite players, change picture, description' ~ motd ~ ' of guild. Press submit to open guild manager.' %}
|
||||||
|
{% set custom_buttons = '' %}
|
||||||
|
{{ include('success.html.twig') }}
|
||||||
|
<br/>
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<center>
|
||||||
|
<form action="{{ getLink('guilds') ~ '/' ~ guild_name }}" method="post">
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</center>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
@ -32,15 +32,8 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
{% spaceless %}
|
|
||||||
<center>
|
<center>
|
||||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)">
|
{{ include('buttons.back.html.twig') }}
|
||||||
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" >
|
|
||||||
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div>
|
|
||||||
<input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
{% endspaceless %}
|
|
22
system/templates/guilds.delete_invite.html.twig
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{% set title = 'Delete player invitation' %}
|
||||||
|
{% set description = 'Are you sure you want to delete player with name <b>' ~ player_name ~ '</b> from "invites list"?' %}
|
||||||
|
{% set custom_buttons = '' %}
|
||||||
|
{{ include('success.html.twig') }}
|
||||||
|
<br/>
|
||||||
|
<center>
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td align="right" width="50%">
|
||||||
|
<form action="?subtopic=guilds&action=delete_invite&guild={{ guild_name }}&name={{ player_name }}&todo=save" method="post">
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
<td style="width: 10px; "></td>
|
||||||
|
<td>
|
||||||
|
<form action="?subtopic=guilds&action=show&guild={{ guild_name }}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
4
system/templates/guilds.invite.html.twig
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<form action="?subtopic=guilds&action=invite&guild={{ guild_name }}&todo=save" method="post">
|
||||||
|
Invite player with name: <input type="text" name="name">
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</form>
|
22
system/templates/guilds.kick_player.html.twig
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{% set title = 'Kick player' %}
|
||||||
|
{% set description = 'Are you sure you want to kick player with name <b>' ~ player_name ~ '</b> from your guild?' %}
|
||||||
|
{% set custom_buttons = '' %}
|
||||||
|
{{ include('success.html.twig') }}
|
||||||
|
<br/>
|
||||||
|
<center>
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td align="right" width="50%">
|
||||||
|
<form action="?subtopic=guilds&action=kick_player&guild={{ guild_name }}&name={{ player_name }}&todo=save" method="post">
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
<td style="width: 10px;"></td>
|
||||||
|
<td>
|
||||||
|
<form action="{{ getLink('guilds') ~ '/' ~ guild_name }}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>
|
34
system/templates/guilds.leave_guild.html.twig
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<form action="?subtopic=guilds&action=leave_guild&guild={{ guild_name }}&todo=save" METHOD="post">
|
||||||
|
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||||
|
<tr bgcolor="{{ config.vdarkborder }}">
|
||||||
|
<td class="white"><b>Leave guild</b></td></tr>
|
||||||
|
{% if players|length > 0 %}
|
||||||
|
<tr bgcolor="{{ config.lightborder }}">
|
||||||
|
<td width="100%">Select character to leave guild:</td>
|
||||||
|
</tr>
|
||||||
|
<tr bgcolor="{{ config.darkborder }}">
|
||||||
|
<td>
|
||||||
|
{% for player in players %}
|
||||||
|
<input type="radio" name="name" value="{{ player }}" />{{ player }}<br/>
|
||||||
|
{% endfor %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% else %}
|
||||||
|
<tr bgcolor="{{ config.lightborder }}"><td width="100%">Any of your characters can't leave guild.</td></tr>
|
||||||
|
{% endif %}
|
||||||
|
</table>
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
{% if players|length > 0 %}
|
||||||
|
<td width="130" valign="top">
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</td>
|
||||||
|
{% endif %}
|
||||||
|
</form>
|
||||||
|
<td>
|
||||||
|
<form action="?subtopic=guilds&action=show&guild={{ guild_name }}" method="post">
|
||||||
|
{{ include('buttons.back.html.twig') }}
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
@ -163,7 +163,6 @@ Here you can change names of ranks, delete and add ranks, pass leadership to oth
|
|||||||
<br/>
|
<br/>
|
||||||
<center>
|
<center>
|
||||||
<form action="?subtopic=guilds&action=show&guild={{ guild.getName() }}" method="post">
|
<form action="?subtopic=guilds&action=show&guild={{ guild.getName() }}" method="post">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
@ -35,7 +35,6 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<center>
|
<center>
|
||||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
25
system/templates/online.form.html.twig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<br/>
|
||||||
|
<form action="{{ getLink('characters') }}" method=post>
|
||||||
|
<table width="100%" border="0" cellspacing="1" cellpadding="4">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="{{ config.vdarkborder }}" class="white">
|
||||||
|
<b>Search Character</b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="{{ config.darkborder }}">
|
||||||
|
<table border="0" cellpadding="1">
|
||||||
|
<tr>
|
||||||
|
<td>Name:</td>
|
||||||
|
<td>
|
||||||
|
<input name="name" value=""size=29 maxlength=29>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ include('buttons.submit.html.twig') }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
@ -6,7 +6,7 @@
|
|||||||
<span class="CaptionEdgeRightTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span>
|
<span class="CaptionEdgeRightTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span>
|
||||||
<span class="CaptionBorderTop" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);"></span>
|
<span class="CaptionBorderTop" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);"></span>
|
||||||
<span class="CaptionVerticalLeft" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);"></span>
|
<span class="CaptionVerticalLeft" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);"></span>
|
||||||
<div class="Text" >{{ title }}</div>
|
<div class="Text" >{{ title|raw }}</div>
|
||||||
<span class="CaptionVerticalRight" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);"></span>
|
<span class="CaptionVerticalRight" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);"></span>
|
||||||
<span class="CaptionBorderBottom" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);"></span>
|
<span class="CaptionBorderBottom" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);"></span>
|
||||||
<span class="CaptionEdgeLeftBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span>
|
<span class="CaptionEdgeLeftBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);"></span>
|
||||||
@ -35,8 +35,7 @@
|
|||||||
<form action="{{ getLink('account/manage') }}" method="post">
|
<form action="{{ getLink('account/manage') }}" method="post">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:0px;">
|
<td style="border:0px;">
|
||||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/buttons/sbutton.gif)"><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url({{ template_path }}/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="{{ template_path }}/images/buttons/_sbutton_back.gif" ></div>
|
{{ include('buttons.back.html.twig') }}
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
</form>
|
||||||
|
0
templates/tibiacom/images/buttons/_sbutton_accountlost.gif → templates/kathrine/images/global/buttons/_sbutton_accountlost.gif
Normal file → Executable file
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
0
templates/tibiacom/images/buttons/_sbutton_back.gif → templates/kathrine/images/global/buttons/_sbutton_back.gif
Normal file → Executable file
Before Width: | Height: | Size: 228 B After Width: | Height: | Size: 228 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_buynow.gif
Executable file
After Width: | Height: | Size: 1.4 KiB |
0
templates/tibiacom/images/buttons/_sbutton_cancel.gif → templates/kathrine/images/global/buttons/_sbutton_cancel.gif
Normal file → Executable file
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 247 B |
After Width: | Height: | Size: 545 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_change_sex.gif
Normal file
After Width: | Height: | Size: 1.5 KiB |
0
templates/tibiacom/images/buttons/_sbutton_changeemail.gif → templates/kathrine/images/global/buttons/_sbutton_changeemail.gif
Normal file → Executable file
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 394 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_changename.gif
Executable file
After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 458 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_changesex.gif
Executable file
After Width: | Height: | Size: 378 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_confirm.gif
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
templates/kathrine/images/global/buttons/_sbutton_continue.gif
Executable file
After Width: | Height: | Size: 285 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_createaccount.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 390 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_declarewar.gif
Executable file
After Width: | Height: | Size: 339 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_delete.gif
Executable file
After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 399 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_disbandguild.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |
0
templates/tibiacom/images/buttons/_sbutton_edit.gif → templates/kathrine/images/global/buttons/_sbutton_edit.gif
Normal file → Executable file
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
BIN
templates/kathrine/images/global/buttons/_sbutton_editdescription.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
templates/kathrine/images/global/buttons/_sbutton_editmembers.gif
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
templates/kathrine/images/global/buttons/_sbutton_editranks.gif
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
templates/kathrine/images/global/buttons/_sbutton_foundguild.gif
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
templates/kathrine/images/global/buttons/_sbutton_getextraservice.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |