query("SELECT id, title, text, sender, hits, voter, vote, cid, type FROM ".TABLE_PREFIX."".$io_db['text']." WHERE id='$id'"); if ($db->num_rows($result) == 0) { header("Location: $module_url"); } $db->query("UPDATE ".TABLE_PREFIX."".$io_db['text']." SET hits=hits+1 WHERE id=$id"); $readarray = $db->fetch_array($result); $id = $readarray['id'];$title = $readarray['title'];$text = $readarray['text'];$sender = $readarray['sender'];$hits = $readarray['hits'];$voter = $readarray['voter'];$vote = $readarray['vote'];$cid = $readarray['cid'];$videotype = $readarray['type']; if($videotype == "youtube"){ $text2 = youtubecode($text); $player_kodu = type_youtube($text2); }elseif($videotype == "google"){ $text2 = googlevideoid($text); $player_kodu = type_google($text2); }elseif($videotype == "metacafe"){ $text2 = metacafeid($text); $player_kodu = type_metacafe($text2); }elseif($videotype == "izlesene"){ $text2 = izleseneid($text); $player_kodu = type_izlesene($text2); }elseif($videotype == "dailymotion"){ $text2 = dailymotionid($text); $player_kodu = type_dailymotion($text2); }elseif($videotype == "pikniktube"){ $text2 = pikniktubeid($text); $player_kodu = type_pikniktube($text2); }elseif($videotype == "liveleak"){ $text2 = liveleakid($text); $player_kodu = type_liveleak($text2); }elseif($videotype == "pornhub"){ $text2 = pornhub($text); $player_kodu = type_pornhub($text2); }elseif($videotype == "vidivodo"){ $text2 = vidivodoid($text); $player_kodu = type_vidivodo($text2); }else{ $text2 = youtubecode($text); $player_kodu = "Boyle bir video tipi yok"; } $hm_index = "
\n "; if ($canmodvideo == "yes") { $hm_index .= ""; } if (($sender == $sitename) || ($sender == $anonymous)) { $senderson = $sender; } else { $senderson = "$sender"; } $hm_index .= ""; $catquery = $db->query("Select cname FROM ".TABLE_PREFIX."".$io_db['cat']." WHERE cid='$cid' "); $catarrayy = $db->fetch_array($catquery); $hm_index .= ""; $rate = display_vote($voter, $vote); $hm_index .= "\n \n"; for($i = 1;$i <= 10;$i++) { $hm_index .= "\n"; } $hm_index .= "\n \n
"._ADMIN."
   [ "._EDIT." | "._DELETE." ]
"._IO_SENDER." :
   $senderson
"._IO_READS." :
   $hits
"._CATEGORY." :
   ".$catarrayy['cname']."
"._IO_RATE." :
   $rate
"._IO_GIVE_RATE."
  $i "._POINT."
"; //$text = row2upper(str2lower($text)); //$text = nl2br($text); //$text2 = youtubecode($text); $date = tarih_format($date); $hm_index .= "
$title - $text2
".$player_kodu."
"; $title = urlencode($title); $hm_index .= "




