From ea6c0125943cae4cdb2ca307afd84b74dc305eb8 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 27 Feb 2009 11:12:49 +0000 Subject: Redirect to tools on first admin login. git-svn-id: https://code.elgg.org/elgg/trunk@2973 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/login.php | 15 ++++++++++++++- languages/en.php | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/actions/login.php b/actions/login.php index 82b4d10b4..d937dc2f7 100644 --- a/actions/login.php +++ b/actions/login.php @@ -39,7 +39,20 @@ forward($forward_url); } else - forward("pg/dashboard/"); + { + if ( + (isadminloggedin()) && + (!datalist_get('first_admin_login')) + ) + { + system_message(elgg_echo('firstadminlogininstructions')); + + datalist_set('first_admin_login', time()); + + forward('pg/admin/plugins'); + } else + forward("pg/dashboard/"); + } } else { $error_msg = elgg_echo('loginerror'); // figure out why the login failed diff --git a/languages/en.php b/languages/en.php index d49a2a364..6bf5a8df3 100644 --- a/languages/en.php +++ b/languages/en.php @@ -432,6 +432,8 @@ To remove a widget drag it back to the Widget gallery.", 'registerok' => "You have successfully registered for %s.", 'registerbad' => "Your registration was unsuccessful. The username may already exist, your passwords might not match, or your username or password may be too short.", 'registerdisabled' => "Registration has been disabled by the system administrator", + + 'firstadminlogininstructions' => 'Your new Elgg site has been successfully installed and your administrator account created. You can now configure your site further by enabling various installed plugin tools.', 'registration:notemail' => 'The email address you provided does not appear to be a valid email address.', 'registration:userexists' => 'That username already exists', -- cgit v1.2.3