Sindbad~EG File Manager
<?php
class KIOSKController extends Controller
{
public function epMenuKiosk()
{
$result = Abstracts::usp_get_abstracts(null,null,'FP',null,null,'3',2,null,null,'order by category_display_name,abs_no',null,null,null);
$categores=[];
$abstracts = [];
$old_cat_id = 0;
$eposter = "";
foreach ($result["abstracts"] as $key => $value) {
$categores[$value->category_display_name] = $value->category_display_name;
$abstracts[$value->category_display_name][] = $value;
}
$eposter = View::make('backoffice.kiosk.eposter_menu')->with('categores',$categores)->with('abstracts',$abstracts)->render();
$filename = "eposter-menu".date('Y-M-d H:i').'.html';
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Type: text/plain'); # Don't use application/force-download - it's not a real MIME type, and the Content-Disposition header is sufficient
header('Content-Length: ' . strlen($eposter));
header('Connection: close');
echo $eposter;
}
public function epHtmlKiosk()
{
$path = public_path() .'/KIOSK_EP';
if(!File::exists($path)) {
File::makeDirectory($path, 0777, true, true);
}
// e-poster = 3 ,selected = 2
$result = Abstracts::usp_get_abstracts(null,null,'FP',null,null,'3',2,null,null,'order by category_display_name,abs_no',null,null,null);
foreach ($result["abstracts"] as $key => $abs) {
$eposter="";
$eposter = View::make('backoffice.kiosk.eposter_html')->with('abs',$abs)->render();
$filename = $abs->abs_no.'.html';
$path_new = $path.'/'.$filename;
File::put($path_new,$eposter);
}
echo "Eposters ".count($result["abstracts"])." HTMLS Generated Successfully. Please find file in Public/KIOSK_EP" ;
}
public function epKiosk()
{
$result = Abstracts::usp_get_abstracts(null,null,'FP',null,null,'3',2,null,null,'order by category_display_name,abs_no',null,null,null);
$presentauthor=[];
foreach ($result["authors"] as $key => $value)
{
if($value->role_id == 35)
{
$presentauthor[$value->abs_id]= $value->name.', '.$value->membership_no;
}
}
$eposter="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the \"WordPress\" importer from the list. -->
<!-- 4. Activate & Run Importer. -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. You will first be asked to map the authors in this export file to users -->
<!-- on the site. For each author, you may choose to map to an -->
<!-- existing user on the site or to create a new user. -->
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
<!-- contained in this file into your site. -->
<!-- generator=\"WordPress/4.9.4\" created=\"2018-02-13 11:49\" -->
<rss version=\"2.0\"
xmlns:excerpt=\"http://wordpress.org/export/1.2/excerpt/\"
xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"
xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"
xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
xmlns:wp=\"http://wordpress.org/export/1.2/\"
>
<channel>
<title>AIOC 2018</title>
<link>http://aioc2018</link>
<description>Coimbatore</description>
<pubDate>Tue, 13 Feb 2018 11:49:17 +0000</pubDate>
<language>en-US</language>
<wp:wxr_version>1.2</wp:wxr_version>
<wp:base_site_url>http://aioc2018</wp:base_site_url>
<wp:base_blog_url>http://aioc2018</wp:base_blog_url>
<wp:author><wp:author_id>1</wp:author_id><wp:author_login><![CDATA[admin]]></wp:author_login><wp:author_email><![CDATA[sudharsan@numerotec.com]]></wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author>
<generator>https://wordpress.org/?v=4.9.4</generator>";
foreach ($result["abstracts"] as $key => $value)
{
$eposter.='<item>
<title>FP'.$value->abs_no.' : '.$value->title .'</title>
<link>http://localhost:8080/kiosk/fp'.$value->abs_no.'</link>
<pubDate>Tue, 13 Feb 2018 11:48:38 +0000</pubDate>
<dc:creator><![CDATA[admin]]></dc:creator>
<guid isPermaLink="false">http://localhost:8080/kiosk/?p='.$value->abs_no.'</guid>
<description></description>
<content:encoded><![CDATA[<strong>'. $presentauthor[$value->abs_id].'</strong>
'.str_replace(array("\r\n", "\r", "\n"), "<br /><br />", $value->synopsis) .'
<button class="back" type="button">Back To List</button>
<a class="button" href="http://localhost:8080/kiosk/E-Posters/FP'.$value->abs_no.'.swf" rel="ilightbox" data-options="width: 1000, height: 640">View E Poster</a>]]></content:encoded>
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
<wp:post_id>'.$value->abs_no.'</wp:post_id>
<wp:post_date><![CDATA[2018-02-13 17:18:38]]></wp:post_date>
<wp:post_date_gmt><![CDATA[2018-02-13 11:48:38]]></wp:post_date_gmt>
<wp:comment_status><![CDATA[open]]></wp:comment_status>
<wp:ping_status><![CDATA[open]]></wp:ping_status>
<wp:post_name><![CDATA[fp'.$value->abs_no.']]></wp:post_name>
<wp:status><![CDATA[publish]]></wp:status>
<wp:post_parent>0</wp:post_parent>
<wp:menu_order>0</wp:menu_order>
<wp:post_type><![CDATA[post]]></wp:post_type>
<wp:post_password><![CDATA[]]></wp:post_password>
<wp:is_sticky>0</wp:is_sticky>
<category domain="category" nicename="'.$value->category_display_name.'"><![CDATA['.$value->category_display_name.']]></category>
<wp:postmeta>
<wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
<wp:meta_value><![CDATA[1]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key><![CDATA[_wp_page_template]]></wp:meta_key>
<wp:meta_value><![CDATA[default]]></wp:meta_value>
</wp:postmeta>
</item>
';
// $eposter.= '<item>
// <title>FP'.$value->abs_no.' : '.str_replace('<','&#60;',str_replace('&','&amp;',$value->title)) .'</title>
// <link>http://localhost:8080/kiosk/fp'.$value->abs_no.'</link>
// <pubDate>Thu, 25 Jan 2018 05:32:25 +0000</pubDate>
// <dc:creator><![CDATA[SiteAdmin]]></dc:creator>
// <guid isPermaLink="false">http://localhost:8080/kiosk/?p='.$value->abs_no.'</guid>
// <description></description>
// <content:encoded><![CDATA[<h2>FP'.$value->abs_no.' : '.str_replace('<','&#60;',str_replace('&','&amp;',$value->title)) .'</h2>
// <strong>'. $presentauthor[$value->abs_id].'</strong>
// '.str_replace('<','&#60;',str_replace('&','&amp;',$value->synopsis)).'
// <button type="button" class="back" onclick="javascript:history.back()">Back To List</button>
// <a href="http://localhost:8080/kiosk/E-Posters/FP'.$value->abs_no.'.swf" class="button" rel="ilightbox" data-options="width: 1000, height: 640">View E Poster</a>
// ]]></content:encoded>
// <excerpt:encoded><![CDATA[]]></excerpt:encoded>
// <wp:post_id>'.$value->abs_no.'</wp:post_id>
// <wp:post_date><![CDATA[2018-01-25 05:32:25]]></wp:post_date>
// <wp:post_date_gmt><![CDATA[2018-01-25 05:32:25]]></wp:post_date_gmt>
// <wp:comment_status><![CDATA[open]]></wp:comment_status>
// <wp:ping_status><![CDATA[open]]></wp:ping_status>
// <wp:post_name><![CDATA[fp1-manual-small-incision-cataract-refractive-surgery]]></wp:post_name>
// <wp:status><![CDATA[publish]]></wp:status>
// <wp:post_parent>0</wp:post_parent>
// <wp:menu_order>0</wp:menu_order>
// <wp:post_type><![CDATA[post]]></wp:post_type>
// <wp:post_password><![CDATA[]]></wp:post_password>
// <wp:is_sticky>0</wp:is_sticky>
// <category domain="category" nicename="'.str_replace('<','&#60;',str_replace('&','&amp;',$value->category_display_name)).'"><![CDATA['.str_replace('<','&#60;',str_replace('&','&amp;',$value->category_display_name)).']]></category>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
// <wp:meta_value><![CDATA[1]]></wp:meta_value>
// </wp:postmeta>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_wp_old_slug]]></wp:meta_key>
// <wp:meta_value><![CDATA[fp1-manual-small-incision-cataract-refractive-surgery__trashed]]></wp:meta_value>
// </wp:postmeta>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_elementor_edit_mode]]></wp:meta_key>
// <wp:meta_value><![CDATA[builder]]></wp:meta_value>
// </wp:postmeta>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_wp_page_template]]></wp:meta_key>
// <wp:meta_value><![CDATA[elementor_canvas]]></wp:meta_value>
// </wp:postmeta>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_elementor_page_settings]]></wp:meta_key>
// <wp:meta_value><![CDATA[a:2:{s:21:"background_background";s:7:"classic";s:16:"background_color";s:7:"#ffffff";}]]></wp:meta_value>
// </wp:postmeta>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_elementor_version]]></wp:meta_key>
// <wp:meta_value><![CDATA[0.4]]></wp:meta_value>
// </wp:postmeta>
// <wp:postmeta>
// <wp:meta_key><![CDATA[_elementor_data]]></wp:meta_key>
// <wp:meta_value><![CDATA[[{"id":"3e64","elType":"section","settings":[],"elements":[{"id":"38cd","elType":"column","settings":{"_column_size":100},"elements":[{"id":"dd67f5a","elType":"widget","settings":[],"elements":[],"widgetType":"spacer"},{"id":"5582","elType":"widget","settings":{"editor":"<h2>FP'.$value->abs_no.' : '.str_replace('<','&#60;',str_replace('&','&amp;',$value->title)) .'<\/h2>\n<strong>'.$presentauthor[$value->abs_id].'<\/strong>\n\n'.str_replace('<','&#60;',str_replace('&','&amp;',$value->synopsis)).'\n\n"},"elements":[],"widgetType":"text-editor"}],"isInner":false}],"isInner":false},{"id":"f5f6040","elType":"section","settings":{"structure":"20"},"elements":[{"id":"e9aafd1","elType":"column","settings":{"_column_size":50,"_inline_size":null},"elements":[{"id":"27645e0","elType":"widget","settings":{"button_type":"info","text":"Back To List","align":"center","size":"lg","_animation":"fadeInLeft"},"elements":[],"widgetType":"button"}],"isInner":false},{"id":"d495c25","elType":"column","settings":{"_column_size":50,"_inline_size":null},"elements":[{"id":"1e1c30b","elType":"widget","settings":{"button_type":"success","text":"View E Poster","align":"center","link":{"url":"http:\/\/localhost:8080\/kiosk\/E-Posters\/FP'.$value->abs_no.'.swf","is_external":"","nofollow":""},"size":"lg","_animation":"fadeInRight"},"elements":[],"widgetType":"button"}],"isInner":false}],"isInner":false}]]]></wp:meta_value>
// </wp:postmeta>
// </item>
// ';
}
$eposter.="
</channel>
</rss>";
$filename = "eposter-".date('Y-M-d H:i').'.xml';
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Type: text/plain'); # Don't use application/force-download - it's not a real MIME type, and the Content-Disposition header is sufficient
header('Content-Length: ' . strlen($eposter));
header('Connection: close');
echo $eposter;
// $headers = array(
// 'Content-Type: application/test',
// );
// return Response::download($eposter, "eposter-".date('Y-mm-d H:i').'.xml', $headers);
//return View::make('backoffice.kiosk.epxml')->with('eposter',$eposter);
}
public function vtKiosk()
{
return View::make('backoffice.kiosk.vthtml');
}
public function downloadvtKiosk($category_id)
{
if(intval($category_id > 0))
{
$result = Abstracts::usp_get_abstracts(null,$category_id,'VT',null,null,null,2,null,null,'order by category_display_name,abs_no',null,null,null);
}
else
{
//6 Top 50 Videos
$result = Abstracts::usp_get_abstracts(null,null,'VT',null,null,6,2,null,null,'order by category_display_name,abs_no',null,null,null);
}
// var_dump($result);
// exit;
$presentauthor=[];
foreach ($result["authors"] as $key => $value)
{
//role_id 34 is chief author
//role_id 35 is presenting author
//role_id 36 is co author
if($value->role_id == 35)
{
$presentauthor[$value->abs_id]= $value->name;
}
}
$vt='<!DOCTYPE html>
<!-- Generated on '. date('d/m/Y H:i').' -->
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>AIOC 2023 - 81st Annual Conference of All India Ophthalmological Society</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/menu.css" />
<link rel="stylesheet" type="text/css" href="css/animsition.min.css" />
<script type="text/javascript" src="js/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="js/jquery.viewport.mini.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<link rel="stylesheet" href="css/stellar.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/stellar-font-awesome.css" type="text/css">
<link rel="stylesheet" href="css/jquery.mCustomScrollbar.css" type="text/css">
<script src="js/hls.js"></script>
<script src="js/jquery.mCustomScrollbar.js" type="text/javascript"></script>
<script src="js/videoPlayer.js" type="text/javascript"></script>
<script src="js/Playlist.js" type="text/javascript"></script>
<script src="js/iphone-inline-video.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function($)
{
videoPlayer = $("#Stellar_video_player").Video({ <!-- ALL PLUGIN OPTIONS -->
<!-- GLOBAL SETTINGS -->';
if($category_id == 202)
{
$vt.='instanceName:"player1",';
}elseif ($category_id == 201) {
$vt.='instanceName:"player3",';
}elseif ($category_id == 203) {
$vt.='instanceName:"player2",';
}else
{
$vt.='instanceName:"player4",';
}
$vt.='//name of the player instance (for multiple players per page change this name)
instanceTheme:"dark", //choose video player theme: "dark", "light"
playerLayout: "fitToContainer", //Select player layout: "fitToContainer" (responsive mode), "fixedSize" (fixed size on page load,responsive on resize), "fitToBrowser" (fill the browser window)
playerOrientation:"LTR", //adjust player text orientation: "LTR", "RTL" (left to right or right to left for eastern countries)
autohideControls:5, //autohide controls
hideControlsOnMouseOut:false, //hide controls on mouse out of the player: true, false
videoPlayerWidth:1280, //fixed total player width (only for playerLayout: "fixedSize")
videoPlayerHeight:720, //fixed total player height (only for playerLayout: "fixedSize")
videoRatio: 16/9, //set any video ratio (calculate video width/video height)
autoplay:false, //autoplay when webpage loads: true/false
colorAccent:"#ff0000", //plugin colors accent (hexadecimal or RGB value - http://www.colorpicker.com/)
videoAnimationTime: 350, //video transition animation when using show/hide playlist [miliseconds], 0-instant animation, larger number will increase animation time
playSpecificVideo: 0, //load and play specific video from playlist on page load [0-first video, 1-second video...]
progressBarThickness: 3, //adjust progress bar height [px]
progressBarThicknessOnMouseover: 6, //adjust video progress bar height on mouse over [px]
tooltipFontSize:20, //adjust tooltip font size
videoPlayerShadow:"effect1", //choose player shadow: "effect1" , "effect2", "effect3", "effect4", "effect5", "effect6", "off"
loadRandomVideoOnStart:false, //choose to load random video when webpage loads: true, false
shuffle:false, //choose to shuffle videos when playing one after another: true, false (shuffle button enabled/disabled on start)
posterImg:"assets/images/poster.jpg", //player poster image
posterImgOnVideoFinish:"assets/images/poster2.jpg", //player poster image on video finish (works if enabled onFinish:"Stop video")
onFinish:"Play next video", //"Play next video","Restart video", "Stop video",
nowPlayingText:true, //enable disable now playing title: true, false
showAllControls:true, //enable/disable all player controls: true/false
allowSkipAd:true, //enable/disable "Skip advertisement" option: true/false
infoShow:true, //enable/disable info option: true, false
nextShow:false, //enable/disable next video option: true, false
rewindShow:false, //enable/disable rewind video option: true, false
qualityShow:false, //enable/disable rewind video option: true, false
<!-- LIGHTBOX SETTINGS -->
lightBox:false, //lightbox mode :true/false
lightBoxAutoplay: false, //autoplay when lightbox opens: true/false
lightBoxThumbnail:"assets/images/poster.jpg", //lightbox thumbnail image
lightBoxThumbnailWidth: 400, //lightbox thumbnail image width
lightBoxThumbnailHeight: 220, //lightbox thumbnail image height
lightBoxCloseOnOutsideClick: true, //close lightbox when clicked outside of player area
<!-- PLAYLIST SETTINGS -->
playlist:"Right playlist", //choose playlist type: "Right playlist", "Bottom playlist", "Off"
playlistScrollType:"3d-thick-dark", //choose scrollbar type: "light","minimal","light-2","light-3","light-thick","light-thin","inset","inset-2","inset-3","rounded","rounded-dots","3d","dark","minimal-dark","dark-2","dark-3","dark-thick","dark-thin","inset-dark","inset-2-dark","inset-3-dark","rounded-dark","rounded-dots-dark","3d-dark","3d-thick-dark"
playlistBehaviourOnPageload:"opened (default)", //choose playlist behaviour when webpage loads: "closed", "opened (default)" (not apply to Vimeo player)
<!-- VIMEO PLAYER SETTINGS -->
vimeoColor:"00adef", //set "hexadecimal value", default vimeo color is "00adef"
<!-- YOUTUBE SETTINGS -->
youtubeControls:"custom controls", //choose youtube player controls: "custom controls", "default controls"
youtubeSkin:"dark", //default youtube controls theme: light, dark
youtubeColor:"red", //default youtube controls bar color: red, white
youtubeQuality:"default", //choose youtube quality: "small", "medium", "large", "hd720", "hd1080", "highres", "default"
youtubeShowRelatedVideos:true, //choose to show youtube related videos when video finish: true, false (onFinish:"Stop video" needs to be enabled)
<!-- HTML5 SELF HOSTED VIDEOS SETTINGS -->
HTML5VideoQuality:"HD", //choose HTML5 video quality (HD, SD)
preloadSelfHosted:"auto", //choose preload buffer for self hosted mp4 videos (video type HTML5): "none", "auto"
rightClickMenu:false, //enable/disable right click over HTML5 player: true/false
hideVideoSource:true, //option to hide self hosted video \'src\' attribute from <video> tag (to prevent users from download/steal your videos): true/false
<!-- SHARE SETTINGS -->
shareShow:false, //enable/disable complete share options (facebook/twitter/googlePlus): true, false
facebookShow:false, //enable/disable facebook option individually: true, false
twitterShow:false, //enable/disable twitter option individually: true, false
googlePlusShow:false, //enable/disable googlePlus option individually: true, false
facebookShareName:"Stellar video player", //first parametar of facebook share in facebook feed dialog is title
facebookShareLink:"http://codecanyon.net/", //second parametar of facebook share in facebook feed dialog is link below title
facebookShareDescription:"Stellar Video Player is stunning, modern, responsive, fully customisable high-end video player for WordPress that support advertising and the most popular video platforms like YouTube, Vimeo or self-hosting videos (mp4).", //third parametar of facebook share in facebook feed dialog is description below link
facebookSharePicture:"https://0.s3.envato.com/files/123866118/preview.jpg", //fourth parametar in facebook feed dialog is picture on left side
twitterText:"Stellar video player", //first parametar of twitter share in twitter feed dialog is text
twitterLink:"http://codecanyon.net/", //second parametar of twitter share in twitter feed dialog is link
twitterHashtags:"wordpressvideoplayer", //third parametar of twitter share in twitter feed dialog is hashtag
twitterVia:"Creative media", //fourth parametar of twitter share in twitter feed dialog is via (@)
googlePlus:"http://codecanyon.net/", //share link over Google +
<!-- LOGO SETTINGS -->
logoShow:false, //true, false
logoClickable:true, //true, false
logoPath:"assets/images/logo.jpg", //logo image url
logoGoToLink:"http://codecanyon.net/", //redirect to specific page when logo clicked
logoPosition:"bottom-left", //choose logo position: "bottom-right","bottom-left"
<!-- EMBED SETTINGS -->
embedShow:false, //enable/disable embed option: true, false
embedCodeSrc:"www.yourwebsite.com/videoplayer/index.html", //path to your jQuery version of video player on server
embedShareLink:"www.yourwebsite.com/videoplayer/index.html", //direct link to your site (or any other URL) you want to be "shared"
<!-- GLOBAL PREROLL ADS SETTINGS -->
showGlobalPrerollAds: false, //enable/disable \'global\' ads and overwrite each individual ad in \'videos\' :true/false
globalPrerollAds: "url1;url2;url3;url4;url5", //set \'pool\' of url\'s that are separated by ; (global prerolls will play randomly)
globalPrerollAdsSkipTimer: 5, //skip global advertisement seconds
globalPrerollAdsGotoLink: "http://codecanyon.net/", //global advertisement goto link
<!-- TRANSLATE TEXTS TO YOUR LANGUAGE --> //translate all texts to any language
advertisementTitle:"Advertisement",
skipAdvertisementText:"Skip advertisement",
skipAdText:"You can skip this ad in",
playBtnTooltipTxt:"Play",
pauseBtnTooltipTxt:"Pause",
rewindBtnTooltipTxt:"Rewind",
downloadVideoBtnTooltipTxt:"Download video",
qualityBtnOpenedTooltipTxt:"Close quality",
qualityBtnClosedTooltipTxt:"Select quality",
muteBtnTooltipTxt:"Mute",
unmuteBtnTooltipTxt:"Unmute",
fullscreenBtnTooltipTxt:"Fullscreen",
exitFullscreenBtnTooltipTxt:"Exit fullscreen",
infoBtnTooltipTxt:"Show info",
embedBtnTooltipTxt:"Embed",
shareBtnTooltipTxt:"Share",
volumeTooltipTxt:"Volume",
playlistBtnClosedTooltipTxt:"Show playlist",
playlistBtnOpenedTooltipTxt:"Hide playlist",
facebookBtnTooltipTxt:"Share on Facebook",
twitterBtnTooltipTxt:"Share on Twitter",
googlePlusBtnTooltipTxt:"Share on Google+",
nextBtnTooltipTxt:"Next video",
previousBtnTooltipTxt:"Previous video",
playlistSearchText: "Search for video...",
nextVideoInPlaylistText: "UP NEXT",
autoplayNextVideoInPlaylistOn: "Autoplay next video on",
autoplayNextVideoInPlaylistOff: "Autoplay next video off",
countVideos: "of",
shuffleBtnOnTooltipTxt:"Shuffle on",
shuffleBtnOffTooltipTxt:"Shuffle off",
embedWindowTitle2:"EMBED PLAYER IN YOUR SITE:",
embedWindowTitle3:"SHARE CURRENT VIDEO:",
copyTxt:"Copy",
copiedTxt:"Copied!",
<!-- AUTOMATIC YOUTUBE PLAYLIST/CHANNEL SETTINGS -->
youtubePlaylistID:"", //automatic youtube playlist ID (leave blank "" if you want to use manual playlist) PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM
youtubeChannelID:"", //automatic youtube channel ID (leave blank "" if you want to use manual playlist) UCHqaLr9a9M7g9QN6xem9HcQ
<!-- MANUAL PLAYLIST -->
videos:[
';
foreach ($result["abstracts"] as $key => $value)
{
$vt.='{
videoType:"HTML5",
title:"'.str_replace('"', '\"', str_replace(array("\r\n", "\r", "\n"), " ", $value->abs_type.$value->abs_no ." - ". Helper::title_case(substr($value->title,0,30).'....'))).'",
mp4HD:"videos/HD/VT'.$value->abs_no.'.mp4",
mp4SD:"videos/HD/VT'.$value->abs_no.'.mp4",
enable_mp4_download:false,
imageUrl:"videos/Thumbnail/VT'.$value->abs_no.'.jpg",
imageTimer:4,
description:"'.Helper::title_case($presentauthor[$value->abs_id]).'",
thumbImg:"videos/Thumbnail/VT'.$value->abs_no.'.jpg",
info:"'.str_replace('"', '\"', str_replace(array("\r\n", "\r", "\n"), " ", $value->synopsis)) .'"
},';
}
$vt.='
]
});
});
</script>
</head>
<body>
<div id="wrap">
<header>
<div class="container">
<div class="row">
<div class="col-6 brand"> <img src="images/logo.png" alt="Logo" height="100"> </div>
<div class="col-6 my-auto"> <a href="videos.html"><img src="images/video_btn.png" alt="Back to Videos" class="float-right" style="margin-left: 10px;"></a><a href="index.html"><img src="images/home.png" alt="Back to Home" class="float-right"> </a>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="heading">
<h1 class="left">Videos</h1>
</div>
</div>
</div>
<div class="row">
<div class="content" style="background:#000;">
<div id="Stellar_video_player"></div>
</div>
</div>
</div>
</div>
<script>
$("body").on(\'mouseover\', \'a\', function(e) {
var $link = $(this),
href = $link.attr(\'href\') || $link.data("href");
$link.off(\'click.chrome\');
$link.on(\'click.chrome\', function() {
window.location.href = href;
}).attr(\'data-href\', href).css({
cursor: \'pointer\'
}).removeAttr(\'href\');
});
document.getElementById("home").onclick = function() {
location.href = "index.html";
};
</script>
<script src="js/classie.js"></script>
<script src="js/menu.js"></script>
<script src="js/animsition.min.js" charset="utf-8"></script>
<script>
$(document).ready(function() {
$(\'.container\').animsition();
});
</script>
</body>
</html>';
if($category_id == 202)
{
$filename = 'anterior.html';
}
elseif($category_id == 201)
{
$filename = 'general.html';
}
elseif($category_id == 203)
{
$filename = 'posterior.html';
}
else
{
$filename = 'top_videos.html';
}
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Type: text/plain'); # Don't use application/force-download - it's not a real MIME type, and the Content-Disposition header is sufficient
header('Content-Length: ' . strlen($vt));
header('Connection: close');
echo $vt;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists