This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('America/New_York'); | |
//Setup | |
$channelID = 2; | |
$startInDays = 4; | |
$scheduleForDays = 7; | |
$monthsToLookBack = 3; | |
require_once('nusoap.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$("a[href*=mms]").click(function(){ | |
if(!confirm("Do you really wish to view this video. Here is some legal mumbo jumbo?")) { | |
return false; | |
} | |
}) | |
}) | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("ctnDBConnect.php"); | |
require_once('nusoap.php'); | |
$contentPaths = array("/Volumes/VS400/", "/Volumes/SXServer/", "/Volumes/SXSafe/"); | |
$destinationPath = "/Volumes/VODContent/VOD/"; | |
$ffmpegOptions = "-qscale 8 -r 25 -ar 44100 -y"; | |
$ccVODprojectsIDs = array(55, 58, 59); //Add 55 and 58 | |
$report = ""; | |
$skippedReport = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(\b[0-9]+)-?([0-9]+)?.*\.(mpg|mpeg|MPG|MPEG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function updateProjectIDforShow($show_id, $project_id) { | |
if($cablecast_client = $this->get_cablecast_client()) { | |
$showInfo = $cablecast_client->GetShowInformation($show_id); | |
$showInfo = $showInfo->GetShowInformationResult; | |
$params = array("ShowID" => $showInfo->ShowID, | |
"LocalID" => $showInfo->LocalID, | |
"Title" => $showInfo->InternalTitle, | |
"CGTitle" => $showInfo->Title, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cablecast_client = new SoapClient("http://demo.trms.com/CablecastWS/CablecastWS.asmx?WSDL"); | |
$showInfo = $cablecast_client->GetShowInformation(array("ShowID" => 21978)); | |
$showInfo = $showInfo->GetShowInformationResult; | |
$params = array("ShowID" => $showInfo->ShowID, | |
"LocalID" => $showInfo->LocalID, | |
"Title" => $showInfo->InternalTitle, | |
"CGTitle" => $showInfo->Title, | |
"ProjectID" => 18, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Setup Content drives and Destination path | |
$contentPaths = array("/Volumes/VS400/", "/Volumes/SXServer/", "/Volumes/SXSafe/"); | |
$destinationPath = "/Volumes/VODContent/mp4/"; | |
$transcodeCommand = "HandBrakeCLI --preset \"iPhone & iPod Touch\" --width 320 --vb 500 --two-pass --turbo --optimize "; | |
//Define some functions to do various tasks | |
function dirList ($directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = new view; | |
$view->name = 'Schedule'; | |
$view->description = 'Schedule'; | |
$view->tag = ''; | |
$view->view_php = ''; | |
$view->base_table = 'node'; | |
$view->is_cacheable = FALSE; | |
$view->api_version = 2; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Defaults', 'default'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Configure Script | |
$server = "http://frontdoor.ctn5.org/"; //include trailing backslash | |
$channelID = 1; //Cablecast Channel ID | |
$defualtSource = "Community Bulletin Board"; | |
date_default_timezone_set("America/New_York"); | |
//End Configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Configure Script | |
$displayUpcomingNum = 4; // Changes number of upcoming shows to display | |
$server = "http://frontdoor.ctn5.org/"; //include trailing backslash | |
$channelID = 1; //Cablecast Channel ID | |
date_default_timezone_set("America/New_York"); | |
//End Configure | |
$server = $server."CablecastWS/CablecastWS.asmx?WSDL"; //Generates Link to WSDL file. |
OlderNewer