~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

« back to all changes in this revision

Viewing changes to web/index.html

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-02-02 01:42:48 UTC
  • Revision ID: james.westby@ubuntu.com-20080202014248-cjouolddb8gi2zkz
Tags: upstream-0.10.0.dfsg1
ImportĀ upstreamĀ versionĀ 0.10.0.dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
 
2
     "http://www.w3.org/TR/html4/frameset.dtd">
 
3
<!--*MT*
 
4
    
 
5
    MediaTomb - http://www.mediatomb.cc/
 
6
    
 
7
    index.html - this file is part of MediaTomb.
 
8
    
 
9
    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
 
10
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
 
11
    
 
12
    Copyright (C) 2006-2007 Gena Batyan <bgeradz@mediatomb.cc>,
 
13
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
 
14
                            Leonhard Wimmer <leo@mediatomb.cc>
 
15
    
 
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.
 
19
    
 
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.
 
24
    
 
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.
 
28
    
 
29
    $Id: index.html 1294 2007-05-13 16:28:24Z lww $
 
30
-->
 
31
  <html>
 
32
    <head>
 
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">
 
47
            <!--
 
48
            var SID;      // session id
 
49
            var TYPE;     // database or filesystem
 
50
            var ACCOUNTS; // accounts enabled or disabled
 
51
                          // is set by checkSID();
 
52
            var loggedIn = false;
 
53
            var isMSIE = /MSIE/.test(navigator.userAgent);
 
54
            if (isMSIE)
 
55
            {
 
56
                var msieWarn = getCookie("MSIEwarn");
 
57
                if (msieWarn != "ok")
 
58
                {
 
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.');
 
61
                }
 
62
            }
 
63
            function init() {
 
64
                Try.these
 
65
                (
 
66
                    function()
 
67
                    {
 
68
                        TYPE = getCookie("TYPE");
 
69
                        SID = getCookie("SID");
 
70
                        lastNodeDbWish = getCookie("lastNodeDb");
 
71
                        lastNodeFsWish = getCookie("lastNodeFs");
 
72
                        var cookieViewItems = getCookie("viewItems");
 
73
                        if (cookieViewItems)
 
74
                            viewItems = cookieViewItems;
 
75
                    },
 
76
                    function()
 
77
                    {
 
78
                        alert("getCookie-Fehler");
 
79
                    }
 
80
                );
 
81
                if (TYPE!="db" && TYPE!="fs") TYPE="db";
 
82
                
 
83
                //if (SID && SID != null && SID != 'null')
 
84
                checkSID();
 
85
                var topDocument = frames["topF"].document;
 
86
                var rightDocument = frames["rightF"].document;
 
87
                var leftDocument = frames["leftF"].document;
 
88
                
 
89
                /*
 
90
                var logoutLinkEl = topDocument.getElementById("logout_link");
 
91
                if (ACCOUNTS)
 
92
                    Element.show(logoutLinkEl);
 
93
                else
 
94
                    Element.hide(logoutLinkEl);
 
95
                */
 
96
                    
 
97
                if (!SID || SID == null)
 
98
                {
 
99
                    Element.show(rightDocument.getElementById("loginDiv"));
 
100
                    Element.show(leftDocument.getElementById("leftLoginDiv"));
 
101
                }
 
102
                else
 
103
                {
 
104
                    loggedIn = true;
 
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"));
 
109
                    if (ACCOUNTS)
 
110
                        Element.show(topDocument.getElementById("logout_link"));
 
111
                }
 
112
                var globalAjaxHandlers = {
 
113
                    onCreate: function()
 
114
                    {
 
115
                        setStatus("loading");
 
116
                    },
 
117
                    
 
118
                    onComplete: function()
 
119
                    {
 
120
                        if(Ajax.activeRequestCount < 0)
 
121
                            Ajax.activeRequestCount = 0;
 
122
                        if(Ajax.activeRequestCount == 0)
 
123
                        {
 
124
                            setStatus("idle");
 
125
                        }
 
126
                    },
 
127
                    
 
128
                    onException: function()
 
129
                    {
 
130
                        alert("MediaTomb cannot be reached! Please check if the server is still running.");
 
131
                        clearPollInterval();
 
132
                        if(Ajax.activeRequestCount < 0)
 
133
                            Ajax.activeRequestCount = 0;
 
134
                        if(Ajax.activeRequestCount == 0)
 
135
                        {
 
136
                            setStatus("idle");
 
137
                        }
 
138
                    }
 
139
                };
 
140
                if (loggedIn)
 
141
                    initLoggedIn();
 
142
                Ajax.Responders.register(globalAjaxHandlers);
 
143
            }
 
144
            
 
145
            function initLoggedIn()
 
146
            {
 
147
                getConfig();
 
148
                itemInit();
 
149
                treeInit();
 
150
                Element.addClassName(frames["topleftF"].document.getElementById('type_' + TYPE), 'selected');
 
151
                
 
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;
 
157
            }
 
158
            
 
159
            function setType(tmpType)
 
160
            {
 
161
                var topLeftDocument = frames["topleftF"].document;
 
162
                var deselectedEl = topLeftDocument.getElementById('type_' + TYPE);
 
163
                var selectedEl = topLeftDocument.getElementById('type_' + tmpType);
 
164
                
 
165
                if (deselectedEl != selectedEl)
 
166
                {
 
167
                    Element.removeClassName(deselectedEl, 'selected');
 
168
                    Element.addClassName(selectedEl, 'selected');
 
169
                }
 
170
                //$('type_' + otherType).removeClassName('selected');
 
171
                //$('type_' + tmpType).addClassName('selected');
 
172
                //Element.addClassName('type_' + tmpType, 'selected');
 
173
                //Element.removeClassName('type_' + otherType, 'selected');
 
174
                TYPE = tmpType;
 
175
                setCookie("TYPE", TYPE);
 
176
                treeChangeType();
 
177
                itemChangeType();
 
178
                return undefined;
 
179
            }
 
180
            
 
181
            //-->
 
182
        </script>
 
183
 
 
184
    </head>
 
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>
 
191
            </frameset>
 
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>
 
195
            </frameset>
 
196
        </frameset>
 
197
    </frameset>
 
198
</html>