<commit_before><?php

/*

Jappix - An open social platform
This is the Jappix Desktop PHP/HTML code

-------------------------------------------------

License: AGPL
Author: Vanaryon
Last revision: 01/04/12

*/

// 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" />
	<title><?php echo htmlspecialchars(SERVICE_NAME); ?> &bull; <?php _e("An open social network"); ?></title>
	<link rel="shortcut icon" href="./favicon.ico" />
	
	<?php echoGetFiles($hash, '', 'css', 'desktop.xml', ''); echo "\n"; ?>
	<!--[if lt IE 9]><?php echoGetFiles($hash, '', 'css', '', 'ie.css'); ?><![endif]-->
	
	<?php echoGetFiles($hash, $locale, 'js', 'desktop.xml', ''); echo "\n";
	
	if(anonymousMode()) {
		echo "\n\t";
		echoGetFiles($hash, '', 'css', 'anonymous.xml', '');
		echo "\n\t";
		echoGetFiles($hash, $locale, 'js', 'anonymous.xml', '');
		echo "\n";
	}
	
	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>
		
		<div class="main">
			<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 a great social platform, that you can access wherever you are, whenever you want and communicate with whovever you want."); ?></p>
				<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>
			</div>
			
			<div class="right">
				<h1 class="top default"><?php _e("Hi there!"); ?></h1>
				
				<div class="default homediv">
					<p><?php printf(T_("Welcome on %1s, “%2s”."), htmlspecialchars(SERVICE_NAME), htmlspecialchars(SERVICE_DESC)); ?></p>
					
					<p><?php _e("Login to your existing XMPP account or create a new one for free!"); ?></p>
					
					<button class="login buttons-images">
						<span class="home-images"></span>
						<span class="text"><?php _e("Login"); ?></span>
					</button>
					
					<button class="register buttons-images">
						<span class="home-images"></span>
						<span class="text"><?php _e("Register"); ?></span>
					</button>
					
					<p class="notice"><?php _e("When you login or register, make sure your password remains secret. Don't give it to others, it is personal!"); ?></p>
				</div>
				
				<div class="navigation">
					<?php
					
						// Keep get var
						$keep_get = keepGet('m', false);
					
					?>
					<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>
		
		<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>
				</div>
				
				<h2>Jappix.org</h2>
				<div class="tabulate">
					<a href="http://jappix.org/">
						<span class="name">Jappix Download</span>
						<span class="desc"><?php _e("Get Jappix, get support."); ?></span>
					</a>
					<a href="http://developer.jappix.org/">
						<span class="name">Jappix Developer</span>
						<span class="desc"><?php _e("Contribute to the Jappix code."); ?></span>
					</a>
				</div>
				
				<h2>Jappix.mobi</h2>
				<div class="tabulate">
					<a href="http://jappix.mobi/">
						<span class="name">Jappix Mobile</span>
						<span class="desc"><?php _e("Jappix for your mobile phone."); ?></span>
					</a>
				</div>
				
				<h2>Jappix.net</h2>
				<div class="tabulate">
					<a href="http://jappix.net/">
						<span class="name">Jappix Network</span>
						<span class="desc"><?php _e("Find a public Jappix node."); ?></span>
					</a>
				</div>
			</div>
		</div>
		
		<div class="home-images aboutus">
			<div class="aboutus_org">
				<span class="version"><b>Jappix</b> <?php echo htmlspecialchars($version); ?></span>
				
				<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">
					<a class="name" href="https://project.jappix.com/contact">Jappix.com</a>
					<a class="desc" href="https://project.jappix.com/contact"><?php _e("Web agency"); ?></a>
				</span>
				
				<?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>
		
		<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
		
			// Add the notice
			$conf_notice = readNotice();
			$type_notice = $conf_notice['type'];
			$text_notice = $conf_notice['notice'];
			<commit_msg>Infobox change<commit_after><?php

/*

Jappix - An open social platform
This is the Jappix Desktop PHP/HTML code

-------------------------------------------------

License: AGPL
Author: Vanaryon
Last revision: 02/04/12

*/

