mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* change deprecated HTML <center> tag to <div style="text-align:center">
This commit is contained in:
parent
0bb1d869af
commit
1926c5ec5b
@ -151,7 +151,7 @@ if(isset($_POST['emailchangecancel']) && $_POST['emailchangecancel'] == 1) {
|
||||
$account_logged->setCustomField("email_new", "");
|
||||
$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;" >' . $twig->render('buttons.back.html.twig') . '</td></tr></form></table></center>';
|
||||
$custom_buttons = '<div style="text-align: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></div>';
|
||||
|
||||
$twig->display('success.html.twig', array(
|
||||
'title' => 'Email Address Change Cancelled',
|
||||
|
@ -139,7 +139,7 @@ if(isset($monster['name']))
|
||||
{
|
||||
$title = $monster['name'] . " - Creatures";
|
||||
|
||||
echo '<center><h2>'.$monster['name'].'</h2></center>';
|
||||
echo '<div style="text-align:center"><h2>'.$monster['name'].'</h2></div>';
|
||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><tr><td>
|
||||
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=60%>';
|
||||
$number_of_rows = 0;
|
||||
|
@ -26,7 +26,7 @@ if(!isset($config['lua']['experienceStages']) || !getBoolean($config['lua']['exp
|
||||
$enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$enabled) {
|
||||
$rate_exp = 'not set';
|
||||
if(isset($config['lua']['rateExperience']))
|
||||
@ -47,7 +47,7 @@ if(!$stages)
|
||||
return;
|
||||
}
|
||||
|
||||
echo '<center><h3>Experience stages</h3></center>
|
||||
echo '<div style="text-align:center"><h3>Experience stages</h3></div>
|
||||
<table bgcolor="'.$config['darkborder'].'" border="0" cellpadding="4" cellspacing="1" width="100%"><tbody>
|
||||
<tr bgcolor="'.$config['vdarkborder'].'">
|
||||
<td class="white" colspan="5"><b>Stages table</b></td>
|
||||
|
@ -85,7 +85,7 @@ if(empty($guild_errors) && empty($guild_errors2)) {
|
||||
$twig->display('success.html.twig', array(
|
||||
'title' => 'Leadership passed',
|
||||
'description' => '<b>'.$to_player->getName().'</b> is now a Leader of <b>'.$guild_name.'</b>.',
|
||||
'custom_buttons' => '<center><form action="' . getLink('guilds') . '/' . $guild->getName().'" METHOD=post>' . $twig->render('buttons.back.html.twig') . '</form></center>'
|
||||
'custom_buttons' => '<div style="text-align:center"><form action="' . getLink('guilds') . '/' . $guild->getName().'" METHOD=post>' . $twig->render('buttons.back.html.twig') . '</form></div>'
|
||||
));
|
||||
}
|
||||
else {
|
||||
@ -105,7 +105,7 @@ if(empty($guild_errors) && empty($guild_errors2)) {
|
||||
if(empty($guild_errors) && !empty($guild_errors2)) {
|
||||
$twig->display('error_box.html.twig', array('errors' => $guild_errors2));
|
||||
|
||||
echo '<br/><center><form action="?subtopic=guilds&guild='.$guild->getName().'&action=pass_leadership" method="post">' . $twig->render('buttons.back.html.twig') . '</form></center>';
|
||||
echo '<br/><div style="text-align:center"><form action="?subtopic=guilds&guild='.$guild->getName().'&action=pass_leadership" method="post">' . $twig->render('buttons.back.html.twig') . '</form></div>';
|
||||
}
|
||||
if(!empty($guild_errors)) {
|
||||
if(!empty($guild_errors2)) {
|
||||
@ -113,7 +113,7 @@ if(!empty($guild_errors)) {
|
||||
}
|
||||
$twig->display('error_box.html.twig', array('errors' => $guild_errors));
|
||||
|
||||
echo '<br/><center><form action="?subtopic=guilds" method="post">' . $twig->render('buttons.back.html.twig') . '</form></center>';
|
||||
echo '<br/><div style="text-align:center"><form action="?subtopic=guilds" method="post">' . $twig->render('buttons.back.html.twig') . '</form></div>';
|
||||
}
|
||||
|
||||
?>
|
@ -168,7 +168,7 @@ else
|
||||
<tr>
|
||||
<td><img src="<?php echo $template_path; ?>/images/general/blank.gif" width="10" height="1" border="0"></td>
|
||||
<td>
|
||||
<center><h2>Ranking for <?php echo ($skill == SKILL_FRAGS ? 'Frags' : ($skill == SKILL_BALANCE ? 'Balance' : getSkillName($skill))); if(isset($vocation)) echo ' (' . $vocation . ')';?> on <?php echo $config['lua']['serverName']; ?></h2></center><br/>
|
||||
<div style="text-align:center"><h2>Ranking for <?php echo ($skill == SKILL_FRAGS ? 'Frags' : ($skill == SKILL_BALANCE ? 'Balance' : getSkillName($skill))); if(isset($vocation)) echo ' (' . $vocation . ')';?> on <?php echo $config['lua']['serverName']; ?></h2></div><br/>
|
||||
<table border="0" cellpadding="4" cellspacing="1" width="100%"></table>
|
||||
<table border="0" cellpadding="4" cellspacing="1" width="100%">
|
||||
<tr bgcolor="<?php echo $config['vdarkborder']; ?>">
|
||||
@ -247,11 +247,11 @@ echo '
|
||||
echo '
|
||||
</td>
|
||||
<td>
|
||||
<center>'.$player['value'].'</center>
|
||||
<div style="text-align:center">'.$player['value'].'</div>
|
||||
</td>';
|
||||
|
||||
if($skill == POT::SKILL__LEVEL)
|
||||
echo '<td><center>' . number_format($player['experience']) . '</center></td>';
|
||||
echo '<td><div style="text-align:center">' . number_format($player['experience']) . '</div></td>';
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ if($db->hasTable('player_killers')) // tfs 0.3
|
||||
{
|
||||
foreach($players_deaths as $death)
|
||||
{
|
||||
$players_rows .= '<TR BGCOLOR="' . getStyle($players_deaths_count++) . '"><TD WIDTH="30"><center>'.$players_deaths_count.'.</center></TD><TD WIDTH="125"><small>'.date("j.m.Y, G:i:s",$death['date']).'</small></TD><TD>' . getPlayerLink($death['name']). ' ';
|
||||
$players_rows .= '<TR BGCOLOR="' . getStyle($players_deaths_count++) . '"><TD WIDTH="30"><div style="text-align:center">'.$players_deaths_count.'.</div></TD><TD WIDTH="125"><small>'.date("j.m.Y, G:i:s",$death['date']).'</small></TD><TD>' . getPlayerLink($death['name']). ' ';
|
||||
$killers = $db->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists
|
||||
FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id
|
||||
LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id
|
||||
@ -45,7 +45,7 @@ if($db->hasTable('player_killers')) // tfs 0.3
|
||||
$players_rows .= 'eliminated';
|
||||
elseif($count > 19)
|
||||
$players_rows .= 'annihilated';
|
||||
|
||||
|
||||
$players_rows .= 'at level <b>' . $death['level'] . '</b> by ';
|
||||
}
|
||||
else if($i == $count)
|
||||
@ -76,26 +76,26 @@ if($db->hasTable('player_killers')) // tfs 0.3
|
||||
$players_rows .= '.</TD>';
|
||||
if($config['multiworld'])
|
||||
$player_rows .= '<TD>'.$config['worlds'][(int)$death['world_id']].'</TD>';
|
||||
|
||||
|
||||
$players_rows .= '</TR>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
//$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `player_deaths`.`killed_by` as `killed_by`, `player_deaths`.`time` as `time`, `player_deaths`.`is_player` as `is_player`, `player_deaths`.`level` as `level` FROM `player_deaths`, `players` as `d` INNER JOIN `players` as `p` ON player_deaths.player_id = p.id WHERE player_deaths.`is_player`='1' ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
||||
|
||||
|
||||
$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `d`.`killed_by` as `killed_by`, `d`.`time` as `time`, `d`.`level`, `d`.`is_player` FROM `player_deaths` as `d` INNER JOIN `players` as `p` ON d.player_id = p.id ORDER BY `time` DESC LIMIT 20;");
|
||||
|
||||
if(!empty($players_deaths))
|
||||
{
|
||||
foreach($players_deaths as $death)
|
||||
{
|
||||
$players_rows .= '<TR BGCOLOR="' . getStyle($players_deaths_count++) . '"><TD WIDTH="30"><center>'.$players_deaths_count.'.</center></TD><TD WIDTH="125"><small>'.date("j.m.Y, G:i:s",$death['time']).'</small></TD><TD>' . getPlayerLink($death['victim']). ' died at level ' . $death['level'] . ' by ';
|
||||
$players_rows .= '<TR BGCOLOR="' . getStyle($players_deaths_count++) . '"><TD WIDTH="30"><div style="text-align:center">'.$players_deaths_count.'.</div></TD><TD WIDTH="125"><small>'.date("j.m.Y, G:i:s",$death['time']).'</small></TD><TD>' . getPlayerLink($death['victim']). ' died at level ' . $death['level'] . ' by ';
|
||||
if($death['is_player'] == '1')
|
||||
$players_rows .= getPlayerLink($death['killed_by']);
|
||||
else
|
||||
$players_rows .= $death['killed_by'];
|
||||
|
||||
|
||||
$players_rows .= '.</TR>';
|
||||
}
|
||||
}
|
||||
|
@ -51,8 +51,8 @@ elseif($action == 'step1' && $action_type == 'email')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
else
|
||||
{
|
||||
@ -68,8 +68,8 @@ elseif($action == 'step1' && $action_type == 'email')
|
||||
}
|
||||
else
|
||||
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>
|
||||
<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>
|
||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align: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></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
elseif($action == 'sendcode')
|
||||
@ -131,8 +131,8 @@ elseif($action == 'sendcode')
|
||||
}
|
||||
else
|
||||
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>
|
||||
<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>
|
||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align: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></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
elseif($action == 'step1' && $action_type == 'reckey')
|
||||
@ -160,8 +160,8 @@ elseif($action == 'step1' && $action_type == 'reckey')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
else
|
||||
@ -172,8 +172,8 @@ elseif($action == 'step1' && $action_type == 'reckey')
|
||||
}
|
||||
else
|
||||
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>
|
||||
<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>
|
||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align: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></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
elseif($action == 'step2')
|
||||
@ -246,8 +246,8 @@ elseif($action == 'step2')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
else
|
||||
@ -261,8 +261,8 @@ elseif($action == 'step2')
|
||||
}
|
||||
else
|
||||
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>
|
||||
<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>
|
||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align: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></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
elseif($action == 'step3')
|
||||
@ -340,8 +340,8 @@ elseif($action == 'step3')
|
||||
echo '<INPUT TYPE=hidden NAME="account_login" VALUE="'.$account->getId().'">
|
||||
<INPUT TYPE=hidden NAME="password_login" VALUE="'.$new_pass.'">
|
||||
</TD></TR></TABLE><BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/buttons/sbutton_login.gif" BORDER=0 WIDTH=120 HEIGHT=18></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
else
|
||||
@ -361,8 +361,8 @@ elseif($action == 'step3')
|
||||
}
|
||||
else
|
||||
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>
|
||||
<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>
|
||||
echo '<BR /><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align: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></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
elseif($action == 'checkcode')
|
||||
@ -380,8 +380,8 @@ elseif($action == 'checkcode')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
else
|
||||
{
|
||||
@ -430,8 +430,8 @@ elseif($action == 'checkcode')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
else
|
||||
@ -451,8 +451,8 @@ elseif($action == 'checkcode')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
elseif($action == 'setnewpassword')
|
||||
@ -464,8 +464,8 @@ elseif($action == 'setnewpassword')
|
||||
if(empty($code) || empty($character) || empty($newpassword))
|
||||
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>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
else
|
||||
{
|
||||
@ -518,9 +518,9 @@ elseif($action == 'setnewpassword')
|
||||
echo '</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><div style="text-align:center">
|
||||
<FORM ACTION="?subtopic=accountmanagement" METHOD=post>
|
||||
<INPUT TYPE=image NAME="Login" ALT="Login" SRC="'.$template_path.'/images/global/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></div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
else
|
||||
@ -543,8 +543,8 @@ elseif($action == 'setnewpassword')
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
<BR>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><center>
|
||||
' . $twig->render('buttons.submit.html.twig') . '</center>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
' . $twig->render('buttons.submit.html.twig') . '</div>
|
||||
</TD></TR></FORM></TABLE></TABLE>';
|
||||
}
|
||||
?>
|
||||
|
@ -62,7 +62,7 @@ function getColorByPercent($percent)
|
||||
|
||||
if(!$empty_active)
|
||||
{
|
||||
echo '<tr BGCOLOR="'.$bgcolor.'"><td colspan=2><center><i>There are no active polls.</i></center></td></tr>';
|
||||
echo '<tr BGCOLOR="'.$bgcolor.'"><td colspan=2><div style="text-align:center"><i>There are no active polls.</i></div></td></tr>';
|
||||
}
|
||||
|
||||
echo "</table><br><br>";
|
||||
@ -91,7 +91,7 @@ function getColorByPercent($percent)
|
||||
|
||||
if(!$empty_closed)
|
||||
{
|
||||
echo '<tr BGCOLOR="'.$bgcolor.'"><td colspan=2><center><i>There are no closed polls.</i></center></td></tr>';
|
||||
echo '<tr BGCOLOR="'.$bgcolor.'"><td colspan=2><div style="text-align:center"><i>There are no closed polls.</i></div></td></tr>';
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
@ -13,11 +13,11 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = "Players Online Records";
|
||||
|
||||
echo '
|
||||
<b><center>Players online records on '.$config['lua']['serverName'].'</center></b>
|
||||
<b><div style="text-align:center">Players online records on '.$config['lua']['serverName'].'</div></b>
|
||||
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
|
||||
<TR BGCOLOR="'.$config['vdarkborder'].'">
|
||||
<TD class="white"><b><center>Players</center></b></TD>
|
||||
<TD class="white"><b><center>Date</center></b></TD>
|
||||
<TD class="white"><b><div style="text-align:center">Players</div></b></TD>
|
||||
<TD class="white"><b><div style="text-align:center">Date</div></b></TD>
|
||||
</TR>';
|
||||
|
||||
$i = 0;
|
||||
@ -25,8 +25,8 @@ echo '
|
||||
foreach($records_query as $data)
|
||||
{
|
||||
echo '<TR BGCOLOR=' . getStyle(++$i) . '>
|
||||
<TD><center>' . $data['record'] . '</center></TD>
|
||||
<TD><center>' . date("d/m/Y, G:i:s", $data['timestamp']) . '</center></TD>
|
||||
<TD><div style="text-align:center">' . $data['record'] . '</div></TD>
|
||||
<TD><div style="text-align:center">' . date("d/m/Y, G:i:s", $data['timestamp']) . '</div></TD>
|
||||
</TR>';
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ if(isset($config['lua']['experience_stages']))
|
||||
$config['lua']['experienceStages'] = $config['lua']['experience_stages'];
|
||||
?>
|
||||
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<h1><?php echo $config['lua']['serverName']; ?></h1>
|
||||
<h3>
|
||||
<?php if(isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages'])): ?>
|
||||
@ -24,7 +24,7 @@ if(isset($config['lua']['experience_stages']))
|
||||
Commands: <a href="<?php echo getLink('commands'); ?>">Look here</a><br/>
|
||||
Team: <a href="<?php echo getLink('team'); ?>">Look here</a><br/>
|
||||
</h3>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<h2>Server Info:</h2>
|
||||
@ -41,7 +41,7 @@ if(isset($config['lua']['experience_stages']))
|
||||
if(isset($config['lua']['min_pvp_level'])){
|
||||
$config['lua']['protectionLevel'] = $config['lua']['min_pvp_level'];
|
||||
}
|
||||
|
||||
|
||||
if(isset($config['lua']['protectionLevel'])):
|
||||
?>
|
||||
<li>World type: <b>PVP <i>(Protection level: ><?php echo $config['lua']['protectionLevel']; ?>)</i></b></li>
|
||||
@ -58,7 +58,7 @@ if(isset($config['lua']['experience_stages']))
|
||||
if($cleanOld > 0)
|
||||
echo '<li>Houses with inactive owners are cleaned after 30 days.</li>';
|
||||
}
|
||||
|
||||
|
||||
if(isset($config['lua']['rate_exp']))
|
||||
$config['lua']['rateExp'] = $config['lua']['rate_exp'];
|
||||
if(isset($config['lua']['rate_mag']))
|
||||
@ -167,7 +167,7 @@ if(isset($config['lua']['experience_stages']))
|
||||
<li><?php echo $config['lua']['weeklyFragsToBanishment']; ?> frags weekly</li>
|
||||
<li><?php echo $config['lua']['monthlyFragsToBanishment']; ?> frags monthly</li>
|
||||
</ul>
|
||||
<?php endif;
|
||||
<?php endif;
|
||||
endif; ?>
|
||||
</li>
|
||||
<?php
|
||||
|
@ -24,7 +24,7 @@ if(!$groups->count())
|
||||
$newStyle = ($config['team_style'] == 2);
|
||||
if(!$newStyle)
|
||||
{
|
||||
echo '<center><h2>Support in game</h2></center>
|
||||
echo '<div style="text-align:center"><h2>Support in game</h2></div>
|
||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">' . getGroupHeader();
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ foreach($groupList as $id => $group)
|
||||
|
||||
if($newStyle && $members_count > 0)
|
||||
{
|
||||
$group_tmp[$id] = '<center><h2>' . ucfirst($group->getName()) . 's</h2></center>
|
||||
$group_tmp[$id] = '<div style="text-align:center"><h2>' . ucfirst($group->getName()) . 's</h2></div>
|
||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">' . getGroupHeader(false) . $groupNames[$group->getName()] . '</table>';
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@
|
||||
|
||||
{# if account dont have recovery key show hint #}
|
||||
{% if recovery_key is empty %}
|
||||
<div align="center">
|
||||
<div style="text-align:center">
|
||||
You can register your account for increased protection. Click on "Register Account" and get your free recovery key today!<br/>
|
||||
<form action="{{ getLink('account/register') }}" method="post">
|
||||
{% set button_name = 'Register Account' %}
|
||||
@ -76,7 +76,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if email_request %}
|
||||
<div align="center">
|
||||
<div style="text-align:center">
|
||||
A request has been submitted to change the email address of this account to <b>{{ email_new }}</b>. After <b>{{ email_new_time|date("j F Y, G:i:s") }}</b> you can accept the new email address and finish the process. Please cancel the request if you do not want your email address to be changed! Also cancel the request if you have no access to the new email address!
|
||||
|
||||
<form action="{{ getLink('account/email') }}" method="post">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<br/></br>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="{{ getLink('creatures') }}" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
@ -1,5 +1,5 @@
|
||||
<br/><br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
We're using official Tibia Client <strong>{{ config.client / 100 }}</strong><br/>
|
||||
<p>Download Tibia client {{ config.client / 100 }} for windows <a href="{{ config.client_download }}">HERE</a>.</p>
|
||||
<p>Download Tibia client {{ config.client / 100 }} for linux <a href="{{ config.client_download_linux }}">HERE</a>.</p>
|
||||
@ -7,4 +7,4 @@
|
||||
<h2>IP Changer:</h2>
|
||||
|
||||
<a href="https://static.otland.net/ipchanger.exe" target="_blank">HERE</a>
|
||||
</center>
|
||||
</div>
|
@ -46,7 +46,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<input type="submit" value="Save Post" />
|
||||
</center>
|
||||
</div>
|
||||
</form>
|
@ -41,9 +41,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<input type="submit" value="Post Reply" />
|
||||
</center>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table width="100%">
|
||||
|
@ -42,7 +42,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<input type="submit" value="Post Thread" />
|
||||
</center>
|
||||
</div>
|
||||
</form>
|
@ -19,7 +19,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
@ -29,4 +29,4 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
@ -1,8 +1,8 @@
|
||||
{% if new_line is defined and new_line %}
|
||||
<br/>
|
||||
{% endif %}
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="{% if action is not defined %}{{ getLink('guilds') }}{% else %}{{ action }}{% endif %}" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
@ -1,12 +1,12 @@
|
||||
<center><h2>Change guild description</h2></center>
|
||||
<div style="text-align:center"><h2>Change guild description</h2></div>
|
||||
Here you can change description of your guild.<br/>
|
||||
<form enctype="multipart/form-data" action="?subtopic=guilds&guild={{ guild.getName() }}&action=change_description" method="post">
|
||||
<input type="hidden" name="todo" value="save"/>
|
||||
<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/>
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
@ -1,4 +1,4 @@
|
||||
<center><h2>Change guild logo</h2></center>
|
||||
<div style="text-align:center"><h2>Change guild logo</h2></div>
|
||||
Here you can change logo of your guild.<br/>Actuall logo: <img src="images/guilds/{{ guild_logo }}" height="64" width="64"><br/><br/>
|
||||
<form enctype="multipart/form-data" action="?subtopic=guilds&guild={{ guild.getName() }}&action=change_logo" method="post" id="upload_form">
|
||||
<input type="hidden" name="todo" value="save" />
|
||||
@ -9,13 +9,13 @@ Here you can change logo of your guild.<br/>Actuall logo: <img src="images/guild
|
||||
Only <b>jpg, gif, png, bmp</b> pictures. Max. size: <b>{{ config.guild_image_size_kb }} KB</b><br>
|
||||
<br/>
|
||||
{% spaceless %}
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif)">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</div>
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
||||
{% endspaceless %}
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
<center><h2>Change guild MOTD</h2></center>
|
||||
<div style="text-align:center"><h2>Change guild MOTD</h2></div>
|
||||
Here you can change MOTD (Message of the Day, showed in game!) of your guild.<br/>
|
||||
<form enctype="multipart/form-data" action="?subtopic=guilds&guild={{ guild.getName() }}&action=change_motd" method="post">
|
||||
<input type="hidden" name="todo" value="save"/>
|
||||
@ -6,11 +6,11 @@ Here you can change MOTD (Message of the Day, showed in game!) of your guild.<br
|
||||
(max. {{ config.guild_motd_chars_limit }} chars) <input type="submit" value="Save MOTD" /></form><br/>
|
||||
<br/>
|
||||
{% spaceless %}
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||
<div class="BigButton" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif)">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</div>
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
||||
{% endspaceless %}
|
@ -27,11 +27,11 @@
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&action=show&guild={{ guild_name }}" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
@ -12,11 +12,11 @@
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="{{ getLink('guilds') ~ '/' ~ guild_name }}" method="post">
|
||||
{{ include('buttons.submit.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
@ -32,8 +32,8 @@
|
||||
</table>
|
||||
</div>
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
@ -3,7 +3,7 @@
|
||||
{% set custom_buttons = '' %}
|
||||
{{ include('success.html.twig') }}
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td align="right" width="50%">
|
||||
@ -19,4 +19,4 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
@ -3,7 +3,7 @@
|
||||
{% set custom_buttons = '' %}
|
||||
{{ include('success.html.twig') }}
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td align="right" width="50%">
|
||||
@ -19,4 +19,4 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
@ -1,4 +1,4 @@
|
||||
<center><h2>Welcome to guild manager!</h2></center>
|
||||
<div style="text-align:center"><h2>Welcome to guild manager!</h2></div>
|
||||
Here you can change names of ranks, delete and add ranks, pass leadership to other guild member and delete guild.
|
||||
<br/><br/>
|
||||
<table style="clear:both" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
@ -87,7 +87,7 @@ Here you can change names of ranks, delete and add ranks, pass leadership to oth
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<center><h3>Change rank names and levels</h3></center>
|
||||
<div style="text-align:center"><h3>Change rank names and levels</h3></div>
|
||||
<form action="?subtopic=guilds&action=save_ranks&guild={{ guild.getName() }}" method="post">
|
||||
<table style="clear:both" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
@ -161,8 +161,8 @@ Here you can change names of ranks, delete and add ranks, pass leadership to oth
|
||||
<b>3. Member</b> - it's lowest rank in guild. Player with this rank can:
|
||||
<li>Be a member of guild
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&action=show&guild={{ guild.getName() }}" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
@ -33,8 +33,8 @@
|
||||
</table>
|
||||
</div>
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<form action="?subtopic=guilds&guild={{ guild.getName() }}&action=manager" method="post">
|
||||
{{ include('buttons.back.html.twig') }}
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
@ -8,9 +8,9 @@
|
||||
{% set i = i + 1 %}
|
||||
<tr bgcolor="{{ getStyle(i) }}">
|
||||
<td width=4%>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<img src="{{ template_path }}/images/news/icon_{{ news.icon_id }}_small.gif"/>
|
||||
</center>
|
||||
</div>
|
||||
</td>
|
||||
<td>{{ news.date|date('j.n.Y') }}</td>
|
||||
<td>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<form method="post" action="{{ getLink('news/archive') }}">
|
||||
<tbody>
|
||||
@ -10,4 +10,4 @@
|
||||
</tbody>
|
||||
</form>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
@ -30,7 +30,7 @@
|
||||
{% if custom_buttons is defined %}
|
||||
{{ custom_buttons|raw }}
|
||||
{% else %}
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<form action="{{ getLink('account/manage') }}" method="post">
|
||||
<tr>
|
||||
@ -40,5 +40,5 @@
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -75,9 +75,9 @@
|
||||
</table>
|
||||
</div>
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<h1>New to {{ config.lua.serverName }}?</h1>
|
||||
</center>
|
||||
</div>
|
||||
<div class="TableContainer" >
|
||||
<table class="Table4" cellpadding="0" cellspacing="0" >
|
||||
<div class="CaptionContainer" >
|
||||
|
@ -29,7 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<center>
|
||||
<div style="text-align:center">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
@ -40,7 +40,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
</center>
|
||||
</div>
|
||||
{# if account dont have recovery key show hint #}
|
||||
{% if recovery_key is empty %}
|
||||
<div class="SmallBox">
|
||||
@ -57,7 +57,7 @@
|
||||
<td style="width:100%;" >You can register your account for increased protection. Click on "Register Account" and get your free recovery key today!</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center">
|
||||
<div style="text-align:center">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<form action="{{ getLink('account/register') }}" method="post">
|
||||
<tr>
|
||||
@ -92,7 +92,7 @@
|
||||
<td style="width:100%;" >A request has been submitted to change the email address of this account to <b>{{ email_new }}</b>. After <b>{{ email_new_time|date("j F Y, G:i:s") }}</b> you can accept the new email address and finish the process. Please cancel the request if you do not want your email address to be changed! Also cancel the request if you have no access to the new email address!</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div align="center">
|
||||
<div style="text-align:center">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<form action="{{ getLink('account/email') }}" method="post">
|
||||
<tr>
|
||||
|
@ -30,19 +30,19 @@
|
||||
.online {
|
||||
color: #008000;
|
||||
}
|
||||
|
||||
|
||||
.offline {
|
||||
color: #FF0000;
|
||||
}
|
||||
a.topfont {
|
||||
font-family: Verdana, Arial, Helvetica;
|
||||
font-size: 11px;
|
||||
font-family: Verdana, Arial, Helvetica;
|
||||
font-size: 11px;
|
||||
text-decoration: none
|
||||
}
|
||||
a:hover.topfont {
|
||||
font-family: Verdana, Arial, Helvetica;
|
||||
font-size: 11px;
|
||||
color: #CCC;
|
||||
font-family: Verdana, Arial, Helvetica;
|
||||
font-size: 11px;
|
||||
color: #CCC;
|
||||
text-decoration:none
|
||||
}
|
||||
</style>
|
||||
@ -50,9 +50,9 @@
|
||||
<div id="Topbar" class="Themebox" style="background-image:url(<?PHP echo $template_path; ?>/images/themeboxes/highscores/highscores.png);">
|
||||
<div class="top_level" style="background:url(<?PHP echo $template_path; ?>/images/themeboxes/bg_top.png)" align=" ">
|
||||
<?php
|
||||
|
||||
|
||||
foreach(getTopPlayers(5) as $player) {
|
||||
echo '<div align="left"><a href="'.getPlayerLink($player['name'], false).'" class="topfont ' . ($player['online'] == 1 ? 'online' : 'offline') . '">
|
||||
echo '<div style="text-align:left"><a href="'.getPlayerLink($player['name'], false).'" class="topfont ' . ($player['online'] == 1 ? 'online' : 'offline') . '">
|
||||
<font color="#CCC"> '.$player['rank'].' - </font>'.$player['name'].'
|
||||
<br>
|
||||
<small><font color="white"> Level: ('.$player['level'].')</font></small>
|
||||
|
Loading…
x
Reference in New Issue
Block a user