"; } $m = array(); $m[0] = isset($_REQUEST['cc'])? $_REQUEST['cc'] : null; $m[1] = isset($_REQUEST["m1"])? $_REQUEST['m1'] : null; $m[2] = isset($_REQUEST["m2"])? $_REQUEST['m2'] : null; $m[3] = isset($_REQUEST["m3"])? $_REQUEST['m3'] : null; $m[4] = isset($_REQUEST["m4"])? $_REQUEST['m4'] : null; require PATH."model/config.php"; require PATH."model/sql.class.php"; require PATH."view/pub.class.php"; global $sql, $pub; $sql = new sql(); $pub = new pub(); $sql->CONNECT_DB(HOST,USER,PASS,DB); $file = isset($m[0]) ? $m[0] : 'default'; require PATH."templates/header.html"; require PATH."controller/".$file.".php"; require PATH."templates/".$file.".html"; require PATH."templates/footer.html"; unset($sql); unset($pub); ?>