From 1d5fe26352aca6cc09d6fd1302e3d542a1847b9e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 21 Nov 2011 10:28:51 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.services.php | 50 +++++++++++++++++++++ inc/ws/Metier/class.ws.theme.parametres.php | 11 +++-- 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index c8d0f94b1..2342df2ce 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -10,6 +10,56 @@ class wsServices extends cubeFlashGateway { $gateway = new $n($core->con, $args); } + public function sendGordini() { + + $fromEmail = $this->args['fromemail']; + $fromName = $this->args['fromname']; + + $emails = array(); + + if (preg_match_all('|[a-z0-9_\-\.]*@[a-z0-9\-\.]*\.[a-z]{2,5}|i', $this->args['email'], $matches)) { + $emails = $matches[0]; + } + + $http = new cubeHTTP('secure.cabestan.com', 443); + $http->useSSL(true); + + $query = ''; + $query .= ''; + $query .= ''; + $query .= ''; + $query .= '' . $fromEmail . ''; + $query .= '' . $fromName . ''; + foreach ($emails as $i => $email) { + $query .= '' . $email . ''; + } + $i++; + if (($i + 1) < 3) { + for (; $i <= 2; $i++) { + $query .= ''; + } + } + $query .= ''; + $query .= ''; + $query .= ''; + $query .= ''; + + fb($query); + + $datas = array('Emm_Login' => 'Publicis', + 'Emm_Password' => '%K8\'hQi/kr', + 'XmlOutputType' => 'XML', + 'XmlOutputMethod' => 'NOREDIRECT', + 'XmlBatch' => '1', + 'XmlQuery' => $query); + + fb($datas); + + $http->post('/renault/Shared/WebServices/Ws_LaunchAlert.cfm', $datas); + + fb($http->getContent()); + } + public function sendEmail() { // Check protection hash $hash = md5(substr($this->args['fromemail'], 2, 6) . substr($this->args['email'], 3, 5) . 'SFGHF566!S' . $this->args['id']); diff --git a/inc/ws/Metier/class.ws.theme.parametres.php b/inc/ws/Metier/class.ws.theme.parametres.php index a0f9943df..31072046e 100644 --- a/inc/ws/Metier/class.ws.theme.parametres.php +++ b/inc/ws/Metier/class.ws.theme.parametres.php @@ -52,9 +52,12 @@ class wsThemeParametres extends wsParametres { 'label' => __("Couleur du surlignage des résultats")); $this->fields['searchFieldWidth'] = array('type' => 'integer', 'default' => 230, 'editable' => true, 'label' => __("Largeur du champ de recherche")); + $this->fields['searchIndexNoResultColor'] = array('type' => 'couleurAlpha', 'default' => 'CC000000', 'editable' => true, + 'label' => __("Couleur de l'overlay (aucun résultat)"), + 'grade' => 5); $this->forms['search'] = array('label' => __('Personnalisation de la recherche'), - 'fieldsnames' => array('couleurS', 'searchFieldColor', 'searchShadeAlpha', 'searchFieldWidth', '|', 'highlightColor')); + 'fieldsnames' => array('couleurS', 'searchFieldColor', 'searchShadeAlpha', 'searchFieldWidth', '|', 'highlightColor','|','searchIndexNoResultColor')); /* Icones */ $this->fields['iconSet'] = array('type' => 'icones', 'default' => 1, 'editable' => true, 'label' => __("Jeu d'icônes")); @@ -98,7 +101,7 @@ class wsThemeParametres extends wsParametres { '|', 'usePageEdges', 'pageEdgeColor', '|', 'bookShadeColor', '|', 'displayPageNumber', 'colorPageNumber', - '|', 'linksColor','videoBackgroundColor','popupVideoOverlay')); + '|', 'linksColor', 'videoBackgroundColor', 'popupVideoOverlay')); /* Credits */ $this->fields['creditsColor'] = array('type' => 'couleurAlpha', 'default' => '80ffffff', 'editable' => true, 'label' => __("Couleur du texte")); @@ -166,7 +169,7 @@ class wsThemeParametres extends wsParametres { ); $this->forms['menubar'] = array('label' => __('Personnalisation de la barre de menu'), - 'fieldsnames' => array('menuHeight', '|', 'menuColor', '|', 'menuImage', '|', 'shadeOnMenu', '|', 'invertMenuPosition', '|', 'topBar','topBarAlign', '|', 'afterSearch')); + 'fieldsnames' => array('menuHeight', '|', 'menuColor', '|', 'menuImage', '|', 'shadeOnMenu', '|', 'invertMenuPosition', '|', 'topBar', 'topBarAlign', '|', 'afterSearch')); /* Menu bar logo */ $this->fields['logo'] = array('type' => 'file', 'default' => 'menu_clientLogo.png', 'editable' => true, 'label' => __('Image'), @@ -198,7 +201,7 @@ class wsThemeParametres extends wsParametres { 'label' => __("Couleur des marques-pages")); $this->forms['pagesbar'] = array('label' => __('Personnalisation de la barre des pages'), - 'fieldsnames' => array('pagesBar', 'pageBarThumbBack','|','bookmarkColor')); + 'fieldsnames' => array('pagesBar', 'pageBarThumbBack', '|', 'bookmarkColor')); /* Paramètres non implémentés */ /* $this->fields['extraXSpace'] = array('type' => 'integer', 'default' => '0', 'editable' => true, -- 2.39.5