plugins/SpecialAdmin.php
changeset 58 8f532d8ab5f5
parent 57 b354deeaa4c4
child 61 e9708657875a
equal deleted inserted replaced
48:fc9762553a3c 58:8f532d8ab5f5
  2348     echo 'Administer your Enano website.';
  2348     echo 'Administer your Enano website.';
  2349     ?>
  2349     ?>
  2350     <script type="text/javascript">
  2350     <script type="text/javascript">
  2351     function ajaxPage(t)
  2351     function ajaxPage(t)
  2352     {
  2352     {
       
  2353       if ( KILL_SWITCH )
       
  2354       {
       
  2355         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>';
       
  2356         return false;
       
  2357       }
  2353       if ( t == namespace_list.Admin + 'AdminLogout' )
  2358       if ( t == namespace_list.Admin + 'AdminLogout' )
  2354       {
  2359       {
  2355         var mb = new messagebox(MB_YESNO|MB_ICONQUESTION, 'Are you sure you want to de-authenticate?', 'If you de-authenticate, you will no longer be able to use the administration panel until you re-authenticate again. You may do so at any time using the Administration button on the sidebar.');
  2360         var mb = new messagebox(MB_YESNO|MB_ICONQUESTION, 'Are you sure you want to de-authenticate?', 'If you de-authenticate, you will no longer be able to use the administration panel until you re-authenticate again. You may do so at any time using the Administration button on the sidebar.');
  2356         mb.onclick['Yes'] = function() {
  2361         mb.onclick['Yes'] = function() {
  2357           var tigraentry = document.getElementById('i_div0_0').parentNode;
  2362           var tigraentry = document.getElementById('i_div0_0').parentNode;
  2377       }
  2382       }
  2378       ajaxPageBin(t);
  2383       ajaxPageBin(t);
  2379     }
  2384     }
  2380     function ajaxPageBin(t)
  2385     function ajaxPageBin(t)
  2381     {
  2386     {
       
  2387       if ( KILL_SWITCH )
       
  2388       {
       
  2389         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>';
       
  2390         return false;
       
  2391       }
  2382       document.getElementById('ajaxPageContainer').innerHTML = '<div class="wait-box">Loading page...</div>';
  2392       document.getElementById('ajaxPageContainer').innerHTML = '<div class="wait-box">Loading page...</div>';
  2383       ajaxGet('<?php echo scriptPath; ?>/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=<?php echo $session->sid_super; ?>', function() {
  2393       ajaxGet('<?php echo scriptPath; ?>/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=<?php echo $session->sid_super; ?>', function() {
  2384           if(ajax.readyState == 4) {
  2394           if(ajax.readyState == 4) {
  2385             document.getElementById('ajaxPageContainer').innerHTML = ajax.responseText;
  2395             document.getElementById('ajaxPageContainer').innerHTML = ajax.responseText;
  2386             fadeInfoBoxes();
  2396             fadeInfoBoxes();
  2422     <table border="0" width="100%">
  2432     <table border="0" width="100%">
  2423       <tr>
  2433       <tr>
  2424         <td class="holder" valign="top">
  2434         <td class="holder" valign="top">
  2425           <div class="pad" style="padding-right: 20px;">
  2435           <div class="pad" style="padding-right: 20px;">
  2426             <script type="text/javascript">
  2436             <script type="text/javascript">
  2427             new tree(TREE_ITEMS, TREE_TPL);
  2437             if ( !KILL_SWITCH )
       
  2438             {
       
  2439               new tree(TREE_ITEMS, TREE_TPL);
       
  2440             }
  2428             </script>
  2441             </script>
  2429           </div>
  2442           </div>
  2430         </td>
  2443         </td>
  2431         <td width="100%" valign="top">
  2444         <td width="100%" valign="top">
  2432           <div class="pad" id="ajaxPageContainer">
  2445           <div class="pad" id="ajaxPageContainer">
  2457           {
  2470           {
  2458             echo '<div class="wait-box">Please wait while the administration panel loads. You need to be using a recent browser with AJAX support in order to use Runt.</div>';
  2471             echo '<div class="wait-box">Please wait while the administration panel loads. You need to be using a recent browser with AJAX support in order to use Runt.</div>';
  2459           }
  2472           }
  2460           ?>
  2473           ?>
  2461           </div>
  2474           </div>
       
  2475           <script type="text/javascript">
       
  2476             if ( KILL_SWITCH )
       
  2477             {
       
  2478               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>';
       
  2479             }
       
  2480         </script>
  2462         </td>
  2481         </td>
  2463       </tr>
  2482       </tr>
  2464     </table>
  2483     </table>
  2465   
  2484   
  2466     <?php
  2485     <?php