Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace IPHP;
- class core
- {
- private static $errors = array();
- private static $vars = array();
- private static $moduls = array();
- const COREDIR = __DIR__;
- public function __constuct($debug = false)
- {
- }
- private function load()
- {
- $ScanDir = scandir(COREDIR."/Moduls/");
- foreach($ScanDir as $Dirs)
- {
- if($Dirs == ".." OR $Dirs == ".") continue;
- if(file_exists(COREDIR."/Moduls/".$Dirs))
- {
- echo('Modul'.$Dir);
- include(COREDIR."/Moduls/".$Dirs."/modul.php");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement