Se connecter avec
S'enregistrer | Connectez-vous

Inscription

Dernière réponse : dans Programmation

Salut, comme script de base j'ai :

  1. /********************************************************
  2. * Creation d'un joueur externe
  3. */
  4. elseif($op == "inscription") {
  5.  
  6. /*** verification securite ***/
  7. if(!$config['inscription_joueur']) goto("?page=index");
  8.  
  9.  
  10. if(!isset($ok) && $config['decharge']) {
  11.  
  12. echo "<p class=title>.:: $strConditionsGenerales ::.</p>";
  13.  
  14. $decharge=$config['decharge'];
  15. $decharge=str_replace ( "..", "", $decharge);
  16.  
  17. if(file_exists("./include/html/decharge/$s_lang/$decharge") && !is_dir("./include/html/decharge/$s_lang/$decharge")) {
  18. echo '<textarea readonly cols=60 rows=21 wrap=VIRTUAL>';
  19. readfile("./include/html/decharge/$s_lang/$decharge");
  20. echo '</textarea>';
  21. }
  22.  
  23. echo "<table border=0><tr>";
  24. echo "<td><input type=submit name=action value=\"$strJAccepte\" onclick=\"location='?page=joueurs&op=inscription&ok=1'\"></td>";
  25. echo "<td><input type=submit name=action value=\"$strJeRefuse\" onclick=\"location='?page=index'\"></td>";
  26. echo "</tr></table><br>";
  27.  
  28. }


Qui donne une page avec un iframe et les bouton en bas pour accepter !

Donc vu que je veux faire un tournoi avec des cadeaux il faut donner un allopass pour l'inscription donc j'enleve les cases :

  1. /********************************************************
  2. * Creation d'un joueur externe
  3. */
  4. elseif($op == "inscription") {
  5.  
  6. /*** verification securite ***/
  7. if(!$config['inscription_joueur']) goto("?page=index");
  8.  
  9.  
  10. if(!isset($ok) && $config['decharge']) {
  11.  
  12. echo "<p class=title>.:: $strConditionsGenerales ::.</p>";
  13.  
  14. $decharge=$config['decharge'];
  15. $decharge=str_replace ( "..", "", $decharge);
  16.  
  17. if(file_exists("./include/html/decharge/$s_lang/$decharge") && !is_dir("./include/html/decharge/$s_lang/$decharge")) {
  18. echo '<textarea readonly cols=60 rows=21 wrap=VIRTUAL>';
  19. readfile("./include/html/decharge/$s_lang/$decharge");
  20. echo '</textarea>';
  21. }
  22.  
  23. echo "<table border=0><tr>";
  24.  
  25. echo "</tr></table><br>";
  26.  
  27. }


J'usqua la sa marche toujours !!!

Maintenant sa beug :

Ou quand j'ajoute le script d'allopasse

ou alors quand je fait sa :

  1. /********************************************************
  2. * Creation d'un joueur externe
  3. */
  4. elseif($op == "inscription") {
  5.  
  6. /*** verification securite ***/
  7. if(!$config['inscription_joueur']) goto("?page=index");
  8.  
  9.  
  10. if(!isset($ok) && $config['decharge']) {
  11.  
  12. echo "<p class=title>.:: $strConditionsGenerales ::.</p>";
  13.  
  14. $decharge=$config['decharge'];
  15. $decharge=str_replace ( "..", "", $decharge);
  16.  
  17. if(file_exists("./include/html/decharge/$s_lang/$decharge") && !is_dir("./include/html/decharge/$s_lang/$decharge")) {
  18. echo '<textarea readonly cols=60 rows=21 wrap=VIRTUAL>';
  19. readfile("./include/html/decharge/$s_lang/$decharge");
  20. echo '</textarea>';
  21. }
  22.  
  23. echo "<table border=0><tr>";
  24. if(file_exists("./include/html/paiement") && !is_dir("./include/html/paiement")) {
  25. echo '<textarea readonly cols=60 rows=21 wrap=VIRTUAL>';
  26. readfile("./include/html/paiement");
  27. echo '</textarea>';
  28. echo "</tr></table><br>";
  29.  
  30. }


La sa beug je comprend pas pourquoi sa me dit qu'il y a une erreur sur une ligne 500 ligne après qui est vide enplus !!!

Aider-moi !!!


Merci

Autres pages sur : inscription

Lassé par la pub ? Créez un compte

Citation :
t'as oublié une parenthese fermante :o 

il serait temps d'aller dormir :D 


Je dirais même qu'il manque 2 accolades :bounce:  celle du elseif, et celle du quatrième if, donc deux accolades en plus à mettre à la fin :jap: 
Lassé par la pub ? Créez un compte