<?php
/**
 * This file is part of MythWeb, a php-based interface for MythTV.
 * See http://www.mythtv.org/ for details.
 *
 * @url         $URL: http://svn.mythtv.org/svn/branches/release-0-21-fixes/mythplugins/mythweb/includes/php_version_check.php $
 * @date        $Date: 2008-02-22 13:37:25 -0800 (Fri, 22 Feb 2008) $
 * @version     $Revision: 16203 $
 * @author      $Author: xris $
 * @license     GPL
 *
 * @package     MythWeb
 *
/**/

// Make sure we're running a new enough version of php
    if (substr(phpversion(), 0, 3) < 4.3)
        trigger_error('You must be running at least php 4.3 to use this program.', FATAL);

// If we're not using php 5.0.0 or newer, setup some compatability functions
    if (version_compare(phpversion(), '5.0.0') < 0)
        require_once 'includes/php5_compat.php';

// For now, use the pear version of JSON until we can only support php 5.2 and thus use the builtin-json object...
    require_once 'includes/JSON.php';
