Subversion Repositories TypeFriendly

[/] [trunk/] [typefriendly.php] - Rev 6

Compare with Previous | Blame | Download | View Log

#!/usr/bin/php -q
<?php
/*
  --------------------------------------------------------------------
                           TypeFriendly
                 Copyright (c) 2008 Invenzzia Team
                    http://www.invenzzia.org/
                See README for more author details
  --------------------------------------------------------------------
  This file is part of TypeFriendly.
                                                                   
  TypeFriendly is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  TypeFriendly is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with TypeFriendly. If not, see <http://www.gnu.org/licenses/>.
*/

// $Id: typefriendly.php 6 2008-07-03 08:53:00Z zyxist $

    define('TF_DIR', './');
    define('TF_INCLUDES', TF_DIR.'includes/');
    define('TF_MARKDOWN', TF_DIR.'markdown/');
    define('TF_GESHI', TF_DIR.'geshi/');
    define('TF_OUTPUTS', TF_DIR.'outputs/');
    define('TF_TPL', TF_DIR.'templates/');
    require_once(TF_INCLUDES.'console.php');
    require_once(TF_INCLUDES.'resources.php');
    require_once(TF_INCLUDES.'filesystem.php');
    require_once(TF_MARKDOWN.'markdown.php');
   
    if(version_compare(phpversion(), '5.3.0-dev', '<'))
    {
        require_once(TF_INCLUDES.'php52.php');
    }

    $app = tfProgram::get();
    $app->loadModule('main');
    $app->run();
 

Compare with Previous | Blame | Download | View Log