Advertisement
Guest User

pseudocode bourré

a guest
Nov 22nd, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. /* gestion de l'intimité
  2. __________________________________________________________________________*/
  3.  
  4. apoFetcher(userHash)
  5. if(privacy == 0 || blackList.currentUserHash)
  6. return 0
  7.  
  8. if(privacy == 1)
  9. if(isNotConnected() || !whiteList.currentUserHash)
  10. return 0
  11. else
  12. return contentsFetcher(userHash)
  13.  
  14. if(privacy == 3)
  15. return contentsFecther(userHash)
  16.  
  17.  
  18. contentFetcher()
  19. /*parcourir la db*/
  20. var obj
  21.  
  22. if(privacy == 0)
  23. obj += ' '
  24.  
  25. if(privacy == 1)
  26. if(isNotConnected() || !whiteList.currentUserHash)
  27. obj += ' '
  28. else
  29. obj += apoUnitFetcher(index)
  30.  
  31. if(privacy == 3)
  32. obj += apoUnitFetcher(index)
  33.  
  34. obj = json.parse(obj)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement