diff --git a/README b/README index 3c08c973f3fa151cf9a7f63faeff4bf1d6741560..7df063f95c1b9967b095a6caa66b95e1d902084a 100755 --- a/README +++ b/README @@ -129,12 +129,20 @@ General Update Instructions: Specific Update Instructions: -Updates from versions before 1.17.2 - A new configuration option $supportContactEmail was introduced to provide - the user a support contact address in case of errors. Please add a line - like the following to the SWITCHwayf configuration file config.php: - $supportContactEmail = 'your-support-contact@your.organisation.org'; - If not set, the default address support-contact@example.org will be used. +Updates from versions before 1.18 + The following new configuration options were introduced: + + - $supportContactEmail + - $organizationLogoURL + - $organizationURL + - $faqURL + - $helpURL + - $privacyURL + + Have a look at config.dist.php in section 4. Appearance settings for a + description on these settings. The make sure to configure them to config.php + which should contain your own configuration. Otherwise, default values + will be set. Updates from versions before 1.15 diff --git a/WAYF b/WAYF index beb5de70f1472200a2bdcd8cb19072e89146e796..c7301a97b7b28c1539d7b3b2f99b3244d258aa9d 100755 --- a/WAYF +++ b/WAYF @@ -3,7 +3,7 @@ /* ****************************************************************************** SWITCHwayf -Version: 1.17.2 +Version: 1.18 Contact: aai@switch.ch Web site: http://www.switch.ch/aai/wayf ****************************************************************************** @@ -13,10 +13,10 @@ Web site: http://www.switch.ch/aai/wayf // Load general configuration and template file /*------------------------------------------------*/ -require_once('config.php'); require_once('templates.php'); require_once('functions.php'); require_once('languages.php'); +require_once('config.php'); // Set P3P headers just in case they were not set in Apache already header('P3P: CP="NOI CUR DEVa OUR IND COM NAV PRE"'); diff --git a/config.dist.php b/config.dist.php index 1ea76f97458f6270c022b7e1b0b425a12d72f873..bd3bbd8a9590ec4278520bd1c31f6a0eaba3eb29 100755 --- a/config.dist.php +++ b/config.dist.php @@ -1,34 +1,39 @@ or if the assertion consumer url // check below is enabled // Requires $useSAML2Metadata to be true - $enableDSReturnParamCheck = true; + //$enableDSReturnParamCheck = true; // If true, the return parameter is checked for Service Providers that // don't have and extension set. Instead of this @@ -88,14 +93,17 @@ $useSAML2Metadata = false; // a extension. It increases security for Service // Provider's that don't have an extensions. // Requires $useSAML2Metadata and $enableDSReturnParamCheck to be true - $useACURLsForReturnParamCheck = false; + //$useACURLsForReturnParamCheck = false; // Whether to turn on Kerberos support for Identity Provider preselection -$useKerberos = false; +//$useKerberos = false; + + // A Kerboros-protected page that redirects back to the WAYF script + //$kerberosRedirectURL = '/myFederation/kerberosRedirect.php'; // If enabled, the user's IP is used for a reverse DNS lookup whose resulting // domain name then is matched with the URN values of the Identity Providers -$useReverseDNSLookup = false; +//$useReverseDNSLookup = false; // Whether the JavaScript required for embedding the WAYF // on a remote site should be generated or not @@ -104,7 +112,7 @@ $useReverseDNSLookup = false; // (with some efforts) find out with a high probability from which // organization a user is from. This could be misused for phishing attacks. // Therefore, only enable this feature if you know what you are doing! -$useEmbeddedWAYF = false; +//$useEmbeddedWAYF = false; // If enabled the Embedded WAYF will prevent releasing information // about the user's preselected Identity Provider @@ -112,7 +120,7 @@ $useEmbeddedWAYF = false; // prevent preselecting the user's Identity Provider. Thus, users will have // to preselect their IdP each and every time // Requires $useEmbeddedWAYF to be true - $useEmbeddedWAYFPrivacyProtection = false; + //$useEmbeddedWAYFPrivacyProtection = false; // If enabled, the referer hostname of the request must match tan assertion // consumer URL or a discovery URL of a Service Provider in $metadataSPFile @@ -121,7 +129,7 @@ $useEmbeddedWAYF = false; // userfriendlyness. // Requires $useSAML2Metadata to be true and $useEmbeddedWAYFPrivacyProtection // to be false - $useEmbeddedWAYFRefererForPrivacyProtection = false; + //$useEmbeddedWAYFRefererForPrivacyProtection = false; // Whether or not to add the entityID of the preselected IdP to the // exported JSON/Text/PHP Code @@ -130,40 +138,56 @@ $useEmbeddedWAYF = false; // in the world can easily find out with a high probability from which // organization a user is from. This could be misused for phishing attacks. // Therefore, only enable this feature if you know what you are doing! -$exportPreselectedIdP = false; +//$exportPreselectedIdP = false; // Whether to enable logging of WAYF/DS requests // If turned on make sure to also configure $WAYFLogFile -$useLogging = true; +//$useLogging = true; + + // Where to log the access + // Make sure the web server user has write access to this file! + //$WAYFLogFile = '/var/log/apache2/wayf.log'; // 4. Appearance settings //************************** // Name of the federation -$federationName = 'SWITCHaai Federation'; +//$federationName = 'myFederation'; // URL to send user to when clicking on federation logo -$federationURL = 'http://www.switch.ch/aai/'; +// Insert %s as macro to be substituted by the language (e.g. 'en', 'de', 'fr', ...) the WAYF uses +//$federationURL = 'http://www.example.org/myFed/'; + +// Absolute URL to the federation logo that should be displayed in the Embedded WAYF +//$logoURL = 'http://ds.example.org/SWITCHwayf/images/federation-logo.png'; + +// Absolute URL to the small federation logo that should be displayed in the +// embedded WAYF if dimensions must be small +//$smallLogoURL = 'http://ds.example.org/SWITCHwayf/images/small-federation-logo.png'; // Support contact email address -$supportContactEmail = 'helpdesk@example.org'; +//$supportContactEmail = 'helpdesk@example.org'; -// Use an absolute URL in case you want to use the embedded WAYF -$imageURL = 'https://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/images'; +// Absolute URL to the logo of the organization operating this Discovery Service +//$organizationLogoURL = 'https://ds.example.org/SWITCHwayf/images/organization-logo.png'; -// Absolute URL to point to css directory -$cssURL = 'https://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/css'; +// Absolute URL to the organization's web page +// Insert %s as macro to be substituted by the language (e.g. 'en', 'de', 'fr', ...) the WAYF uses +//$organizationURL = 'http://www.example.org/'; -// Absolute URL to point to javascript directory -$javascriptURL = 'https://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/js'; +// Absolute URL to an FAQ page +// This entries local string is 'faq' in languages.php +// Insert %s as macro to be substituted by the language (e.g. 'en', 'de', 'fr', ...) the WAYF uses +//$faqURL = 'http://www.example.org/%s/myFed/faq/'; -// Absolute URL to the logo that should be displayed in the Embedded WAYF -$logoURL = $imageURL.'/switch-aai-transparent.png'; +// Absolute URL to a help/support page +// Insert %s as macro to be substituted by the language (e.g. 'en', 'de', 'fr', ...) the WAYF uses +//$helpURL = 'http://www.example.org/%s/myFed/help/'; -// Absolute URL to the small logo that should be displayed in the -// embedded WAYF if dimensions must be small -$smallLogoURL = $imageURL.'/switch-aai-transparent-small.png'; +// Absolute URL to a privacy policy page +// Insert %s as macro to be substituted by the language (e.g. 'en', 'de', 'fr', ...) the WAYF uses +//$privacyURL = 'http://www.example.org/%s/myFed/privacy/'; // 5. Files and path settings @@ -172,43 +196,43 @@ $smallLogoURL = $imageURL.'/switch-aai-transparent-small.png'; // Set both config files to the same value if you don't want to use the // the WAYF to read a (potential) automatically generated file that undergoes // some plausability checks before being used -$IDPConfigFile = 'IDProvider.conf.php'; -$backupIDPConfigFile = 'IDProvider.conf.php'; +//$IDPConfigFile = 'IDProvider.conf.php'; +//$backupIDPConfigFile = 'IDProvider.conf.php'; // Use $metadataFile as source federation's metadata. -$metadataFile = '/etc/shibboleth/metadata.switchaai.xml'; +//$metadataFile = '/etc/shibboleth/metadata.myFederation.xml'; // File to store the parsed IdP list // Will be updated automatically if the metadataFile modification time // is more recent than this file's // The user running the script must have permission to create $metadataIdpFile -$metadataIDPFile = 'IDProvider.metadata.php'; +//$metadataIDPFile = 'IDProvider.metadata.php'; // File to store the parsed SP list. // Will be updated automatically if the metadataFile modification time // is more recent than this file's // The user running the script must have permission to create $metadataIdpFile -$metadataSPFile = 'SProvider.metadata.php'; +//$metadataSPFile = 'SProvider.metadata.php'; // File to use as the lock file for writing the parsed IdP and SP lists. // The user running the script must have permission to write $metadataLockFile -$metadataLockFile = '/tmp/wayf_metadata.lock'; +//$metadataLockFile = '/tmp/wayf_metadata.lock'; -// Where to log the access -// Make sure the web server user has write access to this file! -$WAYFLogFile = '/var/log/apache2/wayf.log'; +// Use an absolute URL in case you want to use the embedded WAYF +//$imageURL = 'https://ds.example.org/SWITCHwayf/images'; +// Absolute URL to point to css directory +//$cssURL = 'https://ds.example.org/SWITCHwayf/css'; -// 6. Other settings -//****************** +// Absolute URL to point to javascript directory +//$javascriptURL = 'https://ds.example.org/SWITCHwayf/js'; -// A Kerboros-protected soft link back to this script! -$kerberosRedirectURL = '/SWITCHaai/kerberosRedirect.php'; // Development mode settings //************************** // If the development mode is activated, PHP errors and warnings will be displayed -$developmentMode = false; +// on pages the SWITCHwayf generates +//$developmentMode = false; ?> diff --git a/default-body.php b/default-body.php index ee48848a0b72c729f37d58dc96c3c4963b2bd157..100d22e4120b10aebd774d7ba5d8af9f11af7306 100644 --- a/default-body.php +++ b/default-body.php @@ -26,5 +26,7 @@ +

