PageRenderTime 94ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/include/language.php

https://github.com/crigaud/c-r
PHP | 25 lines | 15 code | 2 blank | 8 comment | 2 complexity | aaa64a23bd2a6739e7c55148f5248d4b MD5 | raw file
  1. <?php
  2. if( strcmp($lang, 'fr') == 0 ){
  3. include($_SERVER['DOCUMENT_ROOT'].'/include/message/'.$lang.'_global.php');
  4. //if( strcmp($section, 'cv') == 0 ){
  5. include($_SERVER['DOCUMENT_ROOT'].'/include/message/'.$lang.'_resume.php');
  6. include($_SERVER['DOCUMENT_ROOT'].'/include/message/fr_publication.php');
  7. //}else if( strcmp($section, 'blog') == 0 ){
  8. include($_SERVER['DOCUMENT_ROOT'].'/include/message/'.$lang.'_article.php');
  9. //}else if( strcmp($section, 'blog') == 0 ){
  10. include($_SERVER['DOCUMENT_ROOT'].'/include/message/'.$lang.'_tag.php');
  11. //}
  12. }else{
  13. include($_SERVER['DOCUMENT_ROOT']."/include/message/en_global.php");
  14. //if( strcmp($section, 'cv') == 0 ){
  15. include($_SERVER['DOCUMENT_ROOT'].'/include/message/en_resume.php');
  16. include($_SERVER['DOCUMENT_ROOT'].'/include/message/en_publication.php');
  17. //}else if( strcmp($section, 'blog') == 0 ){
  18. include($_SERVER['DOCUMENT_ROOT'].'/include/message/en_article.php');
  19. //}else if( strcmp($section, 'blog') == 0 ){
  20. include($_SERVER['DOCUMENT_ROOT'].'/include/message/en_tag.php');
  21. //}
  22. }
  23. ?>