diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-27 11:12:49 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-27 11:12:49 +0000 |
commit | ea6c0125943cae4cdb2ca307afd84b74dc305eb8 (patch) | |
tree | 877bf524dcf94fc7c589061e043934081bf4f89b | |
parent | 289a48d215c5bcfb0d99b00cc790d1f64ab50586 (diff) | |
download | elgg-ea6c0125943cae4cdb2ca307afd84b74dc305eb8.tar.gz elgg-ea6c0125943cae4cdb2ca307afd84b74dc305eb8.tar.bz2 |
Redirect to tools on first admin login.
git-svn-id: https://code.elgg.org/elgg/trunk@2973 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | actions/login.php | 15 | ||||
-rw-r--r-- | languages/en.php | 2 |
2 files changed, 16 insertions, 1 deletions
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 <b>Widget gallery</b>.", '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',
|