<!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" dir="ltr" lang="tr">
<?php include "./db.php"; ?>
 <?php 
$id = guvenlik(@$_GET['id']);
if(empty($id) || !is_numeric($id)){$id=1;}
$baglan  = mysql_query("Select * from videolar where id = $id");
$goster = mysql_fetch_array($baglan);
$kat_id = $goster['video_kat'];
mysql_query("UPDATE videolar Set video_izlenme = `video_izlenme`+1 where id = '$id'"); 
	?>
<head>
<title><?=$goster['video_adi'];?></title>
<meta name="description" content="<?=mb_strtolower($goster['video_aciklama'],"UTF-8");?>" />
<meta name="keywords" content="<?=$goster['video_etiket'];?>" />
<meta name="author" content="<?=$siteadi;?>" />
<link rel="canonical" href="<?=$siteadresi;?><?=seo($goster['video_adi']); ?><?="-"?><?=$id?>.html"/>
<link rel="image_src" href="<?=$goster['video_resim'];?>">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<!-- // Stylesheets // -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<?php require_once "inc/header.php";?>

  

     <?php 
	
error_reporting(0);
$baglan  = mysql_query("Select * from kategoriler where id = $kat_id");
$goster = mysql_fetch_array($baglan);
	?>
    <!--Content Sec -->
        <div id="content_sec">
        	<div class="crumb">
            	<ul>
                	<li class="here_text txtcufon">Buradasınız:</li>
                	<li><a href="index.html">Ana Sayfa</a></li>
                    <li><a href="kategori-<?=seo($goster['kat_adi']); ?>-<?=$goster['id'];?>.html"><?=$goster['kat_adi'];?></a></li>
                     <?php 
$baglan  = mysql_query("Select * from videolar where id = $id");
$goster = mysql_fetch_array($baglan);
	?>
                    <li><a href="#"><?=$goster['video_adi'];?></a></li>
                </ul>
            </div>
            
            <!--Main Section-->
            <div class="col1">
            	<div class="vediocontainer">
                	<h2 class="pd11"><?=$goster['video_adi'];?></h2>
                		<div class="vedioactive">

	<!-- Player başlar -->
	
<object classid='clsid:9898198-73927-2827930' width='651' height='398' id='gncz' name='gncz'>
   <param name='movie' value='oynaticilar/player2.swf'>
   <param name='allowfullscreen' value='true'>
   <param name='allowscriptaccess' value='always'>
   <param name='flashvars' value='file=<?=$goster['video_embed'];?>&skin=oynaticilar/newtube.zip&autostart=true'>
   <embed id='gncz'
          name='player1'
          src='oynaticilar/player2.swf'
          width='651'
          height='398'
          allowscriptaccess='always'
          allowfullscreen='true'
          flashvars='file=<?=$goster['video_embed'];?>&skin=oynaticilar/newtube.zip&autostart=true'
   />
</object>

</div>

	<!-- Player biter -->
	<!--video detayları-->
    
    
	 <div class="sharevedio">
     <div class="sv_topsec">
                            
                        		
                                <ul class="idTabs">
                               
                               		<li> <div class="sharetab"><a href="#etiket">Açıklama</a></div></li>
                               		<li><div class="embed"><a href="#embed">Paylaş</a></div></li> 
                                 	<li><div class="add_to"> <a href="#paylasim">Sosyal</a></div> </li></ul></ul>
                              
                                         <!-- AddThis Button BEGIN -->
<div align="right" class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<b>İzlenme:<?=$goster['video_izlenme']?></b>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4da891db6a7efeb2"></script>
<!-- AddThis Button END -->
                                    
  <div class="clear"></div>
  </div>
  
  <div id="etiket" class="sv_contsec">
  <?php $icerik = $goster['video_adi']; ?>


                                   
                                    <?=$goster['video_aciklama'];?>

                                    </ul>
                      				</div>


                     <div id="embed" class="sv_contsec">
						<ul>
                        <li> 
                       	<input name="txt" type="text" id="txt"  onFocus="if(this.value)" value="<?=$siteadresi;?><?=seo($goster['video_adi']); ?><?="-"?><?=$id?>.html" /> <li style="color:#600; font-size:15px;">Arkadaşlarınla Paylaş</li>  
                                    </li>
									 </ul>
                      					</div>
                            
                               <div id="paylasim" class="sv_contsec">
                               <li class="share">Paylaş:</li>
                                   <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_blogger"></a>
