~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: 2009-04-22 21:39:19 UTC
  • mto: (4.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090422213919-52m015y6gcpv1m1g
Tags: upstream-0.12.0~svn2018
ImportĀ upstreamĀ versionĀ 0.12.0~svn2018

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
10
10
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
11
11
    
12
 
    Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
 
12
    Copyright (C) 2006-2009 Gena Batyan <bgeradz@mediatomb.cc>,
13
13
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
14
14
                            Leonhard Wimmer <leo@mediatomb.cc>
15
15
    
26
26
    version 2 along with MediaTomb; if not, write to the Free Software
27
27
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
28
28
    
29
 
    $Id: index.html 1698 2008-02-23 20:48:30Z lww $
 
29
    $Id: index.html 2010 2009-01-11 19:10:43Z lww $
30
30
-->
31
31
  <html>
32
32
    <head>
48
48
            var SID;      // session id
49
49
            var TYPE;     // database or filesystem
50
50
            var ACCOUNTS; // accounts enabled or disabled
 
51
            var LOGGED_IN;// logged in?
51
52
                          // is set by checkSID();
52
53
            var loggedIn = false;
53
54
            var isMSIE = /MSIE/.test(navigator.userAgent);
81
82
                if (TYPE!="db" && TYPE!="fs") TYPE="db";
82
83
                
83
84
                //if (SID && SID != null && SID != 'null')
 
85
                getConfig();    
84
86
                checkSID();
85
87
                var topDocument = frames["topF"].document;
86
88
                var rightDocument = frames["rightF"].document;
94
96
                    Element.hide(logoutLinkEl);
95
97
                */
96
98
                    
97
 
                if (!SID || SID == null)
 
99
                if (!SID || SID == null || ! LOGGED_IN)
98
100
                {
99
101
                    Element.show(rightDocument.getElementById("loginDiv"));
100
102
                    Element.show(leftDocument.getElementById("leftLoginDiv"));
144
146
            
145
147
            function initLoggedIn()
146
148
            {
147
 
                getConfig();
148
149
                itemInit();
149
150
                treeInit();
150
151
                Element.addClassName(frames["topleftF"].document.getElementById('type_' + TYPE), 'selected');