function lista($user) { requirelogin(); include "libs/video.php"; include "libs/accounts.php"; $user = protect($user); $output = menu($user) . '<br>'; $id = resolveuser($user); $qry = mysql_query("SELECT * FROM videos WHERE id='{$id}'"); if (mysql_num_rows($qry) == 0) { $output .= infobox($user . ' ' . t("ainda não possui vídeos."), true); } else { while ($row = mysql_fetch_array($qry)) { $video = youtube($row['video']); $output .= '<div class="row"> <h3>' . protect($video['title']) . '</h3> <p><i>' . protect($video['desc']) . '</i><br/> ' . $video['code'] . '</p> </div><br>'; } } section($output, t("Vídeos de") . ' ' . $user); }
function bbcode($text) { $text = safe($text, 'HTML'); if (preg_match('#youtube#', $text)) { $youtube = preg_replace('!\\[youtube\\](.+)\\[/youtube\\]!isU', '$1', $text); if (isset($youtube) && !empty($youtube)) { $text = youtube($youtube, 'embed'); } } $text = preg_replace('!\\[quote\\](.+)\\[/quote\\]!isU', '<div class="citationforum">$1</div>', $text); $text = preg_replace("!\\[quote\\=(.+)\\](.+)\\[\\/quote\\]!isU", "<div class='citationforum'><strong>\$1 :</strong><br>\$2</div>", $text); $text = preg_replace('!\\[b\\](.+)\\[/b\\]!isU', '<strong>$1</strong>', $text); $text = preg_replace('!\\[i\\](.+)\\[/i\\]!isU', '<em>$1</em>', $text); $text = preg_replace('!\\[u\\](.+)\\[/u\\]!isU', '<span style="text-decoration:underline;">$1</span>', $text); $text = preg_replace('!\\[center\\](.+)\\[/center\\]!isU', '<p tyle="text-align:center;margin:0px;padding:0px;">$1</p>', $text); $text = preg_replace('!\\[right\\](.+)\\[/right\\]!isU', '<p style="text-align:right;margin:0px;padding:0px;">$1</p>', $text); $text = preg_replace('!\\[left\\](.+)\\[/left\\]!isU', '<p style="text-align:left;margin:0px;padding:0px;">$1</p>', $text); $text = preg_replace('!\\[titre\\](.+)\\[/titre\\]!isU', '<h3>$1</h3>', $text); $text = preg_replace('!\\[email\\](.+)\\[/email\\]!isU', '<a href="mailto:$1">$1</a>', $text); $text = preg_replace('!\\[img\\](.+)\\[/img\\]!isU', '<img src="$1" border="0">', $text); $text = preg_replace('!\\[url\\](.+)\\[/url\\]!isU', '<a href="$1" target="_blank">$1</a>', $text); $text = preg_replace('!\\[facebook\\](.+)\\[/facebook\\]!isU', '<a href="http://facebook.com/$1" class="uibutton confirm" target="_blank">Facebook</a>', $text); $text = preg_replace('!\\[red\\](.+)\\[/red\\]!isU', '<font color="red">$1</font>', $text); $text = preg_replace('!\\[blue\\](.+)\\[/blue\\]!isU', '<font color="blue">$1</font>', $text); $text = preg_replace('!\\[green\\](.+)\\[/green\\]!isU', '<font color="green">$1</font>', $text); $text = preg_replace('!\\[orange\\](.+)\\[/orange\\]!isU', '<font color="orange">$1</font>', $text); $text = preg_replace('!\\[pink\\](.+)\\[/pink\\]!isU', '<font color="darkpink">$1</font>', $text); $text = preg_replace('!\\[small\\](.+)\\[/small\\]!isU', '<font style="font-size:8px;">$1</font>', $text); $text = preg_replace('!\\[medium\\](.+)\\[/medium\\]!isU', '<font style="font-size:12px;">$1</font>', $text); $text = preg_replace('!\\[large\\](.+)\\[/large\\]!isU', '<font style="font-size:18px;">$1</font>', $text); $text = preg_replace('!\\[br\\]!isU', '<br />', $text); return $text; }
$t2 = explode('"', $t1[1]); $link = $t2[0]; if (strpos($link, "videozer") === false) { $filelink = "http://www.videozer.com/player_control/settings.php?v=" . $id; $link = videobb($filelink); } } elseif (strpos($filelink, 'vk.com') !== false || strpos($filelink, 'vkontakte.ru') !== false) { $link = vk($filelink); } elseif (strpos($filelink, 'movshare') !== false) { preg_match('/(v=)([A-Za-z0-9_]+)/', $filelink, $m); $id = $m[2]; $filelink = "http://embed.movshare.net/embed.php?v=" . $id; $baza = file_get_contents($filelink); $link = str_between($baza, 'file="', '"'); } elseif (strpos($filelink, 'youtube') !== false) { $link = youtube($filelink); } elseif (strpos($filelink, 'flvz.com') !== false) { $link = flvz($filelink); } elseif (strpos($filelink, 'rapidmov.net') !== false) { $link = rapidmov($filelink); } elseif (strpos($filelink, 'putlocker.com') !== false) { $link = putlocker($filelink); } elseif (strpos($filelink, 'peteava.ro/embed') !== false) { preg_match('/(video\\/)([A-Za-z0-9_]+)/', $filelink, $m); $id = $m[2]; $filelink = "http://www.peteava.ro/embed/video/" . $id; $h = file_get_contents($filelink); $id = str_between($h, "hd_file=", "&"); if ($id == "") { $id = str_between($h, "stream.php&file=", "&"); }
} return $r; } $l = $_GET["file"]; $l = urldecode($l); $l = str_prep($l); $html = file_get_contents($l); if (preg_match_all("/(http\\b.*?)(\"|\\')+/i", $html, $matches)) { $links = $matches[1]; } $s = "/youtube\\.c|videa\\.hu\\/flvplayer|kiwi\\.kz/i"; for ($i = 0; $i < count($links); $i++) { $cur_link = $links[$i]; if (preg_match($s, $cur_link)) { if (strpos($cur_link, 'youtube') !== false) { $link = youtube($cur_link); } elseif (strpos($cur_link, 'kiwi.kz') !== false) { $file = get_headers($cur_link); foreach ($file as $key => $value) { if (strstr($value, "Location")) { $link = urldecode(ltrim($value, "Location:")); $link = str_between($link, "file=", "&"); } // end if } // end foreach } elseif (strpos($cur_link, 'videa.hu') !== false) { preg_match('/(v=)([A-Za-z0-9_]+)/', $cur_link, $m); $id = $m[2]; $cur_link = "http://videa.hu/videok/sport/" . $id; $html = file_get_contents($cur_link);
// $html .= "<span class=\"{$sortedResData[$k]["thread_sha"]} {$sortedResData[$k]["res_sha"]} manualcensor\">修正</span>"; $html .= "</span>"; $html .= "</span>"; $html .= "<span id=\"{$sortedResData[$k]["res_sha"]}\" class=\"{$sortedResData[$k]["thread_sha"]} {$sortedResData[$k]["res_sha"]} responce\">"; $imgData = unserialize($sortedResData[$k]["res_imgtag"]); // var_dump($imgData); if (!empty($imgData)) { foreach ($imgData as $value) { $reImgLink = imgurCheck($value["img_link"], $value["extention"]); $html .= "<img src=\"{$reImgLink}\">"; } $body = "{$sortedResData[$k]["res_rowbody"]}"; } else { $body = "{$sortedResData[$k]["res_body"]}"; } $body = youtube($body); if ($sortedResData[$k]["censored"]) { $html .= "<font style=\"font-weight:900;color:#ff4444;\">{$body}</font>"; } else { $html .= $body; } $html .= "</span>"; } $html .= "<div class=\"threadbotton {$request["thread_sha"]}\">"; $html .= "<p>記事を作る</p></div>"; $html .= "<div class=\"html {$request["thread_sha"]}\"></div>"; $args = array('type' => 'post', 'taxonomy' => 'category', 'hide_empty' => 0); $cats = get_categories($args); $category = "<div class=\"category\">\n"; for ($i = 0; $i < count($cats); $i++) { $category .= "<span class=\"{$request["thread_sha"]} category\">{$cats[$i]->name}</span>\n";
die; } $nohup = $unix->find_program("nohup"); $php = $unix->LOCATE_PHP5_BIN(); $nice = EXEC_NICE(); events("Executed pid {$mypid}"); events("Execute ParseSquidLogBrut()"); ParseSquidLogBrut(false); events("Execute ParseSquidLogMain()"); ParseSquidLogMain(); events("Execute ParseSquidLogMainError()"); ParseSquidLogMainError(); events("Execute ParseUserAuth()"); ParseUserAuth(); events("Execute youtube()"); youtube(); events("Execute useragents()"); useragents(); events("Execute ParseUsersSize()"); ParseUsersSize(); events("Execute nudityScan()"); nudityScan(); events("Execute WordScanners()"); WordScanners(); $CategoriesDatabasesByCron = @file_get_contents("/etc/artica-postfix/settings/Daemons/CategoriesDatabasesByCron"); if (!is_numeric($CategoriesDatabasesByCron)) { $CategoriesDatabasesByCron = 1; } else { $CategoriesDatabasesByCron = 0; } $RTTSizeTime = $unix->file_time_min($RTTSizeTimeFile);
function render_for_db($msgbody) { $msgbody = youtube($msgbody); $msgbody = fix_postimage_tags($msgbody); return $msgbody; }
">#<?php echo $tag; ?> </a></li> <?php } ?> </ul> <?php } ?> </p> </header> <?php if ($article->youtube() != "") { echo youtube($article->youtube()); } elseif ($article->vimeo() != "") { echo vimeo($article->vimeo()); } ?> <?php echo kirbytext($article->text()); ?> </article> <?php } ?> <hr> <?php }
<span style="margin-left: 30px;"><?php echo youtube($video->url, '258', '157'); ?> </span><br> <ul> <li style="overflow: hidden;height: 40px;"><?php echo $video->title; ?> </li> <div class="vdoall"><a href="executives/video_view/<?php echo $video->id; ?> ">ดููวีดีโอทั้งหมด</a></div> </ul>
function ajax_show_vid() { echo youtube($_GET['url']); }
$src .= "<center>" . $language["VID_PAGE"] . "</center><br>"; } } elseif (!empty($_GET["id"])) { if (!$CURUSER || $CURUSER["id_level"] >= 6) { $src .= "<center><a href=\"index.php?page=video_page&action=delete&vid=" . $_GET["id"] . "\"><font color=red><b>" . $language["DELETE"] . "</b></font></a></center><br>"; } $src .= "<center><a href=\"index.php?page=video_page\"><font color=steelblue><b>" . $language['VID_BACK'] . "</b></a></font></center><br>"; $check = @get_headers("https://www.youtube.com/watch?v=" . $_GET["id"] . ""); if (preg_match("|200|", $check[0])) { $query3 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM {$TABLE_PREFIX}videos WHERE id = '{$_GET['id']}'"); if (mysqli_num_rows($query3) == 1) { while ($elementi = mysqli_fetch_object($query3)) { $src .= "<center>" . $elementi->title . " (" . $elementi->category . ")<br><br>" . youtube($_GET["id"]) . "</center><br>"; } } else { $src .= "<center>" . youtube($_GET["id"]) . "</center><br>"; } } else { $src .= "<center>" . $language['BAD_ID'] . "</center><br>"; } } else { $src .= "<br><center><a href=\"index.php?page=video_page&action=new\"><font color=steelblue><b>" . $language['VID_NEW'] . "</b></a></font></center><br>"; for ($i = 0; $i < category(count); $i++) { $c = 0; $src .= "<center><span style=\"font-size:20pt;line-height:100%\">" . category(cat_not_eng, $i) . "</span></center><br>"; $query2 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM {$TABLE_PREFIX}videos where category='" . category(cat_eng, $i) . "' ORDER BY `number` DESC"); $src .= "<center><table border=\"1\"><tr>"; if ($query2) { while ($elementi = mysqli_fetch_object($query2)) { $c++; $z = $c - 1;
function detect_video($d, $t, $r) { if (preg_match('@jisu\\.cf@', $d) || preg_match('@juhe\\.ml@', $d) || preg_match('@iptvlinks\\.tk@', $d)) { echo_(" >>> generic" . PHP_EOL); generic($d, $t, $r); } elseif (preg_match('@youtube\\.com@', $d)) { echo_(" >>> youtube.com" . PHP_EOL); youtube($d, $t, $r); } else { echo "Url:{$d}\r\nChannel:{$t}\r\nNOT SUPPORTED YET.\r\n"; stf($d); } }
echo $user['nama']; ?> </a> <span class='ns_desc'> <?php $content = $post['content']; echo split_content($content, $id); if ($post['contain_media'] == 1) { $trace = explode('^^^', $post['media']); echo '<div class="media">'; switch ($trace[0]) { case 'image': echo "<a href='" . $trace[3] . "' target='_blank'><img src='" . $trace[3] . "' width='" . $trace[1] . "' height='" . $trace[2] . "' /></a>"; break; case 'youtube': echo youtube($trace[1]); break; // otherwise just link // otherwise just link case 'link': echo "<a target='_blank' class='link1 blue98' href='" . $trace[1] . "'>" . $trace[1] . "</a>"; break; default: die; } echo '</div>'; } ?> </span> <div class='s_time'><span class='medium dark99'><?php echo $this->fungsi->fixtime($post['time']);
?> <?foreach($list as $rs):?> <div id = "video-container4" style="float:left;width: 45%;padding:10px;background-color: transparent;display:none"> <?php echo youtube($rs->hinhanh,0,"100%",210);?> </div> <?endforeach;?> <?php $this->CI = get_instance(); $this->CI->db->where('id',36); $query = $this->CI->db->get('quangcao'); $list = $query->result(); ?> <?foreach($list as $rs):?> <div id = "video-container5" style="float:left;width: 45%;padding:10px;background-color: transparent;display:none"> <?php echo youtube($rs->hinhanh,0,"100%",210);?> </div> <?endforeach;?> </div> </div> </div> </div> <div id="right-center" style="width:180px; float:right; margin-right:15px; margin-top:10px"> <div class="rightContent left-side"> <div id="lienhetructuyen" style="margin-bottom:10px"> <div style="width: 177px; height: 30px; background: url('<?php echo base_url();?>images/bghotrotructuyen.png') no-repeat; margin-top: 5px;"> <p style="font-size:15px;margin-left: 50px;color:white;padding-top:2px"><strong>Hỗ trợ trực tuyến</strong></p> </div>
</div> <br clear="all"> <div style="margin-top:10px;"> <h3>ผู้บริหารสำนักโรคติดต่อทั่วไป</h3> <?php $excutive_list = new Page(84); echo lang_decode($excutive_list->detail); ?> </div> <div style="margin-top:5px;"> <div style="text-align: center;margin:5px 0;"><?php echo $videos->title; ?> </div> <?php echo youtube($videos->url, '635', '390'); ?> <br><br> <h3>คลิปวิดีโอ</h3> <ul> <?php foreach ($videos as $video) { ?> <li style="list-style-type: disc !important;"><a href="executives/video_view/<?php echo $video->id; ?> "><?php echo $video->title; ?> </a></li> <?php
<a class="movement_help">?</a> <span class="movement_description"><?php echo $movement['movements_description'][1]; ?> </span> <span class="clear"> </span> <div id="movement_<?php echo $movement['movements_movement'][1]; ?> " class="movement_shit"> <span class="movement_desc"><?php echo get_post_meta($movement['movements_movement'][1], 'movement_description', true); ?> </span> <?php echo youtube(get_post_meta($movement['movements_movement'][1], 'movement_youtube', true), 600, 338); ?> </div> <?php } else { // They made one up! ?> <span class="movement_title"><?php echo $movement['movements_name'][1]; ?> </span> <span class="movement_description"><?php echo $movement['movements_description'][1]; ?> </span> <?php
/** *###################################################################### *# video [video type="vimeo" video_id=""] *###################################################################### */ function video($atts) { if (isset($atts['type'])) { switch ($atts['type']) { case 'youtube': return youtube($atts); break; case 'vimeo': return vimeo($atts); break; case 'dailymotion': return dailymotion($atts); break; } } return ''; }
} if (strlen(trim($subj)) == 0) { $err .= "No subject"; } if (!is_null($body) && strlen($body) > 32765) { $err .= "Body longer 32765 bytes"; } $chars = 0; if (!is_null($body) && strlen($body) != 0) { $chars = strlen(utf8_decode($body)); $length = strlen($body); /* This mechanism actually shoud be done using mb_xxx string function, but it should work */ if (stristr($body, "[img=")) { $content_flags |= 2; } $new_body = youtube($body); if (strcmp($body, $new_body) != 0) { $content_flags |= 4; } if (isset($nsfw)) { $content_flags |= $content_nsfw; } $ibody = '\'' . mysql_escape_string($new_body) . '\''; } } while (false); if (strlen($err) == 0) { if (strlen($err) == 0 && $ban == false && !$preview) { $log .= "err empty and ban=false\n"; if (strlen($ticket) > 0) { $query = 'INSERT into confa_tickets(ticket) values(\'' . $ticket . '\')'; $result = mysql_query($query);
?> <div class="grid_8"> <h1><?php the_title(); ?> </h1> <p><?php echo get('movement_description'); ?> </p> <?php echo youtube(get('movement_youtube'), 620, 348); ?> <?php } } ?> </div> <?php include 'aside.php'; ?> <?php include 'footer.php';
imagedestroy($newImgTumb); } } else { $img = file_get_contents($fixedList["noimageUrl"]); if (preg_match("/(.jpg)?(.jpeg)?/", $filename, $match)) { file_put_contents($savePath, $img); } elseif (preg_match("/(.png)?/", $filename, $match)) { $img = file_get_contents($url); file_put_contents($savePath, $img); } elseif (preg_match("/(.gif)?/", $filename, $match)) { $img = file_get_contents($url); file_put_contents($savePath, $img); } } } $body = youtube($value["res_body"]); } $html .= "<dt class=\"reshandle\">" . "<span class=\"resno\">" . $value["res_no"] . "</span>" . "<span class=\"resname\">" . $menuDefaultName . "</span>" . "<span class=\"resdate\">" . $value["res_date"] . "</span>" . "<span class=\"resclock\">" . $value["res_clock"]; if ($value["res_id"] === $resMasterID) { $html .= "</span>" . "<span class=\"resid resmasterid\">" . $value["res_id"] . "</span>" . "</dt>" . "<dd class=\"resbody resmasterbody\">" . $body . "</dd>"; } else { $html .= "</span>" . "<span class=\"resid\">" . $value["res_id"] . "</span>" . "</dt>" . "<dd class=\"resbody\">" . $body . "</dd>"; } } $html .= "</dl>"; $html .= "<span class=\"threadurldis\">元スレ</span>"; $html .= "<span class=\"threadurl\"><a href=\"{$threadData["thread_url"]}\">{$threadData["thread_title"]}({$threadData["kind"]})</a></span>"; if ($threadData["kind"] === "open2ch.net") { array_push($request["category"], 150); } else { if ($threadData["net_or_sc"] === "net") {
<div id="title-blank">ภาพกิจกรรม / วีดีโอ</div> <div id="breadcrumb"><a href="">หน้าแรก</a> > <span class="b1"><a href="vdos/lists">ข่าวกิจกรรม / วีดีโอ</a></span></div> <div id="page"> <h1><?php echo $rs->title; ?> </h1> <?php echo youtube($rs->url); ?> </div>
<article class="article-video"> <header> <h1><?php echo $page->title()->html(); ?> </h1> <p class="meta"> <time datetime="<?php echo $page->date('c'); ?> "><?php echo $page->date('d.m.Y'); ?> </time> </p> </header> <?php if ($page->youtube() != "") { echo youtube($page->youtube()); } elseif ($page->vimeo() != "") { echo vimeo($page->vimeo()); } ?> <?php echo kirbytext($page->text()); ?> </article> </main> <?php snippet('footer');
<table class="list"> <tr> <th>ชื่อคลิป</th> <th>youtube</th> <th></th> </tr> <?php foreach ($videos as $video) { ?> <tr> <td><?php echo $video->title; ?> </td> <td><?php echo youtube($video->url, 200, 120); ?> </td> <td> <a class="btn" href="executives/admin/executive_videos/index/<?php echo $video->id; ?> " rel="<?php echo $video->id; ?> " >แก้ไข</a> <a class="btn" href="executives/admin/executive_videos/delete/<?php echo $video->id; ?> " onclick="return confirm('<?php echo lang('notice_confirm_delete');