'home.inc.php', 'about' => 'about.inc.php', 'events' => 'events.inc.php', 'reg' => 'reg.inc.php', 'linx' => 'linx.inc.php', 'org' => 'org.inc.php', 'sponsors' => 'sponsors.inc.php', 'misc' => 'misc.inc.php', 'stat' => 'stat.inc.php', 'papers' => 'papers.inc.php', 'confirm1' => 'confirm1.inc.php', 'confirm2' => 'confirm2.inc.php', 'shedule' => 'shedule.inc.php', 'gallery' => 'gallery.inc.php' ); if(!$page || !in_array($page, array_keys($pages))) $page = 'home'; // connecting to db /* unset($c); if($c = mysql_connect($globs['db_host'], $globs['db_user'], $globs['db_pass'])) if(!mysql_select_db($globs['db_name'], $c)) unset($c); if(!$c) { echo load_template('error'); exit(); } // counter stuff include ('includes/counter.inc.php'); */ // including page if(is_file('includes/'.$pages[$page])) include ('includes/'.$pages[$page]); $out['main_menu'] = load_template('main_menu'); $content = parse_template(load_template('main')); echo $content; ?>