Diff for /FreeBSD/tinderbox/webui/index.php between versions 1.1.1.1.2.3 and 1.1.1.1.2.4

version 1.1.1.1.2.3, 2007/11/16 22:52:43 version 1.1.1.1.2.4, 2007/11/16 23:03:38
Line 24 Line 24
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF  # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.  # SUCH DAMAGE.
 #  #
# $Paefchen: FreeBSD/tinderbox/webui/index.php,v 1.1.1.1.2.2 2007/11/15 15:29:46 as Exp $# $Paefchen: FreeBSD/tinderbox/webui/index.php,v 1.1.1.1.2.3 2007/11/16 22:52:43 as Exp $
 # $MCom: portstools/tinderbox/webui/index.php,v 1.22 2007/10/13 02:28:47 ade Exp $  # $MCom: portstools/tinderbox/webui/index.php,v 1.22 2007/10/13 02:28:47 ade Exp $
 #  #
   
Line 75  foreach (array('WWWROOT', 'TBROOT', 'TEMPLATESDIR') as Line 75  foreach (array('WWWROOT', 'TBROOT', 'TEMPLATESDIR') as
 set_include_path(get_include_path().PATH_SEPARATOR.'module'  set_include_path(get_include_path().PATH_SEPARATOR.'module'
     .PATH_SEPARATOR.'core');      .PATH_SEPARATOR.'core');
   
function __autoload($class) {require_once 'functions.php';
        require_once $class.'.php';require_once TEMPLATESDIR.'/messages.inc';
} 
   
 function module_list() {  
         return preg_split('/[,; ]+/', MODULES);  
 }  
   
 function module_instance($module) {  
         static $instances;  
         if (! isset($instances))  
                 $instances = array();  
 }  
           
   
 foreach (module_list() as $moduleName) {  foreach (module_list() as $moduleName) {
         $className = 'module' . $moduleName;          $className = 'module' . $moduleName;
   
Line 101  foreach (module_list() as $moduleName) { Line 89  foreach (module_list() as $moduleName) {
         /* as xxx */          /* as xxx */
         $$className = new $className;          $$className = new $className;
 }  }
   
 require_once TEMPLATESDIR.'/messages.inc';  
   
 if (defined('MODULE_USERS')) {  if (defined('MODULE_USERS')) {
         $moduleUsers->start();          $moduleUsers->start();

Removed from v.1.1.1.1.2.3  
changed lines
  Added in v.1.1.1.1.2.4