common.php 743 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. session_start();
  3. require_once('SQLiteEntity.class.php');
  4. require_once('Feed.class.php');
  5. require_once('Event.class.php');
  6. require_once('Functions.class.php');
  7. require_once('User.class.php');
  8. require_once('Folder.class.php');
  9. require_once('Configuration.class.php');
  10. $myUser = (isset($_SESSION['currentUser'])?unserialize($_SESSION['currentUser']):false);
  11. $feedManager = new Feed();
  12. $eventManager = new Event();
  13. $userManager = new User();
  14. $folderManager = new Folder();
  15. $configurationManager = new Configuration();
  16. //Récuperation et sécurisation de toutes les variables POST et GET
  17. $_ = array();
  18. foreach($_POST as $key=>$val){
  19. $_[$key]=Functions::secure($val);
  20. }
  21. foreach($_GET as $key=>$val){
  22. $_[$key]=Functions::secure($val);
  23. }
  24. ?>