Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2. function loadcom($class){
  3.     $file = "components/" . $class . ".php";
  4.     if(is_readable($file)){
  5.         require_once($file);
  6.     }
  7. }
  8.  
  9. function loadcore($class){
  10.     $file = "core/" . $class . ".php";
  11.     if(is_readable($file)){
  12.         require_once($file);
  13.     }
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement