?content=xxx. O valor de content define qual conteudo será incluido no arquivo index.php. Para fazer esta inclusão precisa especificar a localização do arquivo A var $bt_content_path define o caminho completo com a localização do arquivo que será incluido. obs.: no codigo foi incluida uma segurança para caso o usuário altere a URL, desta forma se o valor de content for nulo, será exibido o index. */ $bt_content = $_GET['content']; if(is_null($bt_content)){ $bt_content="index"; } // Definindo os botões existentes $bt_list = array( "0" => "index", "about", "themes", "local", "general_program", "monday_program", "tuesday_am_gps_program", "tuesday_pm_fma_program", "tuesday_pm_rha_program", "wednesday_am_ips_program", "wednesday_pm_fma_program", "wednesday_pm_rha_program", "wednesday_pm_trb_program", "wednesday_is_program", "thursday_am_aps_program", "thursday_pm_fma_program", "thursday_pm_rha_program", "city", "tour", "trips", "visa", "registration", "hotel", "directions", "transportation", "submission", "submissao_atualizacao", "submissao_senha", "submissao_trocar_senha", "submission_submitted_abstract", "guide", "contact_exhibits", "actual_exhibits", "mathlab_course", "program_committee", "organization", "previous_ce", "workshops_tutorials", "journals", "links", "contact", "teste", "g17_cocktail", "g17_coffee_break", "g17_introduction_and_opening_cerimony", "g17_plenary_session1_government", "g17_technical_sessions", "g18_mathlab_course", "g18_lunch_at_picturesque_venue", "g18_technical_sessions", "g19_banquet", "g19_lunch", "g19_plenary_session3_academy", "g19_technical_sessions", ); $flag = "1"; foreach ($bt_list as $key => $value) { if ($value == $bt_content) { $flag = "0"; break; } } if ($flag) {$bt_content = "index";} $bt_content_path="include/".$bt_content.".inc"; include $bt_content_path; ?>