diff --git a/README.md b/README.md index 37e9ff7c..e4365107 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Official website: https://my-aac.org chmod 660 config.local.php chmod 660 images/guilds chmod 660 images/houses - chmod 660 images/screenshots + chmod 660 images/gallery Visit http://your_domain/install (http://localhost/install) and follow instructions in the browser. diff --git a/common.php b/common.php index 0bc60e76..497862d2 100644 --- a/common.php +++ b/common.php @@ -28,7 +28,7 @@ session_start(); define('MYAAC', true); define('MYAAC_VERSION', '0.5.1'); -define('DATABASE_VERSION', 10); +define('DATABASE_VERSION', 11); define('TABLE_PREFIX', 'myaac_'); define('START_TIME', microtime(true)); define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : (strtoupper(PHP_OS) == 'DARWIN' ? 'MAC' : 'LINUX')); @@ -43,8 +43,8 @@ define('FLAG_CONTENT_FORUM', 32); define('FLAG_CONTENT_COMMANDS', 64); define('FLAG_CONTENT_SPELLS', 128); define('FLAG_CONTENT_MONSTERS', 256); -define('FLAG_CONTENT_SCREENSHOTS', 512); -define('FLAG_CONTENT_MOVIES', 1024); +define('FLAG_CONTENT_GALLERY', 512); +define('FLAG_CONTENT_VIDEOS', 1024); define('FLAG_CONTENT_FAQ', 2048); // news diff --git a/images/screenshots/demon.jpg b/images/gallery/demon.jpg similarity index 100% rename from images/screenshots/demon.jpg rename to images/gallery/demon.jpg diff --git a/images/screenshots/demon_thumb.gif b/images/gallery/demon_thumb.gif similarity index 100% rename from images/screenshots/demon_thumb.gif rename to images/gallery/demon_thumb.gif diff --git a/install/includes/schema.sql b/install/includes/schema.sql index 3257aedb..4a07cde5 100644 --- a/install/includes/schema.sql +++ b/install/includes/schema.sql @@ -147,7 +147,7 @@ CREATE TABLE `myaac_monsters` ( PRIMARY KEY (`id`) ) ENGINE = MyISAM; -CREATE TABLE `myaac_movies` +CREATE TABLE `myaac_videos` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `title` VARCHAR(100) NOT NULL DEFAULT '', @@ -214,7 +214,7 @@ CREATE TABLE `myaac_pages` PRIMARY KEY (`id`) ) ENGINE = MyISAM; -CREATE TABLE `myaac_screenshots` +CREATE TABLE `myaac_gallery` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `comment` VARCHAR(255) NOT NULL DEFAULT '', @@ -226,7 +226,7 @@ CREATE TABLE `myaac_screenshots` PRIMARY KEY (`id`) ) ENGINE = MyISAM; -INSERT INTO `myaac_screenshots` (`id`, `ordering`, `comment`, `image`, `thumb`, `author`) VALUES (NULL, 1, 'Demon', 'images/screenshots/demon.jpg', 'images/screenshots/demon_thumb.gif', 'MyAAC'); +INSERT INTO `myaac_gallery` (`id`, `ordering`, `comment`, `image`, `thumb`, `author`) VALUES (NULL, 1, 'Demon', 'images/gallery/demon.jpg', 'images/gallery/demon_thumb.gif', 'MyAAC'); CREATE TABLE `myaac_spells` ( diff --git a/install/steps/requirements.php b/install/steps/requirements.php index cd83aa74..c11c2623 100644 --- a/install/steps/requirements.php +++ b/install/steps/requirements.php @@ -23,7 +23,7 @@ $failed = false; // start validating version_check($locale['step_requirements_php_version'], (PHP_VERSION_ID >= 50200), PHP_VERSION); -foreach(array('config.local.php', 'images/guilds', 'images/houses', 'images/screenshots') as $value) +foreach(array('config.local.php', 'images/guilds', 'images/houses', 'images/gallery') as $value) { $perms = (int) substr(decoct(fileperms(BASE . $value)), 2); version_check($locale['step_requirements_write_perms'] . ': ' . $value, $perms >= 660); diff --git a/system/migrations/11.php b/system/migrations/11.php new file mode 100644 index 00000000..91cd92fe --- /dev/null +++ b/system/migrations/11.php @@ -0,0 +1,20 @@ +query("RENAME TABLE + " . TABLE_PREFIX . "screenshots TO " . TABLE_PREFIX . "gallery, + " . TABLE_PREFIX . "movies TO " . TABLE_PREFIX . "videos;"); + + // rename images dir + if(file_exists(BASE . 'images/screenshots') && !file_exists(BASE .'images/gallery')) { + rename(BASE . 'images/screenshots', BASE . 'images/gallery'); + } + + // convert old database screenshots images to gallery + $query = $db->query('SELECT `id`, `image`, `thumb` FROM `' . TABLE_PREFIX . 'gallery`;'); + foreach($query->fetchAll() as $item) { + $db->update(TABLE_PREFIX . 'gallery', array( + 'image' => str_replace('/screenshots/', '/gallery/', $item['image']), + 'thumb' => str_replace('/screenshots/', '/gallery/', $item['thumb']), + ), array('id' => $item['id'])); + } +?> \ No newline at end of file diff --git a/system/pages/screenshots.php b/system/pages/gallery.php similarity index 58% rename from system/pages/screenshots.php rename to system/pages/gallery.php index 45572731..17e86818 100644 --- a/system/pages/screenshots.php +++ b/system/pages/gallery.php @@ -1,6 +1,6 @@ @@ -9,9 +9,9 @@ * @link http://my-aac.org */ defined('MYAAC') or die('Direct access not allowed!'); -$title = 'Screenshots'; +$title = 'Gallery'; -$canEdit = hasFlag(FLAG_CONTENT_SCREENSHOTS) || superAdmin(); +$canEdit = hasFlag(FLAG_CONTENT_GALLERY) || superAdmin(); if($canEdit) { if(function_exists('imagecreatefrompng')) { if (!empty($action)) { @@ -30,34 +30,34 @@ if($canEdit) { $errors = array(); if ($action == 'add') { - if (Screenshots::add($comment, $image, $author, $errors)) + if (Gallery::add($comment, $image, $author, $errors)) $comment = $image = $author = ''; } else if ($action == 'delete') { - Screenshots::delete($id, $errors); + Gallery::delete($id, $errors); } else if ($action == 'edit') { if (isset($id) && !isset($name)) { - $screenshot = Screenshots::get($id); - $comment = $screenshot['comment']; - $image = $screenshot['image']; - $author = $screenshot['author']; + $tmp = Gallery::get($id); + $comment = $tmp['comment']; + $image = $tmp['image']; + $author = $tmp['author']; } else { - Screenshots::update($id, $comment, $image, $author); + Gallery::update($id, $comment, $image, $author); $action = $comment = $image = $author = ''; } } else if ($action == 'hide') { - Screenshots::toggleHidden($id, $errors); + Gallery::toggleHidden($id, $errors); } else if ($action == 'moveup') { - Screenshots::move($id, -1, $errors); + Gallery::move($id, -1, $errors); } else if ($action == 'movedown') { - Screenshots::move($id, 1, $errors); + Gallery::move($id, 1, $errors); } if (!empty($errors)) echo $twig->render('error_box.html.twig', array('errors' => $errors)); } - echo $twig->render('screenshots.form.html.twig', array( - 'link' => getLink('screenshots/' . ($action == 'edit' ? 'edit' : 'add')), + echo $twig->render('gallery.form.html.twig', array( + 'link' => getLink('gallery/' . ($action == 'edit' ? 'edit' : 'add')), 'action' => $action, 'id' => isset($id) ? $id : null, 'comment' => isset($comment) ? $comment : null, @@ -66,63 +66,63 @@ if($canEdit) { )); } else - echo 'You cannot edit/add screenshots as it seems your PHP installation doesnt have GD support enabled. Visit PHP Manual for more info.'; + echo 'You cannot edit/add gallery items as it seems your PHP installation doesnt have GD support enabled. Visit PHP Manual for more info.'; } -if(isset($_GET['screenshot'])) +if(isset($_GET['image'])) { - $screenshot = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'screenshots` WHERE `id` = ' . $db->quote($_GET['screenshot']) . ' ORDER by `ordering` LIMIT 1;'); - if($screenshot->rowCount() == 1) - $screenshot = $screenshot->fetch(); + $image = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($_GET['image']) . ' ORDER by `ordering` LIMIT 1;'); + if($image->rowCount() == 1) + $image = $image->fetch(); else { - echo 'Screenshot with this name does not exists.'; + echo 'Image with this name does not exists.'; return; } - $previous_screenshot = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'screenshots` WHERE `id` = ' . $db->quote($screenshot['id'] - 1) . ' ORDER by `ordering`;'); - if($previous_screenshot->rowCount() == 1) - $previous_screenshot = $previous_screenshot->fetch(); + $previous_image = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($image['id'] - 1) . ' ORDER by `ordering`;'); + if($previous_image->rowCount() == 1) + $previous_image = $previous_image->fetch(); else - $previous_screenshot = NULL; + $previous_image = NULL; - $next_screenshot = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'screenshots` WHERE `id` = ' . $db->quote($screenshot['id'] + 1) . ' ORDER by `ordering`;'); - if($next_screenshot->rowCount() == 1) - $next_screenshot = $next_screenshot->fetch(); + $next_image = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($image['id'] + 1) . ' ORDER by `ordering`;'); + if($next_image->rowCount() == 1) + $next_image = $next_image->fetch(); else - $next_screenshot = NULL; + $next_image = NULL; - echo $twig->render('screenshots.get.html.twig', array( - 'previous' => $previous_screenshot ? $previous_screenshot['id'] : null, - 'next' => $next_screenshot ? $next_screenshot['id'] : null, - 'screenshot' => $screenshot + echo $twig->render('gallery.get.html.twig', array( + 'previous' => $previous_image ? $previous_image['id'] : null, + 'next' => $next_image ? $next_image['id'] : null, + 'image' => $image )); return; } -$screenshots = +$images = $db->query('SELECT `id`, `comment`, `image`, `author`, `thumb`' . ($canEdit ? ', `hidden`, `ordering`' : '') . - ' FROM `' . TABLE_PREFIX . 'screenshots`' . + ' FROM `' . TABLE_PREFIX . 'gallery`' . (!$canEdit ? ' WHERE `hidden` != 1' : '') . ' ORDER BY `ordering`;'); -$last = $screenshots->rowCount(); +$last = $images->rowCount(); if(!$last) { ?> - There are no screenshots added to gallery yet. + There are no images added to gallery yet. render('screenshots.html.twig', array( - 'screenshots' => $screenshots, +echo $twig->render('gallery.html.twig', array( + 'images' => $images, 'last' => $last, 'canEdit' => $canEdit )); -class Screenshots +class Gallery { static public function add($comment, $image, $author, &$errors) { @@ -132,7 +132,7 @@ class Screenshots $query = $db->query( 'SELECT `ordering`' . - ' FROM `' . TABLE_PREFIX . 'screenshots`' . + ' FROM `' . TABLE_PREFIX . 'gallery`' . ' ORDER BY `ordering`' . ' DESC LIMIT 1' ); @@ -144,9 +144,9 @@ class Screenshots $pathinfo = pathinfo($image); $extension = strtolower($pathinfo['extension']); - $thumb_filename = 'images/screenshots/' . $pathinfo['filename'] . '_thumb.' . $extension; - $filename = 'images/screenshots/' . $pathinfo['filename'] . '.' . $extension; - if($db->insert(TABLE_PREFIX . 'screenshots', array( + $thumb_filename = 'images/gallery/' . $pathinfo['filename'] . '_thumb.' . $extension; + $filename = 'images/gallery/' . $pathinfo['filename'] . '.' . $extension; + if($db->insert(TABLE_PREFIX . 'gallery', array( 'comment' => $comment, 'image' => $filename, 'author' => $author, 'thumb' => $thumb_filename, @@ -163,7 +163,7 @@ class Screenshots static public function get($id) { global $db; - return $db->select(TABLE_PREFIX . 'screenshots', array('id' => $id)); + return $db->select(TABLE_PREFIX . 'gallery', array('id' => $id)); } static public function update($id, $comment, $image, $author) { @@ -171,9 +171,9 @@ class Screenshots $pathinfo = pathinfo($image); $extension = strtolower($pathinfo['extension']); - $filename = 'images/screenshots/' . $pathinfo['filename'] . '.' . $extension; + $filename = 'images/gallery/' . $pathinfo['filename'] . '.' . $extension; - if($db->update(TABLE_PREFIX . 'screenshots', array( + if($db->update(TABLE_PREFIX . 'gallery', array( 'comment' => $comment, 'image' => $filename, 'author' => $author), array('id' => $id) @@ -189,9 +189,9 @@ class Screenshots if(isset($id)) { if(self::get($id) !== false) - $db->delete(TABLE_PREFIX . 'screenshots', array('id' => $id)); + $db->delete(TABLE_PREFIX . 'gallery', array('id' => $id)); else - $errors[] = 'Screenshot with id ' . $id . ' does not exists.'; + $errors[] = 'Image with id ' . $id . ' does not exists.'; } else $errors[] = 'id not set'; @@ -206,9 +206,9 @@ class Screenshots { $query = self::get($id); if($query !== false) - $db->update(TABLE_PREFIX . 'screenshots', array('hidden' => ($query['hidden'] == 1 ? 0 : 1)), array('id' => $id)); + $db->update(TABLE_PREFIX . 'gallery', array('hidden' => ($query['hidden'] == 1 ? 0 : 1)), array('id' => $id)); else - $errors[] = 'Screenshot with id ' . $id . ' does not exists.'; + $errors[] = 'Image with id ' . $id . ' does not exists.'; } else $errors[] = 'id not set'; @@ -223,14 +223,14 @@ class Screenshots if($query !== false) { $ordering = $query['ordering'] + $i; - $old_record = $db->select(TABLE_PREFIX . 'screenshots', array('ordering' => $ordering)); + $old_record = $db->select(TABLE_PREFIX . 'gallery', array('ordering' => $ordering)); if($old_record !== false) - $db->update(TABLE_PREFIX . 'screenshots', array('ordering' => $query['ordering']), array('ordering' => $ordering)); + $db->update(TABLE_PREFIX . 'gallery', array('ordering' => $query['ordering']), array('ordering' => $ordering)); - $db->update(TABLE_PREFIX . 'screenshots', array('ordering' => $ordering), array('id' => $id)); + $db->update(TABLE_PREFIX . 'gallery', array('ordering' => $ordering), array('id' => $id)); } else - $errors[] = 'Screenshot with id ' . $id . ' does not exists.'; + $errors[] = 'Image with id ' . $id . ' does not exists.'; return !count($errors); } @@ -290,7 +290,7 @@ class Screenshots { $pathinfo = pathinfo($file); $extension = strtolower($pathinfo['extension']); - $thumb_filename = 'images/screenshots/' . $pathinfo['filename'] . '_thumb.' . $extension; + $thumb_filename = 'images/gallery/' . $pathinfo['filename'] . '_thumb.' . $extension; if(!self::resize($file, 170, 110, $thumb_filename, $errors)) return false; @@ -300,9 +300,9 @@ class Screenshots { $query = self::get($id); if($query !== false) - $db->update(TABLE_PREFIX . 'screenshots', array('thumb' => $thumb_filename), array('id' => $id)); + $db->update(TABLE_PREFIX . 'gallery', array('thumb' => $thumb_filename), array('id' => $id)); else - $errors[] = 'Screenshot with id ' . $id . ' does not exists.'; + $errors[] = 'Image with id ' . $id . ' does not exists.'; } else $errors[] = 'id not set'; diff --git a/system/pages/movies.php b/system/pages/movies.php deleted file mode 100644 index 7dabd7e3..00000000 --- a/system/pages/movies.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @copyright 2017 MyAAC - * @version 0.5.1 - * @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. -render('movies.html.twig', array( - 'movies' => $movies -)); -?> diff --git a/system/pages/videos.php b/system/pages/videos.php new file mode 100644 index 00000000..44ebb4fe --- /dev/null +++ b/system/pages/videos.php @@ -0,0 +1,28 @@ + + * @copyright 2017 MyAAC + * @version 0.5.1 + * @link http://my-aac.org + */ +defined('MYAAC') or die('Direct access not allowed!'); +$title = 'Videos'; + +$videos = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'videos` ORDER BY `ordering`;'); +if(!$videos->rowCount()) +{ +?> +There are no videos added yet. +render('videos.html.twig', array( + 'videos' => $videos +)); +?> diff --git a/system/template.php b/system/template.php index 9fe22ee1..caee5c5e 100644 --- a/system/template.php +++ b/system/template.php @@ -79,11 +79,14 @@ $template['link_account_logout'] = getLink('account/logout'); $template['link_news_archive'] = getLink('news/archive'); -$links = array('news', 'changelog', 'rules', 'downloads', 'characters', 'online', 'highscores', 'powergamers', 'lastkills', 'houses', 'guilds', 'wars', 'polls', 'bans', 'team', 'creatures', 'spells', 'commands', 'experienceStages', 'freeHouses', 'screenshots', 'movies', 'serverInfo', 'experienceTable', 'faq', 'points', 'gifts', 'bugtracker'); +$links = array('news', 'changelog', 'rules', 'downloads', 'characters', 'online', 'highscores', 'powergamers', 'lastkills', 'houses', 'guilds', 'wars', 'polls', 'bans', 'team', 'creatures', 'spells', 'commands', 'experienceStages', 'freeHouses', 'serverInfo', 'experienceTable', 'faq', 'points', 'gifts', 'bugtracker'); foreach($links as $link) { - $template['link_' . $link] = getLink($link); + $template['link_' . $link] = getLink($link); } +$template['link_screenshots'] = getLink('gallery'); +$template['link_movies'] = getLink('videos'); + $template['link_gifts_history'] = getLink('gifts', 'history'); if($config['forum'] != '') { diff --git a/system/templates/screenshots.form.html.twig b/system/templates/gallery.form.html.twig similarity index 92% rename from system/templates/screenshots.form.html.twig rename to system/templates/gallery.form.html.twig index f6cc45ba..8b5b21e7 100644 --- a/system/templates/screenshots.form.html.twig +++ b/system/templates/gallery.form.html.twig @@ -4,7 +4,7 @@ {% endif %} - +
{% if action == 'edit' %}Edit{% else %}Add{% endif %} screenshot{% if action == 'edit' %}Edit{% else %}Add{% endif %} image
diff --git a/system/templates/gallery.get.html.twig b/system/templates/gallery.get.html.twig new file mode 100644 index 00000000..a4e2b0f4 --- /dev/null +++ b/system/templates/gallery.get.html.twig @@ -0,0 +1,15 @@ +
+ {% if next is not null %} + next + {% endif %} + {% if previous is not null %} + previous + {% endif %} +
+ back +
+
+
+ +
{{ image.comment }}
+
\ No newline at end of file diff --git a/system/templates/gallery.html.twig b/system/templates/gallery.html.twig new file mode 100644 index 00000000..97bad7d1 --- /dev/null +++ b/system/templates/gallery.html.twig @@ -0,0 +1,38 @@ +Click on the image to enlarge.

