daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function load($file)
  3. {
  4.     $lib = array(
  5.                 'user' => 'class.user',
  6.                 'profil' => 'class.profil.php',
  7.         );
  8.     if (is_file($file))
  9.     {
  10.         require_once $file;
  11.     }
  12.     elseif(array_key_exists($file, $lib) && is_file('app/vendor/'.$lib[$file].'.php'))
  13.     {
  14.         require_once 'app/vendor/'.$lib[$file].'.php';
  15.     }
  16.     elseif(is_file('app/vendor/'.$file.'.php'))
  17.     {
  18.         require_once 'app/vendor/'.$file.'.php';
  19.     }
  20.    
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top