Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. /* Put your code here */
  3. $ts = strtotime($bd);
  4.  
  5. if(!$ts) return false;
  6.  
  7. $now = time();
  8.  
  9. if($now > $ts){
  10. return true;
  11. }
  12.  
  13. $diff = 29 * 86400;
  14.  
  15. $sub = abs($now - $ts);
  16.  
  17.  
  18.  
  19.  
  20. if (strpos($text, 'avito.ru') !== false)
  21. {
  22. $p='1';
  23. } else {
  24. $p='0';
  25. }
  26.  
  27.  
  28.  
  29. return (($sub >= $diff)&&$p=='1');
  30.  
  31.  
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement