Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsengelen committed Apr 27, 2021
1 parent f3cb81c commit 93ed0f3
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 35 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 nielsengelen
Copyright (c) 2021 VeeamHUB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
100 changes: 69 additions & 31 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,41 +53,35 @@
}
}
}
?>

if (file_exists('setup.php')) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo $title; ?></title>
<base href="/" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/fontawesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/sweetalert2.min.css" />
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script src="js/fontawesome.min.js"></script>
<script src="js/filesize.min.js"></script>
<script src="js/jquery.redirect.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/sweetalert2.all.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Error</title>
<base href="/" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/fontawesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/sweetalert2.min.css" />
<script src="js/sweetalert2.all.min.js"></script>
</head>
<body>
<?php
if (file_exists('setup.php')) {
?>
<script>
Swal.fire({
icon: 'error',
title: 'Error',
allowOutsideClick: false,
showConfirmButton: false,
text: 'Setup file is still available within the installation folder. You must remove this file in order to continue'
});
</script>
<script>
Swal.fire({
icon: 'error',
title: 'Error',
allowOutsideClick: false,
showConfirmButton: false,
text: 'Setup file is still available within the installation folder. You must remove this file in order to continue'
});
</script>
</body>
</html>
<?php
die();
}
Expand All @@ -109,6 +103,28 @@

if (isset($user) && strtolower($authtype) != 'mfa' && $check === false && strtolower($administrator) == 'yes') {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo $title; ?></title>
<base href="/" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/fontawesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/sweetalert2.min.css" />
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script src="js/fontawesome.min.js"></script>
<script src="js/filesize.min.js"></script>
<script src="js/jquery.redirect.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/sweetalert2.all.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<ul class="nav navbar-header">
Expand Down Expand Up @@ -452,6 +468,28 @@ function loadPage(call) {
} else {
unset($_SESSION);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo $title; ?></title>
<base href="/" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/fontawesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/sweetalert2.min.css" />
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script src="js/fontawesome.min.js"></script>
<script src="js/filesize.min.js"></script>
<script src="js/jquery.redirect.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/sweetalert2.all.min.js"></script>
</head>
<body>
<section class="login-block">
<div class="container login-container">
<div class="row">
Expand Down Expand Up @@ -714,4 +752,4 @@ function storeValue(key, value) {
}
?>
</body>
</html>
</html>
7 changes: 5 additions & 2 deletions microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function getDeviceCode($clientid, $tenantid, $scope) {
'headers' => [
'Accept' => 'application/json',
'Content-Type' => 'application/x-www-form-urlencoded',
]
],
'http_errors' => false,
'verify' => false
]);


Expand Down Expand Up @@ -58,7 +60,8 @@ function getToken($clientid, $tenantid, $devicecode) {
'headers' => [
'Accept' => 'application/json',
'Content-Type' => 'application/x-www-form-urlencoded',
]
],
'verify' => false
]);

if ($response->getStatusCode() === 200) {
Expand Down
2 changes: 1 addition & 1 deletion onedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ function loadAccounts(org, offset) {
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">Restore <span class="caret"></span></button> \
<ul class="dropdown-menu dropdown-menu-right"> \
<li class="dropdown-header">Export to</li> \
<li><a class="dropdown-link" href="javascript:void(0);" onclick="downloadZIP( \'' + response.results[i].id + '\', \'' + response.results[i].name + '\', \'documents\', \'full\')"><i class="fa fa-download"></i> ZIP file</a></li> \
<li><a class="dropdown-link" href="javascript:void(0);" onclick="downloadZIP( \'' + response.results[i].name + '\', \'' + response.results[i].name + '\', \'documents\', \'full\')"><i class="fa fa-download"></i> ZIP file</a></li> \
<li class="divider"></li> \
<li class="dropdown-header">Restore to</li> \
<li><a class="dropdown-link" href="javascript:void(0);" onclick="restoreToOriginal(\'' + response.results[i].id + '\', \'documents\', \'full\')"><i class="fa fa-upload"></i> Original location</a></li> \
Expand Down

0 comments on commit 93ed0f3

Please sign in to comment.