mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00

* added option to change character name in accountmanagement * added automatic database updater (data migrations) * renamed events to hooks * moved hooks to database * now you can use hooks in plugins * set account.type field to 5, if TFS 1.0+ * added example plugin * new, latest google analytics code * fixed bug with loading account.name that has numbers in it * fixed many bugs in player editor in admin panel * added error handling to plugin manager and some more verification in file has been correctly unpacked/uploaded * fixed Statistics page in admin panel when using account.number * fixed bug when creating/recovering account on servers with account.salt field (TFS 0.3 for example) * fixed forum showing thread with html tags (added from news manager) * new, actual code for youtube videos in movies * fixed showing vocation images when using $config['online_vocations_images'] * many fixes in polls (also importing proper schema) * fixed hovering on buttons in kathrine template (on accountmanagement page) * many fixes in signatures * added missing gesior signature system
32 lines
871 B
PHP
32 lines
871 B
PHP
<?php
|
|
/**
|
|
* Movies
|
|
*
|
|
* @package MyAAC
|
|
* @author Slawkens <slawkens@gmail.com>
|
|
* @copyright 2017 MyAAC
|
|
* @version 0.0.6
|
|
* @link http://my-aac.org
|
|
*/
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
$title = 'Movies';
|
|
|
|
$movies = $db->query('SELECT * FROM ' . $db->tableName(TABLE_PREFIX . 'movies') . ' ORDER BY ' . $db->fieldName('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;
|
|
}
|
|
?>
|
|
<center>
|
|
<?php foreach($movies as $movie): ?>
|
|
<?php echo $movie['title']; ?><br/>
|
|
Author: <?php echo $movie['author']; ?><br/>
|
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo $movie['youtube_id']; ?>" frameborder="0" allowfullscreen></iframe><br/><br/>';
|
|
<?php endforeach; ?>
|
|
</center>
|