2014-03-12 14:52:47 +01:00
< ? php
/*
Jappix - An open social platform
This is the Jappix Desktop PHP / HTML code
-------------------------------------------------
License : AGPL
Author : Valérian Saliou , Maranda
*/
// Someone is trying to hack us?
if ( ! defined ( 'JAPPIX_BASE' )) {
exit ;
}
?>
<! DOCTYPE html >
< ? php htmlTag ( $locale ); ?>
< head >
< meta http - equiv = " content-type " content = " text/html; charset=utf-8 " />
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php
// Enable compatibility mode for IE 10
if ( isset ( $_SERVER [ 'HTTP_USER_AGENT' ]) && preg_match ( " /MSIE 10 \ .0/ " , $_SERVER [ 'HTTP_USER_AGENT' ])) {
echo '<meta http-equiv="X-UA-Compatible" content="IE=9" />' ;
echo " \n \t " ;
}
?>
< title >< ? php echo htmlspecialchars ( SERVICE_NAME ); ?> • <?php echo htmlspecialchars(SERVICE_DESC); ?></title>
< link rel = " shortcut icon " href = " ./favicon.ico " />
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php echoGetFiles ( $hash , '' , 'css' , 'desktop.xml' , '' ); echo " \n " ; ?>
<!-- [ if lt IE 9 ] >< ? php echoGetFiles ( $hash , '' , 'css' , '' , 'ie.css' ); ?> <![endif]-->
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php echoGetFiles ( $hash , $locale , 'js' , 'desktop.xml' , '' ); echo " \n " ;
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
if ( anonymousMode ()) {
echo " \n \t " ;
echoGetFiles ( $hash , '' , 'css' , 'anonymous.xml' , '' );
echo " \n \t " ;
echoGetFiles ( $hash , $locale , 'js' , 'anonymous.xml' , '' );
echo " \n " ;
}
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
if ( httpAuthEnabled ()) {
echo " \n \t " ;
echoGetFiles ( $hash , '' , 'js' , 'httpauth.xml' , '' );
echo " \n \t " ;
httpAuthentication ();
echo " \n " ;
} ?>
</ head >
< body class = " body-images " >
< ? php
// Homepage?
if ( ! anonymousMode () && ! httpAuthEnabled ()) { ?>
<!-- BEGIN HOMEPAGE -->
< div id = " home " >
< div class = " home-images plane " ></ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " main " >
< div class = " mainview " >
< div class = " left " >
< div class = " home-images logo " ></ div >
< p class = " upper " >< ? php _e ( " Communicate with the entire world! " ); ?> </p>
< p class = " secondary " >< ? php _e ( " Jappix is an open social platform, that let's you easily get or keep in touch with everyone. " ); ?> </p>
< p class = " secondary " >< ? php _e ( " Join the millions of users who are currently using the XMPP Network (Google Talk, etc), don't stay out! " ); ?> </p>
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " right " >
< h1 class = " top default " >< ? php _e ( " Hi there! " ); ?> </h1>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " default homediv " >
2014-04-08 20:14:28 +02:00
< p >< ? php printf ( T_ ( " Welcome to %1s, “%2s”. " ), htmlspecialchars ( SERVICE_NAME ), htmlspecialchars ( SERVICE_DESC )); ?> </p>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< p >< ? php _e ( " Login to your existing XMPP account or create a new one for free! " ); ?> </p>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< button class = " login buttons-images " >
< span class = " home-images " ></ span >
< span class = " text " >< ? php _e ( " Login " ); ?> </span>
</ button >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< button class = " register buttons-images " >
< span class = " home-images " ></ span >
< span class = " text " >< ? php _e ( " Register " ); ?> </span>
</ button >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< p class = " notice " >< ? php _e ( " For your account safety, when you login or register, make sure your password remains secret. " ); ?> </p>
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " navigation " >
< ? php
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
// Keep get var
$keep_get = keepGet ( 'm' , false );
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
?>
< a class = " home-images mobile " href = " ./?m=mobile<?php echo $keep_get ; ?> " >< span class = " vert_center " >< ? php _e ( " Mobile " ); ?> </span></a>
< ? php if ( showManagerLink ()) { ?>
< a class = " home-images manager " href = " ./?m=manager<?php echo $keep_get ; ?> " >< span class = " vert_center " >< ? php _e ( " Manager " ); ?> </span></a>
< ? php } if ( sslCheck () && ! httpsForce ()) echo sslLink (); ?>
</ div >
</ div >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php if (( ADS_ENABLE == 'on' ) && ( ADS_STANDARD || ADS_STANDARD )) { ?>
< ? php require_once ( './server/functions-advertising.php' ); ?>
< ? php $advertise_link = 'http://www.backlinks.com/?aff=58769' ; ?>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " friendsview " >
< div class = " friends " >
< div class = " group content " >
< ? php displayAdverts ( 'content' , $advertise_link ); ?>
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " group standard " >
< div class = " separator " >
< span class = " sep_top " ></ span >
< span class = " sep_bottom " ></ span >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php displayAdverts ( 'standard' , $advertise_link ); ?>
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< a class = " group refer " href = " <?php echo $advertise_link ; ?> " target = " _blank " >
< div class = " separator " >
< span class = " sep_top " ></ span >
< span class = " sep_bottom " ></ span >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< span class = " home-images icon " ></ span >
< span class = " label " >< ? php _e ( " Advertise here " ); ?> </span>
</ a >
</ div >
</ div >
< ? php } ?>
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " home-images corporation " >
< div class = " corp_network " >
< h2 class = " nomargin " > Jappix . com </ h2 >
< div class = " tabulate " >
< a href = " https://jappix.com/ " >
< span class = " name " > Jappix </ span >
< span class = " desc " >< ? php _e ( " Social channel, chat and more. " ); ?> </span>
</ a >
< a href = " https://me.jappix.com/ " >
< span class = " name " > Jappix Me </ span >
< span class = " desc " >< ? php _e ( " Create your public profile. " ); ?> </span>
</ a >
< a href = " https://mini.jappix.com/ " >
< span class = " name " > Jappix Mini </ span >
< span class = " desc " >< ? php _e ( " A mini-chat for your website. " ); ?> </span>
</ a >
< a href = " https://project.jappix.com/ " >
< span class = " name " > Jappix Project </ span >
< span class = " desc " >< ? php _e ( " Get Jappix, get support. " ); ?> </span>
</ a >
< a href = " https://stats.jappix.com/ " >
< span class = " name " > Jappix Stats </ span >
< span class = " desc " >< ? php _e ( " Statistics around Jappix. " ); ?> </span>
</ a >
< a href = " https://legal.jappix.com/ " >
< span class = " name " > Jappix Legal </ span >
< span class = " desc " >< ? php _e ( " Legal disclaimer for Jappix. " ); ?> </span>
</ a >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< h2 > Jappix . org </ h2 >
< div class = " tabulate " >
2014-11-25 20:12:58 +01:00
< a href = " https://jappix.org/ " >
2014-03-12 14:52:47 +01:00
< span class = " name " > Jappix Download </ span >
< span class = " desc " >< ? php _e ( " Get Jappix, get support. " ); ?> </span>
</ a >
< a href = " https://github.com/jappix/jappix " >
< span class = " name " > Jappix ( GitHub ) </ span >
< span class = " desc " >< ? php _e ( " Contribute to the Jappix code. " ); ?> </span>
</ a >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< h2 > Jappix . pro </ h2 >
< div class = " tabulate " >
< a href = " https://jappix.pro/ " >
< span class = " name " > Jappix Pro </ span >
< span class = " desc " >< ? php _e ( " Jappix for your company. " ); ?> </span>
</ a >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< h2 > Jappix . net </ h2 >
< div class = " tabulate " >
2014-11-25 20:12:58 +01:00
< a href = " https://jappix.net/ " >
2014-03-12 14:52:47 +01:00
< span class = " name " > Jappix Network </ span >
< span class = " desc " >< ? php _e ( " Find a public Jappix node. " ); ?> </span>
</ a >
</ div >
</ div >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< div class = " home-images aboutus " >
< div class = " aboutus_org " >
< span class = " version " >< b > Jappix </ b > < ? php echo htmlspecialchars ( $version ); ?> </span>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< h2 >< ? php _e ( " Credits " ); ?> </h2>
< span class = " one " >
< a class = " name " href = " http://www.post-pro.fr/ " > PostPro </ a >
< a class = " desc " href = " http://www.post-pro.fr/ " >< ? php _e ( " Association " ); ?> </a>
</ span >
< span class = " one " >
2014-11-25 23:42:38 +01:00
< a class = " name " href = " https://hakuma.holdings/ " > Hakuma Holdings </ a >
< a class = " desc " href = " https://hakuma.holdings/ " >< ? php _e ( " Company " ); ?> </a>
2014-03-12 14:52:47 +01:00
</ span >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php if ( hasLegal ()) { ?>
< h2 >< ? php _e ( " Legal " ); ?> </h2>
< span class = " one " >
< a class = " name " href = " <?php echo htmlspecialchars(LEGAL); ?> " >< ? php _e ( " Legal disclaimer " ); ?> </a>
< a class = " desc " href = " <?php echo htmlspecialchars(LEGAL); ?> " >< ? php _e ( " Terms of use and legal " ); ?> </a>
</ span >
< ? php } ?>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php if ( hasOwner ()) { ?>
< h2 >< ? php _e ( " Owner " ); ?> </h2>
< span class = " one " >
< a class = " name " href = " <?php echo htmlspecialchars(OWNER_WEBSITE); ?> " >< ? php echo htmlspecialchars ( OWNER_NAME ); ?> </a>
< a class = " desc " href = " <?php echo htmlspecialchars(OWNER_WEBSITE); ?> " >< ? php _e ( " Node owner " ); ?> </a>
</ span >
< ? php } ?>
</ div >
</ div >
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php if ( ! LANGUAGE || LANGUAGE == 'all' ) { ?>
< div class = " locale " data - keepget = " <?php echo(keepGet('l', false)); ?> " >
< div class = " current " >
< div class = " current_align " >< ? php echo ( getLanguageName ( $locale )); ?> </div>
</ div >
</ div >
< ? php } ?>
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
< ? php
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
// Add the notice
$conf_notice = readNotice ();
$type_notice = $conf_notice [ 'type' ];
$text_notice = $conf_notice [ 'notice' ];
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
// Simple notice
if (( $type_notice == 'simple' ) || ( $type_notice == 'advanced' )) {
// We must encode special HTML characters
if ( $type_notice == 'simple' )
$text_notice = '<span class="title home-images">' . T_ ( " Notice " ) . '</span><span class="text">' . htmlentities ( $text_notice ) . '</span>' ;
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
// Echo the notice
echo ( '<div class="notice ' . $type_notice . '">' . $text_notice . '</div>' );
}
2014-11-25 23:42:38 +01:00
2014-03-12 14:52:47 +01:00
?>
</ div >
<!-- END HOMEPAGE -->
< ? php } ?>
<!-- BEGIN BOARD -->
< div id = " board " >
< 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>
</ div >
<!-- END BOARD -->
< ? php include ( JAPPIX_BASE . '/server/analytics.php' ); ?>
</ body >
</ html >
<!-- Jappix < ? php echo $version ; ?> - An open social platform -->