Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Put your code here */
- $ts = strtotime($bd);
- if(!$ts) return false;
- $now = time();
- if($now > $ts){
- return true;
- }
- $diff = 29 * 86400;
- $sub = abs($now - $ts);
- if (strpos($text, 'avito.ru') !== false)
- {
- $p='1';
- } else {
- $p='0';
- }
- return (($sub >= $diff)&&$p=='1');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement