]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 17 Jan 2011 15:46:34 +0000 (15:46 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 17 Jan 2011 15:46:34 +0000 (15:46 +0000)
inc/commons/class.common.droits.php
inc/config.inc.php
inc/extranet/Controlleur/class.extranet.url.php

index ede7b00ebb9cfff1213eeea644b7404e71991066..d5ca99e31a0b66edc43dd517851e454eb7eb7741 100644 (file)
@@ -27,6 +27,7 @@ class commonDroits {
        public static function error()\r
        {\r
                http::head(401);\r
+               ob_end_clean();\r
                exit;\r
        }\r
 }\r
index fab91a91a2dc58f02416cbd49509804b03a6167c..0078485eb55773b238205f2b6bc82a4d08f7fc4a 100644 (file)
@@ -42,6 +42,8 @@ if ($local) {
        define('AS3_SOURCES', '/home/ws/sources');\r
 }\r
 \r
+define('FLASH_SOURCES', ROOT . '/swf/');\r
+\r
 if ($ws) {\r
        define('MODE', 'ws');\r
        define('GA', 'UA-4339912-5');\r
@@ -51,7 +53,7 @@ if ($ws) {
        define('FROM_NAME', 'Fluidbook Workshop');\r
        define('EMAIL_SUBJECT', 'Fluidbook Workshop');\r
        define('TEAM_EMAIL', 'team@fluidbook.com');\r
-       define('RAPPEL','Rappel des identifiants de connexion au Fluidbook Workshop');\r
+       define('RAPPEL', 'Rappel des identifiants de connexion au Fluidbook Workshop');\r
 } elseif ($extranet) {\r
        define('MODE', 'extranet');\r
        define('GA', 'UA-4339912-4');\r
@@ -61,7 +63,7 @@ if ($ws) {
        define('FROM_NAME', 'Extranet Cubedesigners');\r
        define('EMAIL_SUBJECT', 'Extranet Cubedesigners');\r
        define('TEAM_EMAIL', 'team@cubedesigners.com');\r
-       define('RAPPEL','Rappel des identifiants de connexion à l\'extranet Cubedesigners');\r
+       define('RAPPEL', 'Rappel des identifiants de connexion à l\'extranet Cubedesigners');\r
 }\r
 \r
 if (DEV) {\r
index caa74076b4d947936b2810774ad8a54f764246b6..879680a10a372e4c2cfbad2e32fd10b5e32a784c 100644 (file)
@@ -215,7 +215,7 @@ class extranetUrl {
                        $res .= '<tr' . $odd . '><td>' . trim($contact->prenom . ' ' . $contact->nom) . '</td>';\r
                        $res .= '<td><a href="mailto:' . trim($contact->prenom . ' ' . $contact->nom) . '<' . $contact->email . '>">' . $contact->email . '</a></td>';\r
                        $res .= '<td class="min"><a href="' . SITE_PATH . 'fichiers/' . $contact->utilisateur_id . '">FTP</a></td>';\r
-                       $res .= '<td class="min"><a class="ajax" href="#" rel="' . SITE_PATH . 'connectAS/' . $contact->utilisateur_id . '">Se connecter comme ...</a></td>';\r
+                       $res .= '<td><a class="ajax" href="#" rel="connectAs/' . $contact->utilisateur_id . '">Se connecter comme ...</a></td>';\r
                        $res .= '<td class="right"><a href="#" rel="formContact/' . $contact->utilisateur_id . '" class="popup">' . cubeMedia::image(IMG . '/edit.png') . '</a></td></tr>';\r
                        $i++;\r
                }\r
@@ -251,7 +251,7 @@ class extranetUrl {
                if ($client_id != 'new') {\r
                        $res .= '<tr><td colspan="2">' . cubeMedia::spacer(10, 10) . '</td></tr>';\r
                        $res .= '<tr><td></td><td><a href="' . SITE_PATH . 'fichiers/' . $client->utilisateur_id . '">' . __('FTP') . '</a></td></tr>';\r
-                       $res .= '<tr><td></td><td><a class="ajax" href="#" rel="' . SITE_PATH . 'connectAs/' . $client->utilisateur_id . '">' . __('Se connecter comme ...') . '</a></td></tr>';\r
+                       $res .= '<tr><td></td><td><a class="ajax" href="#" rel="connectAs/' . $client->utilisateur_id . '">' . __('Se connecter comme ...') . '</a></td></tr>';\r
                        $res .= '<tr><td>' . __("Paramètres de connexion à l'extranet") . '</td><td>' . __('Adresse') . ' : http://extranet.cubedesigners.com/<br />' . __("Nom d'utilisateur") . ' : ' . $client->email . '<br />' . __('Mot de passe') . ' : ' . $client->password . '</td></tr>';\r
                        $res .= '<tr><td colspan="2">' . cubeMedia::spacer(10, 10) . '</td></tr>';\r
                        // $res .= '<tr><td>' . __("Paramètres de connexion au FTP") . '</td><td>' . __('Serveur FTP') . ' : extranet.cubedesigners.com (ftp://extranet.cubedesigners.com)<br />' . __("Nom d'utilisateur") . ' : ' . $client->email . '<br />' . __('Mot de passe') . ' : ' . $client->password . '</td></tr>';\r
@@ -1523,7 +1523,7 @@ class extranetUrl {
                $res .= '<table class="liste">';\r
                $res .= '<tr><th>' . __("Traduction de l'application en anglais") . '</th><th></th></tr>';\r
                $res .= '</table>';\r
-               $res .= cubeLang::translationForm(ROOT . '/inc/extranet', 'en' , ROOT . '/l10n', '', array(), '<a href="#" class="submit">' . $core->typo->BoutonOK('Enregistrer') . '</a>');\r
+               $res .= cubeLang::translationForm(array(ROOT . '/inc/extranet', FLASH_SOURCES), 'en' , ROOT . '/l10n', '', array(), '<a href="#" class="submit">' . $core->typo->BoutonOK('Enregistrer') . '</a>');\r
                $res .= '</form>';\r
                $res .= commonPage::bf();\r
                $res .= commonPage::bMain();\r