]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 4 Jan 2011 12:57:05 +0000 (12:57 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 4 Jan 2011 12:57:05 +0000 (12:57 +0000)
inc/config.inc.php
inc/ws/Controlleur/class.ws.droits.php
inc/ws/Controlleur/class.ws.url.php

index 82ac80108b67666b2993d0067d5699d9e3c0b16e..62e26e463fe90db3e728a5ce0abd174aa42cfed6 100644 (file)
@@ -27,6 +27,7 @@ if (in_array($_SERVER['HTTP_HOST'], array_merge($localrel, $localabs))) {
        define('CONVERTER_PATH', ROOT . '/fluidbook/tools/');\r
        define('MXMLC_PATH', 'C:\Program Files\Adobe\Flex SDK\bin\mxmlc.exe');\r
        define('FTPROOT', '/');\r
+       define('FLUIDBOOK_SOURCES', 'C:\Users\Vincent\Documents\Works\fluidbook3d\_src');\r
 } else {\r
        // Définition des variables dans l'environnement de production\r
        define('DB_HOST', 'localhost');\r
@@ -67,6 +68,7 @@ define('WS_ICONS', WS_FILES . '/icones');
 define('WS_THEMES', WS_FILES . '/themes');\r
 define('WS_CACHE', WS_FILES . '/cache');\r
 define('WS_COMPILE_ASSETS', WS_FILES . '/compile');\r
+define('WS_L10N',WS_FILES.'/l10n');\r
 // define('MINIMIZE_JS', false);\r
 define('WORKER_PREFIX', 'worker.');\r
 \r
@@ -87,7 +89,7 @@ define('IMG', WEBROOT . '/images/' . MODE);
 define('TYPOGRAPHP_PATH', ROOT . '/typo/' . MODE);\r
 define('TYPOGRAPHP_WEBROOT', IMG . '/typographp');\r
 \r
-define('MINIMIZE_JS',false);\r
+define('MINIMIZE_JS', false);\r
 \r
 define('JOURNEE', 8);\r
 define('TAUX_JOURNALIER', 500);\r
index 7e930fa4fed9051f7f9aebbcb41e1df912382dfd..3fc26331671e015bbf71a714d1800cceaae126f0 100644 (file)
@@ -7,6 +7,7 @@ class wsDroits {
                $nav = array();\r
                $nav[__('Dashboard')] = 'dashboard';\r
                $nav[__('Publications')] = 'publications';\r
+               $nav[__('Traductions')] = 'traductions';\r
                return $nav;\r
        }\r
 \r
index e2ae9e558fe9d339beeb194bda65a66db1d93a64..9b8bf34b5d10ee9f37956ad3a20ad32dfe02a79f 100644 (file)
@@ -67,8 +67,8 @@ class wsUrl {
                        // $f = $book->facturable;\r
                        $res .= '<td>' ./* $f .*/ '</td>';\r
                        $res .= '<td>' . $core->books_status[$book->status] . '</td>';\r
-                       $res .= '<td class="bouton"><a class="popupFS" rev="viewer_'.$book->book_id.'" href="' . SITE_PATH . 'viewer/' . $book->book_id . '_' . $book->hash . '/">' . $btVoir . '</a></td>';\r
-                       $res .= '<td class="bouton"><a class="popupFS" rev="editor_'.$book->book_id.'" href="' . SITE_PATH . 'editor/' . $book->book_id . '">' . $btEdit . '</a></td>';\r
+                       $res .= '<td class="bouton"><a class="popupFS" rev="viewer_' . $book->book_id . '" href="' . SITE_PATH . 'viewer/' . $book->book_id . '_' . $book->hash . '/">' . $btVoir . '</a></td>';\r
+                       $res .= '<td class="bouton"><a class="popupFS" rev="editor_' . $book->book_id . '" href="' . SITE_PATH . 'editor/' . $book->book_id . '">' . $btEdit . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="' . SITE_PATH . 'stats/' . $book->book_id . '">' . $btStats . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="' . SITE_PATH . 'supprimebook/' . $book->book_id . '">' . $btDownload . '</a></td>';\r
                        $res .= '<td class="bouton"><a href="#" rel="supprimeBook/' . $book->book_id . '" class="ajax" title="' . __('Êtes-vous certain de vouloir supprimer cette publication ?') . '">' . $btDel . '</a></td>';\r
@@ -86,6 +86,18 @@ class wsUrl {
                return $res;\r
        }\r
 \r
+       public static function traductions($args)\r
+       {\r
+               global $core;\r
+               $res = extranetPage::barre();\r
+               $res .= extranetPage::tMain(null, true);\r
+               $res .= extranetPage::bh();\r
+               $res .= cubeLang::translationForm(FLUIDBOOK_SOURCES, 'fr' , WS_L10N);\r
+               $res .= extranetPage::bf();\r
+               $res .= extranetPage::bMain();\r
+               return $res;\r
+       }\r
+\r
        public static function editor($args)\r
        {\r
                global $core;\r
@@ -143,7 +155,7 @@ html{height:100%}' . "\n";
                }\r
 \r
                $dao = new wsDAOBook($core->con);\r
-               $book_id=$e[0];\r
+               $book_id = $e[0];\r
                $book = $dao->selectById($book_id);\r
                if ($book->hash != $e[1]) {\r
                        http::head(401);\r
@@ -184,17 +196,15 @@ html{height:100%}' . "\n";
                }\r
 \r
                $res .= '</head>';\r
-               $res .= '<body style="background-color:#'.$theme->parametres->loadingBackColor.'" onload="this.focus();">';\r
+               $res .= '<body style="background-color:#' . $theme->parametres->loadingBackColor . '" onload="this.focus();">';\r
                fb($theme);\r
-               $res .= cubeMedia::flash2('index.swf', '100%', '100%', $fv, 'fluidbook', '', 10, '#'.$theme->parametres->loadingBackColor, '', 'true', 'noscale', 'gpu', array('allowScriptAccess' => 'always'));\r
+               $res .= cubeMedia::flash2('index.swf', '100%', '100%', $fv, 'fluidbook', '', 10, '#' . $theme->parametres->loadingBackColor, '', 'true', 'noscale', 'gpu', array('allowScriptAccess' => 'always'));\r
 \r
                $gacodes = array(GA);\r
                if ($book->parametres->googleAnalytics != '') {\r
                        $gacodes[] = $book->parametres->googleAnalytics;\r
                }\r
-\r
-               //$res .= cubePage::googleAnalytics($gacodes, false);\r
-\r
+               // $res .= cubePage::googleAnalytics($gacodes, false);\r
                $res .= '</body>';\r
                $res .= '</html>';\r
 \r