function reload_browser($do_js_request = FALSE, $site_network)
{
    if (!headers_sent()) {
        header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 3600) . ' GMT');
        header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
        header('Cache-Control: no-store, no-cache, must-revalidate');
        header('Cache-Control: post-check=0, pre-check=0', false);
        header('Pragma: no-cache');
    }
    $primary_url = $site_network->getPrimaryURL();
    ?>
		<html>
			<head>
				<script type="text/javascript" src="<?php 
    echo sq_web_path('lib');
    ?>
/js/JsHttpConnector.js"></script>
				<script type="text/javascript" src="<?php 
    echo $primary_url;
    ?>
/__lib/session/session.php?in_primary=<?php 
    echo sq_web_path('root_url') == $primary_url ? 1 : 0;
    ?>
&site_network=<?php 
    echo $site_network->id;
    ?>
"></script>
				<script type="text/javascript">
					<?php 
    if ($do_js_request) {
        echo 'start_session_handler("' . sq_web_path('lib') . '/session/session.php?site_network=' . $site_network->id . '");' . "\n";
    }
    ?>
					setTimeout("document.location.href = document.location.href.replace('SQ_ACTION=logout','')", 100);
				</script>
			</head>
			<body>
			</body>
		</html>
	<?php 
    exit;
}
* +--------------------------------------------------------------------+
* | IMPORTANT: Your use of this Software is subject to the terms of    |
* | the Licence provided in the file licence.txt. If you cannot find   |
* | this file please contact Squiz (www.squiz.com.au) so we may provide|
* | you a copy.                                                        |
* +--------------------------------------------------------------------+
*
* $Id: embed_movie_title.php,v 1.2 2012/08/30 00:56:52 ewang Exp $
*
*/
require_once dirname(__FILE__) . '/../../../../core/include/init.inc';
?>

<html>
	<head>
		<title>Insert Link</title>
		<link rel="stylesheet" type="text/css" href="<?php 
echo sq_web_path('lib') . '/web/css/edit.css';
?>
" />
		<link rel="stylesheet" type="text/css" href="<?php 
echo sq_web_path('root_url');
?>
/__fudge/wysiwyg/core/popup.css" />
	</head>

	<body class="sq-popup-heading-frame title">
		<h1>Embed Movie</h1>
	</body>
</html>
		</form>


		<!-- Search results -->
		<div id="new-message-popup" class="sq-new-message-popup-wrapper">
			<div id="new-message-popup-titlebar">
				<div id="new-message-popup-close"><a href="#" onclick="document.getElementById('new-message-popup').style.display = 'none'; return false;"><img src="<?php 
echo sq_web_path('lib');
?>
/web/images/icons/cancel.png"></a></div>
				<span id="new-message-popup-title">Searched for ''</span>
			</div>
			<div id="new-message-popup-details"></div>
		</div>
		<div id="search-wait-popup"><div id="search-wait-popup-titlebar"><div id="search-wait-popup-close"><a href="#" onclick="document.getElementById('search-wait-popup').style.display = 'none'; return false;"><img src="<?php 
echo sq_web_path('lib');
?>
/web/images/icons/cancel.png"></a></div><span id="search-wait-popup-title">Search in Progress</span></div>
			<div id="search-wait-popup-details">Your search is being processed, please wait...</div>
		</div> 

		<script type="text/javascript"><!--
			var current = 1;
			var results_per_page = <?php 
