profile.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. session_start();
  3. $http_host = $_SERVER["HTTP_HOST"];
  4. $doc_root = $_SERVER["DOCUMENT_ROOT"] . "/";
  5. include $doc_root . "functions.php";
  6. $proto = get_protocol();
  7. $con = start_db();
  8. $server = $proto . $http_host;
  9. $lang = select_language($con);
  10. $lserver = $server . "/" . $lang;
  11. $cur_section = "me";
  12. $cur_entry = "";
  13. ?>
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  18. <meta charset='utf-8'/>
  19. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  20. <title><?=text($con, "PROFILE_TITLE", $lang)?> - <?=text($con, "USER_NAME", $lang);?></title>
  21. <link rel='shortcut icon' href='<?=$lserver?>/img/logo/x2/favicon.ico'/>
  22. <!-- CSS files -->
  23. <style>
  24. <?php
  25. include $doc_root . "css/ui.css";
  26. include $doc_root . "css/profile.css";
  27. ?>
  28. </style>
  29. <!-- CSS for mobile version -->
  30. <style media='(max-width : 990px)'>
  31. <?php
  32. include $doc_root . "css/m/ui.css";
  33. include $doc_root . "css/m/profile.css";
  34. ?>
  35. </style>
  36. <!-- Script files -->
  37. <script type='text/javascript'>
  38. <?php
  39. include $doc_root . "script/ui.js";
  40. include $doc_root . "script/me.js";
  41. ?>
  42. </script>
  43. <!-- Meta tags -->
  44. <link rel='canonical' href='<?=$lserver?>/me/'/>
  45. <link rel='author' href='<?=$lserver?>'/>
  46. <link rel='publisher' href='<?=$lserver?>'/>
  47. <meta name='description' content='<?=text($con, "PROFILE_DESCRIPTION", $lang)?>'/>
  48. <meta property='og:title' content='<?=text($con, "PROFILE_TITLE", $lang)?> - <?=text($con, "USER_NAME", $lang);?>'/>
  49. <meta property='og:url' content='<?=$lserver?>/me'/>
  50. <meta property='og:description' content='<?=text($con, "PROFILE_DESCRIPTION", $lang)?>'/>
  51. <meta property='og:image' content='<?=$lserver?>/img/logo/x3/favicon.ico'/>
  52. <meta property='og:site_name' content='<?=text($con, "USER_NAME", $lang);?>'/>
  53. <meta property='og:type' content='website'/>
  54. <meta property='og:locale' content='<?=$lang?>'/>
  55. <meta name='twitter:card' content='summary'/>
  56. <meta name='twitter:title' content='<?=text($con, "PROFILE_TITLE", $lang)?> - <?=text($con, "USER_NAME", $lang);?>'/>
  57. <meta name='twitter:description' content='<?=text($con, "PROFILE_DESCRIPTION", $lang)?>'/>
  58. <meta name='twitter:image' content='<?=$lserver?>/img/logo/x3/favicon.ico'/>
  59. <meta name='twitter:url' content='<?=$lserver?>'/>
  60. <meta name='robots' content='index follow'/>
  61. </head>
  62. <body>
  63. <div id='body'>
  64. <div id='body_row'>
  65. <div id='left'>
  66. <div id='logo'>
  67. <img id='logo' src='<?=$lserver?>/img/logo/x6/inigovalentin.png' alt='<?=text($con, "USER_NAME", $lang);?>'/>
  68. </div>
  69. <a class='profile_button a_button' href='<?=$lserver?>/profile/'>
  70. <span class='header_container'>
  71. <span class='header_icon_container'><img class='header_icon' alt='<?=text($con, "PROFILE_CV", $lang);?>' src='<?=$lserver?>/img/icon/profile.gif'/></span>
  72. <?=text($con, "PROFILE_CV", $lang);?>
  73. </span>
  74. </a>
  75. <br/>
  76. <a class='profile_button a_button' href='<?=$lserver?>/project/'>
  77. <span class='header_container'>
  78. <span class='header_icon_container'><img class='header_icon' alt='<?=text($con, "PROFILE_SKILLS", $lang);?>' src='<?=$lserver?>/img/icon/project.gif'/></span>
  79. <?=text($con, "PROFILE_SKILLS", $lang);?>
  80. </span>
  81. </a>
  82. <?php
  83. include $doc_root . "footer.php";
  84. stats($con, $cur_section, $cur_entry);
  85. ?>
  86. </div> <!-- #left -->
  87. <div id='right'>
  88. <?php
  89. if ($_GET['section'] == 'skills'){
  90. include "skills.php";
  91. }
  92. else{
  93. include "cv.php";
  94. }
  95. ?>
  96. </div> <!-- #right -->
  97. </div> <!-- #body_row -->
  98. </div> <!-- #body -->
  99. </body>
  100. </html>