diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/channel.php | 14 | ||||
-rw-r--r-- | include/nav.php | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php index 247d3d358..d66ed7abe 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1908,4 +1908,18 @@ function channel_manual_conv_update($channel_id) { return intval($x); +} + + +function remote_login() { + + $o = replace_macros(get_markup_template('remote_login.tpl'),array( + '$title' => t('Remote Authentication'), + '$desc' => t('Enter your channel address (e.g. channel@example.com)'), + '$submit' => t('Authenticate') + )); + return $o; + + + }
\ No newline at end of file diff --git a/include/nav.php b/include/nav.php index 6ad43c909..ce259255e 100644 --- a/include/nav.php +++ b/include/nav.php @@ -112,6 +112,7 @@ EOT; } else { if(! get_account_id()) { + $nav['login'] = login(); $nav['loginmenu'][] = Array('login',t('Login'),'',t('Sign in'),'login_nav_btn'); } else @@ -128,6 +129,7 @@ EOT; } elseif(! $_SESSION['authenticated']) { + $nav['remote_login'] = remote_login(); $nav['loginmenu'][] = Array('rmagic',t('Remote authentication'),'',t('Click to authenticate to your home hub'),'rmagic_nav_btn'); } |