echo $GLOBALS['SQ_SYSTEM']->getUserPrefs('search_manager', 'SQ_SEARCH_BACKEND_PAGE_SIZE') !== FALSE ? $GLOBALS['SQ_SYSTEM']->getUserPrefs('search_manager', 'SQ_SEARCH_BACKEND_PAGE_SIZE') : 5;
?>
;
			var total_results = 0;

			function jump_to_search_results(page) {
				// Show the correct page
" />
		<link rel="stylesheet" type="text/css" href="<?php 
echo sq_web_path('root_url');
?>
/__fudge/wysiwyg/core/popup.css" />
		<script type="text/javascript" src="../../core/popup.js"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('fudge') . '/var_serialise/var_serialise.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/html_form/html_form.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/js/general.js';
?>
"></script>

		<script type="text/javascript">

			function getFocus() {
				setTimeout('self.focus()',100);
			};

			function Init() {
				__dlg_init("ReplaceText");
				setTimeout('self.focus()',100);
			};

			function onOK() {
Example #5
0
*
*/
// include init.in, which will call $GLOBALS['SQ_SYSTEM']->init() and start a session
require_once '../../include/init.inc';
header("content-type: application/javascript");
$site_network_id = array_get_index($_GET, 'site_network', '0');
$site_network = null;
$primary_url = '';
$session_handler = $GLOBALS['SQ_SYSTEM']->getSessionHandlerClassName();
if ($site_network_id) {
    $site_network =& $GLOBALS['SQ_SYSTEM']->am->getAsset($site_network_id);
    if (!is_null($site_network)) {
        $primary_url = $site_network->getPrimaryURL();
    }
}
if ($primary_url == sq_web_path('root_url')) {
    // if the actual script execution is happening in the primary
    // url, we want to update the time to persuade the overriding
    // of the secondary session files
    if (isset($_GET['in_primary']) && $_GET['in_primary']) {
        $_SESSION['SQ_SESSION_TIMESTAMP'] = time();
        exit;
    }
    // see design.inc and pre_session.php
    // on how we call this function when we move from one site to another
    echo 'var SESSIONID = "' . session_id() . '";';
    ?>
	function start_session_handler(url) {
		JsHttpConnector.submitRequest(url, null, 'sessionid=' + SESSIONID);
	}
	<?php 
echo sq_web_path('lib') . '/js/general.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/js/tooltip.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/web/dfx/dfx.js';
?>
"></script>
		<?php 
echo $asset_map->embedAssetMapRequiredJS();
?>
		<link rel="stylesheet" type="text/css" href="<?php 
echo sq_web_path('lib') . '/asset_map/js/js_asset_map.css';
?>
" />

		<style type="text/css">
			html, body {
				margin: 0px;
				padding: 0px;
			}
		</style>
	</head>

	<body>
	    <div id="asset_map">
		<?php 
$asset_map->embedAssetMap('simple', 200, 350);
Example #7
0
<!--[if IE 10 ]>    <html class="ie ie-10 gtie8 gtie9"> <![endif]-->
<!--[if !IE]><!--> 	<html class="">                     <!--<![endif]-->
<head>
	<meta charset="utf-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<title>Squiz Matrix - Edit Bodycopy</title>
	<link rel="stylesheet" type="text/css" href="<?php 
echo sq_web_path('lib');
?>
/web/css/edit.css" />

	<?php 
if ($_GET['browser'] != 'ns') {
    ?>
<script language="JavaScript" src="<?php 
    echo sq_web_path('lib') . '/js/detect.js';
    ?>
"></script><?php 
}
?>

	<script>
		if (is_ie4up || is_dom) {
			var owner = parent;
		} else {
			var owner = window;
		}// end if

		function popup_close() {
			popup_init = null;
			owner.bodycopy_hide_popup();
    if ($GLOBALS['SQ_SYSTEM']->getUserPrefs('bodycopy_container', 'SQ_DIV_DISABLE_DELETE') === 'yes') {
        echo '<p class="sq-warning-message">';
        echo translate('You cannot delete a Div or Table while it is disabled in user preference.');
        echo '</p>';
    } else {
        ?>

			<table>
				<tr>
					<td class="label"><?php 
        echo translate('Click Icon to Delete');
        ?>
:</td>
					<td>
						<?php 
        sq_print_icon(sq_web_path('data') . '/asset_types/bodycopy/images/icons/delete.png', 16, 16, 'Delete This Container', 'Delete This Container', 'onclick="owner.bodycopy_delete_div(document.main_form.bodycopy_name.value, document.main_form.divid.value);" style="cursor: pointer;"');
        ?>
					</td>
				</tr>
				</table>
			<?php 
    }
}
?>
			</fieldset>
		</td>
	</tr>
	<tr class="sq-popup-footer">
		<td align="left">
			<input type="button" class="" name="cancel" onClick="javascript: popup_close();" value="<?php 
echo translate('Cancel');
		<script type="text/javascript" src="../../core/popup.js"></script>
		<?php 
//add required js translation files
list($lang, $country, $variant) = $GLOBALS['SQ_SYSTEM']->lm->getLocaleParts($GLOBALS['SQ_SYSTEM']->lm->getCurrentLocale());
$include_list[] = sq_web_path('lib') . '/js/general.js';
$include_list[] = sq_web_path('lib') . '/js/translation.js';
if (file_exists(SQ_DATA_PATH . '/public/system/core/js_strings.' . $lang . '.js')) {
    $include_list[] = sq_web_path('data') . '/system/core/js_strings.' . $lang . '.js';
}
if (!empty($country)) {
    if (file_exists(SQ_DATA_PATH . '/public/system/core/js_strings.' . $lang . '_' . $country . '.js')) {
        $include_list[] = sq_web_path('data') . '/system/core/js_strings.' . $lang . '_' . $country . '.js';
    }
    if (!empty($variant)) {
        if (file_exists(SQ_DATA_PATH . '/public/system/core/js_strings.' . $lang . '_' . $country . '@' . $variant . '.js')) {
            $include_list[] = sq_web_path('data') . '/system/core/js_strings.' . $lang . '_' . $country . '@' . $variant . '.js';
        }
    }
}
foreach ($include_list as $link) {
    ?>
<script type="text/javascript" src="<?php 
    echo $link;
    ?>
"></script><?php 
}
?>

		<script type="text/javascript">
			var parent_object = opener.editor_<?php 
echo preg_replace('/[\'"\\(\\);\\[\\]{}<>=]+/', '', $_REQUEST['editor_name']);
	<tr>
		<td colspan="2">
			<h2><?php 
echo translate('Delete This Table');
?>
</h2>
			<fieldset class="last">
			<table>
				<tr>
					<td class="label"><?php 
echo translate('Click Icon to Delete');
?>
:</td>
					<td>
						<a href="javascript: owner.bodycopy_delete_table(document.main_form.bodycopy_name.value, document.main_form.tableid.value);" style="cursor: pointer;"><script language="JavaScript" type="text/javascript">sq_print_icon("<?php 
echo sq_web_path('data');
?>
/asset_types/bodycopy/images/icons/delete.png", "16", "16", "Delete this table");</script></a>
					</td>
				</tr>
			</table>
			</fieldset>
		</td>
	</tr>
	<tr>
	<tr class="sq-popup-footer">
		<td align="left">
			<input type="button" class="" name="cancel" onClick="javascript: popup_close();" value="<?php 
echo translate('Cancel');
?>
"/>
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('fudge') . '/var_serialise/var_serialise.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/html_form/html_form.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/js/general.js';
?>
"></script>
		<script type="text/javascript" src="<?php 
echo sq_web_path('lib') . '/js/tooltip.js';
?>
"></script>

		<script type="text/javascript">

			function Init() {
				__dlg_init("matrixEmbedYouTube");
			};

			function onOK() {
				// pass data back to the calling window
				var fields = ["f_width", "f_height", "f_colour1", "f_colour2"];
				var chk_fields = ["f_auto_start", "f_loop", "f_full_screen", "f_egm", "f_rel", "f_show_border", "f_enable_js"];
				var param = new Object();