connect('localhost','denmark1','root',''); $m=request('mod','start'); $m_name='mod_'.$m; if(!file_exists('mod/'.$m_name.'.php')) die("Module: $m_name not found"); require "mod/".$m_name.".php"; $mod=new $m_name; $mod->db=&$db; $mod->page=new webpage; $mod->user=new wh_user; $mod->run(request('c')); $mod->page->send($mod); //$db->disconnect(); ?>