From 49e5df45485ccdf819e661c1be0e5ebedd3cce37 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 4 Jan 2011 12:57:05 +0000 Subject: [PATCH] --- inc/config.inc.php | 4 +++- inc/ws/Controlleur/class.ws.droits.php | 1 + inc/ws/Controlleur/class.ws.url.php | 26 ++++++++++++++++++-------- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/inc/config.inc.php b/inc/config.inc.php index 82ac80108..62e26e463 100644 --- a/inc/config.inc.php +++ b/inc/config.inc.php @@ -27,6 +27,7 @@ if (in_array($_SERVER['HTTP_HOST'], array_merge($localrel, $localabs))) { define('CONVERTER_PATH', ROOT . '/fluidbook/tools/'); define('MXMLC_PATH', 'C:\Program Files\Adobe\Flex SDK\bin\mxmlc.exe'); define('FTPROOT', '/'); + define('FLUIDBOOK_SOURCES', 'C:\Users\Vincent\Documents\Works\fluidbook3d\_src'); } else { // Définition des variables dans l'environnement de production define('DB_HOST', 'localhost'); @@ -67,6 +68,7 @@ define('WS_ICONS', WS_FILES . '/icones'); define('WS_THEMES', WS_FILES . '/themes'); define('WS_CACHE', WS_FILES . '/cache'); define('WS_COMPILE_ASSETS', WS_FILES . '/compile'); +define('WS_L10N',WS_FILES.'/l10n'); // define('MINIMIZE_JS', false); define('WORKER_PREFIX', 'worker.'); @@ -87,7 +89,7 @@ define('IMG', WEBROOT . '/images/' . MODE); define('TYPOGRAPHP_PATH', ROOT . '/typo/' . MODE); define('TYPOGRAPHP_WEBROOT', IMG . '/typographp'); -define('MINIMIZE_JS',false); +define('MINIMIZE_JS', false); define('JOURNEE', 8); define('TAUX_JOURNALIER', 500); diff --git a/inc/ws/Controlleur/class.ws.droits.php b/inc/ws/Controlleur/class.ws.droits.php index 7e930fa4f..3fc263316 100644 --- a/inc/ws/Controlleur/class.ws.droits.php +++ b/inc/ws/Controlleur/class.ws.droits.php @@ -7,6 +7,7 @@ class wsDroits { $nav = array(); $nav[__('Dashboard')] = 'dashboard'; $nav[__('Publications')] = 'publications'; + $nav[__('Traductions')] = 'traductions'; return $nav; } diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index e2ae9e558..9b8bf34b5 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -67,8 +67,8 @@ class wsUrl { // $f = $book->facturable; $res .= '' ./* $f .*/ ''; $res .= '' . $core->books_status[$book->status] . ''; - $res .= '' . $btVoir . ''; - $res .= '' . $btEdit . ''; + $res .= '' . $btVoir . ''; + $res .= '' . $btEdit . ''; $res .= '' . $btStats . ''; $res .= '' . $btDownload . ''; $res .= '' . $btDel . ''; @@ -86,6 +86,18 @@ class wsUrl { return $res; } + public static function traductions($args) + { + global $core; + $res = extranetPage::barre(); + $res .= extranetPage::tMain(null, true); + $res .= extranetPage::bh(); + $res .= cubeLang::translationForm(FLUIDBOOK_SOURCES, 'fr' , WS_L10N); + $res .= extranetPage::bf(); + $res .= extranetPage::bMain(); + return $res; + } + public static function editor($args) { global $core; @@ -143,7 +155,7 @@ html{height:100%}' . "\n"; } $dao = new wsDAOBook($core->con); - $book_id=$e[0]; + $book_id = $e[0]; $book = $dao->selectById($book_id); if ($book->hash != $e[1]) { http::head(401); @@ -184,17 +196,15 @@ html{height:100%}' . "\n"; } $res .= ''; - $res .= ''; + $res .= ''; fb($theme); - $res .= cubeMedia::flash2('index.swf', '100%', '100%', $fv, 'fluidbook', '', 10, '#'.$theme->parametres->loadingBackColor, '', 'true', 'noscale', 'gpu', array('allowScriptAccess' => 'always')); + $res .= cubeMedia::flash2('index.swf', '100%', '100%', $fv, 'fluidbook', '', 10, '#' . $theme->parametres->loadingBackColor, '', 'true', 'noscale', 'gpu', array('allowScriptAccess' => 'always')); $gacodes = array(GA); if ($book->parametres->googleAnalytics != '') { $gacodes[] = $book->parametres->googleAnalytics; } - - //$res .= cubePage::googleAnalytics($gacodes, false); - + // $res .= cubePage::googleAnalytics($gacodes, false); $res .= ''; $res .= ''; -- 2.39.5