--- FreeBSD/tinderbox/webui/core/functions.php 2007/11/12 22:45:14 1.1.1.1.2.1 +++ FreeBSD/tinderbox/webui/core/functions.php 2007/11/16 23:03:38 1.1.1.1.2.2 @@ -24,7 +24,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $Paefchen$ +# $Paefchen: FreeBSD/tinderbox/webui/core/functions.php,v 1.1.1.1.2.1 2007/11/12 22:45:14 as Exp $ # $MCom: portstools/tinderbox/webui/core/functions.php,v 1.5 2007/06/09 22:09:12 marcus Exp $ # @@ -76,6 +76,20 @@ function time_elapsed($c) { return sprintf('%02d:%02d', floor(($c % 3600) / 60), floor($c % 60)); +} + +function __autoload($class) { + require_once $class.'.php'; +} + +function module_list() { + return preg_split('/[,; ]+/', MODULES); +} + +function module_instance($module) { + static $instances; + if (! isset($instances)) + $instances = array(); } ?>