--- config_defaults_inc.php Thu Nov 11 22:13:18 2010
+++ config_defaults_inc.php Fri Nov 12 00:09:52 2010
@@ -3823,3 +3823,35 @@
'anonymous', 'content_expire', 'html_valid_tags', 'custom_headers', 'rss_key_seed', 'plugins_enabled', 'session_', 'form_security_',
'compress_html', '_page$', '_url$',
);
+
+ /******************
+ * OpenID via rpxnow.com (https://rpxnow.com/)
+ *******************/
+
+ /**
+ * Enable/disable open id support.
+ */
+ $g_openid_enabled = OFF;
+
+ /**
+ * The RpxNow API key for the site. Note that each site should be registered separately
+ * and get its own api key, otherwise, user logins will be mixed up. This is because the
+ * mapping between the open ids and MantisBT database id is stored in rpxnow.
+ */
+ $g_openid_api_key = '';
+
+ /**
+ * The name of the site that is registered with rpxnow.
+ */
+ $g_openid_site_name = '';
+
+ /**
+ * Indicates whether the rpxnow account advanced options are available.
+ */
+ $g_openid_rpxnow_advanced_account = FALSE;
+
+
+ /**
+ * Used to disable the SSL verification if rpxnow ssl certificate is not valid.
+ */
+ $g_openid_ssl_verification_disabled = FALSE;
--- core.php Thu Nov 11 22:13:17 2010
+++ core.php Thu Nov 11 22:11:48 2010
@@ -118,6 +118,11 @@
function __autoload( $className ) {
global $g_core_path;
+ # Adjust for non-standard filenames.
+ if ( $className == 'MantisCoreFormattingPlugin' ) {
+ $className = 'MantisFormattingPlugin';
+ }
+
$t_require_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR . $className . '.class.php';
if ( file_exists( $t_require_path ) ) {
--- login_page.php Thu Nov 11 22:13:19 2010
+++ login_page.php Thu Nov 11 22:11:48 2010
@@ -32,6 +32,8 @@
print_header_redirect( config_get( 'default_home_page' ) );
}
+ $t_core_path = config_get( 'core_path' );
+
$f_error = gpc_get_bool( 'error' );
$f_cookie_error = gpc_get_bool( 'cookie_error' );
$f_return = string_sanitize_url( gpc_get_string( 'return', '' ) );
@@ -57,6 +59,8 @@
print_header_redirect( $t_uri );
exit;
}
+
+ $t_open_id_enabled = MantisOpenId::isEnabled();
# Login page shouldn't be indexed by search engines
html_robots_noindex();
@@ -165,6 +169,15 @@
print_signup_link();
echo ' ';
print_lost_password_link();
+
+ if ( $t_open_id_enabled ) {
+ echo '
';
+ echo '
', MantisOpenId::getSignInLink( ' ' ), ' | ';
+ echo '', MantisOpenId::getSignInLink( lang_get( 'login_using_openid' ) ), ' ', lang_get( 'get_a_new_openid' ), ' | ';
+ echo '