bondcemil

index.php

Apr 22nd, 2013
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.25 KB | None | 0 0
  1. <?php
  2. require_once("_inc.php");
  3. require_once("library/video.func.php");
  4. if ($_GET['nochanell'] == "1") { echo "<center><h1>Hmm...Kanal boş görünüyor, arama yapınız ;)</h1></center>";}
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
  8. <head>
  9. <base href="<?php print $config->site->url; ?>" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  11. <title><?php print ( !empty($head_title) ? implode(' / ', array_reverse($head_title)).' - ' : '' ) . $config->site->name; ?></title>
  12. <meta name="description" content="Türkiye'nin en kaliteli video izleme sitesi. Video izleyin ve paylaşın" />
  13. <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" />
  14. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.kurtlarvadisi.info/feed" />
  15. <link rel="shortcut icon" href="favicon.ico" />
  16. <link href="<?php print $config->site->url; ?>tpl/css/default.css" media="screen" rel="stylesheet" type="text/css" />
  17.  <link rel="stylesheet" href="<?php print $config->site->url; ?>tpl/css/buttons.css" type="text/css"/>
  18.  
  19.  <SCRIPT>
  20. function clearDefault(el) {
  21. if (el.defaultValue==el.value) el.value = ""
  22. }
  23. </SCRIPT>
  24.  
  25. <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/jquery.min.js"></script>
  26. <link rel="stylesheet" type="text/css" href="<?php print $config->site->url; ?>tpl/js/lightbox/themes/default/jquery.lightbox.css" />
  27. <!--[if IE 6]><link rel="stylesheet" type="text/css" href="javascript/lightbox/themes/default/jquery.lightbox.ie6.css" /><![endif]-->
  28. <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/lightbox/jquery.lightbox.min.js"></script>
  29. <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/jquery.menu.min.js"></script>
  30. <script type="text/javascript" src="<?php print $config->site->url; ?>tpl/js/jquery.easing.1.3.js"></script>
  31.  
  32. <script type="text/javascript">
  33.  
  34.  
  35.   jQuery(document).ready(function($) {
  36.     $('.addtoplaylist').live('click', function(ev) {
  37.      
  38.       var video = $(this).attr('href');
  39.      
  40.  
  41.       $.lightbox('<?php print $config->site->url; ?>tpl/player/player.swf', {
  42.         width: 640,
  43.         height: 360,       
  44.         force: 'flash',
  45.         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'
  46.       });
  47.      
  48.       ev.preventDefault();
  49.    
  50.     });
  51.   });
  52.  
  53.  
  54.   jQuery(document).ready(function() {
  55.     //Tooltips
  56.     $(".tip_trigger").delay(3000).hover(function(){
  57.         tip = $(this).find('.tip');
  58.         tip.show(); //Show tooltip
  59.     }, function() {
  60.         tip.hide(); //Hide tooltip
  61.     }).mousemove(function(e) {
  62.         var mousex = e.pageX + 10; //Get X coodrinates
  63.         var mousey = e.pageY + 10; //Get Y coordinates
  64.         var tipWidth = tip.width(); //Find width of tooltip
  65.         var tipHeight = tip.height(); //Find height of tooltip
  66.  
  67.         //Distance of element from the right edge of viewport
  68.         var tipVisX = $(window).width() - (mousex + tipWidth);
  69.         //Distance of element from the bottom of viewport
  70.         var tipVisY = $(window).height() - (mousey + tipHeight);
  71.  
  72.         if ( tipVisX < 20 ) { //If tooltip exceeds the X coordinate of viewport
  73.             mousex = e.pageX - tipWidth - 10;
  74.         } if ( tipVisY < 20 ) { //If tooltip exceeds the Y coordinate of viewport
  75.             mousey = e.pageY - tipHeight - 10;
  76.         }
  77.         //Absolute position the tooltip according to mouse position
  78.         tip.css({  top: mousey, left: mousex });
  79.     });
  80. });
  81. </script>
  82. <?php if (!empty($head_extra)) { echo $head_extra;}?>
  83.  </head>
  84. <body>
  85.    
  86. <div id="top_er" class="clearfix">
  87. <div id="top_left" class="clearfix">
  88. <a href="<?php print $config->site->url; ?>" rel="nofollow"><img src="tpl/images/logo.png" alt="<?php print $config->site->name; ?>"/></a>
  89.  </div>
  90.  
  91.  <div id="top_center" class="clearfix">
  92.  <div id="searchwrap">
  93. <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;">
  94. <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...';}"/>
  95. <input type="submit" value="" class="go" />
  96. </form>
  97. </div>
  98.  </div>
  99.  <div id="top_right" class="clearfix">
  100.  
  101. <?php
  102. if($user->isAuthorized())
  103.     {
  104.     $user_message_module = MK_RecordModuleManager::getFromType('user_message');
  105.  
  106.         $user_messages_inbox = $user_message_module->searchRecords(
  107.             array(
  108.                 array('field' => 'recipient', 'value' => $user->getId()),
  109.                 array('field' => 'type', 'value' => 'inbox_unread')
  110.             )
  111.         );
  112.         $user_messages_inbox_total = count($user_messages_inbox);
  113.  
  114.         $user_messages_drafts = $user_message_module->searchRecords(
  115.             array(
  116.                 array('field' => 'sender', 'value' => $user->getId()),
  117.                 array('field' => 'type', 'value' => 'draft')
  118.             )
  119.         );
  120.         $user_messages_drafts_total = count($user_messages_drafts);
  121. echo'
  122. <div class="button-group">
  123. <a href="user.php?id='.$user->getId().'" class="button blue icon man rounded">'.$user->getName().'</a>
  124. <a href="edit-profile.php" class="button blue icon preferences rounded">'.__("Profil düzenle").'</a>
  125. <a href="messages.php?folder=inbox" class="button blue icon mailclosed rounded">Gelen kutusu ('.$user_messages_drafts_total.')</a>
  126. ';
  127. ?>
  128. <?php print $user->getType() === MK_RecordUser::TYPE_CORE ? '<a href="change-password.php" class="button blue icon padlock rounded">'.__("Şifre").'</a>' : '' ?>
  129. <a href="logout.php" class="button blue icon eject rounded">Çıkış</a>
  130. </div>
  131. <?php
  132. } else {
  133. echo'
  134. <div class="button-group">
  135. <a href="'.$config->site->url.'giris/" class="button blue icon man rounded">'.__("Misafir").'</a>
  136. <a href="'.$config->site->url.'giris/" class="button blue icon connections rounded">'.__("Giriş").'</a>
  137. <a href="'.$config->site->url.'kayit/" class="button blue icon connections rounded">'.__("Kayıt").'</a>
  138. <a href="'.$config->site->url.'giris/" class="button blue rounded on">Facebook</a>
  139. <a href="'.$config->site->url.'giris/" class="button green rounded on">Twitter</a>
  140.  
  141. </div>';
  142. }
  143. ?>
  144.  
  145. </div>
  146. </div>
  147. <div id="content-bkg">
  148. <div class="wrapper">
  149.  <div class="centerblock clearfix">
  150.  
  151.                              <div class="button-group">                            
  152.                                 <a href="<?php print $config->site->url; ?>" class="button blue icon house rounded"><?php echo __("Ana Sayfa");?></a>
  153.                                 <a href="<?php print $config->site->url; ?>videolar/" class="button blue icon clapboard rounded"><?php echo __("En son videolar");?></a>
  154.                                 <a href="<?php print $config->site->url; ?>populer/" class="button blue icon star rounded"><?php echo __("Popüler videolar");?></a>
  155.                                 <a href="<?php print $config->site->url; ?>begenilenler/" class="button blue icon heart rounded"><?php echo __("En çok beğenilenler");?></a>
  156.                                 <a href="<?php print $config->site->url; ?>uyeler/" class="button blue icon man rounded"><?php echo __("Üyeler");?></a>
  157.                                  <a href="<?php print $config->site->url; ?>duvar/" class="button blue icon speechmedia rounded"><?php echo __("Duvar");?></a>
  158.                              <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>
  159.                             <br><span style="color: rgb(239, 0, 27); font-size: 12pt;">(This site is for sale)</span></br>
  160.                             </div>
  161.  
  162. </div>  
  163. <div class="clearfix" id="main-content">
  164. <div class="col col9">
  165.   <div class="col-bkg clearfix">
  166.  
  167.     <h2><?php echo __("Günün videoları");?></h2>
  168. <div class="vibe_contain">
  169.  <ul>
  170. <?php
  171. if(!$string = $Cache->Load("mainvideosindex")){
  172.                      $string = '';           
  173.                      $sql = dbquery("SELECT * FROM videos WHERE views > 1 ORDER BY id DESC LIMIT 0,12");
  174.    
  175.                      while($row = mysql_fetch_array($sql)){
  176.     $new_id = $row["id"];  
  177.     $new_yt = $row["youtube_id"];
  178.     $new_title = $row["title"];
  179.     $small_title = substr($new_title, 0, 50);  
  180.     $new_description = $row["description"];
  181.     $new_seo_url = $site_url.'video/'.$new_id.'/'.seo_clean_url($new_title) .'/';
  182.     $new_duration = $row["duration"];
  183.    
  184.   $string .='<li>
  185.                             <div class="vibekeep">
  186.                                 <a href="'.$new_seo_url.'"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" width="147" height="99" alt="'.$small_title.'" />
  187.                                     <span class="time">'.sec2hms($new_duration).'</span>
  188.                                </a>
  189.                                 <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>
  190.                            </div>
  191.                             <div class="clear"></div>
  192.  
  193.                             <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="" />
  194. '.$new_description.'</span></a></p>
  195.                            
  196.                        </li>';
  197.                         }
  198.  $Cache->Save($string, "mainvideosindex");
  199. }
  200. echo $string;
  201. ?>
  202.  </ul>
  203.  
  204.  
  205.  
  206.                 </div>         
  207.    
  208.  
  209. <h2>
  210. <?php echo __("Günün beğenilen videoları");?>
  211. </h2>
  212. <div class="vibe_contain">
  213.  <ul>
  214. <?php
  215. if(!$string = $Cache->Load("likedvideosindex")){
  216.                      $string = '';           
  217.                      $sql = dbquery("SELECT * FROM videos WHERE views > 1 ORDER BY liked DESC LIMIT 0,16");
  218.    
  219.                      while($row = mysql_fetch_array($sql)){
  220.     $new_id = $row["id"];  
  221.     $new_yt = $row["youtube_id"];
  222.     $new_title = $row["title"];
  223.     $small_title = substr($new_title, 0, 50);  
  224.     $new_description = $row["description"];
  225.     $new_seo_url = $site_url.'video/'.$new_id.'/'.seo_clean_url($new_title) .'/';
  226.     $new_duration = $row["duration"];
  227.    
  228.   $string .='<li>
  229.                             <div class="vibekeep">
  230.                                 <a href="'.$new_seo_url.'"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" width="147" height="99" alt="'.$small_title.'" />
  231.                                     <span class="time">'.sec2hms($new_duration).'</span>
  232.                                </a>
  233.                                 <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>
  234.                            </div>
  235.                             <div class="clear"></div>
  236.  
  237.                             <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="" />
  238. '.$new_description.'</span></a></p>
  239.                            
  240.                        </li>';
  241.                         }
  242.  $Cache->Save($string, "likedvideosindex");
  243. }
  244. echo $string;
  245. ?>
  246.  </ul>
  247.  
  248.  
  249.  
  250.                 </div> 
  251.  
  252.  
  253. <h2><?php echo __("Günün popüler videoları");?></h2>
  254. <div class="vibe_contain">
  255.  <ul>
  256. <?php
  257. if(!$string = $Cache->Load("viewedvideosindex")){
  258.                      $string = '';           
  259.                      $sql = dbquery("SELECT * FROM videos WHERE views > 1 ORDER BY views DESC LIMIT 0,16");
  260.    
  261.                      while($row = mysql_fetch_array($sql)){
  262.     $new_id = $row["id"];  
  263.     $new_yt = $row["youtube_id"];
  264.     $new_title = $row["title"];
  265.     $small_title = substr($new_title, 0, 50);  
  266.     $new_description = $row["description"];
  267.     $new_seo_url = $site_url.'video/'.$new_id.'/'.seo_clean_url($new_title) .'/';
  268.     $new_duration = $row["duration"];
  269.    
  270.   $string .='<li>
  271.                             <div class="vibekeep">
  272.                                 <a href="'.$new_seo_url.'"><img src="http://i4.ytimg.com/vi/'.$new_yt.'/default.jpg" width="147" height="99" alt="'.$small_title.'" />
  273.                                     <span class="time">'.sec2hms($new_duration).'</span>
  274.                                </a>
  275.                                 <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>
  276.                            </div>
  277.                             <div class="clear"></div>
  278.  
  279.                             <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.'" />
  280. '.$new_description.'</span></a></p>
  281.                            
  282.                        </li>';
  283.                         }
  284.  $Cache->Save($string, "viewedvideosindex");
  285. }
  286. echo $string;
  287. ?>
  288.  </ul>
  289.  
  290.  
  291.  
  292.                 </div>                 
  293.   </div>
  294.  
  295. </div>
  296.  
  297. <?php      
  298. include_once("sidebar.php");
  299. include_once("tpl/php/footer.php");
  300. ?>
Advertisement
Add Comment
Please, Sign In to add comment