-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
142 lines (134 loc) · 8.25 KB
/
index.php
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
/*********************************************************************************************************
* RIVENDELL WEB BROADCAST *
* A WEB SYSTEM TO USE WITH RIVENDELL RADIO AUTOMATION: HTTPS://GITHUB.COM/ELVISHARTISAN/RIVENDELL *
* THIS SYSTEM IS NOT CREATED BY THE DEVELOPER OF RIVENDELL RADIO AUTOMATION. *
* IT'S CREATED AS AN HELP TOOL ONLINE BY ANDREAS OLSSON AFTER HE FIXED BUGS IN AN OLD SCRIPT CREATED BY *
* BRIAN P. MCGLYNN : HTTPS://GITHUB.COM/BPM1992/RIVENDELL/TREE/RDWEB/WEB/RDPHP *
* USE THIS SYSTEM AT YOUR OWN RISK. IT DO DIRECT MODIFICATION ON THE RIVENDELL DATABASE. *
* YOU CAN NOT HOLD US RESPONISBLE IF SOMETHING HAPPENDS TO YOUR SYSTEM. *
* THE DESIGN IS DEVELOP BY SAUGI: HTTPS://GITHUB.COM/ZURAMAI/MAZER *
* MIT LICENSE *
* COPYRIGHT (C) 2024 ANDREAS OLSSON *
* PERMISSION IS HEREBY GRANTED, FREE OF CHARGE, TO ANY PERSON OBTAINING A COPY *
* OF THIS SOFTWARE AND ASSOCIATED DOCUMENTATION FILES (THE "SOFTWARE"), TO DEAL *
* IN THE SOFTWARE WITHOUT RESTRICTION, INCLUDING WITHOUT LIMITATION THE RIGHTS *
* TO USE, COPY, MODIFY, MERGE, PUBLISH, DISTRIBUTE, SUBLICENSE, AND/OR SELL *
* COPIES OF THE SOFTWARE, AND TO PERMIT PERSONS TO WHOM THE SOFTWARE IS *
* FURNISHED TO DO SO, SUBJECT TO THE FOLLOWING CONDITIONS: *
* THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN ALL *
* COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE *
* SOFTWARE. *
*********************************************************************************************************/
require $_SERVER['DOCUMENT_ROOT'] . '/includes/config.php';
if ($user->is_logged_in()) {
header('Location: '.DIR.'/dash');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-status-bar" content="#aa7700">
<meta name="theme-color" content="black">
<link rel="manifest" href="manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:locale" content="<?php if (isset($_COOKIE['lang'])) { echo $_COOKIE['lang']; } else { echo DEFAULTLANG; } ?>" />
<meta property="og:type" content="article" />
<meta property="og:title" content="<?php echo SYSTIT; ?>" />
<meta property="og:url" content="<?php echo DIR; ?>" />
<meta property="og:site_name" content="<?php echo SYSTIT; ?>" />
<link rel="canonical" href="<?php echo DIR; ?>" />
<link rel="shortcut icon" href="<?php echo DIR; ?>/AppImages/favicon.ico" />
<title>
<?= $ml->tr('LOGIN'); ?>
</title>
<link rel="stylesheet" href="<?php echo DIR; ?>/assets/extensions/sweetalert2/sweetalert2.min.css">
<link rel="stylesheet" href="<?php echo DIR; ?>/assets/compiled/css/app.css">
<link rel="stylesheet" href="<?php echo DIR; ?>/assets/compiled/css/app-dark.css">
<link rel="stylesheet" href="<?php echo DIR; ?>/assets/compiled/css/auth.css">
</head>
<body>
<script src="<?php echo DIR; ?>/assets/static/js/initTheme.js"></script>
<div id="auth">
<div class="row h-100">
<div class="col-lg-5 col-12">
<div id="auth-left">
<div class="auth-logo">
<a href="index.php"><img src="<?php echo DIR; ?>/assets/static/images/rivlogo/rdairplay-128x128.png"
alt="Logo"></a>
</div>
<h1 class="auth-title">
<?= $ml->tr('LOGIN'); ?>
</h1>
<p class="auth-subtitle mb-5">
<?= $ml->tr('RIVLOGIN'); ?>
</p>
<form id="login_form" action="index.php">
<div class="form-group position-relative has-icon-left mb-4">
<input type="text" class="form-control form-control-xl" name="username"
placeholder="<?= $ml->tr('USERNAME'); ?>">
<div class="form-control-icon">
<i class="bi bi-person"></i>
</div>
</div>
<div class="form-group position-relative has-icon-left mb-4">
<input type="password" class="form-control form-control-xl" name="password"
placeholder="<?= $ml->tr('PASSWORD'); ?>">
<div class="form-control-icon">
<i class="bi bi-shield-lock"></i>
</div>
</div>
<div class="form-check form-check-lg d-flex align-items-end">
<input class="form-check-input me-2" type="checkbox" value="1" name="remember"
id="flexCheckDefault">
<label class="form-check-label text-gray-600" for="flexCheckDefault">
<?= $ml->tr('KEEPLOGGEDIN'); ?>
</label>
</div>
<button class="btn btn-primary btn-block btn-lg shadow-lg mt-5">
<?= $ml->tr('LOGIN'); ?>
</button>
</form>
<?php if (USERESET == 1) { ?>
<div class="text-center mt-5 text-lg fs-4">
<p><a class="font-bold" href="<?php echo DIR; ?>/forgot">
<?= $ml->tr('FORGOTPASS'); ?>
</a></p>
</div>
<?php } ?>
</div>
</div>
<div class="col-lg-7 d-none d-lg-block">
<div id="auth-right">
</div>
</div>
</div>
</div>
<script src="<?php echo DIR; ?>/assets/extensions/jquery/jquery.min.js"></script>
<script src="<?php echo DIR; ?>/assets/extensions/jqueryvalidation/jquery.validate.min.js"></script>
<script src="<?php echo DIR; ?>/assets/extensions/jqueryvalidation/additional-methods.min.js"></script>
<script src="<?php echo DIR; ?>/assets/extensions/sweetalert2/sweetalert2.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery.cookie-consent/dist/jquery.cookie-consent.min.js"></script>
<script>
var HOST_URL = "<?= DIR ?>";
var TRAN_ENTERUSERNAME = "<?= $ml->tr('ENTERUSERNAME'); ?>";
var TRAN_ENTERPASSWORD = "<?= $ml->tr('ENTERPASSWORD'); ?>";
var TRAN_CHECKUSERPASS = "<?= $ml->tr('CHECKUSERPASS'); ?>";
var TRAN_CHECKUSERPASS = "<?= $ml->tr('CHECKUSERPASS'); ?>";
var TRAN_OK = "<?= $ml->tr('OK'); ?>";
var TRAN_THISSITEUSECOOKIE = "<?= $ml->tr('THISSITEUSECOOKIE'); ?>";
var TRAN_THISSITEUSECOOKIEOK = "<?= $ml->tr('THISSITEUSECOOKIEOK'); ?>";
var TRAN_BUG = "<?= $ml->tr('BUG'); ?>";
</script>
<script src="<?php echo DIR; ?>/assets/static/js/login.js"></script>
<script src="<?php echo DIR; ?>/app.js"></script>
</body>
</html>