]> git.mxchange.org Git - friendica-addons.git/blob - jappixmini/jappix/php/desktop.php
Merge branch '3.6-release'
[friendica-addons.git] / jappixmini / jappix / php / desktop.php
1 <?php
2
3 /*
4
5 Jappix - An open social platform
6 This is the Jappix Desktop PHP/HTML code
7
8 -------------------------------------------------
9
10 License: AGPL
11 Author: Vanaryon
12 Last revision: 16/01/12
13
14 */
15
16 // Someone is trying to hack us?
17 if(!defined('JAPPIX_BASE'))
18         exit;
19
20 ?>
21 <!DOCTYPE html>
22 <?php htmlTag($locale); ?>
23
24 <head>
25         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
26         <title><?php echo htmlspecialchars(SERVICE_NAME); ?> &bull; <?php _e("An open social network"); ?></title>
27         <link rel="shortcut icon" href="./favicon.ico" />
28         
29         <?php echoGetFiles($hash, '', 'css', 'desktop.xml', ''); echo "\n"; ?>
30         <!--[if lt IE 9]><?php echoGetFiles($hash, '', 'css', '', 'ie.css'); ?><![endif]-->
31         
32         <?php echoGetFiles($hash, $locale, 'js', 'desktop.xml', ''); echo "\n";
33         
34         if(anonymousMode()) {
35                 echo "\n\t";
36                 echoGetFiles($hash, '', 'css', 'anonymous.xml', '');
37                 echo "\n\t";
38                 echoGetFiles($hash, $locale, 'js', 'anonymous.xml', '');
39                 echo "\n";
40         } ?>
41 </head>
42
43 <body class="body-images">
44
45 <?php
46
47 // Homepage?
48 if(!anonymousMode()) { ?>
49         <!-- BEGIN HOMEPAGE -->
50         <div id="home">
51                 <div class="home-images plane"></div>
52                 
53                 <div class="main">
54                         <div class="left">
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>
59                         </div>
60                         
61                         <div class="right">
62                                 <h1 class="top default"><?php _e("Hi there!"); ?></h1>
63                                 
64                                 <div class="default homediv">
65                                         <p><?php printf(T_("Welcome on %1s, ā€œ%2sā€."), htmlspecialchars(SERVICE_NAME), htmlspecialchars(SERVICE_DESC)); ?></p>
66                                         
67                                         <p><?php _e("Login to your existing XMPP account or create a new one for free!"); ?></p>
68                                         
69                                         <button class="login buttons-images">
70                                                 <span class="home-images"></span>
71                                                 <span class="text"><?php _e("Login"); ?></span>
72                                         </button>
73                                         
74                                         <button class="register buttons-images">
75                                                 <span class="home-images"></span>
76                                                 <span class="text"><?php _e("Register"); ?></span>
77                                         </button>
78                                         
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>
80                                 </div>
81                                 
82                                 <div class="navigation">
83                                         <?php
84                                         
85                                                 // Keep get var
86                                                 $keep_get = keepGet('m', false);
87                                         
88                                         ?>
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>
92                                         <?php } ?>
93                                         <a class="home-images project" href="https://project.jappix.com/"><?php _e("Project"); ?></a>
94                                         <?php if(sslCheck() && !httpsForce()) echo sslLink(); ?>
95                                 </div>
96                         </div>
97                 </div>
98                 
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>
106                                         </a>
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>
110                                         </a>
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>
114                                         </a>
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>
118                                         </a>
119                                         <a href="https://stats.jappix.com/">
120                                                 <span class="name">Jappix Stats</span>
121                                                 <span class="desc"><?php _e("Statistics around Jappix."); ?></span>
122                                         </a>
123                                 </div>
124                                 
125                                 <h2>Jappix.org</h2>
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>
130                                         </a>
131                                 </div>
132                                 
133                                 <h2>Jappix.net</h2>
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>
138                                         </a>
139                                 </div>
140                         </div>
141                 </div>
142                 
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>
146                         </div>
147                 </div>
148                 
149                 <?php
150                 
151                         // Add the notice
152                         $conf_notice = readNotice();
153                         $type_notice = $conf_notice['type'];
154                         $text_notice = $conf_notice['notice'];
155                         
156                         // Simple 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>';
161                                 
162                                 // Echo the notice
163                                 echo('<div class="notice '.$type_notice.'">'.$text_notice.'</div>');
164                         }
165                 
166                 ?>
167         </div>
168         <!-- END HOMEPAGE -->
169 <?php } ?>
170
171 <!-- BEGIN BOARD -->
172 <div id="board">
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>
174 </div>
175 <!-- END BOARD -->
176
177 </body>
178
179 </html>
180
181 <!-- Jappix <?php echo $version; ?> - An open social platform -->