HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguy.com/wp-content/themes/vanilla/PHPTAL/StringSource.php
<?php

require_once PHPTAL_DIR.'PHPTAL/Source.php';

/**
 * @package phptal
 */
class PHPTAL_StringSource implements PHPTAL_Source
{
    public function __construct($data, $realpath)
    {
        $this->_data = $data;
        $this->_realpath = $realpath;
    }

    public function getLastModifiedTime()
    {
        if (file_exists($this->_realpath))
            return @filemtime($this->_realpath);
        return 0;
    }

    public function getData()
    {
        return $this->_data;
    }

    public function getRealPath()
    {
        return $this->_realpath;
    }
}

?>