Reorganize classes

feature/node-rewrite
Sven Slootweg 12 years ago
parent a5255536e6
commit 7e80f9617c

@ -22,12 +22,18 @@ require("include.constants.php");
require("include.parsing.php"); require("include.parsing.php");
require("include.misc.php"); require("include.misc.php");
/* TODO: Reorganize and autoloading. */ function __autoload($class_name)
require("classes/class.user.php"); {
require("classes/class.controller.php"); global $_CVM;
require("classes/class.container.php");
require("classes/class.node.php"); if(strpos($class_name, "\\") !== false)
require("classes/class.template.php"); {
require("classes/class.sshconnector.php"); $class_name = str_replace("\\", "/", strtolower($class_name));
require("classes/class.iprange.php"); require_once("classes/{$class_name}.php");
?> }
else
{
$class_name = strtolower($class_name);
require_once("classes/{$class_name}.php");
}
}

Loading…
Cancel
Save