--- a/language/english/admin.json Mon Dec 22 18:51:05 2008 -0500
+++ b/language/english/admin.json Mon Dec 22 21:25:14 2008 -0500
@@ -221,7 +221,7 @@
msg_demo_body: 'If you borked something up, or if you\'re done testing, you can <a href="%reset_url%">reset this site</a>. The site is reset automatically once every two hours. When a reset is performed, all custom modifications to the site are lost and replaced with default values.',
msg_install_files: '<b>NOTE:</b> It appears that the install/ directory still exists in your Enano installation root. Even though sensitive tools try to avoid hacking attempts, it is highly recommended that you remove the entire install directory from your server for security reasons.',
heading_updates: 'Check for updates',
- msg_updates_info: 'Periodically, new releases of Enano will be made available. Click the button below to check for updates to Enano. During this process, a request will be sent to the Enano CMS server (germantown.enanocms.org) over HTTP for an <a href="%updates_url%">XML file</a> containing a list of the latest releases. No information about your Enano installation will be transmitted.',
+ msg_updates_info: 'Periodically, new releases of Enano will be made available. Click the button below to check for updates to Enano. During this process, a request will be sent to the Enano CMS server (ktulu.enanocms.org) over HTTP for an <a href="%updates_url%">XML file</a> containing a list of the latest releases. No information about your Enano installation will be transmitted.',
btn_check_updates: 'Check for updates',
msg_inactive_users_one: 'It appears that 1 user is awaiting account activation. You can activate the account by going to the <a %um_flags%>User Manager</a>.',
msg_inactive_users_plural: 'It appears that %num_users% users are awaiting account activation. You can activate those accounts by going to the <a %um_flags%>User Manager</a>.',
--- 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 = '<div class="wait-box">Loading page...</div>';
- ajaxGet('<?php echo scriptPath; ?>/ajax.php?title='+t+'&_mode=getpage&noheaders&auth=<?php echo $session->sid_super; ?>', function() {
+ ajaxGet('<?php echo scriptPath; ?>/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();
+ }
}
});
}