HTML_Template_Flexy
[ class tree: HTML_Template_Flexy ] [ index: HTML_Template_Flexy ] [ all elements ]

Source for file compileAll.php

Documentation is available at compileAll.php

  1. #!/usr/bin/php -q
  2. <?php
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Author:  Alan Knowles <alan@akbkhome.com>
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: compileAll.php 310198 2011-04-13 09:30:18Z alan_k $
  20. //
  21.  
  22. @include 'HTML/Template/Flexy.php';
  23. if (!class_exists('HTML_Template_Flexy')) {
  24.     ini_set('include_path',dirname(__FILE__).'/../../../');
  25.     include 'HTML/Template/Flexy.php';
  26. }
  27. require_once 'PEAR.php';
  28.  
  29. if (!ini_get('register_argc_argv')) {
  30.     PEAR::raiseError("\nERROR: You must turn register_argc_argv On in you php.ini file for this to work\neg.\n\nregister_argc_argv = On\n\n"nullPEAR_ERROR_DIE);
  31.     exit;
  32. }
  33.  
  34. if (!@$_SERVER['argv'][1]{
  35.     PEAR::raiseError("\nERROR: compileAll.php usage:\n\nC:\php\pear\HTML\Template\Flexy\compileAll.php example.ini\n\n"nullPEAR_ERROR_DIE);
  36.     exit;
  37. }
  38.  
  39. $config parse_ini_file($_SERVER['argv'][1]true);
  40. if (class_exists('PEAR5',false)) {
  41.     $options &PEAR5::getStaticProperty('HTML_Template_Flexy','options');
  42. }
  43. if (empty($options)) {
  44.     $options &PEAR::getStaticProperty('HTML_Template_Flexy','options');
  45. }
  46. $options $config['HTML_Template_Flexy'];
  47.  
  48. if (!$options{
  49.     PEAR::raiseError("\nERROR: could not read ini file\n\n"nullPEAR_ERROR_DIE);
  50.     exit;
  51. }
  52.  
  53. //DB_DataObject::debugLevel(5);
  54. $flexy= new HTML_Template_Flexy;
  55. $flexy->compileAll();
  56. ?>

Documentation generated on Mon, 11 Mar 2019 15:59:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.