--- /dev/null
--- /dev/null
++<?php\r
++/**\r
++ * OpenID client English language file\r
++ */\r
++\r
++$english = array(\r
++\r
++ 'openid_client' => 'OpenID',\r
++ 'openid_client:login:header' => 'Log in with',\r
++ 'openid_client:login' => 'Login in with OpenID',\r
++ 'openid_client:others' => 'Others...',\r
++ 'openid_client:url' => 'OpenID URL',\r
++\r
++ 'openid_client:create' => 'Create an account',\r
++ 'openid_client:create:instructs' => 'Your account has been approved. We just need you to confirm or set the below information.',\r
++\r
++ 'openid_client:success:register' => 'Your account has been created.',\r
++ 'openid_client:error:bad_register' => 'Unable to create an account. Please contact a site administrator.',\r
++ 'openid_client:error:bad_response' => 'Bad response from the OpenID server',\r
++ 'openid_client:error:no_html' => 'An error occurred trying to contact %s',\r
++ 'openid_client:warning:username_not_available' => 'The username %s is not available. Please pick another.',\r
++ 'openid_client:warning:username_valid' => 'The username %s is not valid as this site. Please pick another.',\r
++ 'openid_client:warning:email_not_available' => 'The email address %s is not available. Please pick another.',\r
++\r
++ 'river:friend:user:openid' => "%s is now a friend with %s",\r
++);\r
++\r
++add_translation('en', $english);\r
--- /dev/null
--- /dev/null
++<?php
++require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
++
++admin_gatekeeper();
++set_time_limit(0);
++
++echo "upgrade microthemes";
++$previous_access = elgg_set_ignore_access(true);
++openid_client_run_upgrades();
++elgg_set_ignore_access($previous_access);
++
++echo "DONE";
--- /dev/null
--- /dev/null
++<?php
++/**
++ * Elgg login box
++ *
++ * @package Elgg
++ * @subpackage Core
++ *
++ * @uses $vars['module'] The module name. Default: aside
++ * @override views/default/core/account/login_box.php
++ */
++
++$module = elgg_extract('module', $vars, 'aside');
++
++$login_url = elgg_get_site_url();
++if (elgg_get_config('https_login')) {
++ $login_url = str_replace("http:", "https:", $login_url);
++}
++
++$title = elgg_echo('login');
++$body = elgg_view_form('login', array('action' => "{$login_url}action/login"));
++$body .= elgg_view_form('openid_client/login', array('class' => 'elgg-form-login hidden'), array());
++$body .= elgg_view('openid_client/icon');
++
++echo elgg_view_module($module, $title, $body);
--- /dev/null
--- /dev/null
++<?php
++/**
++ * Elgg drop-down login form
++ *
++ * @override views/default/core/account/login_dropdown.php
++ */
++
++if (elgg_is_logged_in()) {
++ return true;
++}
++
++$login_url = elgg_get_site_url();
++if (elgg_get_config('https_login')) {
++ $login_url = str_replace("http:", "https:", elgg_get_site_url());
++}
++
++$body = elgg_view_form('login', array('action' => "{$login_url}action/login"), array('returntoreferer' => TRUE));
++$body .= elgg_view_form('openid_client/login', array('class' => 'elgg-form-login hidden'), array());
++$body .= elgg_view('openid_client/icon');
++?>
++<div id="login-dropdown">
++ <?php
++ echo elgg_view('output/url', array(
++ 'href' => 'login#login-dropdown-box',
++ 'rel' => 'popup',
++ 'class' => 'elgg-button elgg-button-dropdown',
++ 'text' => elgg_echo('login'),
++ ));
++ echo elgg_view_module('dropdown', '', $body, array('id' => 'login-dropdown-box'));
++ ?>
++</div>