Changeset 20324
- Timestamp:
- Jan 22, 2013, 3:18:46 PM (11 years ago)
- Location:
- extensions/oAuth
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/admin.php
r20323 r20324 6 6 if (!$conf['allow_user_registration']) 7 7 { 8 array_push($page['errors'], l10n('Users are not allowed to register on your gallery. oAuth will not work correctly.'));8 array_push($page['errors'], l10n('Users are not allowed to register on your gallery. OAuth will not work correctly.')); 9 9 } 10 10 -
extensions/oAuth/admin/providers.php
r20323 r20324 1 1 <?php 2 2 defined('OAUTH_PATH') or die('Hacking attempt!'); 3 4 load_language('help.lang', OAUTH_PATH); 3 5 4 6 $PROVIDERS_CONFIG = include(OAUTH_PATH . 'include/providers_stats.inc.php'); -
extensions/oAuth/admin/template/config.tpl
r20323 r20324 81 81 </form> 82 82 83 <p>Icons from http://www.wpzoom.com - Library from http://hybridauth.sourceforge.net/</p> 83 <div style="text-align:right;"> 84 Icons from : <a href="http://www.wpzoom.com" target="_blank">WPZOOM</a> | 85 Library : <a href="http://hybridauth.sourceforge.net" target="_blank">HybridAuth</a> 86 </div> -
extensions/oAuth/admin/template/providers.tpl
r20323 r20324 89 89 <li>{'On the <b>API Access</b> tab, <b>create an OAuth 2.0 Client ID</b>'|@translate}</li> 90 90 <li>{'Fill out any required fields such as the application name and description'|@translate}</li> 91 <li>{'On the <b>Create Client ID</b> popup switch to advanced settings by clicking on <b>(more options)</b>'|@translate}</li>91 <li>{'On the <b>Create Client ID</b> popup, switch to advanced settings by clicking on <b>(more options)</b>'|@translate}</li> 92 92 {else} 93 93 <li>{'Fill out any required fields such as the application name and description'|@translate}</li> … … 135 135 </form> 136 136 137 <p>Icons from http://www.wpzoom.com - Library from http://hybridauth.sourceforge.net/</p> 137 <div style="text-align:right;"> 138 Icons from : <a href="http://www.wpzoom.com" target="_blank">WPZOOM</a> | 139 Library : <a href="http://hybridauth.sourceforge.net" target="_blank">HybridAuth</a> 140 </div> -
extensions/oAuth/admin/template/style.css
r20323 r20324 101 101 } 102 102 #help_container div { 103 padding:1 0px 5px 5px 5px;103 padding:15px 5px 5px 5px; 104 104 } 105 105 #help_container em { -
extensions/oAuth/language/en_UK/plugin.lang.php
r20293 r20324 1 1 <?php 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 $lang['Users are not allowed to register on your gallery. OAuth will not work correctly.'] = 'Users are not allowed to register on your gallery. OAuth will not work correctly.'; 6 $lang['Providers'] = 'Providers'; 7 $lang['Sorry, new registrations are blocked on this gallery.'] = 'Sorry, new registrations are blocked on this gallery.'; 8 $lang['Authentication canceled'] = 'Authentication canceled'; 9 $lang['An error occured, please contact the gallery owner. <i>Error code : %s</i>'] = 'An error occured, please contact the gallery owner. <i>Error code : %s</i>'; 10 $lang['You registered with a %s account, please sign in with the same account.'] = 'You registered with a %s account, please sign in with the same account.'; 11 $lang['Your registration is almost done, please complete the registration form.'] = 'Your registration is almost done, please complete the registration form.'; 12 $lang['OAuth: You need to configure the credentials'] = 'OAuth: You need to configure the credentials'; 13 $lang['OAuth: PHP Curl extension is needed'] = 'OAuth: PHP Curl extension is needed'; 14 $lang['Display sign in buttons in the menubar'] = 'Display sign in buttons in the menubar'; 15 $lang['Display sign in buttons on the register page'] = 'Display sign in buttons on the register page'; 16 $lang['Icon size on the identification page'] = 'Icon size on the identification page'; 17 $lang['Icon size in the menubar'] = 'Icon size in the menubar'; 18 $lang['Enabled'] = 'Enabled'; 19 $lang['Disabled'] = 'Disabled'; 20 $lang['Sign in with %s'] = 'Sign in with %s'; 21 $lang['Error...'] = 'Error...'; 22 $lang['Loading...'] = 'Loading...'; 23 $lang['Contacting <b>%s</b>. Please wait.'] = 'Contacting <b>%s</b>. Please wait.'; 24 $lang['Please enter your OpenID URL'] = 'Please enter your OpenID URL'; 25 $lang['Please enter your username'] = 'Please enter your username'; 26 $lang['Or sign in with'] = 'Or sign in with'; 27 $lang['Logged with'] = 'Logged with'; 28 $lang['Profile URL'] = 'Profile URL'; 4 29 5 30 ?> -
extensions/oAuth/language/fr_FR/plugin.lang.php
r20293 r20324 1 1 <?php 2 2 3 3 $lang['%s: invalid keys'] = '%s: clefs invalides'; 4 $lang['OpenID must be enabled in order to use %s authentication'] = 'OpenID doit être activé pour utiliser l\'authentification %s'; 5 $lang['Users are not allowed to register on your gallery. OAuth will not work correctly.'] = 'Les utilisateurs ne sont pas autorisés à s\'inscrire sur cette galerie. OAUth ne fonctionnera pas correctement.'; 6 $lang['Providers'] = 'Fournisseurs'; 7 $lang['Sorry, new registrations are blocked on this gallery.'] = 'Désolé, les inscriptions sont bloquées sur cette galerie.'; 8 $lang['Authentication canceled'] = 'Authentification annulée'; 9 $lang['An error occured, please contact the gallery owner. <i>Error code : %s</i>'] = 'Une erreur est survenue. Veuillez contacter l\'administrateur de la galerie. <i>Error code : %s</i>'; 10 $lang['You registered with a %s account, please sign in with the same account.'] = 'Vous vous êtes inscrit avec un compte %s. Veuillez vous connecter avec le même compte.'; 11 $lang['Your registration is almost done, please complete the registration form.'] = 'Vous inscription est presque terminée, merci de compléter le formulaire d\'enregistrement.'; 12 $lang['OAuth: You need to configure the credentials'] = 'OAuth: Vous devez définir vos clef d\'authentification'; 13 $lang['OAuth: PHP Curl extension is needed'] = 'OAuth: l\'extension PHP Curl est nécessaire'; 14 $lang['Display sign in buttons in the menubar'] = 'Afficher les boutons de connexion dans le menu'; 15 $lang['Display sign in buttons on the register page'] = 'Afficher les boutons de connecion sur la page d\'enregistrement'; 16 $lang['Icon size on the identification page'] = 'Taille des icônes sur la page d\'identification'; 17 $lang['Icon size in the menubar'] = 'Taille des icônes dans le menu'; 18 $lang['Enabled'] = 'Activé'; 19 $lang['Disabled'] = 'Désactivé'; 20 $lang['Sign in with %s'] = 'Connexion avec %s'; 21 $lang['Error...'] = 'Erreur...'; 22 $lang['Loading...'] = 'Chargement...'; 23 $lang['Contacting <b>%s</b>. Please wait.'] = 'Contact du serveur <b>%s</b>. Veuillez patienter.'; 24 $lang['Please enter your OpenID URL'] = 'Veuillez entrer votre URL OpenID'; 25 $lang['Please enter your username'] = 'Veuillez entrer votre nom d\'utilisateur'; 26 $lang['Or sign in with'] = 'Ou connectez vous avec'; 27 $lang['Logged with'] = 'Connecté avec'; 28 $lang['Profile URL'] = 'URL du profil'; 4 29 5 30 ?> -
extensions/oAuth/main.inc.php
r20323 r20324 112 112 if (!function_exists('curl_init')) 113 113 { 114 array_push($page['errors'], l10n('OAuth: cURLextension is needed'));114 array_push($page['errors'], l10n('OAuth: PHP Curl extension is needed')); 115 115 } 116 116 } -
extensions/oAuth/template/identification_common.tpl
r20323 r20324 9 9 margin:0; 10 10 } 11 #openid_ error {11 #openid_label.error { 12 12 color:red; 13 13 font-weight:bold; … … 46 46 switch(idp) {ldelim} 47 47 case 'OpenID': 48 $("#openid_label").html('{'Please enter your OpenID URL'|@translate }'); break;48 $("#openid_label").html('{'Please enter your OpenID URL'|@translate|escape:javascript}'); break; 49 49 case 'Wordpress': case 'Flickr': 50 $("#openid_label").html('{'Please enter your username'|@translate }'); break;50 $("#openid_label").html('{'Please enter your username'|@translate|escape:javascript}'); break; 51 51 } 52 52 … … 75 75 var oi = $("#openid_form input[name='openid_identifier']").val(); 76 76 77 $("#openid_ error").hide();77 $("#openid_label").removeClass('error'); 78 78 if (!oi) {ldelim} 79 $("#openid_error").html("{'Put your username or OpenID on this field'|@translate}").show(); 80 $.colorbox.resize() 79 $("#openid_label").addClass('error'); 81 80 return false; 82 81 } … … 93 92 94 93 $("#openid_cancel").click(function() {ldelim} 94 $("#openid_label").removeClass('error'); 95 95 $.colorbox.close(); 96 96 return false; … … 110 110 <input type="text" name="openid_identifier" id="openid_identifier" size="50"> 111 111 </div> 112 <div id="openid_error" style="display:none;"></div>113 112 <div> 114 113 <br>
Note: See TracChangeset
for help on using the changeset viewer.