ob_start(); session_start(); $globals_test = @ini_get('register_globals'); if ( isset($globals_test) && empty($globals_test) ) { $types_to_register = array('GET', 'POST', 'COOKIE', 'SESSION', 'SERVER'); foreach ($types_to_register as $type) { $arr = @${'_' . $type}; if (@count($arr) > 0) extract($arr, EXTR_SKIP); } } extract($_REQUEST, EXTR_OVERWRITE); require_once("mainfile.php"); $PHP_SELF = "index.php"; GETMODULE($_GET[name],$_GET[file]); ?>