mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00

* 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
29 lines
586 B
PHP
29 lines
586 B
PHP
<?php
|
|
/**
|
|
* Movies
|
|
*
|
|
* @package MyAAC
|
|
* @author Slawkens <slawkens@gmail.com>
|
|
* @copyright 2017 MyAAC
|
|
* @version 0.4.2
|
|
* @link http://my-aac.org
|
|
*/
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
$title = 'Movies';
|
|
|
|
$movies = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'movies` ORDER BY `ordering`;');
|
|
if(!$movies->rowCount())
|
|
{
|
|
?>
|
|
There are no movies added yet.
|
|
<?php
|
|
if(admin())
|
|
echo ' You can add new movies in phpmyadmin under ' . TABLE_PREFIX . 'movies table.';
|
|
return;
|
|
}
|
|
|
|
echo $twig->render('movies.html.twig', array(
|
|
'movies' => $movies
|
|
));
|
|
?>
|