Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("_inc.php");
- require_once("library/video.func.php");
- if ($_GET['nochanell'] == "1") { echo "<center><h1>Hmm...Kanal boş görünüyor, arama yapınız ;)</h1></center>";}
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
- <head>
- <base href="<?php print $config->site->url; ?>" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title><?php print ( !empty($head_title) ? implode(' / ', array_reverse($head_title)).' - ' : '' ) . $config->site->name; ?></title>
- <meta name="description" content="Türkiye'nin en kaliteli video izleme sitesi. Video izleyin ve paylaşın" />
- <meta name="keywords" content="Kurtlar Vadisi, video, izle, facebook, film, dizi, fragman, komik video, ünlüler, sinema, haber, spor, futbol, sexy, klip, müzik, oyun" />
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.kurtlarvadisi.info/feed" />
- <link rel="shortcut icon" href="favicon.ico" />
- <link href="<?php print $config->site->url; ?>tpl/css/default.css" media="screen" rel="stylesheet" type="text/css" />
- <link rel="stylesheet" href="<?php print $config->site->url; ?>tpl/css/buttons.css" type="text/css"/>
- <SCRIPT>
- function clearDefault(el) {
- if (el.defaultValue==el.value) el.value = ""
- }
- </SCRIPT>
- <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/jquery.min.js"></script>
- <link rel="stylesheet" type="text/css" href="<?php print $config->site->url; ?>tpl/js/lightbox/themes/default/jquery.lightbox.css" />
- <!--[if IE 6]><link rel="stylesheet" type="text/css" href="javascript/lightbox/themes/default/jquery.lightbox.ie6.css" /><![endif]-->
- <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/lightbox/jquery.lightbox.min.js"></script>
- <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/jquery.menu.min.js"></script>
- <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/jquery.easing.1.3.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function($) {
- $('.addtoplaylist').live('click', function(ev) {
- var video = $(this).attr('href');
- $.lightbox('<?php print $config->site->url; ?>tpl/player/player.swf', {
- width: 640,
- height: 360,
- force: 'flash',
- flashvars: 'file='+video+'&autostart=true&repeat=always&logo.file=<?php print $config->site->url; ?>tpl/player/playerlogo.png&logo.link=<?php print $config->site->url; ?>&logo.hide=false&logo.position=bottom-left&stretching=fill'
- });
- ev.preventDefault();
- });
- });
- jQuery(document).ready(function() {
- //Tooltips
- $(".tip_trigger").delay(3000).hover(function(){
- tip = $(this).find('.tip');
- tip.show(); //Show tooltip
- }, function() {
- tip.hide(); //Hide tooltip
- }).mousemove(function(e) {
- var mousex = e.pageX + 10; //Get X coodrinates
- var mousey = e.pageY + 10; //Get Y coordinates
- var tipWidth = tip.width(); //Find width of tooltip
- var tipHeight = tip.height(); //Find height of tooltip
- //Distance of element from the right edge of viewport
- var tipVisX = $(window).width() - (mousex + tipWidth);
- //Distance of element from the bottom of viewport
- var tipVisY = $(window).height() - (mousey + tipHeight);
- if ( tipVisX < 20 ) { //If tooltip exceeds the X coordinate of viewport
- mousex = e.pageX - tipWidth - 10;
- } if ( tipVisY < 20 ) { //If tooltip exceeds the Y coordinate of viewport
- mousey = e.pageY - tipHeight - 10;
- }
- //Absolute position the tooltip according to mouse position
- tip.css({ top: mousey, left: mousex });
- });
- });
- </script>
- <?php if (!empty($head_extra)) { echo $head_extra;}?>
- </head>
- <body>
- <div id="top_er" class="clearfix">
- <div id="top_left" class="clearfix">
- <a href="<?php print $config->site->url; ?>" rel="nofollow"><img src="tpl/images/logo.png" alt="<?php print $config->site->name; ?>"/></a>
- </div>
- <div id="top_center" class="clearfix">
- <div id="searchwrap">
- <form action="/video_tags.php" method="get" name="thisform-search" id="thisform-search" onsubmit="location.href='<?php print $config->site->url; ?>izle/' + encodeURIComponent(this.tag.value).replace(/%20/g, '+'); return false;">
- <input type="text" name="search" id="s" value="<?php echo __("Ara..."); ?>" onfocus="if(this.value == 'Ara...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Ara...';}"/>
- <input type="submit" value="" class="go" />
- </form>
- </div>
- </div>
- <div id="top_right" class="clearfix">
- <?php
- if($user->isAuthorized())
- {
- $user_message_module = MK_RecordModuleManager::getFromType('user_message');
- $user_messages_inbox = $user_message_module->searchRecords(
- array(
- array('field' => 'recipient', 'value' => $user->getId()),
- array('field' => 'type', 'value' => 'inbox_unread')
- )
- );
- $user_messages_inbox_total = count($user_messages_inbox);
- $user_messages_drafts = $user_message_module->searchRecords(
- array(
- array('field' => 'sender', 'value' => $user->getId()),
- array('field' => 'type', 'value' => 'draft')
- )
- );
- $user_messages_drafts_total = count($user_messages_drafts);
- echo'
- <div class="button-group">
- <a href="user.php?id='.$user->getId().'" class="button blue icon man rounded">'.$user->getName().'</a>
- <a href="edit-profile.php" class="button blue icon preferences rounded">'.__("Profil düzenle").'</a>
- <a href="messages.php?folder=inbox" class="button blue icon mailclosed rounded">Gelen kutusu ('.$user_messages_drafts_total.')</a>
- ';
- ?>
- <?php print $user->getType() === MK_RecordUser::TYPE_CORE ? '<a href="change-password.php" class="button blue icon padlock rounded">'.__("Şifre").'</a>' : '' ?>
- <a href="logout.php" class="button blue icon eject rounded">Çıkış</a>
- </div>
- <?php
- } else {
- echo'
- <div class="button-group">
- <a href="'.$config->site->url.'giris/" class="button blue icon man rounded">'.__("Misafir").'</a>
- <a href="'.$config->site->url.'giris/" class="button blue icon connections rounded">'.__("Giriş").'</a>
- <a href="'.$config->site->url.'kayit/" class="button blue icon connections rounded">'.__("Kayıt").'</a>
- <a href="'.$config->site->url.'giris/" class="button blue rounded on">Facebook</a>
- <a href="'.$config->site->url.'giris/" class="button green rounded on">Twitter</a>
- </div>';
- }
- ?>
- </div>
- </div>
- <div id="content-bkg">
- <div class="wrapper">
- <div class="centerblock clearfix">
- <div class="button-group">
- <a href="<?php print $config->site->url; ?>" class="button blue icon house rounded"><?php echo __("Ana Sayfa");?></a>
- <a href="<?php print $config->site->url; ?>videolar/" class="button blue icon clapboard rounded"><?php echo __("En son videolar");?></a>
- <a href="<?php print $config->site->url; ?>populer/" class="button blue icon star rounded"><?php echo __("Popüler videolar");?></a>
- <a href="<?php print $config->site->url; ?>begenilenler/" class="button blue icon heart rounded"><?php echo __("En çok beğenilenler");?></a>
- <a href="<?php print $config->site->url; ?>uyeler/" class="button blue icon man rounded"><?php echo __("Üyeler");?></a>
- <a href="<?php print $config->site->url; ?>duvar/" class="button blue icon speechmedia rounded"><?php echo __("Duvar");?></a>
- <span style="color: rgb(239, 0, 27); font-size: 12pt;">Bu site satılıktır. İletişim için E-mail: [email protected]</span>
- <br><span style="color: rgb(239, 0, 27); font-size: 12pt;">(This site is for sale)</span></br>
- </div>
- </div>
- <div class="clearfix" id="main-content">
- <div class="col col9">
- <div class="col-bkg clearfix">
- <h2><?php echo __("Günün videoları");?></h2>
- <div class="vibe_contain">
- <ul>
- <?php
- if(!$string = $Cache->Load("mainvideosindex")){
- $string = '';
- $sql = dbquery("SELECT * FROM videos WHERE views > 1 ORDER BY id DESC LIMIT 0,12");
- while($row = mysql_fetch_array($sql)){
- $new_id = $row["id"];
- $new_yt = $row["youtube_id"];
- $new_title = $row["title"];
- $small_title = substr($new_title, 0, 50);
- $new_description = $row["description"];
- $new_seo_url = $site_url.'video/'.$new_id.'/'.seo_clean_url($new_title) .'/';
- $new_duration = $row["duration"];
- $string .='<li>
- <div class="vibekeep">
- <a href="'.$new_seo_url.'"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" width="147" height="99" alt="'.$small_title.'" />
- <span class="time">'.sec2hms($new_duration).'</span>
- </a>
- <a href="http://www.youtube.com/watch?v='.$new_yt.'" title="'.$small_title.' video" class="addtoplaylist"><img src="'. $config->site->url.'tpl/images/plusicon.png" alt="'.$small_title.'" /></a>
- </div>
- <div class="clear"></div>
- <p class="ttle"><a class="tip_trigger" href="'.$new_seo_url.'">'.$small_title.' <span class="tip" style="width: 450px;"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" style="float: left; margin-right: 20px;" alt="" />
- '.$new_description.'</span></a></p>
- </li>';
- }
- $Cache->Save($string, "mainvideosindex");
- }
- echo $string;
- ?>
- </ul>
- </div>
- <h2>
- <?php echo __("Günün beğenilen videoları");?>
- </h2>
- <div class="vibe_contain">
- <ul>
- <?php
- if(!$string = $Cache->Load("likedvideosindex")){
- $string = '';
- $sql = dbquery("SELECT * FROM videos WHERE views > 1 ORDER BY liked DESC LIMIT 0,16");
- while($row = mysql_fetch_array($sql)){
- $new_id = $row["id"];
- $new_yt = $row["youtube_id"];
- $new_title = $row["title"];
- $small_title = substr($new_title, 0, 50);
- $new_description = $row["description"];
- $new_seo_url = $site_url.'video/'.$new_id.'/'.seo_clean_url($new_title) .'/';
- $new_duration = $row["duration"];
- $string .='<li>
- <div class="vibekeep">
- <a href="'.$new_seo_url.'"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" width="147" height="99" alt="'.$small_title.'" />
- <span class="time">'.sec2hms($new_duration).'</span>
- </a>
- <a href="http://www.youtube.com/watch?v='.$new_yt.'" title="'.$small_title.' video" class="addtoplaylist"><img src="'. $config->site->url.'tpl/images/plusicon.png" alt="'.$small_title.'" /></a>
- </div>
- <div class="clear"></div>
- <p class="ttle"><a class="tip_trigger" href="'.$new_seo_url.'">'.$small_title.' <span class="tip" style="width: 450px;"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" style="float: left; margin-right: 20px;" alt="" />
- '.$new_description.'</span></a></p>
- </li>';
- }
- $Cache->Save($string, "likedvideosindex");
- }
- echo $string;
- ?>
- </ul>
- </div>
- <h2><?php echo __("Günün popüler videoları");?></h2>
- <div class="vibe_contain">
- <ul>
- <?php
- if(!$string = $Cache->Load("viewedvideosindex")){
- $string = '';
- $sql = dbquery("SELECT * FROM videos WHERE views > 1 ORDER BY views DESC LIMIT 0,16");
- while($row = mysql_fetch_array($sql)){
- $new_id = $row["id"];
- $new_yt = $row["youtube_id"];
- $new_title = $row["title"];
- $small_title = substr($new_title, 0, 50);
- $new_description = $row["description"];
- $new_seo_url = $site_url.'video/'.$new_id.'/'.seo_clean_url($new_title) .'/';
- $new_duration = $row["duration"];
- $string .='<li>
- <div class="vibekeep">
- <a href="'.$new_seo_url.'"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" width="147" height="99" alt="'.$small_title.'" />
- <span class="time">'.sec2hms($new_duration).'</span>
- </a>
- <a href="http://www.youtube.com/watch?v='.$new_yt.'" title="'.$small_title.' video" class="addtoplaylist"><img src="'. $config->site->url.'tpl/images/plusicon.png" alt="'.$small_title.'" /></a>
- </div>
- <div class="clear"></div>
- <p class="ttle"><a class="tip_trigger" href="'.$new_seo_url.'">'.$small_title.' <span class="tip" style="width: 450px;"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" style="float: left; margin-right: 20px;" alt="'.$small_title.''.$small_title.'" />
- '.$new_description.'</span></a></p>
- </li>';
- }
- $Cache->Save($string, "viewedvideosindex");
- }
- echo $string;
- ?>
- </ul>
- </div>
- </div>
- </div>
- <?php
- include_once("sidebar.php");
- include_once("tpl/php/footer.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment