\r
if (!is_null($utilisateur) && $utilisateur->enabled) {\r
$mail = new cubeMail();\r
+ $mail->charset = 'UTF-8';\r
$mail->from = FROM_NAME . '<' . FROM_EMAIL . '>';\r
- $mail->bcc = FROM_EMAIL;\r
+ $mail->bcc = MAIL_BCC;\r
$mail->subject = '[' . EMAIL_SUBJECT . '] ' . __('Récupération de vos identifiants');\r
$mail->to = $utilisateur->prenom . ' ' . $utilisateur->nom . '<' . $utilisateur->email . '>';\r
$body = __('Bonjour,') . "\r\n\r\n";\r
\r
class commonPage {\r
\r
+ public static function logo(){\r
+ \r
+ if(THEME){\r
+ return cubeMedia::image(IMG . '/white/'.THEME.'/logo.png');\r
+ }\r
+ return cubeMedia::image(IMG . '/logo.png');\r
+ }\r
+ \r
public static function header($args) {\r
global $js;\r
global $core;\r
$res .= '<div id="header">';\r
$res .= '<div class="content">';\r
// Le logo avec le lien de retour à l'accueil\r
- $res .= '<div id="logo"><a href="' . SITE_PATH . '">' . cubeMedia::image(IMG . '/logo.png') . '</a></div>';\r
+ $res .= '<div id="logo"><a href="' . SITE_PATH . '">' . self::logo() . '</a></div>';\r
if ($core->user) {\r
$search = self::search($args);\r
\r
\r
public static function hashFile($path) {\r
$path = trim($path, '/');\r
- fb($path);\r
return sha1('!!//' . $path . '||--');\r
}\r
\r
define('JOURNEE', 8);\r
define('TAUX_JOURNALIER', 500);\r
define('AVAILABLE_LANGS', 'fr,en');\r
-// Les emails au départ de l'interface seront systématiquement envoyés\r
-// en copie cachée à cet e-mail\r
-define('MAIL_BCC', 'contact@cubedesigners.com');\r
+\r
// Zend\r
define('ZEND', dirname(__FILE__) . "/ZendFramework");\r
define('ZEND_VERSION', '1.11.10');\r
\r
$dev = stristr($_SERVER['HTTP_HOST'], 'dev.');\r
$extranet = stristr($_SERVER['HTTP_HOST'], 'cubedesigners.com');\r
-$ws = stristr($_SERVER['HTTP_HOST'], 'fluidbook.com');\r
+$ws = !$extranet;\r
\r
+$theme = false;\r
+if ($_SERVER['HTTP_HOST'] == 'workshop.studio-france.com') {\r
+ $theme = 'studiofrance';\r
+}\r
+\r
+define('THEME', $theme);\r
define('DEV', $dev);\r
\r
// Définition des variables dans l'environnement de production\r
define('MODE', 'extranet');\r
}\r
\r
-define('STATIC_SERVER', 'http://static.' . $_SERVER['HTTP_HOST'] . WEBROOT);\r
+define('STATIC_SERVER', 'http://' . $_SERVER['HTTP_HOST'] . WEBROOT);\r
\r
define('CSS_PATH', WEBROOT . '/style/' . MODE);\r
define('STYLE', CSS_PATH);\r
define('SYSIMG', ROOT . '/images/' . MODE);\r
define('IMG', WEBROOT . '/images/' . MODE);\r
\r
-$faviconroot=IMG.'/favicon';\r
+if (THEME) {\r
+ $faviconroot = IMG . '/white/' . THEME . '/favicon';\r
+} else {\r
+ $faviconroot = IMG . '/favicon';\r
+}\r
+\r
\r
define('TYPOGRAPHP_PATH', ROOT . '/typo/' . MODE);\r
define('TYPOGRAPHP_WEBROOT', IMG . '/typographp');\r
// Zend framework and associated frameworks\r
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/ZendFramework');\r
require_once 'Zend/Loader/Autoloader.php';\r
-$loader=Zend_Loader_Autoloader::getInstance();\r
+$loader = Zend_Loader_Autoloader::getInstance();\r
$loader->registerNamespace('CubeIT_');\r
\r
+\r
if ($ws) {\r
define('GA', 'UA-4339912-7');\r
- define('TITLE', 'Fuidbook Workshop');\r
-\r
- define('FROM_EMAIL', 'tech@fluidbook.com');\r
- define('FROM_NAME', 'Fluidbook Workshop');\r
- define('EMAIL_SUBJECT', 'Fluidbook Workshop');\r
- define('TEAM_EMAIL', 'team@fluidbook.com');\r
- define('TEAM_NAME', __("L'équipe Fluidbook"));\r
- define('RAPPEL', __('Rappel des identifiants de connexion au Fluidbook Workshop'));\r
- define('ASK_IDENT', __('Vous avez demandé la récupération de votre mot de passe sur le Fluidbook Workshop'));\r
+ define('MAIL_BCC', 'tech@fluidbook.com');\r
+ if (!THEME) {\r
+ define('TITLE', 'Fuidbook Workshop');\r
+ define('FROM_EMAIL', 'tech@fluidbook.com');\r
+ define('FROM_NAME', 'Fluidbook Workshop');\r
+ define('EMAIL_SUBJECT', 'Fluidbook Workshop');\r
+ define('TEAM_EMAIL', 'team@fluidbook.com');\r
+ define('TEAM_NAME', __("L'équipe Fluidbook"));\r
+ define('RAPPEL', __('Rappel des identifiants de connexion au Fluidbook Workshop'));\r
+ define('ASK_IDENT', __('Vous avez demandé la récupération de votre mot de passe sur le Fluidbook Workshop'));\r
+ } elseif (THEME == 'studiofrance') {\r
+ define('TITLE', 'studiofrance, agence de communication - Workshop');\r
+ define('FROM_EMAIL', 'workshop@studio-france.com');\r
+ define('FROM_NAME', 'Studiofrance');\r
+ define('EMAIL_SUBJECT', 'Studiofrance');\r
+ define('TEAM_EMAIL', 'workshop@studio-france.com');\r
+ define('TEAM_NAME', __("L'équipe Studiofrance"));\r
+ define('RAPPEL', __('Rappel des identifiants de connexion au Workshop Studio-France'));\r
+ define('ASK_IDENT', __('Vous avez demandé la récupération de votre mot de passe sur le Workshop Studio-France'));\r
+ }\r
} elseif ($extranet) {\r
+ define('MAIL_BCC', 'contact@cubedesigners.com');\r
define('GA', 'UA-4339912-4');\r
define('TITLE', 'Extranet Cubedesigners');\r
\r
\r
if (!wsDroits::admin()) {\r
if ($book->status < 1) {\r
- $popup = commonAjax::form('downbook/' . $book_id . '/' . $version, __('Téléchargement du Fluidbook'), wsUrl::valideDownload($book_id, $version), __('Télécharger'), 2, '', '', true);\r
+ $popup = commonAjax::form('downbook/' . $book_id . '/' . $version, __('Téléchargement de la publication'), wsUrl::valideDownload($book_id, $version), __('Télécharger'), 2, '', '', true);\r
\r
$x->addOpenPopup($popup);\r
return;\r
commonDroits::error();\r
}\r
if (!isset($_POST['dir'])) {\r
- $popup = commonAjax::form('instbook/' . $book_id . '/' . $server, __('Installation du Fluidbook'), wsUrl::formInstall($book, $server), __('Installer'), 2, '', '', true);\r
+ $popup = commonAjax::form('instbook/' . $book_id . '/' . $server, __('Installation de la publication'), wsUrl::formInstall($book, $server), __('Installer'), 2, '', '', true);\r
$x->addOpenPopup($popup);\r
return;\r
}\r
\r
$mail->body = $body;\r
$mail->to = $revendeur->email;\r
- $mail->bcc = 'tech@fluidbook.com';\r
+ $mail->bcc = MAIL_BCC;\r
$mail->send();\r
}\r
\r
$filtres[] = new commonFiltre(__('Administrateur'), 'admin_book', $settings['filtres']);\r
$filtres[] = new commonFiltre(__('Revendeur'), 'revendeur_book', $settings['filtres']);\r
}\r
- $res = commonPage::barre($filtres, 'filtreBooks', 'books', $shortcuts, wsDroits::admin());\r
- $res .= commonPage::tMain(null, wsDroits::admin());\r
+ $res = commonPage::barre($filtres, 'filtreBooks', 'books', $shortcuts, wsDroits::creation());\r
+ $res .= commonPage::tMain(null, wsDroits::creation());\r
$res .= commonPage::bh();\r
$res .= '<div id="listeBooks">';\r
$res .= self::listeBooks();\r
\r
/* Book */\r
$this->fields['bookShadeColor'] = array('type' => 'couleurAlpha', 'default' => '66000000', 'editable' => true,\r
- 'label' => __("Couleur de l'ombre sous le fluidbook"));\r
+ 'label' => __("Couleur de l'ombre sous la publication"));\r
$this->fields['shadeAlpha'] = array('type' => 'integer', 'default' => 100, 'editable' => true,\r
'label' => __('Transparence des ombres et reflets sur les pages'),\r
'min' => 0, 'max' => 100);\r
$this->fields['bookmarkStarEnabledColor'] = array('type' => 'couleur', 'default' => 'ff7700', 'editable' => true,\r
'label' => __("Couleur de l'étoile activée"));\r
\r
- $this->forms['book'] = array('label' => __('Personnalisation du fluidbook'),\r
+ $this->forms['book'] = array('label' => __('Personnalisation de la publication'),\r
'fieldsnames' => array('pageReflection', 'shadeAlpha',\r
'|', 'usePageEdges', 'pageEdgeColor', 'pageEdgeThickness',\r
'|', 'bookShadeColor',\r