60 seconds x 60 minutes = 1 hour. The code says if the current time (time()) minus the last ping time ($x_last_ping) is greater than one hour, then execute the following....
Thanks everyone. Rep added. How about this: $Now = time(); $Duration = 60*60; foreach ($posts as $post) { if ($x_news_active && $x_permission != 2) { $postDate = strtotime($post->post_date); if ($Now - $postDate < $Duration) { $x_execute_this .= " ... Code (markup):
it says for each element of posts, that we call a post, do the following; if the news is active and the permission flag is not equal to 2, do the following; if the current time minus post time is < than an hour, do the following; ........