CMS ultra léger au style oldschool, projet de la communauté Kalaïn Hundin.

article_ecrire.php 835B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. $AdminDir = str_replace("administration", "",dirname(__FILE__));
  3. session_start();
  4. require_once(''.$AdminDir.'user/config.php');
  5. include("".$MainDir."files/navheader.php");
  6. include(''.$MainDir.'files/check_status.php');
  7. $page_name='Rédaction d\'article';
  8. include_once(''.$MainDir.'user/top.php');
  9. if($connected=="1"){
  10. require_once(''.$MainDir.'user/verifications.php');
  11. if($admin_mode=="1"){
  12. echo'
  13. <form action="'.$root_path.'files/submit_article.php" method="post">
  14. <b>Titre</b> :<br />
  15. <input type="text" name="titre" /><br />
  16. <b>Article</b> :
  17. <br />
  18. <textarea name="article" cols="60" rows="10"></textarea><br />
  19. <input type="submit" value="Envoyer !!" />';
  20. }else{
  21. echo"<br><br>Tu n'es pas admin !";
  22. }
  23. }else{
  24. echo"<br><br>Tu n'es pas connecté !";
  25. }
  26. ?>