// 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" />
	<title><?php echo htmlspecialchars(SERVICE_NAME); ?> &bull; <?php _e("An open social network"); ?></title>
	<link rel="shortcut icon" href="./favicon.ico" />
	
	<?php echoGetFiles($hash, '', 'css', 'desktop.xml', ''); echo "\n"; ?>
	<!--[if lt IE 9]><?php echoGetFiles($hash, '', 'css', '', 'ie.css'); ?><![endif]-->
	
	<?php echoGetFiles($hash, $locale, 'js', 'desktop.xml', ''); echo "\n";
	
	if(anonymousMode()) {
		echo "\n\t";
		echoGetFiles($hash, '', 'css', 'anonymous.xml', '');
		echo "\n\t";
		echoGetFiles($hash, $locale, 'js', 'anonymous.xml', '');
		echo "\n";
	}
	
	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>
		
		<div class="main">
			<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 a great social platform, that you can access wherever you are, whenever you want and communicate with whovever you want."); ?></p>
				<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>
			</div>
			
			<div class="right">
				<h1 class="top default"><?php _e("Hi there!"); ?></h1>
				
				<div class="default homediv">
					<p><?php printf(T_("Welcome on %1s, “%2s”."), htmlspecialchars(SERVICE_NAME), htmlspecialchars(SERVICE_DESC)); ?></p>
					
					<p><?php _e("Login to your existing XMPP account or create a new one for free!"); ?></p>
					
					<button class="login buttons-images">
						<span class="home-images"></span>
						<span class="text"><?php _e("Login"); ?></span>
					</button>
					
					<button class="register buttons-images">
						<span class="home-images"></span>
						<span class="text"><?php _e("Register"); ?></span>
					</button>
					
					<p class="notice"><?php _e("When you login or register, make sure your password remains secret. Don't give it to others, it is personal!"); ?></p>
				</div>
				
				<div class="navigation">
					<?php
					
						// Keep get var
						$keep_get = keepGet('m', false);
					
					?>
					<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>
		
		<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>
				</div>
				
				<h2>Jappix.org</h2>
				<div class="tabulate">
					<a href="http://jappix.org/">
						<span class="name">Jappix Download</span>
						<span class="desc"><?php _e("Get Jappix, get support."); ?></span>
					</a>
					<a href="http://developer.jappix.org/">
						<span class="name">Jappix Developer</span>
						<span class="desc"><?php _e("Contribute to the Jappix code."); ?></span>
					</a>
				</div>
				
				<h2>Jappix.mobi</h2>
				<div class="tabulate">
					<a href="http://jappix.mobi/">
						<span class="name">Jappix Mobile</span>
						<span class="desc"><?php _e("Jappix for your mobile phone."); ?></span>
					</a>
				</div>
				
				<h2>Jappix.net</h2>
				<div class="tabulate">
					<a href="http://jappix.net/">
						<span class="name">Jappix Network</span>
						<span class="desc"><?php _e("Find a public Jappix node."); ?></span>
					</a>
				</div>
			</div>
		</div>
		
		<div class="home-images aboutus">
			<div class="aboutus_org">
				<span class="version"><b>Jappix</b> <?php echo htmlspecialchars($version); ?></span>
				
				<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">
					<a class="name" href="http://frenchtouch.pro/">Frenchtouch</a>
					<a class="desc" href="http://frenchtouch.pro/"><?php _e("Web agency"); ?></a>
				</span>
				
				<?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>
		
		<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
		
			// Add the notice
			$conf_notice = readNotice();
			$type_notice = $conf_notice['type'];
			$text_notice = $conf_notice['notice'];
			
{'fraction_non_alphanumeric': 0.2317035432461705, 'fraction_numerical': 0.0037134457682190935, 'mean_word_length': 3.2258908139915006, 'pattern_counts': {'":': 0, '<': 437, '<?xml version=': 0, '>': 435, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3167273', 'n_tokens_mistral': 5454, 'n_tokens_neox': 4497, 'n_words': 1067}