0){include("header_login.php");}else{include("header.php");} switch($action){ default : echo ""; echo ""; echo "

"; /** if($category_code>0){ if($member>0){ echo $db->table_head_b("video_index.php?category_code=$category_code"); echo $db->table_head_e(); echo $db->table_begin("750"); echo $db->table_hidden("action","add"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("category_code",$category_code); echo $db->table_input("

Galeri Adı :

","video_name",83); echo $db->table_textarea("

Galeri İçeriği :

","video_content",85,15); echo $db->table_submit("Kaydet"); echo $db->table_end(); } } if($category_code>0){ if($member>0){ echo $db->table_head_b("video_index.php?category_code=$category_code&video_code=$video_code&action=cadd"); echo $db->table_head_e(); echo $db->table_begin("600"); echo $db->table_hidden("action","cadd"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("video_code",$video_code); echo $db->table_hidden("category_code",$category_code); echo $db->table_input("

Başlık :

","comment_name",83); echo $db->table_textarea("

Yorum :

","comment_content",85,15); echo $db->table_submit("Kaydet"); echo $db->table_end(); } } if($video_code>0){ if($member>0){ echo $db->table_head_b("video_index.php?category_code=$category_code&video_code=$video_code&action=padd"); echo $db->table_head_e(); echo $db->table_begin("550"); echo $db->table_hidden("action","padd"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("video_code",$video_code); echo $db->table_hidden("category_code",$category_code); $id=$value[id]; echo $db->table_input("

Video Tanımı :

","video_name[$id]",40); echo $db->table_file("

Dosya Seç :

","file_src"); echo $db->table_submit("Kaydet"); echo $db->table_end(); } } if($video_code>0){ if($member>0){ echo $db->table_head_b("video_index.php?category_code=$category_code&video_code=$video_code&action=pcadd"); echo $db->table_head_e(); echo $db->table_begin("600"); echo $db->table_hidden("action","pcadd"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("vid_code",$vid_code); echo $db->table_hidden("video_code",$video_code); echo $db->table_hidden("category_code",$category_code); echo $db->table_input("

Başlık :

","comment_name",83); echo $db->table_textarea("

Yorum :

","comment_content",85,15); echo $db->table_submit("Kaydet"); echo $db->table_end(); } } **/ if($video_code>0){ echo ""; $news=$db->sqllistrow("select * from video_info where category_code='$category_code' and unique_code='$video_code' and active='1'"); foreach($news as $key=>$deger){ $baslik=$deger[video_name]; $metin=$deger[video_content]; echo ""; $vidt=$db->sqllistrow("select * from video_vid where video_code='$deger[unique_code]' and active='1' order by id asc"); $i=0; foreach($vidt as $key=>$value){ $baslik=$value[vid_name]; if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==3){ echo ""; $i=0; } } echo ""; } /** $mem=$db->sqllistrow("select * from member_info where id='$deger[member]'"); foreach($mem as $key=>$valmem){ if($member==$deger[member]){ // **/ if($member>0){ echo ""; } //} //} echo "
"; $tarih=$db->sql("select from_unixtime($deger[unique_code]) from video_info where unique_code='$deger[unique_code]'"); echo "

$baslik

"; echo "
"; $pcnt=$db->sqllistrow("select * from video_pic where vid_code='$value[unique_code]' and active='1'"); foreach($pcnt as $key=>$vals){ echo "
$baslik
"; } echo "
"; echo "$metin"; echo "
Galeriye Video Ekleyin
"; /////////////////// İÇERİK LİSTESİ ////////////////////////////// $main=$db->sqllistrow("select * from video_main where unique_code='$category_code'"); foreach($main as $key=>$degers){ $cat = StrToBuyuk($degers[main_name]); echo ""; echo ""; echo "

"; } echo ""; $liste=$db->sqllistrow("select * from video_info where category_code='$category_code' and active='1' order by id desc"); $i=0; foreach($liste as $key=>$deger){ if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==2){ echo ""; $i=0; } } echo ""; echo "
"; $baslik = StrToBuyuk($deger[video_name]); $tarih=$db->sql("select from_unixtime($deger[unique_code]) from video_info where unique_code='$deger[unique_code]'"); echo ""; echo ""; echo "
$baslik "; if($member>0){ echo " "; } echo "
"; echo "
"; /////////////////// Kategoriler ////////////////////////////// echo ""; echo ""; echo "

"; echo ""; $cat=$db->sqllistrow("select * from video_main where active='1'"); $i=0; foreach($cat as $key=>$value){ $cats=StrToBuyuk($value[main_name]); if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==2){ echo ""; $i=0; } } echo "
"; $news=$db->sqllistrow("select * from video_info where category_code='$value[unique_code]' and active='1'"); foreach($news as $key=>$deger){ $cms = mysql_query("select * from video_info where category_code='$value[unique_code]' and active='1'"); $cnum = mysql_num_rows($cms); $cat=$db->sql("select main_name from video_main where unique_code='$deger[category_code]'"); $baslik = StrToBuyuk($deger[video_name]); echo ""; echo ""; echo "
$cats ($cnum) "; if($member>0){ echo " "; } echo "
"; } echo "
"; } else { if($category_code>0){ $main=$db->sqllistrow("select * from video_main where unique_code='$category_code'"); foreach($main as $key=>$degers){ $cat = StrToBuyuk($degers[main_name]); echo ""; echo ""; echo "

"; } } echo ""; if($category_code>0){ $content=$db->sqllistrow("select * from video_info where category_code='$category_code' and active='1'"); }else{ $content=$db->sqllistrow("select * from video_info where active='1'"); } $i=0; foreach($content as $key=>$deger){ $cms = mysql_query("select * from video_vid where video_code='$deger[unique_code]' and active='1'"); $cnum = mysql_num_rows($cms); $cat=$db->sql("select main_name from video_main where unique_code='$deger[category_code]'"); $baslik=$deger[video_name]; if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==2){ echo ""; $i=0; } } echo "
"; $video=$db->sqllistrow("select * from video_vid where video_code='$deger[unique_code]' and active='1' order by id desc limit 0,1"); foreach($video as $key=>$value){ $pname=$value[vid_name]; $pcnt=$db->sqllistrow("select * from video_pic where vid_code='$value[unique_code]' and active='1'"); foreach($pcnt as $key=>$vals){ echo ""; } } echo "
$baslik ($cnum)"; if($member>0){ echo " "; } echo "
$cat
"; echo "
"; /////////////////// İÇERİK SON ////////////////////////////// /////////////////// İÇERİK LİSTE ////////////////////////////// if($video_code>0){ $main=$db->sqllistrow("select * from video_main where unique_code='$category_code'"); foreach($main as $key=>$degers){ $cat=$degers[main_name]; echo ""; echo ""; echo "

"; } echo ""; echo ""; $liste=$db->sqllistrow("select * from video_info where category_code='$category_code' and active='1' order by id asc"); foreach($liste as $key=>$deger){ $cmsg = mysql_query("select * from video_vid where video_code='$deger[unique_code]' and active='1'"); $cnums = mysql_num_rows($cmsg); $baslik=$deger[video_name]; $tarih=$db->sql("select from_unixtime($deger[unique_code]) from video_info where unique_code='$deger[unique_code]'"); echo ""; } echo ""; echo "
$baslik ($cnums)
"; } /////////////////// KATEGORİ ////////////////////////////// echo ""; echo ""; echo "

"; echo ""; $cat=$db->sqllistrow("select * from video_main where active='1' order by id asc"); $i=0; foreach($cat as $key=>$value){ if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==2){ echo ""; $i=0; } } echo "
"; $cats = StrToBuyuk($value[main_name]); $news=$db->sqllistrow("select * from video_info where category_code='$value[unique_code]' and active='1' order by id desc limit 0,1"); foreach($news as $key=>$deger){ $cms = mysql_query("select * from video_info where category_code='$value[unique_code]' and active='1'"); $catnum = mysql_num_rows($cms); echo ""; echo ""; echo "
$cats ($catnum) "; if($member>0){ echo " "; } echo "
"; } echo "
"; } break; case form : if($member>0){ echo ""; echo ""; echo "
VİDEO GALERİLER / GALERİ EKLEME FORMU

"; ?>
 Video Galeri Bilgileri  table_hidden("action","add"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("id",$id); echo $db->table_hidden("category_code",$category_code); ?>
Galeri Adı * :
Galeri Detay * :
"; echo "
KATEGORİLER...

"; echo ""; echo ""; $cat=$db->sqllistrow("select * from video_main where active='1' order by id asc"); $i=0; foreach($cat as $key=>$value){ if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==2){ echo ""; $i=0; } } echo "
"; $cats = StrToBuyuk($value[main_name]); $news=$db->sqllistrow("select * from video_info where category_code='$value[unique_code]' and active='1' order by id desc limit 0,1"); foreach($news as $key=>$deger){ $cms = mysql_query("select * from video_info where category_code='$value[unique_code]' and active='1'"); $catnum = mysql_num_rows($cms); echo ""; echo ""; echo "
$cats ($catnum) "; if($member>0){ echo " "; } echo "
"; } echo "
"; } break; case add : if($member>0){ $unique_code=date("U"); $check=$db->sql("select * from video_info where id='$id'"); if($check==0){ $db->run("insert into video_info(id,unique_code,category_code,video_name,video_content,member) values ('$id','$unique_code','$category_code','$video_name','$video_content','$member')"); echo "

Video Galeri Ekleme İşlemi Tamamlandı

"; } echo ""; echo ""; } break; case cform : if($member>0){ echo $db->table_head_b("video_index.php?category_code=$category_code&video_code=$video_code"); echo $db->table_head_e(); echo $db->table_begin("600"); echo $db->table_hidden("action","cadd"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("video_code",$video_code); echo $db->table_hidden("category_code",$category_code); echo $db->table_input("

Başlık :

","comment_name",83); echo $db->table_textarea("

Mesajınız :

","comment_content",85,15); echo $db->table_submit("Kaydet"); echo $db->table_end(); } break; case cadd : if($member>0){ $unique_code=date("U"); $check=$db->sql("select * from video_comment where unique_code='$video_code'"); if($check==0){ $db->run("insert into video_comment(id,unique_code,comment_name,comment_content,member,video_code,category_code) values('$id','$unique_code','$comment_name','$comment_content','$member','$video_code','$category_code')"); echo "

Yorum Ekleme İşlemi Tamamlandı

"; } echo ""; $db->location('javascript:history.go(-2)'); } break; case vform : if($member>0){ echo ""; echo ""; echo "
VİDEO GALERİLER / VİDEO EKLEME FORMU

"; ?>
 Video Bilgileri 
table_hidden("action","vadd"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("video_code",$video_code); echo $db->table_hidden("category_code",$category_code); $id=$value[id]; echo $db->table_file("

Video Dosyası Seç :

","file_src"); echo $db->table_file("

Video Görseli Seç :

","pics_src"); echo $db->table_input("

Video Adı :

","vid_name[$id]",40); echo $db->table_submit("Video Kaydet"); /**
Video Adı * :
Video Dosyası Seç * :
Video Görseli Seç * :
**/ ?>

 Uyarı 
  • Video ekleme formunda tüm seçenekleri doldurmak zorundasınız.
  • Görselsiz videolar eklemeyiniz.
  • Seçenekleri tam eklemezseniz işleminiz gerçekleşmeyecektir.

"; echo "
EKLEDİĞİNİZ VİDEOLAR

"; echo ""; echo ""; $news=$db->sqllistrow("select * from video_info where category_code='$category_code' and unique_code='$video_code' and active='1'"); foreach($news as $key=>$deger){ $baslik=$deger[video_name]; $metin=$deger[video_content]; echo ""; echo ""; $vidt=$db->sqllistrow("select * from video_vid where member='$member' order by id desc"); $i=0; foreach($vidt as $key=>$value){ $baslik=$value[vid_name]; if($i==0){ echo ""; } if($value[active]==1){ $act=""; }else { $act=""; } echo ""; $i=$i+1; if($i==3){ echo ""; $i=0; } } } echo ""; echo "
"; $tarih=$db->sql("select from_unixtime($deger[unique_code]) from video_info where unique_code='$deger[unique_code]'"); echo "

$baslik

"; echo "
"; echo "$metin"; echo "
"; $pcnt=$db->sqllistrow("select * from video_pic where vid_code='$value[unique_code]'"); foreach($pcnt as $key=>$vals){ echo "
$act $baslik
"; } echo "
Galeriye Video Ekleyin
"; /////////////////////////////////////////////////////////// /////////////////// KATEGORİ ////////////////////////////// echo ""; echo ""; echo "

"; echo ""; $cat=$db->sqllistrow("select * from video_main where active='1' order by id asc"); $i=0; foreach($cat as $key=>$value){ if($i==0){ echo ""; } echo ""; $i=$i+1; if($i==2){ echo ""; $i=0; } } echo "
"; $cats = StrToBuyuk($value[main_name]); $news=$db->sqllistrow("select * from video_info where category_code='$value[unique_code]' and active='1' order by id desc limit 0,1"); foreach($news as $key=>$deger){ $cms = mysql_query("select * from video_info where category_code='$value[unique_code]' and active='1'"); $catnum = mysql_num_rows($cms); echo ""; echo ""; echo "
$cats ($catnum) "; if($member>0){ echo " "; } echo "
"; } echo "
"; } break ; case vadd : $unique_code=date("U"); $dosya_dizin="video/"; $ext = substr(strstr($file_src_name, '.'),1,10); $src=""."".date("U").".".$ext; if (@isset ($file_src) and $file_src!='' ) { @copy ( $file_src, "$dosya_dizin/$src" ); foreach($vid_name as $key=>$value){ $db->run("insert into video_vid(unique_code,video_code,vid_name,vid_src,category_code,member) values('$unique_code','$video_code','$value','$src','$category_code','$member')"); ///// foto $ext = substr(strstr($pics_src_name, '.'),1,10); $psrc=""."".date("U").".".$ext; if (@isset ($pics_src) and $pics_src!='' ) { @copy ( $pics_src, "$dosya_dizin/$psrc" ); $db->run("insert into video_pic(unique_code,vid_code,pic_name,pic_src,video_code,category_code,member) values('$unique_code','$unique_code','$value','$psrc','$video_code','$category_code','$member')"); } //// foto son } echo ""; }else{ echo ""; } echo ""; break; case vcform : if($member>0){ echo $db->table_head_b("video_index.php?category_code=$category_code&video_code=$video_code"); echo $db->table_head_e(); echo $db->table_begin("600"); echo $db->table_hidden("action","vcadd"); echo $db->table_hidden("member","$sesid"); echo $db->table_hidden("vid_code",$vid_code); echo $db->table_hidden("video_code",$video_code); echo $db->table_hidden("category_code",$category_code); echo $db->table_input("

Başlık :

","comment_name",83); echo $db->table_textarea("

Mesajınız :

","comment_content",85,15); echo $db->table_submit("Kaydet"); echo $db->table_end(); } break; case vcadd : if($member>0){ $unique_code=date("U"); $check=$db->sql("select * from video_comments where unique_code='$video_code'"); if($check==0){ $db->run("insert into video_comments(id,unique_code,comment_name,comment_content,member,video_code,vid_code,category_code) values('$id','$unique_code','$comment_name','$comment_content','$member','$video_code','$vid_code','$category_code')"); echo "

Video Yorum Ekleme İşlemi Tamamlandı

"; } echo ""; $db->location('javascript:history.go(-2)'); } break; } if($member>0){include("footer_login.php");}else{include("footer.php");} ?>