diff -r e6094f56f941 -r b55b87e5fafd plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Mon Dec 22 18:51:05 2008 -0500 +++ b/plugins/SpecialAdmin.php Mon Dec 22 21:25:14 2008 -0500 @@ -110,7 +110,7 @@ if ( $paths->getParam(0) == 'updates.xml' ) { require_once(ENANO_ROOT . '/includes/http.php'); - $req = new Request_HTTP('germantown.enanocms.org', '/meta/updates.xml'); + $req = new Request_HTTP('ktulu.enanocms.org', '/meta/updates.xml'); $response = $req->get_response_body(); header('Content-type: application/xml'); if ( $req->response_code != HTTP_OK ) @@ -2236,11 +2236,31 @@ return false; } document.getElementById('ajaxPageContainer').innerHTML = '
Loading page...
'; - ajaxGet('/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=sid_super; ?>', function() { + ajaxGet('/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=' + ENANO_SID, function() { if ( ajax.readyState == 4 && ajax.status == 200 ) { - document.getElementById('ajaxPageContainer').innerHTML = ajax.responseText; - fadeInfoBoxes(); - autofill_onload(); + var response = String(ajax.responseText + ''); + if ( check_json_response(response) ) + { + response = parseJSON(response); + if ( response.mode == 'error' ) + { + if ( response.error == 'need_auth_to_admin' ) + { + load_component('login'); + ajaxDynamicReauth(t); + } + else + { + alert(response.error); + } + } + } + else + { + document.getElementById('ajaxPageContainer').innerHTML = ajax.responseText; + fadeInfoBoxes(); + autofill_onload(); + } } }); }