Web based family history software

This Help forum is for issues relates to the latest release (1.5.x). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.

Question Pb de mise à jour

  • jjr
  • Topic Author
  • Visitor
  • Visitor
9 years 8 months ago #21 by jjr
Replied by jjr on topic Pb de mise à jour
Bonjour Jackie et Kiwi

Effectivement il faut retirer la ligne
«
if (!$dDate->isOK()) $dDate=timestamp_to_gedcom_date(time());
»
qui doit dater des problèmes de timestamp avec OVH.

Ci-joint (donc en zip) la version corrigée

Amicalement
Jean-Jacques
Attachments:

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago - 9 years 8 months ago #22 by Jackie
Replied by Jackie on topic Pb de mise à jour
Bonjour,

Why the header is different in French than the one in English?

Pourquoi l'en-tête est différent en français de celui en anglais ?

fr:
Code:
/** * File used to display EVENrical facts on individual page * * Each line is a GEDCOM style record to describe an EVENt, including newline chars (\n) * File to be renamed : EVEN.xx.php where xx is language code * File included in : person_class.php * * $Id: EVEN.fr.php p_14 $ */ if (stristr($_SERVER["SCRIPT_NAME"], basename(__FILE__))!==false) { print "You cannot access this file directly."; exit; }

en_US:
Code:
// File: /data/histo.xx.php (where xx is a language code such as "fr" or "en_GB") // Display historical facts on the personal facts tab of the individual page // Each line is a GEDCOM record to describe an event. // Events must contain dates, and will only be shown if the individual was alive on that date. if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; }
Last edit: 9 years 8 months ago by Jackie.

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
9 years 8 months ago #23 by fisharebest
Replied by fisharebest on topic Pb de mise à jour
Many of the old PGV scripts contained by function/class definitions *AND* executable code.

This is bad practice - these two things should be in separate files. Executing such a file in isolation could have potential security issues, as it would allow an attacker to bypass validation that was carried out elsewhere.

So, these headers were added - as the quickest and easiest way to prevent access to certain files. The first one is a PGV header, and the second is as webtrees header. Both do the same thing.

Now that we are much better at separating out definition-code and execution-code, they are probably no longer necessary. But they do no harm.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #24 by Jackie
Replied by Jackie on topic Pb de mise à jour
Thank you Greg. Your explanations are always excellent and clear. :-)

Please Log in or Create an account to join the conversation.

  • jjr
  • Topic Author
  • Visitor
  • Visitor
9 years 8 months ago #25 by jjr
Replied by jjr on topic Pb de mise à jour
Je n'ai aucune idée d'où vient ce fichier mais peut-être serait-il bon de le moderniser...
Le contenu est valide ce n'est que l'entête qui est à moderniser...

Jean-Jacques

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago - 9 years 8 months ago #26 by Jackie
Replied by Jackie on topic Pb de mise à jour

jjr wrote: Je n'ai aucune idée d'où vient ce fichier mais peut-être serait-il bon de le moderniser...
Le contenu est valide ce n'est que l'entête qui est à moderniser...

Jean-Jacques


Bonjour JJ,

The file most likely comes from Roland's website, lorand ...org

The French Wiki page includes a link to it.

Le fichier vient probablement du site de Roland. La page du Wiki - Faits historiques contient un lien vers son site.
wiki.webtrees.net/fr/Faits_historiques
Last edit: 9 years 8 months ago by Jackie.

Please Log in or Create an account to join the conversation.

  • jjr
  • Topic Author
  • Visitor
  • Visitor
9 years 8 months ago #27 by jjr
Replied by jjr on topic Pb de mise à jour
C'est possible qu'il vienne de chez Roland... J'ai, d'ailleurs, trouvé une question de lui, sur le forum, avec la même erreur que moi mais, comme son site est très personnalisé, j'ai préféré reposer la question.
Le problème pourrait se reposer, lors d'une mise à jour, à d'autres francophones possédant ce même fichier.

Jean-Jacques

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #28 by Jackie
Replied by Jackie on topic Pb de mise à jour

jjr wrote: C'est possible qu'il vienne de chez Roland... J'ai, d'ailleurs, trouvé une question de lui, sur le forum, avec la même erreur que moi mais, comme son site est très personnalisé, j'ai préféré reposer la question.
Le problème pourrait se reposer, lors d'une mise à jour, à d'autres francophones possédant ce même fichier.

Jean-Jacques


Bonjour JJ,

I added a note to the Wiki page - Faits historiques.

J'ai ajouté une note à la page Faits historiques du Wiki.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}