diff options
Diffstat (limited to 'server/mobile.php')
-rw-r--r-- | server/mobile.php | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/server/mobile.php b/server/mobile.php deleted file mode 100644 index 7b208e74..00000000 --- a/server/mobile.php +++ /dev/null @@ -1,100 +0,0 @@ -<?php - -/* - -Jappix - An open social platform -This is the Jappix Mobile PHP/HTML code - -------------------------------------------------- - -License: AGPL -Authors: ValĂ©rian Saliou, Camaran - -*/ - -// 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, minimal-ui" name="viewport" /> - <title><?php echo htmlspecialchars(SERVICE_NAME); ?> (<?php _e("Jappix Mobile"); ?>) • <?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"; ?> - - <script type="text/javascript"> - var HTTP_AUTH = {}; - </script> - - <?php - if(httpAuthEnabled()) { - echo "\n\t"; - $auth_credentials = httpAuthCredentials(); - ?> - <script type="text/javascript"> - HTTP_AUTH = { - user: <?php echo json_encode($auth_credentials['user']); ?>, - password: <?php echo json_encode($auth_credentials['password']); ?>, - host: <?php echo json_encode($auth_credentials['host']); ?>, - } - </script> - <?php - 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 id="login-form" action="#" method="post" onsubmit="return Mobile.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.'/server/analytics.php'); ?> -</body> - -</html> - -<!-- Jappix Mobile <?php echo $version; ?> - An open social platform --> |