switch ($act) {case "addpage":include("pages/addpage.php");break;case "...":include("pages/...");break;default:include("main.php");break;}