1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
2
"http://www.w3.org/TR/html4/frameset.dtd">
5
MediaTomb - http://www.mediatomb.cc/
7
index.html - this file is part of MediaTomb.
9
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
10
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
12
Copyright (C) 2006-2007 Gena Batyan <bgeradz@mediatomb.cc>,
13
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
14
Leonhard Wimmer <leo@mediatomb.cc>
16
MediaTomb is free software; you can redistribute it and/or modify
17
it under the terms of the GNU General Public License version 2
18
as published by the Free Software Foundation.
20
MediaTomb is distributed in the hope that it will be useful,
21
but WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
GNU General Public License for more details.
25
You should have received a copy of the GNU General Public License
26
version 2 along with MediaTomb; if not, write to the Free Software
27
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
29
$Id: index.html 1294 2007-05-13 16:28:24Z lww $
33
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
34
<title>MEDIATOMB</title>
35
<link rel="shortcut icon" href="/favicon.ico" type="image/ico">
36
<script type="text/javascript" language="JavaScript" src="/js/tools.js"></script>
37
<script type="text/javascript" language="JavaScript" src="/js/icons.js"></script>
38
<script type="text/javascript" language="JavaScript" src="/js/md5.js"></script>
39
<script type="text/javascript" language="JavaScript" src="/js/auth.js"></script>
40
<script type="text/javascript" language="JavaScript" src="/js/prototype.js"></script>
41
<script type="text/javascript" language="JavaScript" src="/js/nanotree.js"></script>
42
<script type="text/javascript" language="JavaScript" src="/js/tree.js"></script>
43
<script type="text/javascript" language="JavaScript" src="/js/items.js"></script>
44
<script type="text/javascript" language="JavaScript" src="/js/autoscan.js"></script>
45
<script type="text/javascript" language="JavaScript" src="/js/tasks.js"></script>
46
<script type="text/javascript" language="JavaScript">
48
var SID; // session id
49
var TYPE; // database or filesystem
50
var ACCOUNTS; // accounts enabled or disabled
51
// is set by checkSID();
53
var isMSIE = /MSIE/.test(navigator.userAgent);
56
var msieWarn = getCookie("MSIEwarn");
59
setCookie("MSIEwarn", "ok");
60
alert('MediaTomb UI is very limited with Internet Explorer and some elements will be displayed incorrectly! Please see the section "Internet Explorer" in the README file.');
68
TYPE = getCookie("TYPE");
69
SID = getCookie("SID");
70
lastNodeDbWish = getCookie("lastNodeDb");
71
lastNodeFsWish = getCookie("lastNodeFs");
72
var cookieViewItems = getCookie("viewItems");
74
viewItems = cookieViewItems;
78
alert("getCookie-Fehler");
81
if (TYPE!="db" && TYPE!="fs") TYPE="db";
83
//if (SID && SID != null && SID != 'null')
85
var topDocument = frames["topF"].document;
86
var rightDocument = frames["rightF"].document;
87
var leftDocument = frames["leftF"].document;
90
var logoutLinkEl = topDocument.getElementById("logout_link");
92
Element.show(logoutLinkEl);
94
Element.hide(logoutLinkEl);
97
if (!SID || SID == null)
99
Element.show(rightDocument.getElementById("loginDiv"));
100
Element.show(leftDocument.getElementById("leftLoginDiv"));
105
Element.show(topDocument.getElementById("topDiv"));
106
Element.show(leftDocument.getElementById("treeDiv"));
107
Element.show(frames["topleftF"].document.getElementById("db_fs_selector"));
108
Element.show(topDocument.getElementById("statusDiv"));
110
Element.show(topDocument.getElementById("logout_link"));
112
var globalAjaxHandlers = {
115
setStatus("loading");
118
onComplete: function()
120
if(Ajax.activeRequestCount < 0)
121
Ajax.activeRequestCount = 0;
122
if(Ajax.activeRequestCount == 0)
128
onException: function()
130
alert("MediaTomb cannot be reached! Please check if the server is still running.");
132
if(Ajax.activeRequestCount < 0)
133
Ajax.activeRequestCount = 0;
134
if(Ajax.activeRequestCount == 0)
142
Ajax.Responders.register(globalAjaxHandlers);
145
function initLoggedIn()
150
Element.addClassName(frames["topleftF"].document.getElementById('type_' + TYPE), 'selected');
152
frames["rightF"].document.onkeypress=userActivity;
153
frames["rightF"].document.onmousedown = mouseDownHandler;
154
frames["topF"].document.onmousedown = mouseDownHandler;
155
frames["topleftF"].document.onmousedown = mouseDownHandler;
156
frames["toprightF"].document.onmousedown = mouseDownHandler;
159
function setType(tmpType)
161
var topLeftDocument = frames["topleftF"].document;
162
var deselectedEl = topLeftDocument.getElementById('type_' + TYPE);
163
var selectedEl = topLeftDocument.getElementById('type_' + tmpType);
165
if (deselectedEl != selectedEl)
167
Element.removeClassName(deselectedEl, 'selected');
168
Element.addClassName(selectedEl, 'selected');
170
//$('type_' + otherType).removeClassName('selected');
171
//$('type_' + tmpType).addClassName('selected');
172
//Element.addClassName('type_' + tmpType, 'selected');
173
//Element.removeClassName('type_' + otherType, 'selected');
175
setCookie("TYPE", TYPE);
185
<frameset frameborder="1" border="2" framespacing="2" bordercolor="#FFFFFF" rows="112px,*" onload="init();">
186
<frame src="top.html" name="topF" frameborder="0" noresize>
187
<frameset cols="30%,*" frameborder="1" border="2" framespacing="2" bordercolor="#FFFFFF">
188
<frameset rows="40px,*" frameborder="1" border="2" framespacing="2" bordercolor="#FFFFFF">
189
<frame src="topleft.html" name="topleftF" frameborder="0" noresize>
190
<frame src="left.html" name="leftF" frameborder="0" noresize>
192
<frameset rows="40px,*" frameborder="1" border="2" framespacing="2" bordercolor="#FFFFFF">
193
<frame src="topright.html" name="toprightF" frameborder="0" noresize>
194
<frame src="right.html" name="rightF" frameborder="0" noresize>