".$key.",";} $content = "tags :".$taglinc."

"; return $content; } function videos($now){ $timp = $now - 100; $query_for_result = mysql_query("SELECT * from items WHERE hits > $timp LIMIT 15"); while ($row = mysql_fetch_array($query_for_result)) { $contenttitle = stripslashes($row['title']); $contenttitle = strtolower($contenttitle); $id = $row['id']; $contentdescription = $row['title']; $contentimage = $row['image']; $contentimage = "http://img100.xvideos.com/videos/thumbs/".$contentimage.".4.jpg"; $title = make_friendly($contenttitle); $itemlink = "/hosted/".$id."/".$title; if (strlen($contenttitle)>22) $contenttitle = substr($contenttitle,0,22); $itemlinc = "
  • \"$contentdescription\"
    $contenttitle
  • "; $content = $content."".$itemlinc.""; } return $content; } function highlight($string,$term){ $term = preg_replace('/\s+/', ' ', trim($term)); $words = explode(' ', $term); $highlighted = array(); foreach ( $words as $word ){ $highlighted[] = "".$word.""; } return str_replace($words, $highlighted, $string); } function new_videos($now){ $time = $now - 30000000; $sql_query = "SELECT * from keez WHERE date < $time"; $results = mysql_query("$sql_query LIMIT 8"); while ($row = mysql_fetch_array($results)) { $itemtitle = $row['title']; $itemtitle = ucfirst(strtolower($itemtitle)); $id = $row['id']; $code = $row['code']; $image = $row['image']; $image = "http://cdn2.image.keezmovies.phncdn.com/".$image."/".$code."/320x240/14.jpg"; $title = make_friendly_no_ext($itemtitle); $url = "/".$title."-".$id.".html"; $itemlink = "
    \"$itemtitle\"
    $itemtitle
    "; $newcontent = $newcontent."".$itemlink.""; } return $newcontent; } function cautari($numar){ $query_for_result = mysql_query("SELECT * FROM searches order by id desc LIMIT $numar "); while ($row = mysql_fetch_array($query_for_result)) { $tag = $row['title']; $tag = str_replace(array('-'), ' ', $tag)." "; $title = make_friendly_no_ext($tag); $itemlink = "/".$title.".htm"; $output = "".$tag.", "; $content = $content.$output; } return $content; } ?>