Location: PHPKode > scripts > JTV Calendar Widget > jhuckaby-jtv-calendar-widget-d6966bf/widget.php
<?php
	// Google Calendar Event Display
	// Copyright (c) 2011 Joseph Huckaby
	// Released under the MIT License
	
	header('Content-Type: text/javascript');
	
	$data_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/data.php';
	print 'var gcal_widget_data_url = "'.$data_url.'";' . "\n";
	print file_get_contents( 'widget.js' );
?>
Return current item: JTV Calendar Widget