From adc18e7db155df5337f799451d1a9afa7ade5021 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 17 Jan 2011 15:46:34 +0000 Subject: [PATCH] --- inc/commons/class.common.droits.php | 1 + inc/config.inc.php | 6 ++++-- inc/extranet/Controlleur/class.extranet.url.php | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/inc/commons/class.common.droits.php b/inc/commons/class.common.droits.php index ede7b00eb..d5ca99e31 100644 --- a/inc/commons/class.common.droits.php +++ b/inc/commons/class.common.droits.php @@ -27,6 +27,7 @@ class commonDroits { public static function error() { http::head(401); + ob_end_clean(); exit; } } diff --git a/inc/config.inc.php b/inc/config.inc.php index fab91a91a..0078485eb 100644 --- a/inc/config.inc.php +++ b/inc/config.inc.php @@ -42,6 +42,8 @@ if ($local) { define('AS3_SOURCES', '/home/ws/sources'); } +define('FLASH_SOURCES', ROOT . '/swf/'); + if ($ws) { define('MODE', 'ws'); define('GA', 'UA-4339912-5'); @@ -51,7 +53,7 @@ if ($ws) { define('FROM_NAME', 'Fluidbook Workshop'); define('EMAIL_SUBJECT', 'Fluidbook Workshop'); define('TEAM_EMAIL', 'team@fluidbook.com'); - define('RAPPEL','Rappel des identifiants de connexion au Fluidbook Workshop'); + define('RAPPEL', 'Rappel des identifiants de connexion au Fluidbook Workshop'); } elseif ($extranet) { define('MODE', 'extranet'); define('GA', 'UA-4339912-4'); @@ -61,7 +63,7 @@ if ($ws) { define('FROM_NAME', 'Extranet Cubedesigners'); define('EMAIL_SUBJECT', 'Extranet Cubedesigners'); define('TEAM_EMAIL', 'team@cubedesigners.com'); - define('RAPPEL','Rappel des identifiants de connexion à l\'extranet Cubedesigners'); + define('RAPPEL', 'Rappel des identifiants de connexion à l\'extranet Cubedesigners'); } if (DEV) { diff --git a/inc/extranet/Controlleur/class.extranet.url.php b/inc/extranet/Controlleur/class.extranet.url.php index caa74076b..879680a10 100644 --- a/inc/extranet/Controlleur/class.extranet.url.php +++ b/inc/extranet/Controlleur/class.extranet.url.php @@ -215,7 +215,7 @@ class extranetUrl { $res .= '' . trim($contact->prenom . ' ' . $contact->nom) . ''; $res .= '' . $contact->email . ''; $res .= 'FTP'; - $res .= 'Se connecter comme ...'; + $res .= 'Se connecter comme ...'; $res .= '' . cubeMedia::image(IMG . '/edit.png') . ''; $i++; } @@ -251,7 +251,7 @@ class extranetUrl { if ($client_id != 'new') { $res .= '' . cubeMedia::spacer(10, 10) . ''; $res .= '' . __('FTP') . ''; - $res .= '' . __('Se connecter comme ...') . ''; + $res .= '' . __('Se connecter comme ...') . ''; $res .= '' . __("Paramètres de connexion à l'extranet") . '' . __('Adresse') . ' : http://extranet.cubedesigners.com/
' . __("Nom d'utilisateur") . ' : ' . $client->email . '
' . __('Mot de passe') . ' : ' . $client->password . ''; $res .= '' . cubeMedia::spacer(10, 10) . ''; // $res .= '' . __("Paramètres de connexion au FTP") . '' . __('Serveur FTP') . ' : extranet.cubedesigners.com (ftp://extranet.cubedesigners.com)
' . __("Nom d'utilisateur") . ' : ' . $client->email . '
' . __('Mot de passe') . ' : ' . $client->password . ''; @@ -1523,7 +1523,7 @@ class extranetUrl { $res .= ''; $res .= ''; $res .= '
' . __("Traduction de l'application en anglais") . '
'; - $res .= cubeLang::translationForm(ROOT . '/inc/extranet', 'en' , ROOT . '/l10n', '', array(), '' . $core->typo->BoutonOK('Enregistrer') . ''); + $res .= cubeLang::translationForm(array(ROOT . '/inc/extranet', FLASH_SOURCES), 'en' , ROOT . '/l10n', '', array(), '' . $core->typo->BoutonOK('Enregistrer') . ''); $res .= ''; $res .= commonPage::bf(); $res .= commonPage::bMain(); -- 2.39.5