* moved some more pages to twig

* moved online, movies, google_analytics code, faq, experience_table, downloads to twig
* added new global variabl to twig (status)
* removed some unused page (custom.php)
* automatically append trailing slash at config.item_images_url
* moved downloads from clients.halfaway.net to tibia-clients.com
* show some more info on monster loot (currently only on TFS 0.3 and those that use item.id in monster files instead of item name)
* some more unimportant fixes
This commit is contained in:
slawkens
2017-10-04 17:49:54 +02:00
parent e94b9006e6
commit b6ccde075d
24 changed files with 327 additions and 351 deletions

View File

@@ -3,7 +3,6 @@
* Experience table
*
* @package MyAAC
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.4.2
@@ -11,42 +10,16 @@
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Experience Table';
?>
This is a list of the experience points that are required to advance to the various levels.
Remember you can also check the respective skill bar in your skill window of the client to check your progress towards the next level.<br/><br/>
<table bgcolor="<?php echo $config['darkborder']; ?>" border="0" cellpadding="4" cellspacing="1" width="100%">
<tr bgcolor="<?php echo $config['vdarkborder']; ?>">
<td class="white" colspan="5"><b>Experience Table</b></td>
</tr>
<tr>
<?php
$columns = $config['experiencetable_columns'];
for($i = 0; $i < $columns; $i++)
{
?>
<td>
<table border="0" cellpadding="2" cellspacing="1" width="100%">
<tr bgcolor="<?php echo $config['lightborder']; ?>">
<td><b>Level</b></td>
<td><b>Experience</b></td>
</tr>
<?php
for($level = $i * $config['experiencetable_rows'] + 1; $level < $i * $config['experiencetable_rows'] + ($config['experiencetable_rows'] + 1); $level++)
{
?>
<tr bgcolor="<?php echo $config['lightborder']; ?>">
<td><?php echo $level; ?></td>
<td><?php echo OTS_Toolbox::experienceForLevel($level); ?></td>
</tr>
<?php
}
?>
</table>
</td>
<?php
$experience = array();
$columns = $config['experiencetable_columns'];
for($i = 0; $i < $columns; $i++) {
for($level = $i * $config['experiencetable_rows'] + 1; $level < $i * $config['experiencetable_rows'] + ($config['experiencetable_rows'] + 1); $level++) {
$experience[$level] = OTS_Toolbox::experienceForLevel($level);
}
}
echo $twig->render('experience_table.html.twig', array(
'experience' => $experience
));
?>
</tr>
</table>