Merge 10.1.02
This commit is contained in:
parent
1515579141
commit
1cc2f5e225
|
@ -10,6 +10,11 @@
|
||||||
- Thème de l'administration, amélioration du rendu.
|
- Thème de l'administration, amélioration du rendu.
|
||||||
- Image tag : adaptatations suit à la modification de l'API Google.
|
- Image tag : adaptatations suit à la modification de l'API Google.
|
||||||
|
|
||||||
|
## version 10.1.002
|
||||||
|
- Corrections :
|
||||||
|
- free.fr : désactivation totale de la fonction de récupération de données en ligne (update, image tag, etc..)
|
||||||
|
- Image Tag absente : non régénérée au lancement de la configuration du site, image masquée dans si absente.
|
||||||
|
|
||||||
## version 10.1.001
|
## version 10.1.001
|
||||||
- Correction :
|
- Correction :
|
||||||
- Extension image tag.
|
- Extension image tag.
|
||||||
|
|
|
@ -24,18 +24,22 @@ class helper {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static function urlGetContents ($url) {
|
public static function urlGetContents ($url) {
|
||||||
if(function_exists('file_get_contents') &&
|
// Ejecter free.fr
|
||||||
ini_get('allow_url_fopen') ){
|
if (strpos(self::baseUrl(),'free.fr') > 0 ){
|
||||||
$url_get_contents_data = @file_get_contents($url); // Masque un warning éventuel
|
return false;
|
||||||
}elseif(function_exists('fopen') &&
|
|
||||||
function_exists('stream_get_contents') &&
|
|
||||||
ini_get('allow_url_fopen')){
|
|
||||||
$handle = fopen ($url, "r");
|
|
||||||
$url_get_contents_data = stream_get_contents($handle);
|
|
||||||
}else{
|
|
||||||
$url_get_contents_data = false;
|
|
||||||
}
|
}
|
||||||
return $url_get_contents_data;
|
if(function_exists('file_get_contents') &&
|
||||||
|
ini_get('allow_url_fopen') ){
|
||||||
|
$url_get_contents_data = @file_get_contents($url); // Masque un warning éventuel
|
||||||
|
}elseif(function_exists('fopen') &&
|
||||||
|
function_exists('stream_get_contents') &&
|
||||||
|
ini_get('allow_url_fopen')){
|
||||||
|
$handle = fopen ($url, "r");
|
||||||
|
$url_get_contents_data = stream_get_contents($handle);
|
||||||
|
}else{
|
||||||
|
$url_get_contents_data = false;
|
||||||
|
}
|
||||||
|
return $url_get_contents_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -270,7 +270,7 @@ class config extends common {
|
||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'notification' => $success === true ? 'Image tag réinitialisée' : 'Erreur : image tag non créée',
|
'notification' => $success === true ? 'Image Open Graph réinitialisée' : 'Erreur : image Open Graph non créée',
|
||||||
'redirect' => helper::baseUrl() . 'config',
|
'redirect' => helper::baseUrl() . 'config',
|
||||||
'state' => $success
|
'state' => $success
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -241,16 +241,16 @@
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::button('configSiteMap', [
|
<?php echo template::button('configSiteMap', [
|
||||||
'href' => helper::baseUrl() . 'config/generateFiles',
|
'href' => helper::baseUrl() . 'config/generateFiles',
|
||||||
'value' => 'sitemap.xml / robots.txt',
|
'value' => 'Sitemap.xml / Robots.txt',
|
||||||
'ico' => 'pencil'
|
'ico' => 'pencil'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if (file_exists(self::FILE_DIR.'source/screenshot.jpg')): ?>
|
<?php if (file_exists(self::FILE_DIR.'source/screenshot.jpg')): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col8 offset2 textAlignCenter">
|
<div class="col8 offset2 textAlignCenter">
|
||||||
<img src="<?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.jpg';?>" data-tippy-content="Cette capture d'écran est nécessaire aux partages sur les réseaux sociaux. Elle est régénérée lorsque le fichier 'screenshot.jpg' est effacé du gestionnaire de fichiers." />
|
<img src="<?php echo helper::baseUrl(false) . self::FILE_DIR.'source/screenshot.jpg';?>" data-tippy-content="Cette capture d'écran est nécessaire aux partages sur les réseaux sociaux. Elle est régénérée lorsque le fichier 'screenshot.jpg' est effacé du gestionnaire de fichiers." />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue