diff --git a/core/core.php b/core/core.php index 9f530c38..2eb4ea23 100644 --- a/core/core.php +++ b/core/core.php @@ -1112,7 +1112,7 @@ class common { while( $success AND $file = readdir($dir) ) { - if (( $file != '.' ) && ( $file != '..' )) { + if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ){ // Appel récursif des sous-dossiers $s = $this->copyDir($src . '/' . $file, $dst . '/' . $file); diff --git a/core/layout/common.css b/core/layout/common.css index 16550540..65403513 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -1720,30 +1720,6 @@ th.col12 { } -/* Traduction auto */ -/* -* Supprimer Le tooltip Google -* -.goog-tooltip { - display: none !important; -} -.goog-tooltip:hover { - display: none !important; -} -.goog-text-highlight { - background-color: transparent !important; - border: none !important; - box-shadow: none !important; -} */ - -/* Emplacement des conditions d'utilisation */ -#googTransLogo { - float: right; -} -#googTransLogo img { - width: 60%; -} - /* Bannière masquable en petit écran*/ @media screen and (max-width: 768px) { .bannerDisplay{ diff --git a/core/module/install/install.php b/core/module/install/install.php index 4f40af60..597328ab 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -22,6 +22,12 @@ class install extends common { 'update' => self::GROUP_ADMIN ]; + // Type de proxy + public static $proxyType = [ + 'tcp://' => 'TCP', + 'http://' => 'HTTP' + ]; + // Thèmes proposés à l'installation public static $themes = []; @@ -97,6 +103,12 @@ class install extends common { $this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]); } + + // Sauvegarder la configuration du Proxy + $this->setData(['config', 'proxyType', $this->getInput('installProxyType') ]); + $this->setData(['config', 'proxyUrl', $this->getInput('installProxyUrl') ]); + $this->setData(['config', 'proxyPort', $this->getInput('installProxyPort', helper::FILTER_INT)]); + // Images exemples livrées dans tous les cas try { // Décompression dans le dossier de fichier temporaires diff --git a/core/module/install/view/index/index.php b/core/module/install/view/index/index.php index 2fc17213..291dae4f 100644 --- a/core/module/install/view/index/index.php +++ b/core/module/install/view/index/index.php @@ -1,56 +1,92 @@

Renseignez les champs ci-dessous pour finaliser l'installation.

- 'off', - 'label' => 'Identifiant' - ]); ?> -
-
- 'off', - 'label' => 'Mot de passe' - ]); ?> -
-
- 'off', - 'label' => 'Confirmation' - ]); ?> -
-
- 'off', - 'label' => 'Adresse mail' - ]); ?> -
-
- 'off', - 'label' => 'Prénom' - ]); ?> -
-
- 'off', - 'label' => 'Nom' - ]); ?> -
-
-
-
- 'Thème' - ]); ?> -
-
-
-
- false - ]); - ?> -
-
+
$valueI18n) { - $keyi18n = self::$i18n; - $valueI18n = $pagesInfos[self::$i18n]; - foreach ($valueI18n as $keyPage=>$value) { - // Construire le tableau de sortie + $keyi18n = self::$i18n; + $valueI18n = $pagesInfos[self::$i18n]; + foreach ($valueI18n as $keyPage=>$value) { + if (isset($infoModules[$pagesInfos[$keyi18n][$keyPage]['moduleId']])) { + // Co[nstruire le tableau de sortie self::$modulesData[] = [ $infoModules[$pagesInfos[$keyi18n][$keyPage]['moduleId']] ['realName'], $pagesInfos[$keyi18n][$keyPage]['moduleId'], @@ -524,11 +524,10 @@ class plugin extends common { 'class' => 'buttonRed dataDelete', 'help' => 'Détacher le module de la page', ]) - ]; } + } - //} // Valeurs en sortie $this->addOutput([ diff --git a/core/module/plugin/view/index/index.css b/core/module/plugin/view/index/index.css index 1ba00cda..765f486b 100644 --- a/core/module/plugin/view/index/index.css +++ b/core/module/plugin/view/index/index.css @@ -33,7 +33,7 @@ display: inline-block; transition: 0.3s; border-radius: 10px 10px 0px 0px; - width: 160px; + width: 200px; margin: 0 1px; } diff --git a/module/search/search.php b/module/search/search.php index 353eeb64..36d6862e 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -170,43 +170,6 @@ class search extends common { // Variable de travail, on conserve la variable globale pour l'affichage du résultat $motclef = self::$motclef; - // Traduction du mot clé si le script Google Trad est actif - // Le multi langue est sélectionné - if ( $this->getData(['config','i18n','scriptGoogle']) === true - AND - // et la traduction de la langue courante est automatique - ( isset($_COOKIE['googtrans']) - AND ( $this->getData(['config','i18n', substr($_COOKIE['googtrans'],4,2)]) === 'script' - // Ou traduction automatique - OR $this->getData(['config','i18n','autoDetect']) === true ) - ) - // Cas des pages d'administration - // Pas connecté - AND ( $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') - // Ou connecté avec option active - OR ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - AND $this->getData(['config','i18n','admin']) === true - ) - ) - AND !isset($_COOKIE['ZWII_I18N_SITE']) - ) - { - // Découper la chaîne - $f = str_getcsv($motclef, ' '); - // Supprimer les espaces et les guillemets - $f = str_replace(' ','',$f); - $f = str_replace('"','',$f); - // Lire le cookie GoogTrans et déterminer les langues cibles - $language['origin'] = substr($_COOKIE['googtrans'],4,2); - $language['target'] = substr($_COOKIE['googtrans'],1,2); - if ($language['target'] !== $language['origin']) { - foreach ($f as $key => $value) { - $e = $this->translate($language['origin'],$language['target'],$value); - $motclef = str_replace($value,$e,$motclef); - } - } - } - // Suppression des mots < 3 caractères et des articles > 2 caractères de la chaîne $motclef $arraymotclef = explode(' ', $motclef); $motclef = '';