Source for file Init.php

Documentation is available at Init.php

  1. <?php
  2.     /**
  3.      * Initializes the MIPHPF framework
  4.      * 
  5.      * Should be included in all files using the framework
  6.      * @copyright Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.
  7.      * @package MIPHPF
  8.      */
  9.      
  10.     /**
  11.      * Include the config
  12.      */
  13.     require_once(dirname(__FILE__'/util/Settings.php');
  14.     require_once(dirname(__FILE__'/Config.php');
  15.     require_once(dirname(__FILE__'/util/Loader.php');
  16.     require_once(dirname(__FILE__'/const/Consts.php');
  17.     require_once(dirname(__FILE__'/util/Param.php');
  18.     
  19.     /**
  20.      * Test the magic quotes settings
  21.      */
  22.         die('Please make sure that magic_quotes_gpc and magic_quotes_runtime are off!');
  23.     
  24.     /**
  25.      * Autoloads classes upon usage
  26.      * 
  27.      * @param string $className the class to load
  28.      */
  29.     function __autoload($className)
  30.     {
  31.         if (miLoader::load($className=== false{
  32.             $backTrace debug_backtrace();
  33.             die('__autoload: Autoloading failed. Unknown class "' $className .
  34.                 '" at ' $backTrace[0]['file'':' $backTrace[0]['line']);
  35.         }
  36.     }
  37. ?>

Documentation generated on Thu, 08 May 2008 16:57:28 +0300 by phpDocumentor 1.4.1