PageRenderTime 123ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/jappixmini/jappix/php/desktop.php

https://github.com/chiefdome/friendica-addons
PHP | 181 lines | 129 code | 33 blank | 19 comment | 15 complexity | 565da59826aea5e894c63a676b90e157 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-3.0, GPL-2.0
  1. <?php
  2. /*
  3. Jappix - An open social platform
  4. This is the Jappix Desktop PHP/HTML code
  5. -------------------------------------------------
  6. License: AGPL
  7. Author: Vanaryon
  8. Last revision: 16/01/12
  9. */
  10. // Someone is trying to hack us?
  11. if(!defined('JAPPIX_BASE'))
  12. exit;
  13. ?>
  14. <!DOCTYPE html>
  15. <?php htmlTag($locale); ?>
  16. <head>
  17. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  18. <title><?php echo htmlspecialchars(SERVICE_NAME); ?> &bull; <?php _e("An open social network"); ?></title>
  19. <link rel="shortcut icon" href="./favicon.ico" />
  20. <?php echoGetFiles($hash, '', 'css', 'desktop.xml', ''); echo "\n"; ?>
  21. <!--[if lt IE 9]><?php echoGetFiles($hash, '', 'css', '', 'ie.css'); ?><![endif]-->
  22. <?php echoGetFiles($hash, $locale, 'js', 'desktop.xml', ''); echo "\n";
  23. if(anonymousMode()) {
  24. echo "\n\t";
  25. echoGetFiles($hash, '', 'css', 'anonymous.xml', '');
  26. echo "\n\t";
  27. echoGetFiles($hash, $locale, 'js', 'anonymous.xml', '');
  28. echo "\n";
  29. } ?>
  30. </head>
  31. <body class="body-images">
  32. <?php
  33. // Homepage?
  34. if(!anonymousMode()) { ?>
  35. <!-- BEGIN HOMEPAGE -->
  36. <div id="home">
  37. <div class="home-images plane"></div>
  38. <div class="main">
  39. <div class="left">
  40. <div class="home-images logo"></div>
  41. <p class="upper"><?php _e("Communicate with the entire world!"); ?></p>
  42. <p class="secondary"><?php _e("Jappix is a great social platform, that you can access wherever you are, whenever you want and communicate with whovever you want."); ?></p>
  43. <p class="secondary"><?php _e("It allows you to get in touch with the millions of users who currently use the XMPP network like you do with Jappix. Join the community and stay free!"); ?></p>
  44. </div>
  45. <div class="right">
  46. <h1 class="top default"><?php _e("Hi there!"); ?></h1>
  47. <div class="default homediv">
  48. <p><?php printf(T_("Welcome on %1s, “%2s”."), htmlspecialchars(SERVICE_NAME), htmlspecialchars(SERVICE_DESC)); ?></p>
  49. <p><?php _e("Login to your existing XMPP account or create a new one for free!"); ?></p>
  50. <button class="login buttons-images">
  51. <span class="home-images"></span>
  52. <span class="text"><?php _e("Login"); ?></span>
  53. </button>
  54. <button class="register buttons-images">
  55. <span class="home-images"></span>
  56. <span class="text"><?php _e("Register"); ?></span>
  57. </button>
  58. <p class="notice"><?php echo str_replace("PostPro", "<a href='http://www.post-pro.fr/'>PostPro</a>", T_("Jappix is an open-source project from PostPro, a non-profit organization which provides us a great help.")); ?></p>
  59. </div>
  60. <div class="navigation">
  61. <?php
  62. // Keep get var
  63. $keep_get = keepGet('m', false);
  64. ?>
  65. <a class="home-images mobile" href="./?m=mobile<?php echo $keep_get; ?>"><?php _e("Mobile"); ?></a>
  66. <?php if(showManagerLink()) { ?>
  67. <a class="home-images manager" href="./?m=manager<?php echo $keep_get; ?>"><?php _e("Manager"); ?></a>
  68. <?php } ?>
  69. <a class="home-images project" href="https://project.jappix.com/"><?php _e("Project"); ?></a>
  70. <?php if(sslCheck() && !httpsForce()) echo sslLink(); ?>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="home-images corporation">
  75. <div class="corp_network">
  76. <h2 class="nomargin">Jappix.com</h2>
  77. <div class="tabulate">
  78. <a href="https://www.jappix.com/">
  79. <span class="name">Jappix</span>
  80. <span class="desc"><?php _e("Social channel, chat and more."); ?></span>
  81. </a>
  82. <a href="https://me.jappix.com/">
  83. <span class="name">Jappix Me</span>
  84. <span class="desc"><?php _e("Create your public profile."); ?></span>
  85. </a>
  86. <a href="https://mini.jappix.com/">
  87. <span class="name">Jappix Mini</span>
  88. <span class="desc"><?php _e("A mini-chat for your website."); ?></span>
  89. </a>
  90. <a href="https://project.jappix.com/">
  91. <span class="name">Jappix Project</span>
  92. <span class="desc"><?php _e("Get Jappix, get support."); ?></span>
  93. </a>
  94. <a href="https://stats.jappix.com/">
  95. <span class="name">Jappix Stats</span>
  96. <span class="desc"><?php _e("Statistics around Jappix."); ?></span>
  97. </a>
  98. </div>
  99. <h2>Jappix.org</h2>
  100. <div class="tabulate">
  101. <a href="http://jappix.org/">
  102. <span class="name">Jappix Download</span>
  103. <span class="desc"><?php _e("Download Jappix for free."); ?></span>
  104. </a>
  105. </div>
  106. <h2>Jappix.net</h2>
  107. <div class="tabulate">
  108. <a href="http://jappix.net/">
  109. <span class="name">Jappix Network</span>
  110. <span class="desc"><?php _e("Find a public Jappix node."); ?></span>
  111. </a>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="locale" data-keepget="<?php echo(keepGet('l', false)); ?>">
  116. <div class="current">
  117. <div class="current_align"><?php echo(getLanguageName($locale)); ?></div>
  118. </div>
  119. </div>
  120. <?php
  121. // Add the notice
  122. $conf_notice = readNotice();
  123. $type_notice = $conf_notice['type'];
  124. $text_notice = $conf_notice['notice'];
  125. // Simple notice
  126. if(($type_notice == 'simple') || ($type_notice == 'advanced')) {
  127. // We must encode special HTML characters
  128. if($type_notice == 'simple')
  129. $text_notice = '<span class="title home-images">'.T_("Notice").'</span><span class="text">'.htmlentities($text_notice).'</span>';
  130. // Echo the notice
  131. echo('<div class="notice '.$type_notice.'">'.$text_notice.'</div>');
  132. }
  133. ?>
  134. </div>
  135. <!-- END HOMEPAGE -->
  136. <?php } ?>
  137. <!-- BEGIN BOARD -->
  138. <div id="board">
  139. <noscript class="one-board info visible"><?php _e("JavaScript is missing in your web browser, so that you will not be able to launch Jappix! Please fix this."); ?></noscript>
  140. </div>
  141. <!-- END BOARD -->
  142. </body>
  143. </html>
  144. <!-- Jappix <?php echo $version; ?> - An open social platform -->