web/wp-content/plugins/exec-php/includes/manager.php
branchwordpress
changeset 123 561aa6d282f6
equal deleted inserted replaced
112:fb7cd02b9848 123:561aa6d282f6
       
     1 <?php
       
     2 
       
     3 require_once(dirname(__FILE__).'/admin.php');
       
     4 require_once(dirname(__FILE__).'/ajax.php');
       
     5 require_once(dirname(__FILE__).'/cache.php');
       
     6 require_once(dirname(__FILE__).'/const.php');
       
     7 require_once(dirname(__FILE__).'/runtime.php');
       
     8 
       
     9 // -----------------------------------------------------------------------------
       
    10 // the ExecPhp_Manager class handles the plugin initialization phase,
       
    11 // assuring the infrastructure is set up properly
       
    12 // -----------------------------------------------------------------------------
       
    13 
       
    14 if (!class_exists('ExecPhp_Manager')) :
       
    15 class ExecPhp_Manager
       
    16 {
       
    17 	var $m_ajax = NULL;
       
    18 	var $m_runtime = NULL;
       
    19 	var $m_admin = NULL;
       
    20 
       
    21 	// ---------------------------------------------------------------------------
       
    22 	// init
       
    23 	// ---------------------------------------------------------------------------
       
    24 
       
    25 	function ExecPhp_Manager()
       
    26 	{
       
    27 		add_action('init', array(&$this, 'action_init'));
       
    28 	}
       
    29 
       
    30 	// ---------------------------------------------------------------------------
       
    31 	// hooks
       
    32 	// ---------------------------------------------------------------------------
       
    33 
       
    34 	function action_init()
       
    35 	{
       
    36 		$cache =& new ExecPhp_Cache();
       
    37 		$this->m_ajax =& new ExecPhp_Ajax($cache);
       
    38 		$this->m_runtime =& new ExecPhp_Runtime($cache);
       
    39 		$this->m_admin =& new ExecPHP_Admin($cache);
       
    40 	}
       
    41 }
       
    42 endif;
       
    43 
       
    44 ?>