+ diff --git a/default-embedded-wayf.php b/default-embedded-wayf.php index 844072b0aa2dc6286830e6e93baacc536ab98235..fdf6a4e8be80b79d4db361831a7d15af20f669ed 100644 --- a/default-embedded-wayf.php +++ b/default-embedded-wayf.php @@ -11,7 +11,7 @@ //////////////////// ESSENTIAL SETTINGS //////////////////// // URL of the WAYF to use -// Examples: "https://wayf.switch.ch/SWITCHaai/WAYF", "https://wayf-test.switch.ch/aaitest/WAYF"; +// Examples: "https://wayf.example.org/SWITCHwayf/WAYF" // [Mandatory] var wayf_URL = "https://"; @@ -127,7 +127,7 @@ var wayf_show_categories = true; // EntityIDs of Identity Provider that should not be shown at all // Example of how to hide certain Identity Provider -// var wayf_hide_idps = new Array("https://idp.unige.ch/idp/shibboleth", "https://lewotolo.switch.ch/idp/shibboleth"); +// var wayf_hide_idps = new Array("https://idp.unige.ch/idp/shibboleth", "https://aai-logon.switch.ch/idp/shibboleth"); // [Optional, commented out by default] // var wayf_hide_idps = new Array(); @@ -143,7 +143,7 @@ var wayf_show_categories = true; // var wayf_use_discovery_service = false; // Session Initiator URL of the Service Provider -// Examples: "https://econf.switch.ch/Shibboleth.sso/Login", "https://dokeos.unige.ch/Shibboleth.sso/DS" +// Examples: "https://interact.switch.ch/Shibboleth.sso/Login", "https://dokeos.unige.ch/Shibboleth.sso/DS" // This will implicitely be set to wayf_sp_samlDSURL = wayf_sp_handlerURL + "/Login"; // or will be set automatically if the page where the Embedded WAYF is placed is called // with a 'return' and an 'entityID' GET Arguments @@ -154,16 +154,15 @@ var wayf_show_categories = true; // Default IdP to preselect when central WAYF couldn't guess IdP either // This is usually the case the first time ever a user accesses a resource // [Optional, default: commented out] -// var wayf_default_idp = "https://aai.switch.ch/idp/shibboleth"; +// var wayf_default_idp = "https://aai-logon.switch.ch/idp/shibboleth"; // Set a custom Assertion Consumer URL instead of // the default wayf_sp_handlerURL + '/SAML/POST' // Only relevant if wayf_use_discovery_service is false -// Examples: "https://olat.uzh.ch/shib/samlaa", +// Examples: "https://my-app.switch.ch/custom/saml-implementation/samlaa" // This will implicitely be set to wayf_sp_samlACURL = wayf_sp_handlerURL + "/SAML/POST"; -// "https://foodle.feide.no/simplesaml/shib13/sp/AssertionConsumerService.php" // [Optional, commented out by default] -// var wayf_sp_samlACURL = "https://maclh.switch.ch/foo/bar"; +// var wayf_sp_samlACURL = "https://my-app.switch.ch/custom/saml-implementation/samlaa"; // Overwites the text of the checkbox if // wayf_show_remember_checkbox is set to true @@ -215,7 +214,7 @@ var wayf_show_categories = true; // var wayf_additional_idps = [ // // {name:"International University X", -// entityID:"urn:mace:switch.ch:SWITCHaai:example.university.org", +// entityID:"urn:mace:example.org:example.university.org", // SAML1SSOurl:"https://int.univ.org/shibboleth-idp/SSO"}, // // {name:"Some Other University", diff --git a/default-header.php b/default-header.php index 60d903fef3d168835b320334118e4b9b032a6322..7479af813dd4e5972b92ca8605c28f2cc6b6dd23 100644 --- a/default-header.php +++ b/default-header.php @@ -109,14 +109,14 @@
diff --git a/functions.php b/functions.php index 88696e147bb2e5684e872e7b2df3b88330121262..6ce96a6269a1418eebf5a8768ba5ce4500178229 100644 --- a/functions.php +++ b/functions.php @@ -32,11 +32,16 @@ function initConfigOptions(){ global $federationName; global $supportContactEmail; global $federationURL; + global $organizationURL; + global $faqURL; + global $helpURL; + global $privacyURL; global $imageURL; global $javascriptURL; global $cssURL; global $logoURL; global $smallLogoURL; + global $organizationLogoURL; global $IDPConfigFile; global $backupIDPConfigFile; global $metadataFile; @@ -50,13 +55,13 @@ function initConfigOptions(){ // Set independet default configuration options $defaults = array(); $defaults['defaultLanguage'] = 'en'; - $defaults['commonDomain'] = '.switch.ch'; + $defaults['commonDomain'] = getTopLevelDomain($_SERVER['SERVER_NAME']); $defaults['cookieNamePrefix'] = ''; $defaults['cookieSecurity'] = false; $defaults['cookieValidity'] = 100; $defaults['showPermanentSetting'] = false; $defaults['useImprovedDropDownList'] = true; - $defaults['useSAML2Metadata'] = true; + $defaults['useSAML2Metadata'] = false; $defaults['SAML2MetaOverLocalConf'] = false; $defaults['includeLocalConfEntries'] = true; $defaults['enableDSReturnParamCheck'] = true; @@ -68,9 +73,13 @@ function initConfigOptions(){ $defaults['useEmbeddedWAYFRefererForPrivacyProtection'] = false; $defaults['useLogging'] = true; $defaults['exportPreselectedIdP'] = false; - $defaults['federationName'] = 'SWITCHaai Federation'; - $defaults['federationURL'] = 'http://www.switch.ch/aai/'; - $defaults['supportContactEmail'] = 'support-contact@example.org'; + $defaults['federationName'] = 'Identity Federation'; + $defaults['organizationURL'] = 'http://www.'.$defaults['commonDomain']; + $defaults['federationURL'] = $defaults['organizationURL'].'/aai'; + $defaults['faqURL'] = $defaults['federationURL'].'/faq'; + $defaults['helpURL'] = $defaults['federationURL'].'/help'; + $defaults['privacyURL'] = $defaults['federationURL'].'/privacy'; + $defaults['supportContactEmail'] = 'support-contact@'.$defaults['commonDomain']; $defaults['imageURL'] = 'https://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/images'; $defaults['javascriptURL'] = 'https://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/js'; $defaults['cssURL'] = 'https://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/css'; @@ -97,8 +106,9 @@ function initConfigOptions(){ $defaults['redirectStateCookieName'] = $cookieNamePrefix.'_redirection_state'; $defaults['SAMLDomainCookieName'] = $cookieNamePrefix.'_saml_idp'; $defaults['SPCookieName'] = $cookieNamePrefix.'_saml_sp'; - $defaults['logoURL'] = $imageURL.'/switch-aai-transparent.png'; - $defaults['smallLogoURL'] = $imageURL.'/switch-aai-transparent-small.png'; + $defaults['logoURL'] = $imageURL.'/federation-logo.png'; + $defaults['smallLogoURL'] = $imageURL.'/small-federation-logo.png'; + $defaults['organizationLogoURL'] = $imageURL.'/organization-logo.png'; // Initialize dependent defaults foreach($defaults as $key => $value){ diff --git a/images/federation-logo.png b/images/federation-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..7b23a83388ef6117145049dc327eec9ed33844fa Binary files /dev/null and b/images/federation-logo.png differ diff --git a/images/organization-logo.png b/images/organization-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..9a582904bdbb32034a8353fd286d44411bdd68bb Binary files /dev/null and b/images/organization-logo.png differ diff --git a/images/small-federation-logo.png b/images/small-federation-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..3cf7f1a937bc52aef91fc3b10f34a3334f9ec555 Binary files /dev/null and b/images/small-federation-logo.png differ diff --git a/images/switch-aai-transparent-small.png b/images/switch-aai-transparent-small.png deleted file mode 100644 index 09a9f4530edba19dafa7702a6753e8ca33b5939e..0000000000000000000000000000000000000000 Binary files a/images/switch-aai-transparent-small.png and /dev/null differ diff --git a/images/switch-aai-transparent.png b/images/switch-aai-transparent.png deleted file mode 100644 index 58bdb6e34f43b1240ed849581ef2507bb024ccec..0000000000000000000000000000000000000000 Binary files a/images/switch-aai-transparent.png and /dev/null differ diff --git a/images/switch-logo.png b/images/switch-logo.png deleted file mode 100644 index b93c9f2543c50f03d82a65e667ea3424bb850485..0000000000000000000000000000000000000000 Binary files a/images/switch-logo.png and /dev/null differ diff --git a/images/switchaai-logo.png b/images/switchaai-logo.png deleted file mode 100644 index 58bdb6e34f43b1240ed849581ef2507bb024ccec..0000000000000000000000000000000000000000 Binary files a/images/switchaai-logo.png and /dev/null differ diff --git a/languages.php b/languages.php index ce694aac31643b4a342b652f7cba3605ad08e6b0..63e738cf16d1bfbd849bcc078b158592c0f853eb 100755 --- a/languages.php +++ b/languages.php @@ -1,6 +1,6 @@ sample HTML content'; +// +// +// Set a string to '' in order to hide it +// Note that any string in custom-languages.php will survive updates + +'about_federation' => 'About AAI', // This string can be hidden by setting it to '' +'about_organisation' => 'About SWITCH', // This string can be hidden by setting it to '' +'additional_info' => 'SWITCH provides innovative, unique internet services for the Swiss universities and internet users.', // This string can be hidden by setting it to '' + +// Generic strings +'faq' => 'FAQ', // This string can be hidden by setting it to '' +'help' => 'Help',// This string can be hidden by setting it to '' +'privacy' => 'Privacy', // This string can be hidden by setting it to '' 'title' => 'Home Organisation Selection', -'header' => 'Select your Home Organisation', -'about_federation' => 'About AAI', -'about_organisation' => 'About SWITCH', -'faq' => 'FAQ', -'help' => 'Help', -'privacy' => 'Privacy', +'header' => 'Select your Home Organisation', 'make_selection' => 'You must select a valid Home Organisation.', 'settings' => 'Default Home Organisation for this web browser', 'permanent_select_header' => 'Permanently set your Home Organisation', @@ -30,7 +44,6 @@ $langStrings['en'] = array ( 'select_idp' => 'Select the organisation you are affiliated with', 'search_idp' => 'Type the name of the organisation you are affiliated with', 'remember_selection' => 'Remember selection for this web browser session.', -'additional_info' => 'SWITCH provides innovative, unique internet services for the Swiss universities and internet users.', 'invalid_user_idp' => 'There may be an error in the data you just submitted.
The value of your input \'%s\' is invalid.
Only the following values are allowed:', 'contact_assistance' => 'Please contact %s for assistance.', 'no_arguments' => 'No arguments received!', @@ -55,13 +68,17 @@ $langStrings['en'] = array ( // Deutsch $langStrings['de'] = array ( +// Read note on line 12 +'about_federation' => 'Über AAI', // This string can be hidden by setting it to '' +'about_organisation' => 'Über SWITCH', // This string can be hidden by setting it to '' +'additional_info' => 'SWITCH erbringt innovative, einzigartige Internet-Dienstleistungen für die Schweizer Hochschulen und Internetbenutzer.', // This string can be hidden by setting it to '' + +// Generic strings +'faq' => 'FAQ', // This string can be hidden by setting it to '' +'help' => 'Hilfe', // This string can be hidden by setting it to '' +'privacy' => 'Datenschutz', // This string can be hidden by setting it to '' 'title' => 'Auswahl der Home Organisation', 'header' => 'Home Organisation auswählen', -'about_federation' => 'Über AAI', -'about_organisation' => 'Über SWITCH', -'faq' => 'FAQ', -'help' => 'Hilfe', -'privacy' => 'Datenschutz', 'make_selection' => 'Sie müssen eine gültige Home Organisation auswählen', 'settings' => 'Standard Home Organisation für diesen Webbrowser', 'permanent_select_header' => 'Home Organisation speichern', @@ -77,7 +94,6 @@ $langStrings['de'] = array ( 'select_idp' => 'Wählen Sie die Organisation aus, der Sie angehören', 'search_idp' => 'Tippen Sie den Namen der Organisation, der Sie angehören', 'remember_selection' => 'Auswahl für die laufende Webbrowser Sitzung speichern.', -'additional_info' => 'SWITCH erbringt innovative, einzigartige Internet-Dienstleistungen für die Schweizer Hochschulen und Internetbenutzer.', 'invalid_user_idp' => 'Möglicherweise sind die übermittelten Daten fehlerhaft.
Der Wert der Eingabe \'%s\' ist ungültig.
Es sind ausschliesslich die folgenden Wert erlaubt:', 'contact_assistance' => 'Für Unterstützung und Hilfe, kontaktieren Sie bitte %s.', 'no_arguments' => 'Keine Argumente erhalten!', @@ -101,13 +117,18 @@ $langStrings['de'] = array ( // Francais $langStrings['fr'] = array ( + +// Read note on line 12 +'about_federation' => 'À propos de l\'AAI', // This string can be hidden by setting it to '' +'about_organisation' => 'À propos de SWITCH', // This string can be hidden by setting it to '' +'additional_info' => 'SWITCH fournit des prestations innovantes et uniques pour les hautes écoles suisses et les utilisateurs d\'Internet.', // This string can be hidden by setting it to '' + +// Generic strings +'faq' => 'FAQ', // This string can be hidden by setting it to '' +'help' => 'Aide',// This string can be hidden by setting it to '' +'privacy' => 'Protection des données',// This string can be hidden by setting it to '' 'title' => 'Sélection de votre Home Organisation', 'header' => 'Sélectionnez votre Home Organisation', -'about_federation' => 'À propos de l\'AAI', -'about_organisation' => 'À propos de SWITCH', -'faq' => 'FAQ', -'help' => 'Aide', -'privacy' => 'Protection des données', 'make_selection' => 'Vous devez sélectionner une Home Organisation valide.', 'settings' => 'Home Organisation par défaut pour ce navigateur', 'permanent_select_header' => 'Définir une Home Organisation de façon permanente', @@ -123,7 +144,6 @@ $langStrings['fr'] = array ( 'select_idp' => 'Veuillez sélectionner l\'organisation à laquelle vous appartenez.', 'search_idp' => 'Veuillez taper le nom de l\'organisation à laquelle vous appartenez.', 'remember_selection' => 'Se souvenir de mon choix pour cette session.', -'additional_info' => 'SWITCH fournit des prestations innovantes et uniques pour les hautes écoles suisses et les utilisateurs d\'Internet.', 'invalid_user_idp' => 'Une erreur s\'est produite.
La valeur de votre donnée \'%s\' n\'est pas valide.
Seules ces valeurs sont admises :', 'contact_assistance' => 'Contactez le support %s si l\'erreur persiste.', 'no_arguments' => 'Pas de paramètre reçu !', @@ -142,13 +162,17 @@ $langStrings['fr'] = array ( // Italian $langStrings['it'] = array ( +// Read note on line 12 +'about_federation' => 'Informazioni su AAI', // This string can be hidden by setting it to '' +'about_organisation' => 'Informazioni su SWITCH', // This string can be hidden by setting it to '' +'additional_info' => 'SWITCH eroga servizi Internet innovativi e unici per le scuole universitarie svizzere e per gli utenti di Internet.', // This string can be hidden by setting it to '' + +// Generic strings +'faq' => 'FAQ', // This string can be hidden by setting it to '' +'help' => 'Aiuto', // This string can be hidden by setting it to '' +'privacy' => 'Protezione dei dati', // This string can be hidden by setting it to '' 'title' => 'Selezione della vostra Home Organisation', 'header' => 'Selezioni la sua Home Organisation', -'about_federation' => 'Informazioni su AAI', -'about_organisation' => 'Informazioni su SWITCH', -'faq' => 'FAQ', -'help' => 'Aiuto', -'privacy' => 'Protezione dei dati', 'make_selection' => 'Per favore, scelga una valida Home Organisation.', 'settings' => 'Home Organisation predefinita per questo web browser.', 'permanent_select_header' => 'Salvare la Home Organisation.', @@ -164,7 +188,6 @@ $langStrings['it'] = array ( 'select_idp' => 'Selezioni l\'organizzazione con la quale è affiliato.', 'search_idp' => 'Digitare il nome dell\'organizzazione con cui e\' affiliato.', 'remember_selection' => 'Ricorda la selezione per questa sessione.', -'additional_info' => 'SWITCH eroga servizi Internet innovativi e unici per le scuole universitarie svizzere e per gli utenti di Internet.', 'invalid_user_idp' => 'Errore nei parametri pervenuti.
Il valore del parametro \'%s\' non  valido.
Solo i seguenti valori sono ammessi:', 'contact_assistance' => 'Se l\' errore persiste, si prega di contattare %s.', 'no_arguments' => 'Parametri non pervenuti!', @@ -182,19 +205,23 @@ $langStrings['it'] = array ( // Portuguese $langStrings['pt'] = array ( -'title' => 'SWITCHaai: Selecção de Instituição de Origem', +// Read note on line 12 +'about_federation' => 'Sobre AAI', // This string can be hidden by setting it to '' +'about_organisation' => 'Sobre a SWITCH', // This string can be hidden by setting it to '' +'additional_info' => 'A SWITCH foundation é uma instituição gere e opera a rede de investigação e ensino suiça por forma a garantir conectividade de alto desempenho à Internet e a redes de I&D globais para o beneficio de uma educação superior na suiça', // This string can be hidden by setting it to '' + +// Generic strings +'faq' => 'FAQ', // This string can be hidden by setting it to '' +'help' => 'Ajuda', // This string can be hidden by setting it to '' +'privacy' => 'Privacidade', // This string can be hidden by setting it to '' +'title' => 'Selecção de Instituição de Origem', 'header' => 'Seleccione a sua Instituição de Origem', -'about_federation' => 'Sobre AAI', -'about_organisation' => 'Sobre a Switch', -'faq' => 'FAQ', -'help' => 'Ajuda', -'privacy' => 'Privacidade', 'make_selection' => 'Deverá seleccionar uma Instituição de Origem Válida', 'settings' => 'Instituição de Origem por defeito para este web browser', 'permanent_select_header' => 'Defina permanentemente a sua Instituição de Origem', 'permanent_cookie' => 'Nesta página poderá definir a sua Instituição de Origem para este web browser. Defenir uma Instituição de Origem levará a que seja redireccionado directamente para a sua Instituição de Origem aquando do acesso de recursos-AAI. Não use esta funcionalidade se possuir várias contas de AAI.', 'permanent_cookie_notice' => 'Por omissão a configuração da sua instituição de origem ter´ a funcionalidade de não ser necess´rio seleccionar novamente recursos federados. A configuração &ecute;:', -'permanent_cookie_note' => 'Poderá efectuar um reset às configurações no url wayf.switch.ch/SWITCHaai/WAYF', +'permanent_cookie_note' => 'Poderá efectuar um reset às configurações no url %s', 'delete_permanent_cookie_button' => 'Reset', 'goto_sp' => 'Salve e continue para a sua Instituição de Origem', 'permanently_remember_selection' => 'Memorize a sua selecção permanentemente e passe o mecanismo WAYF apartir de agora.', @@ -204,8 +231,6 @@ $langStrings['pt'] = array ( 'select_idp' => 'Seleccione a sua Instituição de Origem', 'no_idp' => 'Não existem Organizações de Origem na federação \'%s\'', 'remember_selection' => 'Memorize a selecção para esta sessão.', -'import_swisssign' => 'A SWITCH recomenda a importação do\'SwissSign Root CA Certificate\' no seu browser. Desta forma, o seu browser estabelecer´ uma ligação segura com os servidores AAI.', -'additional_info' => 'A SWITCH foundation é uma instituição gere e opera a rede de investigação e ensino suiça por forma a garantir conectividade de alto desempenho à Internet e a redes de I&D globais para o beneficio de uma educação superior na suiça', 'invalid_user_idp' => 'Poderá existir um erro nos dados que enviou.
Os valores enviados \'%s\' são inválidos.
Apenas os valores seguintes são permitidos:', 'contact_assistance' => 'Contacte %s para assistencia.', 'no_arguments' => 'Nenhum argumento recebido!', diff --git a/templates.php b/templates.php index 96a6d471b4901f18e0e3bbb98e69936bbe800c5a..cbe58a8bcb2236ffcc43abe33a6c30621557c0b1 100755 --- a/templates.php +++ b/templates.php @@ -16,7 +16,8 @@ if(!isset($_SERVER['REMOTE_ADDR']) || basename($_SERVER['SCRIPT_NAME']) == 'temp function printHeader(){ - global $langStrings, $language, $imageURL, $javascriptURL, $cssURL, $logoURL, $useImprovedDropDownList; + global $langStrings, $language, $imageURL, $javascriptURL, $cssURL, $logoURL, $useImprovedDropDownList, $organizationLogoURL; + global $federationURL, $organizationURL, $faqURL, $helpURL, $privacyURL; // Check if custom header template exists if(file_exists('custom-header.php')){