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.
|
||||
- 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
|
||||
- Correction :
|
||||
- Extension image tag.
|
||||
|
@ -24,18 +24,22 @@ class helper {
|
||||
*/
|
||||
|
||||
public static function urlGetContents ($url) {
|
||||
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;
|
||||
// Ejecter free.fr
|
||||
if (strpos(self::baseUrl(),'free.fr') > 0 ){
|
||||
return 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
|
||||
$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',
|
||||
'state' => $success
|
||||
]);
|
||||
|
@ -241,16 +241,16 @@
|
||||
<div class="col6">
|
||||
<?php echo template::button('configSiteMap', [
|
||||
'href' => helper::baseUrl() . 'config/generateFiles',
|
||||
'value' => 'sitemap.xml / robots.txt',
|
||||
'value' => 'Sitemap.xml / Robots.txt',
|
||||
'ico' => 'pencil'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (file_exists(self::FILE_DIR.'source/screenshot.jpg')): ?>
|
||||
<div class="row">
|
||||
<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." />
|
||||
</div>
|
||||
<div class="row">
|
||||
<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." />
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user