<a class="addthis_button_preferred_6"></a>
<a class="addthis_button_pinterest"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4da891db6a7efeb2"></script>
<!-- AddThis Button END -->
                                </ul>
                      			</div>
                            
                      <div class="clear"></div>		
                 	 </div>
                     
                     <div class="cmntcontainer">     
                     <div style="font-size:11px;" class="sv_contsec">
						<ul>
                        
                         <li style="color:#600;" class="share">Etiketler:</li>
                         <li><a href="#"><?php
$etiket = kisalt($goster['video_etiket'],120);
$parcala = explode(' ', $etiket);
$say = count($parcala);
for($i=0; $i<$say; $i++){
    $etiketle = trim($parcala[$i]);
    echo '<a href="etiket-'.etiket(seo($etiketle)).'.html">'.$etiketle.'</a> ';
}
?> </a>
                     </li>  
                      
                           
                              
							  </ul>
                      		  </div> </div> 
                     
                  <!--Main Section-->
                        <div class="clear"></div>
                        <div class="cmntcontainer">
                      
                <!--Yorum alanı--> 
                 <h2 class="pd11">Yorum Yaz</h2><br/>
                       
                           <form id="yorum_ekleme_formu" >
                           
                           	<div id="sonuc"></div>
                           
                        <div id="embed" class="sv_contsec">
						<ul>
                        <li> 
                           <input name="yorum_kadi" type="text" id="txt" onfocus="this.value = ''; this.onfocus = function () {}" value="Adınız..." /> 
                           
                            <input name='v_id' id="v_id" type='hidden' value='<?=guvenlik($id = @$_GET['id']);?>'/> 
                       <input name='yorum_tarih' id="yorum_tarih" type='hidden' value='<?=date("d.m.Y-H:i:s");?>'/>  
                           
                              </li>
							  </ul>
                      		  </div>
                      
                           <div class="comment">
							<textarea class="txtcomment" id="yorumlar" name="yorumlar"  onkeyup="kontrol()" onfocus="this.value = ''; this.onfocus = function () {}" cols="250" rows="0">Mesajınız...</textarea>
                          
						</div>
                        
                        
						
						<div class="commentaction">	
                     	<span class="left" >Kalan Karakter Sayısı:&nbsp;</span><span id="sayac" style="color:#532424;"></span>
                           
							<ul>
								<li> <input type="reset" class="post" name="Sıfırla" id="yolla" value="Sıfırla" /></li>
								<li><input name="yolla" id="yolla" type="button" onClick="gonder()" value="Gönder"></li>
							</ul>
						</div>
                        </form>
                     


       <?php 
	   //toplam kayıt sayısını alma
	  
$SQL = "SELECT COUNT(*) as Toplam FROM yorumlar where v_id = $id";
$islem = mysql_query($SQL);
$ToplamKayit = @mysql_fetch_array($islem);
$count = $ToplamKayit['Toplam'];
?>
    
    
						<div class="commentsec">
                         <li><div align="right">Toplam <?=$count;?> yorum bulunmaktadır.</div></li>
    
         <?
if ($count == 0) { 
?>
						
						   <h2 class="pd11">Yorumlar</h2><br/>
						<div class="replyfrist">	
							<div class="reply1_cmnt">
								
                                <p>
									Hiç Yorum Bulunmamaktadır.
								</p>
                                <div class="clear"></div>
                                <ul class="cmntinfo">
                                
                                    <li>İlk Yorumu Siz Yapın...</li>
                                  
                                </ul>
						</div>
                        </div>
                        
                        <? } else
						
						 {
							$baglan  = 
							mysql_query
							("Select * from yorumlar where v_id = $id LIMIT 5");
							while ($goster = mysql_fetch_array($baglan)) {
							
							?>
                            
                            
                            <div id="yorumlar">
                        	<div class="replyfrist">	
							<div class="reply1_cmnt">
								<h6><?=$goster['yorum_kadi'];?>:</h6>
                                <p>
									<?=$goster['yorumlar'];?>
								</p>
                                <div class="clear"></div>
                                <ul class="cmntinfo">
                                	<li><?=$goster['yorum_tarih'];?></li>
                                    
                                    
                         </ul>
						</div>
                        </div>
                        </div><? }}
						
						 ?>
                         
					
                   		
        		</div>
				<div class="clear"></div>
				</div>	
            	</div>
            	<div class="clear"></div>
            	</div>
            
            
            
            
            <!--Right Section-->
            <div class="col2">
          <h2 class="heading" style="margin-top:6px;" >Kategoriler</h2>
  
              	<div style="margin-top:13px;">	
  <?php 
$baglan  = mysql_query("Select * from kategoriler order by id asc");
while ($goster = @mysql_fetch_array($baglan)) {
	?>           
                
                
                <li class="kategori"><a href="kategori-<?=seo($goster['kat_adi']); ?>-<?=$goster['id'];?>.html"><?=$goster['kat_adi'];?></a></li>
<? } ?>

              		<div class="clear"></div></div>
			  <!--ADS -->
             	<h2>Sponsor Bağlantılar </h2>
              <div style="margin-top:10px;" class="ads">
              <?=$sagreklam?>
              </div>
              <!--Feature Vedio -->
              <div class="sideblock2">
              	<h2>Benzer Videolar</h2>
              	<ul>
                 <?php
//kelime bölme fonksiyonu				 
$deger = $icerik;
$dizi = explode(" ", $deger);
$k =  $dizi[0];
 //$dizi[1];

?> 
                 <?php 

$baglan  = mysql_query("Select * From videolar where video_adi like '%$k%'  or video_etiket like '%$k%' or video_aciklama like '%$k%'  order by rand() limit 7");
while ($goster = mysql_fetch_array($baglan)) {
	$id2 = $goster['id'];
	?>
                	
                    <li>
                    	<div class="thumb">
                           <a href="<?=seo($goster['video_adi']); ?><?="-"?><?=$id2?>.html">
                               	<img width="89" height="59" src="<?=$goster['video_resim']?>"  alt="" />
                   				   
                        		<span class="time"><?=$goster['video_sure']?></span>
                           	</a>
                         </div>
                    	 <div class="description">
                           	<p><a href="<?=seo($goster['video_adi']); ?><?="-"?><?=$id2?>.html"> <?=$goster['video_adi']?></a></p>
                           	<p class="viewcounts"><?=$goster['video_izlenme']?> Kere izlendi</p>
                           </div>
                    </li>
                    <? } ?>
                </ul>
             <div class="clear"></div>
             </div>
        </div>
        <div class="clear"></div>
	 </div> 
	<div class="clear"></div>
	</div>
<!-- bottom section-->



<?php

/*
$yorum_kadi = temizle(@$_POST['yorum_kadi']);
$yorumlar = temizle(@$_POST['yorumlar']);
$y_tarih = temizle(@$_POST['yorum_tarih']);
$v_id = temizle(@$_POST['v_id']);

if(!$yorum_kadi=="")

{
	
	baglan ();
	$db_yaz	= mysql_query("insert into yorumlar 

 		(yorumlar,yorum_kadi,yorum_tarih,v_id)
		 values
		('$yorumlar','$yorum_kadi','$y_tarih','$v_id')"
		
		)or die( mysql_error()); 

	echo "<script>";
				echo "alert('Yorumunuz Başarıyla Eklendi');";
				echo "window.location=''";
				echo "</script>"; };
				
				*/
?>

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




