Il faut utiliser cela si la page est à la racine du site :
include "crypt/functions.php";
C'est possible si les erreurs de php sont désactivées, dans ce cas il n'affiche rien.
Qu'en est il exactement ?
<?php
if ($skin['fil ariane'] == "Test"){
$cryptinstall="./crypt/cryptographp.fct.php";
include $cryptinstall;
}
?>
[...]
</head>
<body>
<!-- debut // contenu du centre ici -->
<?=$skin['contenu'];?>
<!-- fin // contenu du centre ici -->
</boby>
</html>
<?php
$skin['titre'] = "test captcha";
$skin['fil ariane'] = "Test";
$skin['description'] = "installation captcha";
$skin['mots clés'] = "captcha";
$skin['contenu'] .= <<<EOD
<div align="center">
<b>Exemple d'utilisation de Cryptographp v1.4</b><br>
(Cet exemple fonctionne même si les cookies sont désactivées)<br><br>
<form action="envoi-captcha.php" method="post">
<table cellpadding=1>
<tr><td align="center">
<?php dsp_crypt(0,1); ?> //Impression du code du captacha
</td></tr>
<tr><td align="center">Recopier le code:<br><input type="text" name="code"></td></tr>
<tr><td align="center"><input type="submit" name="submit" value="Envoyer"></td></tr>
</table>
<br><br><br>
Cryptographp (c) 2006-2007 Sylvain BRISON<br>
http://www.cryptographp.com
</form>
</div>
EOD;
include("_template/template.inc.php");
?>
<?php
$cryptinstall="crypt/cryptographp.fct.php";
include $cryptinstall;
?>
<html>
<?php
if (chk_crypt($_POST['code']))
echo "<a><font color='#009700'>=> Bravo, vous avez saisi le bon code !</font></a>" ;
else echo "<a><font color='#FF0000'>=> Erreur, le code est incorrect</font></a>" ;
?>
</html>
$cryptinstall="./crypt/cryptographp.fct.php";
include $cryptinstall;Cette ligne
Code:
$cryptinstall="./crypt/cryptographp.fct.php";
include $cryptinstall;
<?php dsp_crypt(0,1); ?> n'est pas bizarre du tout, c'est normal.
En plaçant l'include dans la page.php, qui est à la racine du site, vous n'avez rien qui apparaît ?
Warning: chk_crypt() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /home/local/apache/htdocs/sites/c/camping-les-roches.com/crypt/cryptographp.fct.php on line 29
Quel est le script que vous utilisez pour votre site Web ?
Reste à régler la mise en page pour que le code apparaisse au bon endroit.
<?php
$skin['titre'] = "test captcha";
$skin['fil ariane'] = "Test";
$skin['description'] = "installation captcha";
$skin['mots clés'] = "captcha";
$skin['contenu'] .= <<<EOD
<div align="center">
<b>Exemple d'utilisation de Cryptographp v1.4</b><br>
(Cet exemple fonctionne même si les cookies sont désactivées)<br><br>
<form action="envoi-captcha.php" method="post">
<table cellpadding=1>
<tr><td align="center">
<?php dsp_crypt(0,1); ?> //Impression du code du captacha
</td></tr>
<tr><td align="center">Recopier le code:<br><input type="text" name="code"></td></tr>
<tr><td align="center"><input type="submit" name="submit" value="Envoyer"></td></tr>
</table>
<br><br><br>
Cryptographp (c) 2006-2007 Sylvain BRISON<br>
http://www.cryptographp.com
</form>
</div>
EOD;
include("_template/template.inc.php");
?>
Pour ce qui concerne l'impression MAJ de vos simulations, est ce réglé ?
@$sid = $_GET['PHPSESSID'];
$page = "url_de_la_page_de_destination";
if ( isset($sid) ) {
header("Status: 301 Moved Permanently");
header("Location: ".$page."");
exit();
}
ob_start();
session_start();
output_reset_rewrite_vars();
ini_set("session.use_trans_sid","Off");
Retourner vers Conception et programmation de votre site
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités