plugins/SpecialAdmin.php
changeset 792 b55b87e5fafd
parent 741 a216e412c439
child 797 8d2a40574bbc
equal deleted inserted replaced
791:e6094f56f941 792:b55b87e5fafd
   108   }
   108   }
   109   
   109   
   110   if ( $paths->getParam(0) == 'updates.xml' )
   110   if ( $paths->getParam(0) == 'updates.xml' )
   111   {
   111   {
   112     require_once(ENANO_ROOT . '/includes/http.php');
   112     require_once(ENANO_ROOT . '/includes/http.php');
   113     $req = new Request_HTTP('germantown.enanocms.org', '/meta/updates.xml');
   113     $req = new Request_HTTP('ktulu.enanocms.org', '/meta/updates.xml');
   114     $response = $req->get_response_body();
   114     $response = $req->get_response_body();
   115     header('Content-type: application/xml');
   115     header('Content-type: application/xml');
   116     if ( $req->response_code != HTTP_OK )
   116     if ( $req->response_code != HTTP_OK )
   117     {
   117     {
   118       // Error in response
   118       // Error in response
  2234       {
  2234       {
  2235         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>';
  2235         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>';
  2236         return false;
  2236         return false;
  2237       }
  2237       }
  2238       document.getElementById('ajaxPageContainer').innerHTML = '<div class="wait-box">Loading page...</div>';
  2238       document.getElementById('ajaxPageContainer').innerHTML = '<div class="wait-box">Loading page...</div>';
  2239       ajaxGet('<?php echo scriptPath; ?>/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=<?php echo $session->sid_super; ?>', function() {
  2239       ajaxGet('<?php echo scriptPath; ?>/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=' + ENANO_SID, function() {
  2240           if ( ajax.readyState == 4 && ajax.status == 200 ) {
  2240           if ( ajax.readyState == 4 && ajax.status == 200 ) {
  2241             document.getElementById('ajaxPageContainer').innerHTML = ajax.responseText;
  2241             var response = String(ajax.responseText + '');
  2242             fadeInfoBoxes();
  2242             if ( check_json_response(response) )
  2243             autofill_onload();
  2243             {
       
  2244               response = parseJSON(response);
       
  2245               if ( response.mode == 'error' )
       
  2246               {
       
  2247                 if ( response.error == 'need_auth_to_admin' )
       
  2248                 {
       
  2249                   load_component('login');
       
  2250                   ajaxDynamicReauth(t);
       
  2251                 }
       
  2252                 else
       
  2253                 {
       
  2254                   alert(response.error);
       
  2255                 }
       
  2256               }
       
  2257             }
       
  2258             else
       
  2259             {
       
  2260               document.getElementById('ajaxPageContainer').innerHTML = ajax.responseText;
       
  2261               fadeInfoBoxes();
       
  2262               autofill_onload();
       
  2263             }
  2244           }
  2264           }
  2245         });
  2265         });
  2246     }
  2266     }
  2247     <?php
  2267     <?php
  2248     if ( !isset($_GET['module']) )
  2268     if ( !isset($_GET['module']) )