title: Possible to remove included classes?
body: <p>I am using a 3rd party file manager plugin on a CMS and I want to include an authentication check from a PHP framework I'm using. The authentication part works fine, just a simple include then the auth check, however there then seems to be some conflict between the included classes and those of the file manager. For example, I'm getting a "Class Kohana not found" error where a class belonging to the file manager is trying to instantiate a class belonging to the framework. </p>
  
  <p>At the top of my file manager main entry file, I have the following:</p>
  
  <pre><code>//load Kohana framework for Authorisation
  include('../../../../../admin/index.php');
  
  // If not a valid authenticated user, kill page
  if ( ! Auth::instance()-&gt;logged_in())
  {
      die('Unauthorized');
  }
  </code></pre>
  
  <p>Having done the authentication, I no longer want the included files and classes, as these are seemingly conflicting with the file manager. Is there a way that I can do this, or am I misunderstanding what's going on here?</p>
  
  <p>The error being thrown is in a file manager class - public_html/media/js/tiny_mce/plugins/ajaxfilemanager/inc/class.file.php [ 67 ]</p>
  
  <pre><code>function file($path=null)
  {
      $this-&gt;__construct($path);
  }
  </code></pre>