Ran the formatter on all PHP files, added userbar.css
This commit is contained in:
parent
923184ab68
commit
f2a56c2abc
@ -0,0 +1,4 @@
|
||||
html,body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
4
lib/css/userbar.css
Normal file
4
lib/css/userbar.css
Normal file
@ -0,0 +1,4 @@
|
||||
.userbar {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
}
|
@ -24,14 +24,20 @@
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/lib/css/manage.css" rel="stylesheet">
|
||||
<title>Dashboard Home | <?=$GLOBALS['config']['website_name']?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="userbar">
|
||||
</div>
|
||||
<a href="<?=$GLOBALS['config']['installation_path']?>/dashboard/manage">Open Management Console</a>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
@ -10,14 +10,17 @@
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<title>Password Reset | <?=$GLOBALS['config']['website_name']?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<center>
|
||||
<p>Reset your password here - Placeholder</p>
|
||||
</center>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -21,11 +21,13 @@
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<title id="title">Redirect in 5 seconds | <?=$GLOBALS['config']['website_name']?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<center>
|
||||
<h1>You will be redirected to <?=$row['URL']?> in <span id="body-timeout">5</span></h1>
|
||||
@ -33,18 +35,23 @@
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var seconds = 5;
|
||||
function update_timeout (interval) {
|
||||
document.getElementById("title").innerHTML = "Redirect in " + seconds +" seconds | <?=$GLOBALS['config']['website_name']?>";
|
||||
|
||||
function update_timeout(interval) {
|
||||
document.getElementById("title").innerHTML = "Redirect in " + seconds + " seconds | <?=$GLOBALS['config']['website_name']?>";
|
||||
document.getElementById("body-timeout").innerHTML = seconds;
|
||||
if (seconds == 0) {
|
||||
window.location.href = "<?=$row['URL']?>";
|
||||
clearInterval (interval);
|
||||
clearInterval(interval);
|
||||
}
|
||||
}
|
||||
interval = setInterval (function() {update_timeout(interval); seconds = seconds - 1;}, 1000);
|
||||
interval = setInterval(function() {
|
||||
update_timeout(interval);
|
||||
seconds = seconds - 1;
|
||||
}, 1000);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
@ -35,7 +35,8 @@
|
||||
else {
|
||||
?>
|
||||
<DOCTYPE HTML>
|
||||
<html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Installer | OpenShorte</title>
|
||||
@ -47,8 +48,10 @@
|
||||
border-radius: 25px;
|
||||
border-color: #ABABAB;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="mx-auto my-5 col-sm-8 col-md-6 col-xl-4 centered-container">
|
||||
<div class="my-2"></div>
|
||||
@ -131,7 +134,7 @@
|
||||
$('#section_dbdata').show();
|
||||
});
|
||||
$('#btn_next_complete').click(function() {
|
||||
if ( $('#db_password').val() == $('#db_confirmpassword').val() ) {
|
||||
if ($('#db_password').val() == $('#db_confirmpassword').val()) {
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
datatype: "JSON",
|
||||
@ -143,15 +146,17 @@
|
||||
db_password: $('#db_password').val(),
|
||||
db_name: $('#db_name').val(),
|
||||
},
|
||||
success: function (data) {
|
||||
success: function(data) {
|
||||
if (data.status == 200) {
|
||||
$('section').hide();
|
||||
$('#section_complete').show();
|
||||
$('#section_complete div').html(data.message);
|
||||
setInterval(function(){window.location.href=data.homelocation;},5000);
|
||||
setInterval(function() {
|
||||
window.location.href = data.homelocation;
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
error: function(xhr, ajaxOptions, thrownError) {
|
||||
alert(xhr.responseText.message);
|
||||
}
|
||||
});
|
||||
@ -159,6 +164,7 @@
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
@ -49,12 +49,14 @@
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Login | <?=$GLOBALS['config']['website_name']?></title>
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/lib/css/login.css" rel="stylesheet">
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container col-lg-6 col-md-8 col-sm-12 col-xs-12 login-container" id="login-container">
|
||||
<div class="row">
|
||||
@ -81,8 +83,11 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
||||
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/sha512.min.js"></script>
|
||||
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/login.js"></script>
|
||||
<script>var script_name = "<?=$GLOBALS['config']['installation_path']?>/dashboard";</script>
|
||||
<script>
|
||||
var script_name = "<?=$GLOBALS['config']['installation_path']?>/dashboard";
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
|
@ -10,16 +10,18 @@
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Management Panel | <?=$GLOBALS['config']['website_name']?></title>
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.css" integrity="sha256-39jKbsb/ty7s7+4WzbtELS4vq9udJ+MDjGTD5mtxHZ0=" crossorigin="anonymous" />
|
||||
<link href="<?=$GLOBALS['config']['installation_path']?>/lib/css/manage.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button onclick="logout()">Logout</button>
|
||||
<div class="urlList">
|
||||
<?php
|
||||
<?php
|
||||
if ( $result->rowCount ( ) == 0 ) {
|
||||
echo ( "You have not created any URL yet.<br>" );
|
||||
}
|
||||
@ -41,8 +43,11 @@
|
||||
<input type="text" id="form-url" placeholder="URL:">
|
||||
<button onclick="insertNewURL()">Insert new URL</button><br>
|
||||
<div id="responsetext"></div>
|
||||
<script>var script_name = "<?=$GLOBALS['config']['installation_path']?>";</script>
|
||||
<script>
|
||||
var script_name = "<?=$GLOBALS['config']['installation_path']?>";
|
||||
</script>
|
||||
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/manage.js"></script>
|
||||
<script src="<?=$GLOBALS['config']['installation_path']?>/lib/js/logout.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user