plugins/SpecialAdmin.php
changeset 564 a1c450a911a6
parent 555 ac4c6a7f01d8
child 573 43e7254afdb4
equal deleted inserted replaced
563:0103428e2179 564:a1c450a911a6
     3 {
     3 {
     4   "Plugin Name"  : "plugin_specialadmin_title",
     4   "Plugin Name"  : "plugin_specialadmin_title",
     5   "Plugin URI"   : "http://enanocms.org/",
     5   "Plugin URI"   : "http://enanocms.org/",
     6   "Description"  : "plugin_specialadmin_desc",
     6   "Description"  : "plugin_specialadmin_desc",
     7   "Author"       : "Dan Fuhry",
     7   "Author"       : "Dan Fuhry",
     8   "Version"      : "1.1.3",
     8   "Version"      : "1.1.4",
     9   "Author URI"   : "http://enanocms.org/"
     9   "Author URI"   : "http://enanocms.org/"
    10 }
    10 }
    11 **!*/
    11 **!*/
    12 
    12 
    13 /*
    13 /*
  1960         document.getElementById('ajaxPageContainer').innerHTML = '<div class="error-box">Because of the lack of AJAX support, support for Internet Explorer versions less than 6.0 has been disabled in Runt. You can download and use Mozilla Firefox (or Seamonkey under Windows 95); both have an up-to-date standards-compliant rendering engine that has been tested thoroughly with Enano.</div>';
  1960         document.getElementById('ajaxPageContainer').innerHTML = '<div class="error-box">Because of the lack of AJAX support, support for Internet Explorer versions less than 6.0 has been disabled in Runt. You can download and use Mozilla Firefox (or Seamonkey under Windows 95); both have an up-to-date standards-compliant rendering engine that has been tested thoroughly with Enano.</div>';
  1961         return false;
  1961         return false;
  1962       }
  1962       }
  1963       if ( t == namespace_list.Admin + 'AdminLogout' )
  1963       if ( t == namespace_list.Admin + 'AdminLogout' )
  1964       {
  1964       {
  1965         var mb = new messagebox(MB_YESNO|MB_ICONQUESTION, $lang.get('user_logout_confirm_title_elev'), $lang.get('user_logout_confirm_body_elev'));
  1965         miniPromptMessage({
  1966         mb.onclick['Yes'] = function() {
  1966             title: $lang.get('user_logout_confirm_title_elev'),
  1967           var tigraentry = document.getElementById('i_div0_0').parentNode;
  1967             message: $lang.get('user_logout_confirm_body_elev'),
  1968           var tigraobj = $(tigraentry);
  1968             buttons: [
  1969           var div = document.createElement('div');
  1969               {
  1970           div.style.backgroundColor = '#FFFFFF';
  1970                 text: $lang.get('user_logout_confirm_btn_logout'),
  1971           domObjChangeOpac(70, div);
  1971                 color: 'red',
  1972           div.style.position = 'absolute';
  1972                 style: {
  1973           var top = tigraobj.Top();
  1973                   fontWeight: 'bold'
  1974           var left = tigraobj.Left();
  1974                 },
  1975           var width = tigraobj.Width();
  1975                 onclick: function()
  1976           var height = tigraobj.Height();
  1976                 {
  1977           div.style.top = top + 'px';
  1977                   var tigraentry = document.getElementById('i_div0_0').parentNode;
  1978           div.style.left = left + 'px';
  1978                   var tigraobj = $(tigraentry);
  1979           div.style.width = width + 'px';
  1979                   var div = document.createElement('div');
  1980           div.style.height = height + 'px';
  1980                   div.style.backgroundColor = '#FFFFFF';
  1981           var body = document.getElementsByTagName('body')[0];
  1981                   domObjChangeOpac(70, div);
  1982           enlighten(true);
  1982                   div.style.position = 'absolute';
  1983           body.appendChild(div);
  1983                   var top = tigraobj.Top();
  1984           ajaxPageBin(namespace_list.Admin + 'AdminLogout');
  1984                   var left = tigraobj.Left();
  1985         }
  1985                   var width = tigraobj.Width();
       
  1986                   var height = tigraobj.Height();
       
  1987                   div.style.top = top + 'px';
       
  1988                   div.style.left = left + 'px';
       
  1989                   div.style.width = width + 'px';
       
  1990                   div.style.height = height + 'px';
       
  1991                   var body = document.getElementsByTagName('body')[0];
       
  1992                   miniPromptDestroy(true);
       
  1993                   body.appendChild(div);
       
  1994                   ajaxPageBin(namespace_list.Admin + 'AdminLogout');
       
  1995                 }
       
  1996               },
       
  1997               {
       
  1998                 text: $lang.get('etc_cancel'),
       
  1999                 onclick: function()
       
  2000                 {
       
  2001                   miniPromptDestroy(this);
       
  2002                 }
       
  2003               }
       
  2004             ]
       
  2005           });
  1986         return;
  2006         return;
  1987       }
  2007       }
  1988       ajaxPageBin(t);
  2008       ajaxPageBin(t);
  1989     }
  2009     }
  1990     function ajaxPageBin(t)
  2010     function ajaxPageBin(t)