+{% set i = 0 %} +{% for item in gallery %} + {% set i = i + 1 %} + + + + + {% if canEdit %} + + {% endif %} + +
+ + + + {{ item.comment }} + + Edit + + + Delete + + + {% if item.hidden != 1 %}Hide{% else %}Show{% endif %} + + {% if i != 1 %} + + Move up + + {% endif %} + {% if i != last %} + + Move down + + {% endif %} +
+{% endfor %} \ No newline at end of file diff --git a/system/templates/movies.html.twig b/system/templates/movies.html.twig deleted file mode 100644 index 8c34e281..00000000 --- a/system/templates/movies.html.twig +++ /dev/null @@ -1,7 +0,0 @@ -
- {% for movie in movies %} -

{{ movie.title }}

- Author: {{ movie.author }}
-

- {% endfor %} -
\ No newline at end of file diff --git a/system/templates/screenshots.get.html.twig b/system/templates/screenshots.get.html.twig deleted file mode 100644 index d3f7c80d..00000000 --- a/system/templates/screenshots.get.html.twig +++ /dev/null @@ -1,16 +0,0 @@ -
- - {% if next is not null %} - next - {% endif %} - {% if previous is not null %} - previous - {% endif %} -
- back -
-
-
- -
{{ screenshot.comment }}
-
\ No newline at end of file diff --git a/system/templates/screenshots.html.twig b/system/templates/screenshots.html.twig deleted file mode 100644 index c3374dfd..00000000 --- a/system/templates/screenshots.html.twig +++ /dev/null @@ -1,38 +0,0 @@ -Click on the image to enlarge.

