website logo
Auteur
avatar
nicolas2

Forum » » Version future » » REvolution 16.0


Posté : 1 févr. 2020 à 21:40 icone du post

fichier admin authors dans la function updateadmin()



if (!($chng_aid && $chng_name && $chng_email))
      Header("Location: admin.php?op=mod_authors");
      !!!include!!!_once('functions.php');
      if(checkdnsmail($chng_email) === false) {
         global $hlpfile;
         !!!include!!!("header.php");
         GraphicAdmin($hlpfile);
         echo error_handler(adm_translate("ERREUR : DNS ou serveur de mail incorrect").'
');
         !!!include!!!("footer.php");
         return;
      }



dans le contrôle du if il y a un header location donc le code qui est après n'est jamais exécuter ! pourquoi ce code juste après

pour moi ce header location ne devrai pas être présent sinon le contrôle sur le checkdnsmail() n'est pas exécuter.



Header("Location: admin.php?op=mod_a uthors");


Message édité par : nicolas2 / 01-02-2020 21:45


Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26698&forum=4