Changeset 26608
- Timestamp:
- Jan 11, 2014, 12:08:40 PM (10 years ago)
- Location:
- extensions/oAuth
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/admin/providers.php
r26604 r26608 58 58 'PROVIDERS' => $PROVIDERS_CONFIG, 59 59 'CONFIG' => $hybridauth_conf['providers'], 60 'SERVERNAME' => get_absolute_root_url(), 60 'SERVERNAME' => get_servername(), 61 'WEBSITE' => get_absolute_root_url(), 61 62 'OAUTH_CALLBACK' => OAUTH_PUBLIC . '?hauth.done=', 62 63 )); -
extensions/oAuth/admin/template/providers.tpl
r26605 r26608 101 101 102 102 {if $p=='Live'} 103 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Redirect Domain</b>':$ SERVERNAME}</li>103 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Redirect Domain</b>':$WEBSITE}</li> 104 104 {elseif $p=='Facebook'} 105 <li>{'Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em> .'|translate}</li>105 <li>{'Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>'|translate}</li> 106 106 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Valid OAuth redirect URIs</b>':$SERVERNAME}</li> 107 107 {elseif $p=='LinkedIn'} 108 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website URL</b>':$ SERVERNAME}</li>108 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website URL</b>':$WEBSITE}</li> 109 109 <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Application Type':'Web Application'}</li> 110 110 <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Default Scope':'r_basicprofile & r_emailaddress'}</li> 111 111 {elseif $p=='Yahoo'} 112 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Application URL</b>, <b>Application Domain</b>':$ SERVERNAME}</li>112 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Application URL</b>, <b>Application Domain</b>':$WEBSITE}</li> 113 113 <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Kind of Application':'Web-based'}</li> 114 114 <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Access Scopes':'This app will only access public...'}</li> 115 115 <li>{'Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'|translate}</li> 116 116 {elseif $p=='Twitter'} 117 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website</b> , <b>Callback URL</b>':$SERVERNAME}</li>117 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website</b>':$WEBSITE}</li> 118 118 {elseif $p=='Tumblr'} 119 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Application Website</b> , <b>Default Callback URL</b>':$SERVERNAME}</li>119 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Application Website</b>':$WEBSITE}</li> 120 120 {elseif $p=='Instagram'} 121 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website</b>':$ SERVERNAME}</li>121 <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website</b>':$WEBSITE}</li> 122 122 {elseif $p=='Google'} 123 123 <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Application Type':'Web Application'}</li> … … 130 130 <p style="text-align:left;"> 131 131 {if $p=='Flickr' or $p=='Steam' or $p=='Wordpress'} 132 {'Based on OpenID .'|translate}</br>132 {'Based on OpenID'|translate}</br> 133 133 {/if} 134 {'No registration required .'|translate}<br>134 {'No registration required'|translate}<br> 135 135 <a href="{$provider.about_link}" target="_blank">{'About'|translate}</a> 136 136 </p> -
extensions/oAuth/auth.php
r26605 r26608 4 4 5 5 global $hybridauth_conf; 6 7 // OpenID is always enabled 8 $hybridauth_conf['providers']['OpenID']['enabled'] = true; 9 6 10 require_once(OAUTH_PATH . 'include/hybridauth/Hybrid/Auth.php'); 7 11 … … 9 13 10 14 try { 11 // inputs12 if ($provider == 'OpenID' and !isset($_GET['openid_identifier']))13 {14 throw new Exception('Invalid OpenID!', 1003);15 }16 17 // OpenID is always enabled18 $hybridauth_conf['providers']['OpenID']['enabled'] = true;19 20 15 if (!array_key_exists($provider, $hybridauth_conf['providers']) 21 16 or !$hybridauth_conf['providers'][$provider]['enabled'] … … 27 22 if ($provider == 'Persona') 28 23 { 24 if (!verify_ephemeral_key(@$_POST['key']) | empty($_POST['assertion'])) 25 { 26 header('HTTP/1.1 403 Forbidden'); 27 exit; 28 } 29 29 30 $response = persona_verify($_POST['assertion']); 30 31 … … 41 42 else 42 43 { 44 if ($provider == 'OpenID' and empty($_GET['openid_identifier'])) 45 { 46 throw new Exception('Invalid OpenID!', 1003); 47 } 48 43 49 $hybridauth = new Hybrid_Auth($hybridauth_conf); 44 50 45 // connected46 51 if ($hybridauth->isConnectedWith($provider)) 47 52 { … … 53 58 } 54 59 60 // connected 55 61 if (!empty($oauth_id)) 56 62 { … … 61 67 ;'; 62 68 $result = pwg_query($query); 69 63 70 // registered : log_user and redirect 64 71 if (pwg_db_num_rows($result)) … … 111 118 else 112 119 { 120 if (!verify_ephemeral_key(@$_GET['key'])) 121 { 122 throw new Exception('Forbidden', 403); 123 } 124 113 125 $template->assign('LOADING', '&openid_identifier='.@$_GET['openid_identifier'].'&init_auth=1'); 114 126 } … … 125 137 404 : User not found 126 138 other errors : 139 403 : Invalid ephemeral key 127 140 503 : Persona error 128 141 1002 : Invalid provider … … 149 162 150 163 'OAUTH_PATH' => OAUTH_PATH, 151 'PROVIDER' => $ provider,164 'PROVIDER' => $hybridauth_conf['providers'][$provider]['name'], 152 165 'SELF_URL' => OAUTH_PATH . 'auth.php?provider='.$provider, 153 166 )); -
extensions/oAuth/include/functions.inc.php
r26605 r26608 45 45 'providers' => $hybridauth_conf['providers'], 46 46 'persona_email' => @$persona_email, 47 'key' => get_ephemeral_key(0), 47 48 )); 48 49 $template->assign(array( … … 81 82 } 82 83 84 function get_servername($with_port=false) 85 { 86 $scheme = 'http'; 87 if ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443 ) 88 { 89 $scheme = 'https'; 90 } 91 92 $servername = $scheme . '://' . $_SERVER['HTTP_HOST']; 93 if ($with_port) 94 { 95 $servername.= ':' . $_SERVER['SERVER_PORT']; 96 } 97 98 return $servername; 99 } 100 83 101 // http://www.sitepoint.com/authenticate-users-with-mozilla-persona/ 84 102 function persona_verify() … … 93 111 ); 94 112 95 $scheme = 'http'; 96 if ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443 ) 97 { 98 $scheme = 'https'; 99 } 100 $audience = sprintf( 101 '%s://%s:%s', 102 $scheme, 103 $_SERVER['HTTP_HOST'], 104 $_SERVER['SERVER_PORT'] 105 ); 106 107 $params = 'assertion=' . urlencode($assert) . '&audience=' . urlencode($audience); 113 $params = 'assertion=' . urlencode($assert) . '&audience=' . urlencode(get_servername(true)); 108 114 109 115 $options = array( -
extensions/oAuth/include/providers_stats.inc.php
r26605 r26608 33 33 'label' => 'Tumblr', 34 34 'provider_name' => 'Tumblr', 35 'callback' => true, 35 36 'new_app_link' => 'http://www.tumblr.com/oauth/apps', 36 37 ), … … 38 39 'label' => 'Twitter', 39 40 'provider_name' => 'Twitter', 41 'callback' => true, 40 42 'new_app_link' => 'https://dev.twitter.com/apps', 41 43 ), -
extensions/oAuth/include/public_events.inc.php
r26605 r26608 69 69 { 70 70 $template->assign('OAUTH_USER', array( 71 'provider' => $provider,71 'provider' => 'Persona', 72 72 'username' => $user_identifier, 73 73 'u_profile' => null, … … 96 96 97 97 $template->assign('OAUTH_USER', array( 98 'provider' => $ provider,98 'provider' => $hybridauth_conf['providers'][$provider]['name'], 99 99 'username' => $remote_user->displayName, 100 100 'u_profile' => $remote_user->profileURL, … … 191 191 { 192 192 $template->assign('OAUTH_USER', array( 193 'provider' => $provider,193 'provider' => 'Persona', 194 194 'username' => $user_identifier, 195 195 'u_profile' => null, … … 206 206 207 207 $template->assign('OAUTH_USER', array( 208 'provider' => $ provider,208 'provider' => $hybridauth_conf['providers'][$provider]['name'], 209 209 'username' => $remote_user->displayName, 210 210 'u_profile' => $remote_user->profileURL, -
extensions/oAuth/language/bg_BG/help.lang.php
r21170 r26608 22 22 // +-----------------------------------------------------------------------+ 23 23 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Сложете си домейна на уебсайта в областите на компетентност на%s. Той трябва да съвпада с името на хоста: <em>%s</em>'; 24 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Задайте<b>%s</b>за да<em>%s</em>';24 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Задайте<b>%s</b>за да<em>%s</em>'; 25 25 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Осигуряване на този адрес, като Callback / URL адрес за пренасочване за вашето приложение: <em>%s</em>'; 26 26 $lang['Once you have registered, copy and past the created application credentials into this setup page'] = 'След като сте се регистрирали, копирате и поставите създадени пълномощията за кандидатстване в тази настройка страница'; -
extensions/oAuth/language/da_DK/help.lang.php
r20625 r26608 27 27 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Denne URL benyttes som din applikations tilbagekalds-/viderestillings-URL (Callback/Redirect): <em>%s</em>'; 28 28 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Skriv din hjemmesides domæne i %s-felterne. Det skal svare til det aktuelle værtsnavn: <em>%s</em>'; 29 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Opsæt <b>%s</b> til <em>%s</em>';29 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Opsæt <b>%s</b> til <em>%s</em>'; 30 30 $lang['Fill out any required fields such as the application name and description'] = 'Udfyld krævede felter så som applikationsnavn og beskrivelse'; 31 31 $lang['Go to <a href="%s" target="_blank">%s</a> and create a new application'] = 'Gå til <a href="%s" target="_blank">%s</a> og opret en ny applikation'; -
extensions/oAuth/language/de_DE/help.lang.php
r20625 r26608 24 24 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Verwende diese URL als Callback/Redirect URL deiner Applikation <em>%s</em>'; 25 25 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Setze deine Webseiten-Domain in die %s Felder. Diese sollte identisch sein mit dem Hostnamen: <em>%s</em>'; 26 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Setze den <b>%s</b> auf <em>%s</em>';26 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Setze den <b>%s</b> auf <em>%s</em>'; 27 27 $lang['Fill out any required fields such as the application name and description'] = 'Fülle alle notwendigen Felder wie den Applikations-Namen und Beschreibung aus.'; 28 28 $lang['Go to <a href="%s" target="_blank">%s</a> and create a new application'] = 'Gehe zu <a href="%s" target="_blank">%s</a> und erstelle eine neue Applikation'; -
extensions/oAuth/language/el_GR/help.lang.php
r20626 r26608 35 35 $lang['Go to <a href="%s" target="_blank">%s</a> and create a new application'] = 'Μετάβαση στο <a href="%s" target="_blank">%s</a> και δημιουργήστε μια νέα εφαρμογή'; 36 36 $lang['Fill out any required fields such as the application name and description'] = 'Συμπληρώστε όλα τα απαιτούμενα πεδία, όπως το όνομα της εφαρμογής και περιγραφή'; 37 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Ρυθμίστε το <b>%s</b> σε <em>%s</em>';37 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Ρυθμίστε το <b>%s</b> σε <em>%s</em>'; 38 38 ?> -
extensions/oAuth/language/en_UK/help.lang.php
r20625 r26608 1 1 <?php 2 2 3 $lang['Based on OpenID'] = 'Based on OpenID'; 3 4 $lang['Go to <a href="%s" target="_blank">%s</a> and create a new application'] = 'Go to <a href="%s" target="_blank">%s</a> and create a new application'; 4 $lang['On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'] = 'On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'; 5 $lang['On the <b>Create Client ID</b> popup, switch to advanced settings by clicking on <b>(more options)</b>'] = 'On the <b>Create Client ID</b> popup, switch to advanced settings by clicking on <b>(more options)</b>'; 5 $lang['On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'] = 'On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'; 6 6 $lang['Fill out any required fields such as the application name and description'] = 'Fill out any required fields such as the application name and description'; 7 7 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'; 8 8 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'; 9 $lang['Set the <b>%s</b> to <em>%s</em>'] = 'Set the<b>%s</b> to <em>%s</em>';9 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Set <b>%s</b> to <em>%s</em>'; 10 10 $lang['Once you have registered, copy and past the created application credentials into this setup page'] = 'Once you have registered, copy and past the created application credentials into this setup page'; 11 $lang['No registration required for OpenID based providers'] = 'No registration required for OpenID based providers';11 $lang['No registration required'] = 'No registration required'; 12 12 $lang['Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'] = 'Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'; 13 $lang['Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>'] = 'Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>'; 13 14 14 15 ?> -
extensions/oAuth/language/en_UK/plugin.lang.php
r26558 r26608 2 2 3 3 $lang['%s: invalid keys'] = '%s: invalid keys'; 4 $lang['OpenID must be enabled in order to use %s authentication'] = 'OpenID must be enabled in order to use %s authentication';5 4 $lang['Users are not allowed to register on your gallery. Social Connect will not work correctly.'] = 'Users are not allowed to register on your gallery. Social Connect will not work correctly.'; 6 5 $lang['Providers'] = 'Providers'; … … 24 23 $lang['Please enter your OpenID URL'] = 'Please enter your OpenID URL'; 25 24 $lang['Please enter your username'] = 'Please enter your username'; 25 $lang['Please enter your user ID'] = 'Please enter your user ID'; 26 26 $lang['Or sign in with'] = 'Or sign in with'; 27 27 $lang['Logged with'] = 'Logged with'; 28 28 $lang['Profile URL'] = 'Profile URL'; 29 $lang['Cancel'] = 'Cancel'; 29 30 30 31 ?> -
extensions/oAuth/language/es_ES/help.lang.php
r20625 r26608 26 26 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Dar esta URL como Callback/Redirect URL para su aplicación'; 27 27 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Ponga su nombre de dominio en los campos %s. Debe corresponder a <em>%s</em>'; 28 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Seleccionar <b>%s</b> para <em>%s</em>';28 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Seleccionar <b>%s</b> para <em>%s</em>'; 29 29 $lang['On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'] = 'En la pestaña <b>API Access</b>, hagan clic en <b>create an OAuth 2.0 Client ID</b>'; 30 30 $lang['No registration required for OpenID based providers'] = 'No es necesario registrarse para tipos de autenticación OpenID'; -
extensions/oAuth/language/et_EE/help.lang.php
r21872 r26608 21 21 // | USA. | 22 22 // +-----------------------------------------------------------------------+ 23 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Seadista <b>%s</b> järgmiseks <em>%s</em>';23 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Seadista <b>%s</b> järgmiseks <em>%s</em>'; 24 24 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Paku seda URL\'i ümbersuunamiseks sinu aplikatsioonile: <em>%s</em>'; 25 25 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Pane oma veebilehe domeen %s väljale. See peab olema sama mis praegune hosti nimi: <em>%s</em>'; -
extensions/oAuth/language/fr_FR/help.lang.php
r20625 r26608 7 7 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Donnez cette URL comme Callback/Redirect URL pour votre application : <em>%s</em>'; 8 8 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Mettez votre nom de domaine dans les champs %s. Il doit correspondre à <em>%s</em>'; 9 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Sélectionnez <em>%2$s</em> pour <b>%1$s</b>';9 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Sélectionnez <em>%2$s</em> pour <b>%1$s</b>'; 10 10 $lang['Once you have registered, copy and past the created application credentials into this setup page'] = 'Quand votre application est enregistrée, copiez-collez les clefs d\'authentification sur cette page'; 11 11 $lang['No registration required for OpenID based providers'] = 'Pas d\'inscription nécessaire pour les authentifications type OpenID'; -
extensions/oAuth/language/it_IT/help.lang.php
r20631 r26608 23 23 $lang['On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'] = 'Sulla scheda <b>API Access</b>, <b>creare un OAuth 2.0 Client ID</b>'; 24 24 $lang['Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'] = 'Una volta che l\'applicazione è registrata aggiornare le autorizzazioni: impostare <b>Contacts</b> come <em>Read</em> e <b>Social Directory</b> come <em>Read Public</em>'; 25 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Impostare il <b>%s</b> per <em>%s</em>';25 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Impostare il <b>%s</b> per <em>%s</em>'; 26 26 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Metti il tuo dominio del sito web nei campi del %s. Esso deve corrispondere con l\'attuale hostname: <em>%s</em>'; 27 27 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Fornisci questo URL come Callback/Redirect URL per l\'applicazione: -
extensions/oAuth/language/lv_LV/help.lang.php
r20625 r26608 26 26 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Piestādiet šo URL kā jūsu aplikācijas Atbildes/Pāradresācijas URL: <em>%s</em>'; 27 27 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Ievietojiet savu vietnes domēnu %s laukos. Tam jāsakrīt ar esošo hosta nosaukumu: <em>%s</em>'; 28 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Iestatiet <b>%s</b> stāvoklī <em>%s</em>';28 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Iestatiet <b>%s</b> stāvoklī <em>%s</em>'; 29 29 $lang['On the <b>Create Client ID</b> popup, switch to advanced settings by clicking on <b>(more options)</b>'] = '<b>Create Client ID</b> uzlecošā logā, klikšķinot uz <b>(more options)</b>, pārslēdzaties uz papildus iestatījumiem'; 30 30 $lang['On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'] = 'Ar <b>API Access</b> tabu, <b>izveidojiet OAuth 2.0 Client ID</b>'; -
extensions/oAuth/language/nl_NL/help.lang.php
r21134 r26608 30 30 $lang['No registration required for OpenID based providers'] = 'Geen registratie verplicht voor OpenID gebaseerde bronnen'; 31 31 $lang['On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'] = 'Op de <b>API Access</b> tab, <b>maak een OAuth 2.0 Client ID</b>'; 32 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Zet de <b>%s</b> naar <em>%s</em>';32 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Zet de <b>%s</b> naar <em>%s</em>'; 33 33 ?> -
extensions/oAuth/language/pl_PL/help.lang.php
r20697 r26608 23 23 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Wprowadź ten adres jako Callback/Redirect ULR dla swojej aplikacji: <em>%s</em>'; 24 24 $lang['No registration required for OpenID based providers'] = 'Dla dostawców wspierających OpenID rejestracja nie jest wymagana'; 25 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Ustaw <b>%s</b> do <em>%s</em>';25 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Ustaw <b>%s</b> do <em>%s</em>'; 26 26 $lang['On the <b>Create Client ID</b> popup, switch to advanced settings by clicking on <b>(more options)</b>'] = 'W okienku <b>Stwórz ID klienta</b>/<b>Create Client ID</b> przejdź do ustawień zaawansowanych klikając <b>(więcej opcji)</b>/<b>(more options)</b>'; 27 27 $lang['Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'] = 'Gdy aplikacji zostanie zarejestrowana, zaktualizuj zezwolenia: ustaw <b>Kontakty</b>/<b>Contacts</b> na <em>Odczyt</em>/<em>Odczyt</em> i <b>Katalog społecznościowy</b>/<b>Social Directory</b> na <em>Odczyt publiczny</em>/<em>Read Public</em>'; -
extensions/oAuth/language/pt_BR/help.lang.php
r21297 r26608 27 27 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Fornecer essa URL como URL de retorno/redirecionamento para sua aplicação: <em>%s</em>'; 28 28 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Coloque o seu domínio do site nos campos %s. Ele deve combinar com o nome da máquina atual: <em>%s</em>'; 29 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Defina o <b>%s</b> para <em>%s</ em>';29 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Defina o <b>%s</b> para <em>%s</ em>'; 30 30 $lang['Fill out any required fields such as the application name and description'] = 'Preencha todos os campos necessários, tais como o nome do aplicativo e descrição'; 31 31 $lang['Go to <a href="%s" target="_blank">%s</a> and create a new application'] = 'Ir para <a href="%s"target="_blank">%s</a> e criar uma nova aplicação'; -
extensions/oAuth/language/pt_PT/help.lang.php
r21071 r26608 30 30 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Forneça este URL como o URL Callback/Redirect para a sua aplicação: <em>%s</em>'; 31 31 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Coloque o domínio do seu website no campos %s. Deverá ser igual ao seu anfitrião actual:<em>%s</em>'; 32 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Altere o <b>%s</b> para <em>%s</em>';32 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Altere o <b>%s</b> para <em>%s</em>'; 33 33 ?> -
extensions/oAuth/language/ru_RU/help.lang.php
r21019 r26608 30 30 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Укажите этот URL как Callback/Redirect URL для Вашего приложения: <em>%s</em>'; 31 31 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Введите домен Вашего веб-сайта в поле %s. Он должен совпадать с текущим именем хоста: <em>%s</em>'; 32 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Введите в поле <b>%s</b> значение <em>%s</em>';32 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Введите в поле <b>%s</b> значение <em>%s</em>'; 33 33 ?> -
extensions/oAuth/language/sk_SK/help.lang.php
r20625 r26608 21 21 // | USA. | 22 22 // +-----------------------------------------------------------------------+ 23 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Nastaviť <b>%s</b> do <em>%s</em>';23 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Nastaviť <b>%s</b> do <em>%s</em>'; 24 24 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Dať Vašu doménu webstránky do poľa %s'; 25 25 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = 'Poskytnutie tejto URL ako Callback/Redirect URL pre Vašu aplikáciu: <em>%s</em>'; -
extensions/oAuth/language/tr_TR/help.lang.php
r21018 r26608 23 23 $lang['On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'] = '<b>OAuth 2.0 Client ID</b> sini <b>API Access</b> bölümünden oluşturun'; 24 24 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = 'Web site adresinizi %s yazınız. Geçerli alan adı ile eşleşmesi gerekir. <em>%s</em>'; 25 $lang['Set the<b>%s</b> to <em>%s</em>'] = '<b>%s</b> olarak <em>%s</em> seçiniz';25 $lang['Set <b>%s</b> to <em>%s</em>'] = '<b>%s</b> olarak <em>%s</em> seçiniz'; 26 26 $lang['No registration required for OpenID based providers'] = 'OpenID tabanlı sağlayıcılar için kayıt olmaya gerek yok'; 27 27 $lang['Fill out any required fields such as the application name and description'] = 'Uygulama adı ve açıklaması için tüm gerekli alanları doldurun'; -
extensions/oAuth/language/uk_UA/help.lang.php
r25784 r26608 22 22 // +-----------------------------------------------------------------------+ 23 23 $lang['Fill out any required fields such as the application name and description'] = 'Заповніть всі необхідні поля, такі як ім’я та опис програми'; 24 $lang['Set the<b>%s</b> to <em>%s</em>'] = 'Встановіть <b>%s</b> з <em>%s</em>';24 $lang['Set <b>%s</b> to <em>%s</em>'] = 'Встановіть <b>%s</b> з <em>%s</em>'; 25 25 ?> -
extensions/oAuth/language/zh_CN/help.lang.php
r21021 r26608 30 30 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = '将此链接作为你的应用的反馈/重定向链接:<em>%s</em>'; 31 31 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = '将你的网站域名填入%s字段。域名应匹配当前主机名:<em>%s</em>'; 32 $lang['Set the<b>%s</b> to <em>%s</em>'] = '把<b>%s</b>设为<em>%s</em>';32 $lang['Set <b>%s</b> to <em>%s</em>'] = '把<b>%s</b>设为<em>%s</em>'; 33 33 ?> -
extensions/oAuth/language/zh_TW/help.lang.php
r21785 r26608 30 30 $lang['Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'] = '為您的應用程序提供URL的回呼/重定向URL: <em>%s</em>'; 31 31 $lang['Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'] = '把你的網站域名,放在 %s 欄位。它應該匹配目前的主機名稱: <em>%s</em>'; 32 $lang['Set the<b>%s</b> to <em>%s</em>'] = '設定 <b>%s</b> 到 <em>%s</em>';32 $lang['Set <b>%s</b> to <em>%s</em>'] = '設定 <b>%s</b> 到 <em>%s</em>'; 33 33 ?> -
extensions/oAuth/template/identification_common.tpl
r26605 r26608 28 28 function open_auth(url) { 29 29 window.open( 30 url + '&t=' + (new Date()).getTime(),30 '{$OAUTH.u_login}' + url + '&key={$OAUTH.key}', 31 31 'hybridauth_social_sign_on', 32 32 'location=0,status=0,scrollbars=0,width=800,height=500' … … 45 45 case 'OpenID': 46 46 jQuery('#openid_label').html('{'Please enter your OpenID URL'|translate|escape:javascript}'); break; 47 case 'Wordpress': case ' Flickr': case 'Steam':47 case 'Wordpress': case 'Steam': 48 48 jQuery('#openid_label').html('{'Please enter your username'|translate|escape:javascript}'); break; 49 case 'Flickr': 50 jQuery('#openid_label').html('{'Please enter your user ID'|translate|escape:javascript}'); break; 49 51 } 50 52 … … 70 72 71 73 default: 72 open_auth( '{$OAUTH.u_login}'+idp);74 open_auth(idp); 73 75 } 74 76 }); … … 93 95 } 94 96 95 open_auth(' {$OAUTH.u_login}OpenID&openid_identifier=' + encodeURI(oi));97 open_auth('OpenID&openid_identifier=' + encodeURI(oi)); 96 98 97 99 jQuery.colorbox.close(); … … 111 113 }); 112 114 115 {if not empty($OAUTH.persona_email)} 113 116 jQuery('a[href$="act=logout"]').click(function(e) { 114 117 e.preventDefault(); 115 118 navigator.id.logout(); 116 119 }); 120 {/if} 117 121 118 122 navigator.id.watch({ … … 124 128 url: '{$OAUTH.u_login}Persona', 125 129 dataType: 'json', 126 data: { assertion: assertion }, 130 data: { 131 assertion: assertion, 132 key: '{$OAUTH.key}' 133 }, 127 134 success: function(data) { 128 135 oauth_redirect(data.redirect_to);
Note: See TracChangeset
for help on using the changeset viewer.