-{% set i = 0 %} -{% for screenshot in screenshots %} - {% set i = i + 1 %} - - - - - {% if canEdit %} - - {% endif %} - -
- - - - {{ screenshot.comment }} - - Edit - - - Delete - - - {% if screenshot.hidden != 1 %}Hide{% else %}Show{% endif %} - - {% if i != 1 %} - - Move up - - {% endif %} - {% if i != last %} - - Move down - - {% endif %} -
-{% endfor %} \ No newline at end of file diff --git a/system/templates/videos.html.twig b/system/templates/videos.html.twig new file mode 100644 index 00000000..2ad7ded1 --- /dev/null +++ b/system/templates/videos.html.twig @@ -0,0 +1,7 @@ +
+ {% for video in videos %} +

{{ video.title }}

+ Author: {{ video.author }}
+

+ {% endfor %} +
\ No newline at end of file diff --git a/templates/kathrine/template.php b/templates/kathrine/template.php index ad3d886b..d79b5947 100644 --- a/templates/kathrine/template.php +++ b/templates/kathrine/template.php @@ -17,7 +17,7 @@ defined('MYAAC') or die('Direct access not allowed!'); if(in_array(PAGE, array('news', 'newsarchive'))) echo 'news'; elseif(in_array(PAGE, array('creatures', 'spells', 'serverinfo', 'downloads', 'commands', - 'movies', 'screenshots', 'experiencetable', 'faq'))) + 'videos', 'gallery', 'experiencetable', 'faq'))) echo 'library'; elseif(in_array(PAGE, array('online', 'characters', 'guilds', 'highscores', 'wars', 'lastkills', 'houses', 'bans', 'forum', 'team'))) @@ -134,9 +134,9 @@ defined('MYAAC') or die('Direct access not allowed!'); Commands - Movies + Videos - Screenshots + Gallery Experience Table diff --git a/templates/tibiacom/basic.css b/templates/tibiacom/basic.css index af24935e..98ee197e 100644 --- a/templates/tibiacom/basic.css +++ b/templates/tibiacom/basic.css @@ -712,7 +712,7 @@ img { #Themeboxes #JobBox { height: 164px; } -#Themeboxes #ScreenshotBox #ScreenshotContent { +#Themeboxes #GalleryBox #GalleryContent { position: relative; height: 111px; width: 170px; diff --git a/templates/tibiacom/config.php b/templates/tibiacom/config.php index 307343f1..f4bc21f1 100644 --- a/templates/tibiacom/config.php +++ b/templates/tibiacom/config.php @@ -4,9 +4,10 @@ $config['lightborder'] = "#F1E0C6"; $config['vdarkborder'] = "#505050"; $config['news_title_color'] = "white"; $config['logo_monster'] = "Elder Beholder"; -#List: newcomer,screenshots,premium,poll -$config['boxes'] = "newcomer,screenshots"; +// separated by comma +// List: newcomer,gallery,premium,poll +$config['boxes'] = "newcomer,gallery"; $config['background_image'] = "background-artwork-860.jpg"; $config['logo_image'] = "tibia-logo-artwork-top.gif"; -$config['screenshot'] = "demon"; +$config['gallery_image'] = 1; ?> diff --git a/templates/tibiacom/images/themeboxes/screenshot/screenshotbox.gif b/templates/tibiacom/images/themeboxes/gallery/gallerybox.gif similarity index 100% rename from templates/tibiacom/images/themeboxes/screenshot/screenshotbox.gif rename to templates/tibiacom/images/themeboxes/gallery/gallerybox.gif diff --git a/templates/tibiacom/index.php b/templates/tibiacom/index.php index 118b4486..50786706 100644 --- a/templates/tibiacom/index.php +++ b/templates/tibiacom/index.php @@ -560,19 +560,19 @@ if(isset($config['freehouses'])): ?> endif; ?> - -