<?php 
if ($wo['loggedin'] == false || $wo['config']['movies'] == 0 || !$wo['config']['can_use_movies']) {
  header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
  exit();
}

if (isset($_GET['genre'])) {
	$wo['description'] = $wo['config']['siteDesc'];
	$wo['keywords']    = $wo['config']['siteKeywords'];
	$wo['page']        = 'movies';
	$wo['movies']      = Wo_GetMovies(array('genre' => $_GET['genre']));
	$wo['genre']       = ucfirst($_GET['genre']);
	$wo['title']       = $wo['lang']['movies'];
	$wo['content']     = Wo_LoadPage('movies/movies-genre');
}
