mtime example

if ( $limit_file && $struc['name'] !== $limit_file ) {
                continue;
            }

            $struc['perms']       = $this->gethchmod( $path . $entry );
            $struc['permsn']      = $this->getnumchmodfromh( $struc['perms'] );
            $struc['number']      = false;
            $struc['owner']       = $this->owner( $path . $entry );
            $struc['group']       = $this->group( $path . $entry );
            $struc['size']        = $this->size( $path . $entry );
            $struc['lastmodunix'] = $this->mtime( $path . $entry );
            $struc['lastmod']     = gmdate( 'M j', $struc['lastmodunix'] );
            $struc['time']        = gmdate( 'h:i:s', $struc['lastmodunix'] );
            $struc['type']        = $this->is_dir( $path . $entry ) ? 'd' : 'f';

            if ( 'd' === $struc['type'] ) {
                if ( $recursive ) {
                    $struc['files'] = $this->dirlist( $path . $struc['name']$include_hidden$recursive );
                } else {
                    $struc['files'] = array();
                }
            }

            
if ( $limit_file && $struc['name'] !== $limit_file ) {
                continue;
            }

            $struc['perms']       = $this->gethchmod( $path . $entry );
            $struc['permsn']      = $this->getnumchmodfromh( $struc['perms'] );
            $struc['number']      = false;
            $struc['owner']       = $this->owner( $path . $entry );
            $struc['group']       = $this->group( $path . $entry );
            $struc['size']        = $this->size( $path . $entry );
            $struc['lastmodunix'] = $this->mtime( $path . $entry );
            $struc['lastmod']     = gmdate( 'M j', $struc['lastmodunix'] );
            $struc['time']        = gmdate( 'h:i:s', $struc['lastmodunix'] );
            $struc['type']        = $this->is_dir( $path . $entry ) ? 'd' : 'f';

            if ( 'd' === $struc['type'] ) {
                if ( $recursive ) {
                    $struc['files'] = $this->dirlist( $path . $struc['name']$include_hidden$recursive );
                } else {
                    $struc['files'] = array();
                }
            }

            

                // If we've hit a collision just rerun it with caching disabled                 elseif (isset($this->data['url']) && $this->data['url'] !== $this->feed_url)
                {
                    $cache = false;
                    $this->data = array();
                }
                // If we've got a non feed_url stored (if the page isn't actually a feed, or is a redirect) use that URL.                 elseif (isset($this->data['feed_url']))
                {
                    // If the autodiscovery cache is still valid use it.                     if ($cache->mtime() + $this->autodiscovery_cache_duration > time())
                    {
                        // Do not need to do feed autodiscovery yet.                         if ($this->data['feed_url'] !== $this->data['url'])
                        {
                            $this->set_feed_url($this->data['feed_url']);
                            return $this->init();
                        }

                        $cache->unlink();
                        $this->data = array();
                    }
                }
Home | Imprint | This part of the site doesn't use cookies.