Advertisement
Isigar

Untitled

Apr 21st, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. namespace IPHP;
  3.  
  4. class core
  5. {
  6. private static $errors = array();
  7. private static $vars = array();
  8. private static $moduls = array();
  9.  
  10. const COREDIR = __DIR__;
  11.  
  12. public function __constuct($debug = false)
  13. {
  14.  
  15. }
  16.  
  17. private function load()
  18. {
  19. $ScanDir = scandir(COREDIR."/Moduls/");
  20. foreach($ScanDir as $Dirs)
  21. {
  22. if($Dirs == ".." OR $Dirs == ".") continue;
  23. if(file_exists(COREDIR."/Moduls/".$Dirs))
  24. {
  25. echo('Modul'.$Dir);
  26. include(COREDIR."/Moduls/".$Dirs."/modul.php");
  27. }
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement