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

page_ecrire.php 846B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 de page';
  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'<form action="'.$root_path.'files/submit_page.php" method="post">
  13. <b>Titre</b> :<br />
  14. <input type="text" name="titre" /><br />
  15. <b>Page</b> :
  16. <br />
  17. <textarea name="page" cols="60" rows="10"></textarea><br />
  18. <input type="submit" value="Envoyer !!" />';
  19. }else{
  20. echo"<br><br>Tu n'es pas admin !";
  21. }
  22. }else{
  23. echo"<br><br>Tu n'es pas connecté !";
  24. }
  25. ?>