1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jappix_ynh.git synced 2024-09-03 19:26:19 +02:00
jappix_ynh/source/php/mobile.php
titoko titoko 96663cd7da add source
2013-11-27 12:56:15 +01:00

78 lines
No EOL
2.3 KiB
PHP
Executable file

<?php
/*
Jappix - An open social platform
This is the Jappix Mobile PHP/HTML code
-------------------------------------------------
License: AGPL
Authors: Valérian Saliou, Camaran
Last revision: 31/08/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" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport" />
<title><?php echo htmlspecialchars(SERVICE_NAME); ?> (<?php _e("Jappix Mobile"); ?>) &bull; <?php echo htmlspecialchars(SERVICE_DESC); ?></title>
<link rel="shortcut icon" href="./favicon.ico" />
<?php echoGetFiles($hash, '', 'css', 'mobile.xml', ''); echo "\n"; ?>
<?php echoGetFiles($hash, $locale, 'js', 'mobile.xml', ''); echo "\n"; ?>
</head>
<body>
<div id="home">
<div class="header">
<div class="mobile-images"></div>
</div>
<noscript>
<div class="notification" id="noscript">
<?php _e("Please enable JavaScript"); ?>
</div>
</noscript>
<div class="notification" id="error">
<?php _e("Error"); ?>
</div>
<div class="notification" id="info">
<?php _e("Please wait..."); ?>
</div>
<div class="login">
<?php _e("Login"); ?>
<form action="#" method="post" onsubmit="return doLogin(this);">
<input class="xid mobile-images" type="text" name="xid" required="" placeholder="<?php _e("jid@domain.tld"); ?>" />
<input class="password mobile-images" type="password" id="pwd" name="pwd" required="" placeholder="<?php _e("Password"); ?>" />
<?php if((REGISTRATION != 'off') && (REGISTER_API != 'on')) { ?>
<label><input class="register" type="checkbox" id="reg" name="reg" /><?php _e("Register"); ?></label>
<?php } ?>
<input type="submit" name="ok" value="<?php _e("Here we go!"); ?>" />
</form>
</div>
<a href="./?m=desktop<?php echo keepGet('m', false); ?>"><?php _e("Desktop"); ?></a>
<?php if(hasLegal()) { ?>- <a href="<?php echo htmlspecialchars(LEGAL); ?>"><?php _e("Legal"); ?></a><?php } ?>
</div>
<?php include(JAPPIX_BASE.'/php/analytics.php'); ?>
</body>
</html>
<!-- Jappix Mobile <?php echo $version; ?> - An open social platform -->