[ "._REPLYMAIN." | \""._IO_SEND_YF."\" "._IO_SEND_YF." ]

"; s_comments($id, $title); } function s_comments($id, $title) { global $db, $parser, $admin, $prefix, $module_name, $module_url, $bgcolor2, $bgcolor4, $anonymous, $io_db, $admin_url, $hm_index; $result = $db->query("select id, uname, date, comments, score FROM ".TABLE_PREFIX."".$io_db['comment']." where sid='$id' AND active='1'ORDER BY date DESC"); $nor = $db->num_rows($result); $i = $nor; if ($nor != 0) { $hm_index .= ""; while($read3array = $db->fetch_array($result)) { $cid=$read3array['id']; $uname=$read3array['uname']; $date=$read3array['date']; $comments=$read3array['comments']; $score=$read3array['score']; $title = urldecode($title); $hm_index .= ""; $i = $i - 1; } $hm_index .= "
"._READ_COMMENT."
  $i   "; if ($uname == $anonymous) { $hm_index .= ""._IO_SENDER." : $uname      "._IO_ADD_DATE." : $date"; } else { $hm_index .= ""._IO_SENDER." : $uname     "._READ_DATE." : $date "; } $hm_index .= "     "._IO_RATE." : "; display_score($score); if ($canmodvideo = "yes") { $hm_index .= "     "._ADMIN." [ "._DELETE." ]
"; } else { $hm_index .= "
"; } $parser_options = array( "allow_html" => $forum['allowhtml'], "allow_mycode" => $forum['allowmycode'], "allow_smilies" => $forum['allowsmilies'], "allow_imgcode" => $forum['allowimgcode'] ); $comments = $parser->parse_message($comments,$parser_options); $hm_index .= $comments; $hm_index .= "

"; } } function text_vote($sid, $vote) { global $db, $prefix, $module_name, $module_url, $cookie_name, $io_db, $hm_index; if (isset($sid) && isset($vote) && is_numeric($sid) && is_numeric($vote)) { if (isset($_COOKIE[$cookie_name])) { $decoded = base64_decode($_COOKIE[$cookie_name]); $rated = explode(":", $decoded); if (is_array($rated)) { if (in_array($sid, $rated)) $no = 1; } else { if ($sid == $rated) $no = 1; } if ($no == 1) { $hm_index = "
"._IO_NO_TWO_TIMES."

"._IO_DIRECTING."

"; $ikikez = 1; } } if($ikikez != 1){ $result = $db->query("UPDATE ".TABLE_PREFIX."".$io_db['text']." SET voter=voter+1, vote=vote+$vote WHERE id=$sid"); } if ($result && $ikikez != 1) { if (isset($_COOKIE[$cookie_name])) { if (is_array($rated)) { $info = implode(":", $rated); $info = $info . ":" . $sid; } else { $info = $rated . ":" . $sid; } $info = base64_encode($info); } else { $info = base64_encode($sid); } setcookie($cookie_name,$info,time()*60*60*34*30); $hm_index = "
"._IO_THANKS_FOR_VOTE."

"._IO_DIRECTING."

"; } } else { header("Location: $module_url"); die(); } } function Statistics() { global $db, $prefix, $module_name, $module_url, $top_page_items, $io_db, $isset_theme, $less_vote, $hm_index; $i = $top_page_items; $hm_index = "

"; $result1 = $db->query("SELECT id, title, hits FROM ".TABLE_PREFIX."".$io_db['text']." WHERE hits<>0 ORDER BY hits DESC LIMIT $i"); if ($db->num_rows($result1) != 0) { $hm_index .= ""._IO_MOST_READ." "._IO_TEXT."
"; $a = 1; $hm_index .= ""; while( $read4array = $db->fetch_array($result1)) { $id=$read4array['id'];$title=$read4array['title'];$hits=$read4array['hits']; $hm_index .= ""; $a++; } $hm_index .= "
· $a: $title($hits "._TIMESWATCHED.")


"; } $result2 = $db->query("SELECT id, title, date FROM ".TABLE_PREFIX."".$io_db['text']." ORDER BY id DESC LIMIT $i"); if ($db->num_rows($result2) != 0) { $hm_index .= ""._IO_RECENTLY_ADDED." "._IO_TEXT."
"; $a = 1; $hm_index .= ""; while($read6array = $db->fetch_array($result2)) { $id=$read6array['id'];$title=$read6array['title'];$date=$read6array['date']; $date = tarih_format($date); $hm_index .= ""; $a++; } $hm_index .= "
· $a: $title($date)


"; } $result3 = $db->query("SELECT id, title, voter, vote FROM ".TABLE_PREFIX."".$io_db['text']." WHERE voter > $less_vote ORDER BY vote/voter DESC LIMIT $i"); if ($db->num_rows($result3) != 0) { $hm_index .= ""._IO_MOST_RATED." "._IO_TEXT." - ("._IO_IN_AVG.")
"; $a = 1; $hm_index .= ""; while($read7array = $db->fetch_array($result3)) { $id=$read7array['id'];$title=$read7array['title'];$vote=$read7array['vote'];$voter=$read7array['voter']; $puan = substr($vote / $voter,0,3); $hm_index .= ""; $a++; } $hm_index .= "
· $a: $title($puan "._POINT.")


"; } $result31 = $db->query("SELECT id, title, voter, vote FROM ".TABLE_PREFIX."".$io_db['text']." WHERE voter > $less_vote ORDER BY vote DESC LIMIT $i"); if ($db->num_rows($result31) != 0) { $hm_index .= ""._IO_MOST_RATED." "._IO_TEXT." - ("._IO_IN_TOTAL.")
"; $a = 1; $hm_index .= ""; while($read8array = $db->fetch_array($result31)) { $id=$read8array['id'];$title=$read8array['title'];$vote=$read8array['vote'];$voter=$read8array['voter']; $hm_index .= ""; $a++; } $hm_index .= "
· $a: $title($vote "._POINT." - $voter Oy)


"; } $result4 = $db->query("SELECT id, title, voter FROM ".TABLE_PREFIX."".$io_db['text']." WHERE voter<>0 ORDER BY voter DESC LIMIT $i"); if ($db->num_rows($result4) != 0) { $hm_index .= ""._IO_MOST_VOTED." "._IO_TEXT."
"; $a = 1; $hm_index .= ""; while($read9array = $db->fetch_array($result4)) { $id=$read9array['id'];$title=$read9array['title'];$voter=$read9array['voter']; $hm_index .= ""; $a++; } $hm_index .= "
· $a: $title($voter "._VOTE.")

"; } } function download($text){ global $db; $db->escape_string($text); $text2=youtubecode($text); header("Location:http://rd.cache.l.googlevideo.com/get_video?video_id=$text2"); } function type_google($text2) { $player_kodu= " "; return $player_kodu; } function type_youtube($text2) { $player_kodu= ""; return $player_kodu; } function type_metacafe($text2) { $player_kodu="
"; return $player_kodu; } function type_dailymotion($text2) { $player_kodu=""; return $player_kodu; } function type_izlesene($text2) { $player_kodu=""; return $player_kodu; } function type_pikniktube($text2) { $player_kodu=""; return $player_kodu; } function type_liveleak($text2) { $player_kodu=""; return $player_kodu; } function type_pornhub($text2) { $player_kodu=""; return $player_kodu; } function type_vidivodo($text2) { $player_kodu=""; return $player_kodu; } function type_redtube($text2) { $player_kodu=""; return $player_kodu; } function type_hardsextube($text2) { $player_kodu=" < param name=\"movie\" value=\"http://www.hardsextube.com/embed/326914/\">"; return $player_kodu; } switch ($sop) { case Statistics: Statistics(); break; case text_vote: text_vote($sid, $vote); break; case download; download($text); break; default: showcontent($id); break; } ?>