ven. 15 mai 2015, 11h43
Guy BONEMME
atoutfox.public.association
Re: HS -php xml
FoxInCloud avait soumis l'idée :
> j'ai eu beau relire plusieurs fois, je n'y comprends toujours rien
> peux-tu poster le code php ?
Bonjour merci de me répondre:
voici l'url du site pour visualiser
http://www.chfleron.beOnglet Revues, Bulletins Digitalisaccès membres.
Le programme est fonctionnel (Digital-Brochure.com)
Il utilise html, du php, adobe pour la visusalisation +java.
La structure de départ:
index.html
Settings.xml
digitalbrochure.swf
3 sous répertoires Resources et pubs
Resource contient /scripts(et checklogin.php)
/swfaddress(et 1 fichier java non utilisé ds mon
cas)
/ swfobject( expressInstall. swf et swfobject.js)
/Pubs contient : 1 sous répertoire pages/données à
afficher (100pages)
: pub.xml
----------------------------------
Structure pub. xml
<?xml version="1.0" encoding="UTF-8"?>
<Book title="Mars 2015 (2015/1)"> <!--Titre principal-->
<!-- NOTE: all the paths and urls (when not absolute) must be relative
to the swf path -->
<Files path_pages="pubs/book171/pages"
downloadable_pdf_url="resources/PDF_File.pdf"/>
<options
variables d'affichage j'ai supprimé
</option
<!-- PAGES MODULES OPTIONS (text, video and area)-->
<ModulesOptions
idem variables pour d'autres fonctions
<!-- LOGIN BOX (to limit the access to your book) -->
<Login check_script_url="resources/scripts/checklogin.php"
restriction="6" >
<![CDATA[
]]>
</Login>
/>
Le reste du fichier contient un menu index à remplir et les pages du
livre.
Cette structure est répétée ds chaque books
---------------------------
Structure de checklogin.php
<?php
$access_granted = false;
if ($_POST['username']=="CHF" && $_POST['password']=="micheline")
$access_granted = true;
if ($access_granted)
echo "success";
else
echo "error";
?>
---------------------------------
dans mes derniers test et essai.
Si j'apelle en direct la page index.html
http://www.chfleron.be/Multi/index.htmlà la première fois, et à la demande du mot de passe c'est parfois OK
Si j'appelle par le menu du site DHTML/Démo.html/bouton etc
a l'appel de checklogin.php /FILE NOT found.
Question
Devrais-je remonter le programme dans le root du site en changeant le
nom d'appel index.html en brochure.html?
--
Guy BONEMME
Atoutfox
BEfox
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000016367