Si, en fait. Quand on fait "Ok", ça renvoit vers subscription.php qui est dans un dossier phpmn, et non à la racine du site.
En revanche, quand la page news.php est placé dans le dossier phpmn, il n'y a aucun problème pour les redirections. Mais quand je fais ça, c'est mon script de news qui bug...
Et donc j'imagine qu'il y a un moyen pour faire en sorte que ça envoit dans le dossier phpmn au lieu de la racine mais je le connais pas. ^^'
Si ça peut aider, voici le code de la page "form" qui est dans le include de ma page news.php
Je vais aller jeter un oeil à ta sign en tout cas.
Merci pour ta réponse.
Code :
- <?php
- // you can include this form in any page of
- // your website as follow:
- //
- // in this file, provide correct values for:
- // $path_to_pmnl
- // $list_id newsletter id
- // then in your page (need to be a php page)
- // add this line :
- // include("path/to/this/page/form.php" );
- // NOTA: your page need to use UTF8 encoding
- // put
- // <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- // in your html header
- //path to phpMyNewsletter base directory
- $path_to_pmnl="./";
- // newsletter id, leave this empty if you want to list available
- // newsletter.
- //$list_id = 1;
- $list_id = "";
- //display archive link (true or false) ?
- $display_archive=false;
- ////////////////////// DO NOT MODIFY /////////////////////
- if(file_exists("./".$path_to_pmnl."include/config.php" )){
- include("./".$path_to_pmnl."include/config.php" );
- include("./".$path_to_pmnl."include/db/db_".$db_type.".inc.php" );
- }
- include("./".$path_to_pmnl."include/lib/libconfig.php" );
- include("./".$path_to_pmnl."include/interface.php" );
- include("./".$path_to_pmnl."include/lib/libnewsletter.php" );
- include("./".$path_to_pmnl."admin/include/function.php" );
- if(file_exists("./".$path_to_pmnl."include/config.php" )){
- print newsletter_list($list_id, true, $display_archive);
- } else {
- include "./".$path_to_pmnl."include/lang/english.php";
- echo error_msg(translate("NEWSLETTER_NOT_YET" ));
- }
- ?>
|
Message édité par Raito33 le 11-08-2008 à 22:27:17