Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mobile.php « server - github.com/jappix/jappix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b208e740357a4a6b5142566e81a592bd3a13dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?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"); ?>) &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"; ?>

    <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 -->