function get_jsonconfig($config_name, $file) { $table = str_replace('site', '', $file); $file = CACHE_PATH . "config/{$file}" . CACHE_EXT; $data = Cache::BEGIN_CACHE($file); if (!$data) { $arr = MySql::dbselect('config_name,config_content', "{$table}", "config_name != ''"); for ($i = 0; $i < count($arr); $i++) { $_config_name = $arr[$i][0]; $_config_content = $arr[$i][1]; $data[$_config_name] = $_config_content; } $data = json_encode($data); Cache::END_CACHE($data, $file); } $html = json_decode($data); $rs = $html->{$config_name}; return $rs; }
public static function AddLog($type, $text) { if (!IS_LOGIN) { $arr = 'user'; } else { if ($_SESSION["RK_Support"]) { $arr = 'err'; } else { $userid = $_SESSION["RK_Userid"]; $type = intval($type); $content = RemoveHack($text); $user = MySql::dbselect("username", "user", "id = '{$userid}'"); $username = $user[0][0]; if ($type == '1') { $type = 'Báo lỗi phim'; } else { if ($type == '2') { $type = 'Báo lỗi video'; } else { if ($type == '3') { $type = 'Báo lỗi hệ thống'; } else { if ($type == '4') { $type = 'Yêu cầu chức năng'; } else { if ($type == '5') { $type = 'Lỗi Khác'; } } } } } $title = $type . " | Gửi từ {$username}"; MySql::dbinsert("log", "title,content", "'{$title}','{$content}'"); $_SESSION["RK_Support"] = 1; $arr = 'done'; } } return $arr; }
$page = explode('-', $geturl[3]); } $page = $page[1]; $num = config_site('list_limit'); $num = intval($num); $page = intval($page); if (!$page) { $page = 1; } $limit = ($page - 1) * $num; if ($limit < 0) { $limit = 0; } $arr = MySql::dbselect('tb_film.id,tb_film.title,tb_film.title_en,tb_film.thumb,tb_film.year,tb_film.big_image,tb_film_other.content,tb_film.quality,tb_film.year', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "{$sql} {$orderby} LIMIT {$limit},{$num}"); $bg_thumb = TEMPLATE_URL . 'images/grey.jpg'; $total = MySql::dbselect('tb_film.id', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "{$sql}"); $allpage_site = get_allpage(count($total), $num, $page, $url_page . 'page-'); ?> <div class="p-profile-cover"></div> <div class="bread-crumb"> <ul xmlns:v="http://rdf.data-vocabulary.org/#"> <li typeof="v:Breadcrumb"><a href="<?php echo SITE_URL; ?> " rel="v:url" property="v:title">Peliculas</a></li> <li typeof="v:Breadcrumb"><h2><a class="last" href="<?php echo $url_page; ?> " rel="v:url" property="v:title"><?php echo $title_page; ?>
public static function display($params) { $cururl = Url::curRequestURL(); # Actor de caché y el cine Film_Model::CacheActorSeatch(); # Restablecer Vistas Film_Model::ResetViewed(); # Get info url $geturl = explode('/', $cururl); $mode = $geturl[1]; // Film and cinema if (in_array($mode, array('phim', 'xem-phim'))) { $id = $geturl[2]; $id = explode('-', $id); $id = $id[0]; if ($mode == 'phim') { $arr = MySql::dbselect('tb_film.id,tb_film.title,tb_film.thumb,tb_film.year,tb_film.big_image,tb_film_other.content,tb_film.title_en,tb_film_other.keywords', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "id = '{$id}'"); //TITULO PRINCIPAL DE TODA LA WEB $site_title = 'Pelicula ' . $arr[0][1] . ' | ' . $arr[0][6] . ' full HD'; $site_description = str_replace('"', '', CutName(RemoveHtml(UnHtmlChars($arr[0][5])), 200)); $site_keywords = FixTags($arr[0][7]); $filmid = intval($arr[0][0]); $epwatch = MySql::dbselect('id', 'episode', "filmid = '{$filmid}' order by id asc limit 1"); $epwatch = $epwatch[0][0]; } else { if ($mode == 'xem-phim') { $epid = MySql::dbselect('id,name,filmid,url,subtitle', 'episode', "id = '{$id}'"); $filmid = intval($epid[0][2]); MySql::dbupdate('film', "viewed = viewed+100, viewed_day = viewed_day+1, viewed_week = viewed_week+1, viewed_month = viewed_month+1", "id = '{$filmid}'"); $arr = MySql::dbselect('tb_film.id,tb_film.title,tb_film.thumb,tb_film.year,tb_film.big_image,tb_film_other.content,tb_film.title_en,tb_film_other.keywords', 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "id = '{$filmid}'"); $site_title = 'Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ' - Pelicula ' . $arr[0][6]; $site_description = 'Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ' | ' . $arr[0][6] . ' Ep ' . $epid[0][1] . '. Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ' Calidad HD.'; $site_keywords = FixTags('Pelicula ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ', ' . $arr[0][1] . ' Tập ' . $epid[0][1] . ', ' . $arr[0][6] . ' Ep ' . $epid[0][1] . ', ' . $arr[0][7]); } } if (!$arr) { header('Location: ' . s404_URL); } $other_meta = '<meta property="og:image" content="' . $arr[0][2] . '">'; $other_meta2 = '<link href="' . SITE_URL . $cururl . '" rel="canonical">'; include View::TemplateView('film'); } else { if (in_array($mode, array('danh-sach', 'the-loai', 'quoc-gia', 'search', 'tag'))) { if ($mode == 'the-loai') { $id = $geturl[2]; $arr = MySql::dbselect('id,name', 'category', "name_seo = '{$id}'"); $id = $arr[0][0]; $catid = $id; $name = $arr[0][1]; $url_page = Url::get(0, $name, 'Thể loại'); $site_title = head_site($name, 'category_title'); $site_description = head_site($name, 'category_description'); $site_keywords = head_site($name, 'category_keywords'); $sql = "tb_film.category like '%,{$id},%'"; } else { if ($mode == 'quoc-gia') { $id = $geturl[2]; $arr = MySql::dbselect('id,name', 'country', "name_seo = '{$id}'"); $id = $arr[0][0]; $couid = $id; $name = $arr[0][1]; $url_page = Url::get(0, $name, 'Pais'); $site_title = head_site($name, 'country_title'); $site_description = head_site($name, 'country_description'); $site_keywords = head_site($name, 'country_keywords'); $sql = "tb_film.country = '{$id}'"; } else { if (in_array($mode, array('search', 'tag'))) { $id = str_replace('-', ' ', urldecode($geturl[2])); $name = $id; $url_page = Url::get(0, $name, 'Search'); $site_title = head_site($name, 'search_title'); $site_description = head_site($name, 'search_description'); $site_keywords = head_site($name, 'search_keywords'); $sql = "tb_film.title like '%{$id}%' OR tb_film.title_en like '%{$id}%' OR tb_film_other.searchs like '%{$id}%' OR tb_film_other.keywords like '%{$id}%' OR tb_film.actor like '%{$id}%' OR tb_film.director like '%{$id}%'"; } else { if ($mode == 'danh-sach') { $id = $geturl[2]; if ($id == 'phim-moi') { $name = 'Nuevas Películas'; $url_page = Url::get(0, $name, 'Danh sách'); $sql = "id != '0'"; $site_title = "Nuevas Películas y 2014, lista nueva géneros cinematográficos"; $site_description = "Lista de Cine Última actualización continua, consulte delicia y un número ilimitado de películas."; $site_keywords = "Nuevas películas , una nueva película o, seleccionada nuevas películas"; } else { if ($id == 'phim-de-cu') { $name = 'Peliculas Nominadas'; $url_page = Url::get(0, $name, 'Danh sách'); $sql = "decu = '1'"; $site_title = "Película con alta calidad"; $site_description = "Las películas nominadas para el más caliente o 2014, se seleccionaron y evaluaron la más alta calidad."; $site_keywords = "películas calientes, mejores películas, películas o 2014"; } else { if ($id == 'phim-le') { $filmlb = $id; $name = 'Movie'; $url_page = Url::get(0, $name, 'Danh sách'); $sql = "filmlb = '0'"; $site_title = "Película con alta calidad"; $site_description = "Lista de los géneros cinematográficos individuales o múltiples, la selección constantemente actualizada de nuevas películas y la más atractiva al por menor"; $site_keywords = "Películas o películas seleccionadas impares, películas la nueva película de venta"; } else { if ($id == 'phim-bo') { $filmlb = $id; $name = 'Drama'; $url_page = Url::get(0, $name, 'Danh sách'); $sql = "filmlb IN (1,2)"; $site_title = "Película con alta calidad"; $site_description = "Lista de sistemas de la película o actualizada de forma continua y nueva selección de películas y más atractivo."; $site_keywords = "Drama o, las películas seleccionadas, la nueva película, la película"; } else { if (preg_match("#phim-nam-([0-9]+)#", $id, $yearurl)) { $getyear = $yearurl[1]; $name = 'Año ' . $getyear; $url_page = Url::get(0, 'Phim ' . $name, 'Danh sách'); $sql = "year = '{$getyear}'"; $site_title = "Peliculas {$name} mới nhất, Pelicula {$name} , Pelicula {$name} de Estreno"; $site_description = "Danh sách phim {$name} mới nhất, phim {$name} hay chọn lọc, phim {$name}."; $site_keywords = "Pelicula {$name}, Pelicula {$name}, Estrenos {$name}, descarga Pelicula {$getyear}"; } } } } } } } } } include View::TemplateView('list'); } else { if ($mode == 'thanh-vien') { $userid = $geturl[2]; $userid = explode('-', $userid); $userid = intval($userid[0]); if ($geturl[2] == 'dang-ky') { $site_title = 'Miembros Registrados'; } else { if ($geturl[2] == 'dang-nhap') { $site_title = 'Ingresar'; } else { if ($geturl[2] == 'quen-mat-khau') { $site_title = '¿Olvidaste tu contraseña?'; } else { $site_title = 'Perfil'; } } } $site_description = Config_Model::ConfigName('site_description'); $site_keywords = Config_Model::ConfigName('site_keywords'); if (IS_LOGIN && !$userid) { header('Location: ' . SITE_URL); } include View::TemplateView('member'); } else { if ($mode == 'bang-xep-hang') { $site_title = 'Top películas o ver la calidad de alta definición rápido'; $site_description = "Película o una selección de alta calidad, busque gratuitas nuevas películas ilimitadas"; $site_keywords = Config_Model::ConfigName('site_keywords'); include View::TemplateView('rank'); } else { if ($mode == 'video' || $mode == 'xem-video') { $id = $geturl[2]; $id = explode('-', $id); $id = intval($id[0]); if (!$id) { $site_title = 'Videos Youtube'; $site_description = "\tÚltimas Reclutamiento video divertido, mejores clips de comedia, ver chistes vídeos de humor, clip exclusivo divertido CALIENTE "; $site_keywords = "divertida risa videoclip, videos graciosos, videos divertidos"; include View::TemplateView('listvideo'); } else { $arr = MySql::dbselect('name,url,duration,thumb', 'media', "id = '{$id}'"); if ($arr) { MySql::dbupdate('media', "viewed = viewed+1", "id = '{$id}'"); } $name = $arr[0][0]; $url = $arr[0][1]; $duration = $arr[0][2]; $thumb = $arr[0][3]; $site_title = "{$name}"; $site_description = Config_Model::ConfigName('site_description'); $site_keywords = Config_Model::ConfigName('site_keywords'); $urlvideo = SITE_URL . $cururl; $other_meta = '<meta property="og:image" content="' . $thumb . '">'; $other_meta2 = '<link href="' . $urlvideo . '" rel="canonical">'; include View::TemplateView('video'); } } else { if ($mode == 'tin-tuc') { $seotitle = $geturl[2]; $arr = MySql::dbselect('id,title,content', 'news', "seotitle = '{$seotitle}'"); $id = $arr[0][0]; $title = $arr[0][1]; $content = $arr[0][2]; $site_title = "{$title}"; $site_description = Config_Model::ConfigName('site_description'); $site_keywords = Config_Model::ConfigName('site_keywords'); include View::TemplateView('post'); } else { if ($mode == 'live-tv') { parse_str(parse_url(Url::curRequestURL(), PHP_URL_QUERY), $data); $key = $data['k']; $id = $geturl[2]; $id = explode('-', $id); $id = $id[0]; if ($key) { $site_title = 'Buscar canales: ' . $key; $sql = "symbol like '%{$key}%' OR name like '%{$key}%'"; } else { if ($id) { $livetv = MySql::dbselect('id,symbol,name,quality,speed,viewed,content,linktv,thumb,lang', 'tv', "id = '{$id}'"); if ($livetv) { MySql::dbupdate('tv', "viewed = viewed+1", "id = '{$id}'"); } $symbol = $livetv[0][1]; $site_title = "{$symbol} - Ver la televisión en línea, el canal de televisión en línea"; $type = '1'; $other_meta = '<meta property="og:image" content="' . $livetv[0][8] . '">'; $other_meta2 = '<link href="' . SITE_URL . $cururl . '" rel="canonical">'; } else { $site_title = 'Lista de canales de TV'; $sql = 'id != 0'; } } $site_description = Config_Model::ConfigName('site_description'); $site_keywords = Config_Model::ConfigName('site_keywords'); include View::TemplateView('tv'); } else { if ($mode == ADMINCP_NAME) { include View::AdminView('admin'); } else { if (!$mode) { $site_title = Config_Model::ConfigName('site_name'); $site_description = Config_Model::ConfigName('site_description'); $site_keywords = Config_Model::ConfigName('site_keywords'); include View::TemplateView('home'); } else { $site_title = 'ERROR 404'; $site_description = Config_Model::ConfigName('site_description'); $site_keywords = Config_Model::ConfigName('site_keywords'); include View::TemplateView('404'); } } } } } } } } } }
?> </ul> </div> <div class="wrap_prev_block"> <a id="rand_film_control_prev" href="#" class="prev_block"></a> </div> <div class="wrap_next_block"> <a id="rand_film_control_next" href="#" class="next_block"></a> </div> </div> </div> <div class="watch-channel info_resize"> <div class="tv_list_page clearfix"> <ul> <?php $livetv = MySql::dbselect('id,symbol,name,quality,speed,thumb', 'tv', "id != 0 order by rand() desc limit 21"); for ($i = 0; $i < count($livetv); $i++) { $id = $livetv[$i][0]; $name = $livetv[$i][2]; $symbol = $livetv[$i][1]; $thumb = $livetv[$i][5]; $url = get_url($id, $symbol, 'Live TV'); echo "<li><div class=\"pageSlide\">\n\t\t\t\t\t\t<a href=\"{$url}\" title=\"{$symbol} - {$name}\">\n\t\t\t\t\t\t\t<img src=\"{$thumb}\" alt=\"{$symbol} - {$name}\"/>\n\t\t\t\t\t\t\t<div class=\"maskMv\"></div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div></li>"; } ?> </ul> </div> </div> <div class="watch-video"> <div id="mainVideo" class="main"> <div class="scroll">
<?php if (!defined('RK_MEDIA')) { die("You does have access to this!"); } include View::TemplateView('header'); $film = MySql::dbselect("tb_film.title,tb_film.title_en,tb_film.category,tb_film.release_time,tb_film.timeupdate,tb_film.thumb,tb_film.country,tb_film.director,tb_film.actor,tb_film.year,tb_film.duration,tb_film.viewed,tb_film_other.content,tb_film_other.keywords,tb_film.total_votes,tb_film.total_value,tb_film.trailer,tb_film.big_image,tb_film.quality,tb_film.filmlb", 'film JOIN tb_film_other ON (tb_film_other.filmid = tb_film.id)', "id = '{$filmid}'"); $tenphim = $film[0][0]; $tentienganh = $film[0][1]; $watchurl = get_url($epwatch, $tenphim, 'Xem Phim'); $breadcrumb = breadcrumb_menu($film[0][2]); $urlfilm = get_url($filmid, $tenphim, 'Phim'); $phathanh = $film[0][3]; if (!$phathanh) { $phathanh = GetDateT($film[0][4]); } $thumb = $film[0][5]; if (!$thumb) { $thumb = TEMPLATE_URL . 'images/grey.jpg'; } $theloai = category_a($film[0][2]); $quocgia = country_a($film[0][6]); $genre = category_ad($film[0][2]); $country = country_ad($film[0][6]); $daodien_a = CheckName($film[0][7]); $daodien = Get_List_director($film[0][7]); $dienvien = Get_List_actor($film[0][8]); $year = CheckName($film[0][9]); $duration = CheckName($film[0][10]); $viewed = $film[0][11]; $loaiphim = $film[0][19]; $content = RemoveHtml(UnHtmlChars($film[0][12]));
?> ' border=0 style="position: absolute;right: 5px;top: -1px;height: 20px;"/></span></li> <li><label></label><span><input type="submit" value="¿Olvidastes tu contraseña?" class="button"/></span></li> </ul> </div> </div> <div class="middle_right" style="width:35%"> <label class="tit">Recuperar</label> <div class="stat" style="color:#414141"> Porfavor ingrese su Email correcto para que pueda recuperar su cuenta.</div> </div> </div> </div> <?php } elseif ($userid) { $user = MySql::dbselect('username,email,lastlogin,lastreg,facebookid,fullname,ugroup,fav_feature,fav_playlist', 'user', "id = '{$userid}'"); $fullname = $user[0][5]; $username = $user[0][0]; $email = $user[0][1]; $lastlogin = GetDateT($user[0][2]); $lastreg = GetDateT($user[0][3]); $ugroup = LoginAuth::GroupUser($user[0][6]); $facebookurl = $user[0][4]; if (!$image) { $image = TEMPLATE_URL . 'images/noavatar.jpg'; } ?> <div class="p-profile-cover"> <!-- <a href="javascript:void(0)" class="change-cover">Thay đổi ảnh bìa</a>--> </div> <div class="p-profile clearfix" id="edit_user">
document.getElementById("thumb0").innerHTML=xmlhttp.responseText; document.getElementById("status0").innerHTML="•"; } } xmlhttp.open("GET","http://saved-media.com/upload/upload1.php?url=http%3A%2F%2F4.bp.blogspot.com%2F-3A-vZ2ZjeY4%2FUV_hPd-jeqI%2FAAAAAAAARkc%2FLVOYwyGVQA4%2Fs1600%2FYLSLQni.png",true); xmlhttp.send(); } </script> </head> <body> <?php define('RK_MEDIA', true); require 'init.php'; $episode = MySql::dbselect('id,title,thumb', 'film', "id = 1632"); echo "<table border='1'>\n<tr>\n<th>filmid</th>\n<th>name</th>\n<th>new thumb</th>\n<th>status</th>\n<th>old thumb</th>\n\n\n</tr>"; function kq($x, $y, $z, $i) { echo "<tr>"; echo "<td id=\"film" . $i . "\">" . $x . "</td>"; echo "<td>" . $y . "</td>"; echo "<td id=\"thumb" . $i . "\"></td>"; echo "<td id=\"status" . $i . "\"></td>"; echo "<td id=\"old" . $i . "\">" . $z . "</td>"; echo "</tr>"; } $i = 0; while ($episode[$i][1] != "") { kq($episode[$i][0], $episode[$i][1], $episode[$i][2], $i); $i++;
public static function ConfigName($name) { $arr = MySql::dbselect('config_name,config_content', 'config', "config_name = '{$name}'"); return $arr[0][1]; }
if ($geturl[2]) { $page = explode('-', $geturl[2]); } $page = $page[1]; $num = 12; $num = intval($num); $page = intval($page); if (!$page) { $page = 1; } $limit = ($page - 1) * $num; if ($limit < 0) { $limit = 0; } $arr = MySql::dbselect('id,name,url,duration,thumb', 'media', "id != 0 order by id desc LIMIT {$limit},{$num}"); $total = MySql::dbselect('id', 'media', "id != 0"); $allpage_site = get_allpage(count($total), $num, $page, SITE_URL . "/video/page-"); ?> <div class="hdvideo"> <div class="hdhwap"> <ul style="height:400px"> <?php echo get_video('slide = 1', 7); ?> </ul> <div style="clear:both"> </div> <a href="#" id="hvideo_control_prev" class="btn_pre_ft"></a><a href="#" id="hvideo_control_next" class="btn_next_ft"></a> </div> <script type="text/javascript">$(".hdhwap ul").carouFredSel({circular: false,infinite: false,auto : false,width: "100%",prev: {button: "#hvideo_control_prev",key: "left"},next: { button: "#hvideo_control_next",key: "right"},});</script> <div class="videos">
function player($epid, $type = '') { if ($type !== 'video') { $episode = MySql::dbselect('id,name,filmid,url,subtitle,thumb', 'episode', "id = '{$epid}'"); $url = $episode[0][3]; $subtitle = $episode[0][4]; $filmid = $episode[0][2]; $nextid = one_data('id', 'episode', "id > '{$epid}' AND filmid = '{$filmid}'"); } else { $url = $epid; } $player = "<script src=\"" . TEMPLATE_URL . "js/jwplayer.js\"></script><script>\$(document).ready(function(){onjwplayer('{$url}','{$subtitle}','{$nextid}');});</script>"; echo $player; }
<?php define('RK_MEDIA', true); require 'init.php'; header("Content-type: text/xml"); #$file = CACHE_PATH.'xml/sitemap'.CACHE_EXT; #$xml = Cache::BEGIN_CACHE($file); if (!$xml) { $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?xml-stylesheet type=\"text/xsl\" href=\"/sitemap.xsl\"?>\n\n\t\t\t<urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n\n\t\t\t<url>\n\n\t\t\t\t<loc>" . SITE_URL . "</loc>\n\n\t\t\t\t<changefreq>hourly</changefreq>\n\n\t\t\t\t<priority>1.00</priority>\n\n\t\t\t\t<lastmod>2013-09-01T00:03:12+07:00</lastmod>\n\n\t\t\t</url>\n"; $sitemap = MySql::dbselect("id,title,title_en,timeupdate", "film", ""); for ($i = 0; $i < count($sitemap); $i++) { $title = $sitemap[$i][1]; $url_phim = Url::get($sitemap[$i][0], $title, 'Phim'); $lastmod = date('Y-m-d', $sitemap[$i][3]); if ($i < 6) { $priority[$i] = '0.9'; } elseif ($i < 20) { $priority[$i] = '0.8'; } elseif ($i > 19) { $priority[$i] = '0.6'; } $xml .= "<url>\n<loc>{$url_phim}</loc>\n<changefreq>daily</changefreq>\n<priority>" . $priority[$i] . "</priority>\n<lastmod>" . $lastmod . "T00:00:00+07:00</lastmod>\n</url>\n"; } $xml .= "</urlset>"; #Cache::END_CACHE($xml,$file); } echo $xml;
public static function buil_down($epid) { $episode = MySql::dbselect('url', 'episode', "id = '{$epid}'"); $url = $episode[0][0]; $url = str_replace('https', 'http', $url); $is_picasa = preg_match('#picasaweb.google.com/(.*?)#s', $url); // Picasaweb $is_zingtv = preg_match("#tv.zing.vn/video/([^/]+)#", $url); // Zing TV $is_ggdocs = preg_match("#docs.google.com(.*?)#s", $url); // Google Docs $is_nct = preg_match("#nhaccuatui.com(.*?)#s", $url); // Nhaccuatui $is_dailymotion = preg_match("#dailymotion.com(.*?)#s", $url); // Dailymotion $is_youtube = preg_match("#youtube.com(.*?)#s", $url); // Youtube if ($is_picasa) { $data = file_get_contents($url); $mp4 = array(); $ht = explode('"media":{"content":', $data); $code = explode('"description":', $ht[1]); $link = explode('"url":"', $code[0]); for ($i = 2; $i < count($link); $i++) { $play = explode('"', $link[$i]); if (substr_count($play[0], "itag=5&") > 0) { array_push($mp4, "240p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=34&") > 0) { array_push($mp4, "360p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=6&") > 0) { array_push($mp4, "360p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=35&") > 0) { array_push($mp4, "480p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=59&") > 0) { array_push($mp4, "360p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=22&") > 0) { array_push($mp4, "720p [HD]|-|" . $play[0]); } if (substr_count($play[0], "itag=37&") > 0) { array_push($mp4, "1080p [HD]|-|" . $play[0]); } if (substr_count($play[0], "itag=38&") > 0) { array_push($mp4, "Ful HD|-|" . $play[0]); } } for ($i = 0; $i < count($mp4); $i++) { $d = explode('|-|', $mp4[$i]); $html .= "<a href=\"{$d['1']}\" title=\"Chất lượng {$d['0']}\" target=\"_blank\">{$d['0']}</a> - "; } $html = substr($html, 0, -7); } if ($is_zingtv) { } if ($is_nct) { $html = file_get_contents($url); $link = explode('&file=', $html); $link = explode('"', $link[1]); $url = $link[0]; $html = file_get_contents($url); $link = explode('<![CDATA[', $html); $link = explode(']]>', $link[3]); $link = $link[0]; $html = "<a href=\"{$link}\" title=\"Chất lượng 360p [SD]\" target=\"_blank\">360p [SD]</a> - "; $html = substr($html, 0, -7); } if ($is_ggdocs) { $data = file_get_contents($url); $mp4 = array(); $ht = explode('"fmt_stream_map":', $data); $code = explode('"fmt_list"', $ht[1]); $link = explode('|', urldecode(unescapeUTF8EscapeSeq($code[0]))); for ($i = 1; $i < count($link); $i++) { $play = explode('"', $link[$i]); if (substr_count($play[0], "itag=5&") > 0) { array_push($mp4, "240p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=34&") > 0) { array_push($mp4, "360p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=6&") > 0) { array_push($mp4, "360p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=35&") > 0) { array_push($mp4, "480p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=59&") > 0) { array_push($mp4, "360p [SD]|-|" . $play[0]); } if (substr_count($play[0], "itag=22&") > 0) { array_push($mp4, "720p [HD]|-|" . $play[0]); } if (substr_count($play[0], "itag=37&") > 0) { array_push($mp4, "1080p [HD]|-|" . $play[0]); } if (substr_count($play[0], "itag=38&") > 0) { array_push($mp4, "Ful HD|-|" . $play[0]); } } for ($i = 0; $i < count($mp4); $i++) { $d = explode('|-|', $mp4[$i]); $html .= "<a href=\"{$d['1']}\" title=\"Chất lượng {$d['0']}\" target=\"_blank\">{$d['0']}</a> - "; } $html = substr($html, 0, -7); } if ($is_youtube) { $my_id = VideoYoutubeID($url); $my_video_info = 'http://www.youtube.com/get_video_info?&video_id=' . $my_id; $my_video_info = curlGet($my_video_info); $thumbnail_url = $title = $url_encoded_fmt_stream_map = $type = $url = ''; parse_str($my_video_info); if (isset($url_encoded_fmt_stream_map)) { $my_formats_array = explode(',', $url_encoded_fmt_stream_map); } $avail_formats[] = ''; $i = 0; $ipbits = $ip = $itag = $sig = $quality = ''; $expire = time(); foreach ($my_formats_array as $format) { parse_str($format); $avail_formats[$i]['itag'] = $itag; $avail_formats[$i]['quality'] = $quality; $type = explode(';', $type); $avail_formats[$i]['type'] = $type[0]; $avail_formats[$i]['url'] = urldecode($url) . '&signature=' . $sig; parse_str(urldecode($url)); $avail_formats[$i]['expires'] = date("G:i:s T", $expire); $avail_formats[$i]['ipbits'] = $ipbits; $avail_formats[$i]['ip'] = $ip; $i++; } if (count($avail_formats) > 1) { for ($i = 0; $i < count($avail_formats); $i++) { $url = $avail_formats[$i]['url']; $chatluong = $avail_formats[$i]['type'] . ' (' . $avail_formats[$i]['quality'] . ')'; $html .= "<a href=\"{$url}\" title=\"Calidad {$chatluong}\" target=\"_blank\">{$chatluong}</a> - "; } } $html = substr($html, 0, -7); } $arrep = MySql::dbselect('subtitle', 'episode', "id = '{$epid}'"); $subtitle = urldecode($arrep[0][0]); if ($subtitle) { $html .= "<p>Nota: Este episodio debe <a href=\"{$subtitle}\" title=\"Descarga subtítulos\" target=\"_blank\">Descargar los subtitulos</a></p>"; } return $html; }
public static function Forgot($email, $captcha) { $email = RemoveHack($email); $captcha = RemoveHack($captcha); if ($captcha !== $_SESSION["security_code"]) { $arr = 'captcha'; } else { $user = MySql::dbselect("id,username,password,codesecurity", "user", "email = '{$email}'"); if (!$user) { $arr = 'email'; } else { $userid = $user[0][0]; MySql::dbupdate('user', "forgot = '1'", "id = '{$userid}'"); $arr = 'done'; } } return $arr; }
function one_data($item, $table, $con) { $arr = MySql::dbselect("{$item}", "{$table}", "{$con}"); $data = $arr[0][0]; return $data; }
function country_ad($id) { $country = MySql::dbselect("en_country", "country", "id = '{$id}'"); $html = $country[0][0]; return $html; }