Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.68 KB | None | 0 0
  1. <?php
  2.  
  3. DEFINE ('ROOT_DIR' , __DIR__ . DIRECTORY_SEPARATOR);
  4. DEFINE ('ROOT_URL' , "http://localhost/tnord/");
  5.  
  6. DEFINE ('EXT_URL' , ".php");
  7.  
  8. DEFINE ('INDEX_URL' , ROOT_URL);
  9.  
  10. DEFINE ('INCLUDE_URL' , ROOT_URL . "include/");
  11. DEFINE ('INCLUDE_DIR' , ROOT_DIR . "include" . DIRECTORY_SEPARATOR);
  12.  
  13. /* A Empresa */
  14. DEFINE ('EMPRESA_DIR' , ROOT_URL . "empresa/");
  15.  
  16. /* A Empresa -> A Tnord */
  17. DEFINE ('TNORD_DIR' , EMPRESA_DIR . "tnord/");
  18.  
  19. /* A Empresa -> A Tnord -> Visão e Missão */
  20. DEFINE ('VISAO_URL' , TNORD_DIR . "visao-missao" . EXT_URL);
  21.  
  22. /* A Empresa -> A Tnord -> História */
  23. DEFINE ('HISTORIA_URL' , TNORD_DIR . "historia" . EXT_URL);
  24.  
  25. /* A Empresa -> A Tnord -> Onde estamos? */
  26. DEFINE ('ONDEESTAMOS_URL' , TNORD_DIR . "onde-estamos" . EXT_URL);
  27.  
  28. /* A Empresa -> A Tnord -> Referências */
  29. DEFINE ('REFERENCIAS_URL' , TNORD_DIR . "referencias" . EXT_URL);
  30.  
  31. /* A Empresa -> Sustentabilidade */
  32. DEFINE ('SUSTENTABILIDADE_DIR' , EMPRESA_DIR . "sustentabilidade/");
  33.  
  34. /* A Empresa -> Sustentabilidade -> Responsabilidade Social */
  35. DEFINE ('RESPONSABILIDADE_SOCIAL_URL' , SUSTENTABILIDADE_DIR . "responsabilidade-social" . EXT_URL);
  36.  
  37. /* A Empresa -> Sustentabilidade -> Código de Conduta */
  38. DEFINE ('CODIGO_CONDUTA_URL' , SUSTENTABILIDADE_DIR . "codigo-conduta" . EXT_URL);
  39.  
  40.  
  41. /* Sectores */
  42. DEFINE ('SETORES_DIR' , ROOT_URL . "setores/");
  43.  
  44. /* Sectores -> Telecomunicações */
  45. DEFINE ('TELECOMUNICACOES_DIR' , SETORES_DIR . "telecomunicacoes/");
  46.  
  47. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless */
  48. DEFINE ('REDES_MOVEIS_DIR' , TELECOMUNICACOES_DIR . "redes-moveis-wireless/");
  49. DEFINE ('REDES_MOVEIS_URL' , TELECOMUNICACOES_DIR . "redes-moveis-wireless" . EXT_URL);
  50.  
  51. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless -> Desenho e Planeamento de Rede */
  52. DEFINE ('REDES_MOVEIS_1_URL' , REDES_MOVEIS_DIR . "desenho-planeamento-rede" . EXT_URL);
  53.  
  54. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless -> Desenvolvimento e Implementação de Rede */
  55. DEFINE ('REDES_MOVEIS_2_URL' , REDES_MOVEIS_DIR . "desenvolvimento-implementacao-rede" . EXT_URL);
  56.  
  57. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless -> I&C */
  58. DEFINE ('REDES_MOVEIS_3_URL' , REDES_MOVEIS_DIR . "ic" . EXT_URL);
  59.  
  60. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless -> Manutenção e Otimização */
  61. DEFINE ('REDES_MOVEIS_4_URL' , REDES_MOVEIS_DIR . "manutencao-otimizacao" . EXT_URL);
  62.  
  63. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless -> Operação e Supervisão (NOC/SOC) */
  64. DEFINE ('REDES_MOVEIS_5_URL' , REDES_MOVEIS_DIR . "operacao-supervisao" . EXT_URL);
  65.  
  66. /* Sectores -> Telecomunicações -> Redes Móveis / Wireless -> Gestão de Projetos */
  67. DEFINE ('REDES_MOVEIS_6_URL' , REDES_MOVEIS_DIR . "gestao-projetos" . EXT_URL);
  68.  
  69. /* Sectores -> Telecomunicações -> Redes Fixas */
  70. DEFINE ('REDES_FIXAS_DIR' , TELECOMUNICACOES_DIR . "redes-fixas/");
  71. DEFINE ('REDES_FIXAS_URL' , TELECOMUNICACOES_DIR . "redes-fixas" . EXT_URL);
  72.  
  73. /* Sectores -> Telecomunicações -> Redes Fixas -> Projeto e Engenharia */
  74. DEFINE ('REDES_FIXAS_1_URL' , REDES_FIXAS_DIR . "projeto-engenharia" . EXT_URL);
  75.  
  76. /* Sectores -> Telecomunicações -> Redes Fixas -> Construção */
  77. DEFINE ('REDES_FIXAS_2_URL' , REDES_FIXAS_DIR . "construcao" . EXT_URL);
  78.  
  79. /* Sectores -> Telecomunicações -> Redes Fixas -> Instalação de Rede */
  80. DEFINE ('REDES_FIXAS_3_URL' , REDES_FIXAS_DIR . "instalacao-rede" . EXT_URL);
  81.  
  82. /* Sectores -> Telecomunicações -> Redes Fixas -> Manutenção */
  83. DEFINE ('REDES_FIXAS_4_URL' , REDES_FIXAS_DIR . "manutencao" . EXT_URL);
  84.  
  85. /* Sectores -> Telecomunicações -> Redes Fixas -> Operação e Supervisão */
  86. DEFINE ('REDES_FIXAS_5_URL' , REDES_FIXAS_DIR . "operacao-supervisao" . EXT_URL);
  87.  
  88. /* Sectores -> Telecomunicações -> Redes Fixas -> Gestor de Projetos */
  89. DEFINE ('REDES_FIXAS_6_URL' , REDES_FIXAS_DIR . "gestor-projetos" . EXT_URL);
  90.  
  91. /* Sectores -> Telecomunicações -> Managed Services */
  92. DEFINE ('MANAGED_SERVICES_DIR' , TELECOMUNICACOES_DIR . "managed-services/");
  93. DEFINE ('MANAGED_SERVICES_URL' , TELECOMUNICACOES_DIR . "managed-services" . EXT_URL);
  94.  
  95. /* Sectores -> Telecomunicações -> Managed Services -> Projetos de Implementação */
  96. DEFINE ('MANAGED_SERVICES_1_URL' , MANAGED_SERVICES_DIR . "projetos-implementacao" . EXT_URL);
  97.  
  98. /* Sectores -> Telecomunicações -> Managed Services -> Projetos de Upgrade de Rede / SWAP */
  99. DEFINE ('MANAGED_SERVICES_2_URL' , MANAGED_SERVICES_DIR . "projetos-upgrade-rede" . EXT_URL);
  100.  
  101. /* Sectores -> Telecomunicações -> Managed Services -> Projetos de Desenvolvimento / Manutenção de Rede */
  102. DEFINE ('MANAGED_SERVICES_3_URL' , MANAGED_SERVICES_DIR . "projetos-desenvolvimento" . EXT_URL);
  103.  
  104. /* Sectores -> Telecomunicações -> Managed Services -> Definir */
  105. DEFINE ('MANAGED_SERVICES_4_URL' , MANAGED_SERVICES_DIR . "definir" . EXT_URL);
  106.  
  107. /* Sectores -> Telecomunicações -> Consultadoria e Transformação de Operações */
  108. DEFINE ('CONSULTADORIA_DIR' , TELECOMUNICACOES_DIR . "consultadoria-transformacao-operacoes/");
  109. DEFINE ('CONSULTADORIA_URL' , TELECOMUNICACOES_DIR . "consultadoria-transformacao-operacoes" . EXT_URL);
  110.  
  111. /* Sectores -> Telecomunicações -> Consultadoria e Transformação de Operações -> Definição / Otimização de Modelos de Operação de Rede */
  112. DEFINE ('CONSULTADORIA_1_URL' , CONSULTADORIA_DIR . "modelos-operacao-rede" . EXT_URL);
  113.  
  114. /* Sectores -> Telecomunicações -> Consultadoria e Transformação de Operações -> Auditoria de Qualidade de Rede */
  115. DEFINE ('CONSULTADORIA_2_URL' , CONSULTADORIA_DIR . "auditoria-qualidade-rede" . EXT_URL);
  116.  
  117. /* Sectores -> Telecomunicações -> Consultadoria e Transformação de Operações -> Eficiência Energética */
  118. DEFINE ('CONSULTADORIA_3_URL' , CONSULTADORIA_DIR . "eficiencia-energetica" . EXT_URL);
  119.  
  120. /* Sectores -> Telecomunicações -> Consultadoria e Transformação de Operações -> Otimização de Ativos */
  121. DEFINE ('CONSULTADORIA_4_URL' , CONSULTADORIA_DIR . "otimizacao-ativos" . EXT_URL);
  122.  
  123.  
  124. /* Sectores -> Telecomunicações -> Door 2 Door */
  125. DEFINE ('D2D_URL' , TELECOMUNICACOES_DIR . "d2d" . EXT_URL);
  126.  
  127. /* Soluções */
  128. DEFINE ('SOLUCOES_DIR' , ROOT_URL . "solucoes/");
  129. DEFINE ('SOLUCOES_URL' , ROOT_URL . "solucoes" . EXT_URL);
  130.  
  131. /* Soluções -> Torres */
  132. DEFINE ('SOLUCOES_1_URL' , SOLUCOES_DIR . "torres" . EXT_URL);
  133.  
  134. /* Soluções -> Unidade de Intervenção Rápida */
  135. DEFINE ('SOLUCOES_2_URL' , SOLUCOES_DIR . "unidade-intervencao-rapida" . EXT_URL);
  136.  
  137. /* Soluções -> Soluções Business 2 Consumer */
  138. DEFINE ('SOLUCOES_3_URL' , SOLUCOES_DIR . "business-2-consumer" . EXT_URL);
  139.  
  140. /* Soluções -> Soluções Business 2 Business */
  141. DEFINE ('SOLUCOES_4_URL' , SOLUCOES_DIR . "business-2-business" . EXT_URL);
  142.  
  143. /* Pessoas */
  144. DEFINE ('PESSOAS_DIR' , ROOT_URL . "pessoas/");
  145.  
  146. /* Pessoas -> Equipa */
  147. DEFINE ('PESSOAS_1_URL' , PESSOAS_DIR . "equipa" . EXT_URL);
  148.  
  149. /* Pessoas -> Oportunidades */
  150. DEFINE ('PESSOAS_2_URL' , PESSOAS_DIR . "oportunidades" . EXT_URL);
  151.  
  152. /* pages/contactos.php */
  153. DEFINE ('CONTACTOS_URL' , ROOT_URL . "contactos" . EXT_URL);
  154.  
  155. DEFINE ('IMAGES_URL' , ROOT_URL . "images/");
  156.  
  157. DEFINE ('FILES_URL' , ROOT_URL . "files/");
  158.  
  159. /* Social */
  160.  
  161. /* Facebook */
  162. DEFINE ('FACEBOOK_URL' , "https://www.facebook.com/TNORD-366753013347031/");
  163. /* Twitter */
  164. DEFINE ('TWITTER_URL' , "");
  165. /* Instagram */
  166. DEFINE ('INSTAGRAM_URL' , "");
  167. /* LinkedIn */
  168. DEFINE ('LINKEDIN_URL' , "");
  169.  
  170.  
  171. function setLanguage() {
  172.  
  173. if (isset($_GET["lang"])) {
  174.  
  175. if ($_GET["lang"] == "pt") {
  176.  
  177. require_once("lang_pt.php");
  178.  
  179. } else if ($_GET["lang"] == "en") {
  180.  
  181. require_once("lang_en.php");
  182.  
  183. } else if ($_GET["lang"] == "fr") {
  184.  
  185. require_once("lang_fr.php");
  186.  
  187. }
  188.  
  189. } else {
  190.  
  191. require_once("lang_pt.php");
  192.  
  193. }
  194.  
  195. }
  196.  
  197. setLanguage();
  198.  
  199. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement