<!DOCTYPE html> <html> <head> <title>%OBM_EDITION_NAME%</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"></meta> <meta content="en" http-equiv="Content-Language"></meta> <script src="env.cgi?_=%TIMESTAMP%" type="text/javascript"></script> <script src="/scripts/ext-3/adapter/ext/ext-base.js" type="text/javascript"></script> <script src="/scripts/ext-3/ext-all.js" type="text/javascript"></script> <script src="js/session.js" type="text/javascript"></script> <script>

	// Check for Qnap session
	function QTScheckLogin(obj) {
		if (obj.cookies == "") {
			if (location.hostname.indexOf(':') == -1) {
				location.href = obj.pr + "://" + location.hostname + ":" + obj.port_no + obj.pt + obj.redirect_suffix;
			} else { // could be ipv6 addr
				var url = "";
				url = obj.pr + "://[" + location.hostname.replace(/[\[\]]/g, '') + "]" + obj.pt + obj.redirect_suffix;
				location.href = url;
			}
		}
	}

	// Check for Synology session
	function DSMchecklogin() {
		Ext.Loader.load(
		["/webman/dsmtoken.cgi"],
		function(){
			Ext.onReady(function() {
				if (Ext.isEmpty(SYNO.SDS.Session)) {
					window.location.assign("/webman");
				}
			});
		}
	);
	}

	if (APP_DEBUG_MODE != "A") {
		var app_os = getCookie("APP_OS");
		if (app_os == "QTS") {
			getVar(QTScheckLogin);
		} else if (app_os == "DSM") {
			DSMchecklogin();
		} else { // redirect to index.html to get the name of OS again
			location.href = "index.html";
		}
	}

	// Create dummy function to avoid error in IE
	if (!window.console) {window.console = {};}
	if (!console.log) {console.log = function() {};}
</script> <link href="css/jquery-ui-1.11.4.css" type="text/css" rel="stylesheet"></link> <link href="css/jquery-ui-1.11.4.structure.css" type="text/css" rel="stylesheet"></link> <link href="css/jquery-ui-1.11.4.theme.css" type="text/css" rel="stylesheet"></link> <link href="css/jquery.dataTables.css" type="text/css" rel="stylesheet"></link> <link href="css/jstree/style.css" type="text/css" rel="stylesheet"></link> <link href="css/normalize.css" type="text/css" rel="stylesheet"></link> <link href="css/ahsay.obx.css?_=%TIMESTAMP%" type="text/css" rel="stylesheet"></link> <link href="css/ahsay.obc.css?_=%TIMESTAMP%" type="text/css" rel="stylesheet"></link> <script src="js/jquery-1.11.3.js" type="text/javascript"></script> <script src="js/jquery-ui-1.11.4.js" type="text/javascript"></script> <script src="js/jquery.blockUI.js" type="text/javascript"></script> <script src="js/jquery.dataTables.js" type="text/javascript"></script> <script src="js/jquery.dataTables.date-ahsay.js" type="text/javascript"></script> <script src="js/jstree/jstree.js" type="text/javascript"></script> <script src="js/clipboard/clipboard.min.js" type="text/javascript"></script> <script src="js/viewport-units-buggyfill.js" type="text/javascript"></script> <script src="js/jquery-custom.js" type="text/javascript"></script> <script src="js/ahsay.obx.common.js?_=%TIMESTAMP%" type="text/javascript"></script> <script src="js/ahsay.obx.class.js?_=%TIMESTAMP%" type="text/javascript"></script> <script src="js/ahsay.obc.common.js?_=%TIMESTAMP%" type="text/javascript"></script> <script src="js/ahsay.obc.class.js?_=%TIMESTAMP%" type="text/javascript"></script> <script>
	// Init viewport CSS fix for IE
	window.viewportUnitsBuggyfill.init();
	// Moved to jquery-custom.js
	/*
	// Force jQuery ajax call to not caching since IE will cache by default
	$.ajaxSetup({ cache: false });
	*/
</script> </head>