[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/data/bin/ -> symfony (source)

   1  #!/usr/bin/env php
   2  <?php
   3  
   4  /*
   5   * This file is part of the symfony package.
   6   * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
   7   * 
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  // project exists?
  13  if (file_exists('config/config.php'))
  14  {
  15    include ('config/config.php');
  16  }
  17  
  18  if (!isset($sf_symfony_lib_dir))
  19  {
  20    if (is_readable(dirname(__FILE__).'/../../lib/VERSION'))
  21    {
  22      // SVN
  23      $sf_symfony_lib_dir  = realpath(dirname(__FILE__).'/../../lib');
  24      $sf_symfony_data_dir = realpath(dirname(__FILE__).'/..');
  25    }
  26    else
  27    {
  28      // PEAR
  29      $sf_symfony_lib_dir  = '@PEAR-DIR@/symfony';
  30      $sf_symfony_data_dir = '@DATA-DIR@/symfony';
  31  
  32      if (!is_dir($sf_symfony_lib_dir))
  33      {
  34        throw new Exception('Unable to find symfony libraries');
  35      }
  36    }
  37  }
  38  
  39  include($sf_symfony_data_dir.'/bin/symfony.php');


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7