ACC SHELL

Path : /www/hosting/oltv.cz/www/
File Upload :
Current File : /www/hosting/oltv.cz/www/kanal.php

<?php
require_once "include/config.php";

$kanal = new kanaly($_GET["idkanal"]);
if (isset($_GET['page'])) { $stranka = intval($_GET['page']); }
else { $stranka = 1; }

log__navstevy::log("kanal", $_GET["idkanal"]);

$page = new page($kanal->getNazev());


if (isset($_GET['idv'])) {
	$video = new videa(intval($_GET['idv']));
	$page->title = $video->getNazev();
	$page->meta = "<link rel=\"canonical\" href=\"http://www.oltv.cz/".$video->getMr_url()."-video-".$video->getId().".html\" />";
}


$arr = array(
	"limit"			=> 27,
	"page"			=> $stranka,
	"imageWidth"	=> 191,
	"imageHeight"	=> 100,
	"idkanaly"		=> $kanal->getId(),
	"folder"			=> "/".URI_PART_0."/",
	"order"			=> "videa.caszalozeni",
	"sort"			=> "DESC",
	"pager"			=> TRUE
);
if (isset($video) && is_object($video)) { $arr["notid"][] = $video->getId(); }

$kanal_output = videa::vypis($arr);

if (isset($video) && is_object($video)) {
	$page->meta_desc = maxlength(strip_tags($video->getDetail()),148);
    if ($video->getYoutube() != "") {
		$page->og_image = "https://img.youtube.com/vi/".$video->getYoutube()."/default.jpg";
	} else {
	    $page->og_image = "http://www.oltv.cz/images-crop/800x500/videa/".$video->getId()."/".$video->getVimeo().".jpg";
	}
}

$nepartnerska = true;


include "inc/head.inc";
include "inc/header.inc";
?>
<h1><?=$kanal->getNazev()?></h1>
<?php
//<div id="razeni">seřadit podle: <a href="zpravy.html?od=0&amp;sort=A&amp;typ=1" class="active"><img src="/pics/arrow_down.png" /> data</a>
//	<span>/</span>
//	<a href="zpravy.html?od=0&amp;sort=B&amp;typ=2">zhlednutí</a>
//</div>
?>
<?php
include "inc/right-info.inc";
?>
	<div id="left">
		<?php
		if (isset($video) && is_object($video)) { include "inc/detail.inc"; }
		?>
		<div class="videoList">
			<ul id="otherVideos">
				<?=$kanal_output["html"]?>
			</ul>
		<div class="clear"></div>
		<?=page::vypis_strankovani($kanal_output["pager"],"./");?>
	  </div>
	</div>
	<?php
include "inc/right.inc";
?>
   <div class="clear"></div>

<?php
include "inc/footer.inc";

ACC SHELL 2018