5 Jappix - An open social platform
6 This is the Jappix Desktop PHP/HTML code
8 -------------------------------------------------
12 Last revision: 16/01/12
16 // Someone is trying to hack us?
17 if(!defined('JAPPIX_BASE'))
22 <?php htmlTag($locale); ?>
25 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
26 <title><?php echo htmlspecialchars(SERVICE_NAME); ?> • <?php _e("An open social network"); ?></title>
27 <link rel="shortcut icon" href="./favicon.ico" />
29 <?php echoGetFiles($hash, '', 'css', 'desktop.xml', ''); echo "\n"; ?>
30 <!--[if lt IE 9]><?php echoGetFiles($hash, '', 'css', '', 'ie.css'); ?><![endif]-->
32 <?php echoGetFiles($hash, $locale, 'js', 'desktop.xml', ''); echo "\n";
36 echoGetFiles($hash, '', 'css', 'anonymous.xml', '');
38 echoGetFiles($hash, $locale, 'js', 'anonymous.xml', '');
43 <body class="body-images">
48 if(!anonymousMode()) { ?>
49 <!-- BEGIN HOMEPAGE -->
51 <div class="home-images plane"></div>
55 <div class="home-images logo"></div>
56 <p class="upper"><?php _e("Communicate with the entire world!"); ?></p>
57 <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>
58 <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>
62 <h1 class="top default"><?php _e("Hi there!"); ?></h1>
64 <div class="default homediv">
65 <p><?php printf(T_("Welcome on %1s, ā%2sā."), htmlspecialchars(SERVICE_NAME), htmlspecialchars(SERVICE_DESC)); ?></p>
67 <p><?php _e("Login to your existing XMPP account or create a new one for free!"); ?></p>
69 <button class="login buttons-images">
70 <span class="home-images"></span>
71 <span class="text"><?php _e("Login"); ?></span>
74 <button class="register buttons-images">
75 <span class="home-images"></span>
76 <span class="text"><?php _e("Register"); ?></span>
79 <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>
82 <div class="navigation">
86 $keep_get = keepGet('m', false);
89 <a class="home-images mobile" href="./?m=mobile<?php echo $keep_get; ?>"><?php _e("Mobile"); ?></a>
90 <?php if(showManagerLink()) { ?>
91 <a class="home-images manager" href="./?m=manager<?php echo $keep_get; ?>"><?php _e("Manager"); ?></a>
93 <a class="home-images project" href="https://project.jappix.com/"><?php _e("Project"); ?></a>
94 <?php if(sslCheck() && !httpsForce()) echo sslLink(); ?>
99 <div class="home-images corporation">
100 <div class="corp_network">
101 <h2 class="nomargin">Jappix.com</h2>
102 <div class="tabulate">
103 <a href="https://www.jappix.com/">
104 <span class="name">Jappix</span>
105 <span class="desc"><?php _e("Social channel, chat and more."); ?></span>
107 <a href="https://me.jappix.com/">
108 <span class="name">Jappix Me</span>
109 <span class="desc"><?php _e("Create your public profile."); ?></span>
111 <a href="https://mini.jappix.com/">
112 <span class="name">Jappix Mini</span>
113 <span class="desc"><?php _e("A mini-chat for your website."); ?></span>
115 <a href="https://project.jappix.com/">
116 <span class="name">Jappix Project</span>
117 <span class="desc"><?php _e("Get Jappix, get support."); ?></span>
119 <a href="https://stats.jappix.com/">
120 <span class="name">Jappix Stats</span>
121 <span class="desc"><?php _e("Statistics around Jappix."); ?></span>
126 <div class="tabulate">
127 <a href="http://jappix.org/">
128 <span class="name">Jappix Download</span>
129 <span class="desc"><?php _e("Download Jappix for free."); ?></span>
134 <div class="tabulate">
135 <a href="http://jappix.net/">
136 <span class="name">Jappix Network</span>
137 <span class="desc"><?php _e("Find a public Jappix node."); ?></span>
143 <div class="locale" data-keepget="<?php echo(keepGet('l', false)); ?>">
144 <div class="current">
145 <div class="current_align"><?php echo(getLanguageName($locale)); ?></div>
152 $conf_notice = readNotice();
153 $type_notice = $conf_notice['type'];
154 $text_notice = $conf_notice['notice'];
157 if(($type_notice == 'simple') || ($type_notice == 'advanced')) {
158 // We must encode special HTML characters
159 if($type_notice == 'simple')
160 $text_notice = '<span class="title home-images">'.T_("Notice").'</span><span class="text">'.htmlentities($text_notice).'</span>';
163 echo('<div class="notice '.$type_notice.'">'.$text_notice.'</div>');
168 <!-- END HOMEPAGE -->
173 <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>
181 <!-- Jappix <?php echo $version; ?> - An open social platform -->