source: admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/login.php @ 2185

Last change on this file since 2185 was 2185, checked in by joamuran, 3 years ago

Added aes encryption for n4d answers

File size: 3.7 KB
RevLine 
[1055]1<html>
2<head>
3
4        <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css">
[2002]5       
6        <!--link rel="stylesheet" href="lib/bootstrap-design/css/material.min.css"-->
7        <link rel="stylesheet" href="lib/bootstrap-material-design/css/bootstrap-material-design.min.css">
8        <link rel="stylesheet" href="lib/bootstrap-material-design/css/ripples.min.css">
9        <!--link rel="stylesheet" href="lib/bootstrap-material-design/css/material-fullpalette.min.css"-->
[1055]10        <link rel="stylesheet" href="lib/snackbar/snackbar.css">
[2002]11        <!--link rel="stylesheet" href="lib/bootstrap-design/css/ripples.min.css"-->
12        <!--link rel="stylesheet" href="lib/material/css/ripples.min.css"-->
13        <!--link rel="stylesheet" href="lib/bootstrap-design/css/roboto.min.css"-->
14        <link rel="stylesheet" href="lib/bootstrap-material-design/css/material-custom.css">
15        <link rel="stylesheet" href="css/main.css">
[1055]16
[2002]17       
18        <!--jquery -->
19        <script type="text/javascript" src="lib/jquery/jquery.js"></script>
[2115]20        <script type="text/javascript" src="lib/jsencrypt/jsencrypt.js"></script>
[2002]21        <!--script type="text/javascript" src="lib/jquery-ui/js/jquery-ui-1.10.4.custom.js"></script-->
22        <!--script type="text/javascript" src="lib/jquery.xmlrpc.js"></script-->
23       
[1055]24        <!--Utilities -->
25        <script type="text/javascript" src="lib/waitwin.js"></script>
26        <script type="text/javascript" src="lib/utils.js"></script>
27
28
29        <script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
30        <script type="text/javascript" src="lib/snackbar/snackbar.min.js"></script>
31
32        <!-- Material Design -->
[2002]33        <!--script type="text/javascript" src="lib/bootstrap-design/js/ripples.min.js"></script-->
34        <script type="text/javascript" src="lib/bootstrap-material-design/js/ripples.min.js"></script>
35        <!--script type="text/javascript" src="lib/bootstrap-design/js/material.min.js"></script-->
36        <script type="text/javascript" src="lib/bootstrap-material-design/js/material.min.js"></script>
[2185]37       
38        <script type="text/javascript" src="lib/cryptojs-aes/aes.js"></script>
39    <script type="text/javascript" src="lib/cryptojs-aes/aes-json-format.js"></script>
[1055]40
41
42        <!--OWNER-->
43        <script type="text/javascript" src="lib/i18n.js"></script>
44        <script type="text/javascript" src="js/login.js"></script>
45
46
47
48
49</head>
50<body>
[1512]51       
52<?php
53function gt($text){
54        $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
55        switch ($lang){
56    case "en":
57        if ($text=="Authentication") return "Authentication";
58                else if ($text=="Username") return "Username";
59                else if ($text=="login") return "Login";
60                else return "Password";
61        break;
62        case "es":
63        if ($text=="Authentication") return "Autenticación";
64                else if ($text=="Username") return "Usuario";
65                else if ($text=="login") return "Entrar";
66                else return "Contraseña";
67        break;
68        default:
69        if ($text=="Authentication") return "Autenticació";
70                else if ($text=="Username") return "Usuari";
71                else if ($text=="login") return "Entra";
72                else return "Contrassenya";
73        break;
74        }
75}
76?>
[1055]77
78<div id="login" class="jumbotron col-lg-4 col-lg-offset-4" style="margin-top: 200px;">
[1512]79        <h3><?php echo (gt("Authentication")); ?></h3>
[1055]80        <div id="loginform" class="form-group">
81
[1512]82                <label for="input_username" class="control-label"><?php echo (gt("Username")); ?></label>
83                <input type="text" id="input_username" class="form-control"></input>
84                <label for="input_username" class="control-label"><?php echo (gt("Password")); ?></label>
[1055]85                <input type="password" id="input_password" class="form-control"></input>
86
87
[2002]88                <!--div style="margin-top: 10px; margin-left: 100px;"-->
89                <div style="float:right;">
[1512]90                        <button id="LoginButton" class="btn btn-primary btn-lg" value="<?php gt("login");?>"></button>
[1055]91                </div>
92        </div></div>
93        <div id="msg_err"></div>
94</div>
95
96
97<div id='snack' data-toggle='snackbar' data-html-allowed='true' data-content=''></div>
98</body>
99</html>
Note: See TracBrowser for help on using the repository browser.