Integrating latest 47acbe8

This commit is contained in:
alexpete
2021-03-25 13:57:57 -07:00
parent 448c549698
commit 75dc720198
10312 changed files with 2711566 additions and 671451 deletions
@@ -0,0 +1,5 @@
Authtype Basic
AuthName "Lumberyard HTML authentication"
AuthUserFile /var/www/html/lybuilds/.htpasswd
Require valid-user
@@ -0,0 +1 @@
lumbery:$apr1$Kuzti5tP$EDIIG5pMBni0lNkxLI3F6/
@@ -0,0 +1,10 @@
<?php
return array (
'bucket' => 'pogchamp',
'expiry' => '60',
'sql_username' => 'lumbery',
'sql_pass' => 'Builder99',
'sql_database_name' => 'lybuilds',
'sql_host' => 'localhost'
);
?>
@@ -0,0 +1,56 @@
#nicelist {
width: 250px;
}
#content {
width: 800px;
margin-left: auto;
margin-right: auto;
margin-top:30px;
}
h2 {
font: 400 40px/1.5 Helvetica, Verdana, sans-serif;
margin: 0;
padding: 0;
}
h3 {
font: 200 20px/1.5 Lucida Grande, Verdana, sans-serif;
margin: 0;
padding: 0;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
font: 200 20px/1.5 Helvetica, Verdana, sans-serif;
border-bottom: 1px solid #ccc;
}
li:last-child {
border: none;
}
li a {
text-decoration: none;
color: #6ca4c8;
display: block;
width: 400px;
-webkit-transition: font-size 0.3s ease, background-color 0.3s ease;
-moz-transition: font-size 0.3s ease, background-color 0.3s ease;
-o-transition: font-size 0.3s ease, background-color 0.3s ease;
-ms-transition: font-size 0.3s ease, background-color 0.3s ease;
transition: font-size 0.3s ease, background-color 0.3s ease;
}
li a:hover {
font-size: 30px;
background: #f6f6f6;
}
@@ -0,0 +1,154 @@
/*
* * Copyright (c) 2012-2013 Thibaut Courouble
* * http://www.cssflow.com
* *
* * Licensed under the MIT License:
* * http://www.opensource.org/licenses/mit-license.php
* */
body {
font: 13px/20px 'Lucida Grande', Tahoma, Verdana, sans-serif;
color: #404040;
}
.container {
margin: 80px auto;
width: 640px;
}
.login {
position: relative;
margin: 0 auto;
padding: 20px 20px 20px;
width: 310px;
background: white;
border-radius: 3px;
@include box-shadow(0 0 200px rgba(white, .5), 0 1px 2px rgba(black, .3));
&:before {
content: '';
position: absolute;
top: -8px; right: -8px; bottom: -8px; left: -8px;
z-index: -1;
background: rgba(black, .08);
border-radius: 4px;
}
h1 {
margin: -20px -20px 21px;
line-height: 40px;
font-size: 15px;
font-weight: bold;
color: #555;
text-align: center;
text-shadow: 0 1px white;
background: #f3f3f3;
border-bottom: 1px solid #cfcfcf;
border-radius: 3px 3px 0 0;
@include linear-gradient(top, whiteffd, #eef2f5);
@include box-shadow(0 1px #f5f5f5);
}
p { margin: 20px 0 0; }
p:first-child { margin-top: 0; }
input[type=text], input[type=password] { width: 278px; }
p.remember_me {
float: left;
line-height: 31px;
label {
font-size: 12px;
color: #777;
cursor: pointer;
}
input {
position: relative;
bottom: 1px;
margin-right: 4px;
vertical-align: middle;
}
}
p.submit { text-align: right; }
}
.login-help {
margin: 20px 0;
font-size: 11px;
color: white;
text-align: center;
text-shadow: 0 1px #2a85a1;
a {
color: #cce7fa;
text-decoration: none;
&:hover { text-decoration: underline; }
}
}
:-moz-placeholder {
color: #c9c9c9 !important;
font-size: 13px;
}
::-webkit-input-placeholder {
color: #ccc;
font-size: 13px;
}
input {
font-family: 'Lucida Grande', Tahoma, Verdana, sans-serif;
font-size: 14px;
}
input[type=text], input[type=password] {
margin: 5px;
padding: 0 10px;
width: 200px;
height: 34px;
color: #404040;
background: white;
border: 1px solid;
border-color: #c4c4c4 #d1d1d1 #d4d4d4;
border-radius: 2px;
outline: 5px solid #eff4f7;
-moz-outline-radius: 3px; // Can we get this on WebKit please?
@include box-shadow(inset 0 1px 3px rgba(black, .12));
&:focus {
border-color: #7dc9e2;
outline-color: #dceefc;
outline-offset: 0; // WebKit sets this to -1 by default
}
}
input[type=submit] {
padding: 0 18px;
height: 29px;
font-size: 12px;
font-weight: bold;
color: #527881;
text-shadow: 0 1px #e3f1f1;
background: #cde5ef;
border: 1px solid;
border-color: #b4ccce #b3c0c8 #9eb9c2;
border-radius: 16px;
outline: 0;
@include box-sizing(content-box); // Firefox sets this to border-box by default
@include linear-gradient(top, #edf5f8, #cde5ef);
@include box-shadow(inset 0 1px white, 0 1px 2px rgba(black, .15));
&:active {
background: #cde5ef;
border-color: #9eb9c2 #b3c0c8 #b4ccce;
@include box-shadow(inset 0 0 3px rgba(black, .2));
}
}
.lt-ie9 {
input[type=text], input[type=password] { line-height: 34px; }
}
@@ -0,0 +1,208 @@
/*-----------------------------------------------------------------------------
| Main HTML page Classes
-------------------------------------------------------------------------------*/
.clear:after {
clear: both;
content: "";
display: block;
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
padding: 0px;
border: 0px;
border-collapse: separate;
border-spacing: 0px;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
text-decoration: none;
left: auto;
}
html, body {
height: 100%;
width: 100%;
margin: 0px;
}
::-moz-selection{ color: #fff; background: #707070; }
::selection { color: #fff; background: #707070; }
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 17px;
color: #676767;
background: repeat 0 0 #ffffff;
}
a {
-webkit-transition:all 0.14s ease 0s;
-moz-transition:all 0.14s ease 0s;
-o-transition:all 0.14s ease 0s;
outline:none;
}
a:hover {
color: #444;
}
.title, .title a {
text-decoration: none;
}
.title a:hover {
}
img, iframe {
float: none;
position: static;
}
.alignleft {
float:left;
margin: 10px 20px 10px 0;
}
.alignright {
float:right;
margin: 10px 0 10px 20px;
}
.aligncenter {
display: block;
margin: 10px auto 10px auto;
}
.text-align-right {
text-align: right;
}
.text-align-left {
text-align: left;
}
.text-align-center {
text-align: center;
}
.divider {
float: left;
width: 100%;
height: 70px;
}
.divider-border {
border-top: 2px solid #eee;
float: left;
width: 100%;
margin: 40px 0;
}
/*--------------------------------------------------
MAIN CONTENT
---------------------------------------------------*/
#wrapper {
width: 100%;
background-color: transparent;
}
.content-wrapper {
width: 960px;
margin: 0 auto;
padding: 0 0;
border-bottom-width: 0px;
border-top: 0px solid #eee;
box-shadow: none;
border-right-width: 0px;
border-left-width: 0px;
background-color: transparent;
padding-bottom: 20px;
}
#header-wrapper {
}
.header {
width: 960px;
padding: 0;
margin: 0;
position:relative;
border-bottom: 2px solid #eee;
}
#contact-fullwidth.header {
border-bottom: none;
margin: 0 auto;
}
#logo {
margin-top: 35px;
}
#logo, #logo a {
float: left;
}
#logo a {
}
/*----------------------------------------------------------------
FONTS
-----------------------------------------------------------------*/
.menubar_font {
font-size: 18px;
color: white;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}
.menubar_subfont {
font-size: 18px;
color: white;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}
.header_font_01 {
font-size: 24px;
color: black;
text-align: center;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}
.title_font {
font-size: 40px;
color: black;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
margin-left: 100px;
float: left;
}
.sidebar_text {
font-size: 12px;
color: black;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
text-align: left;
}
/*----------------------------------------------------------------
IMAGES
-----------------------------------------------------------------*/
.graph_image {
text-align: center;
}
/*----------------------------------------------------------------
OTHER STUFF
-----------------------------------------------------------------*/
/*-----Side Bar Styles-----*/
.sidebar_backdrop {
box-shadow: black 0.2em 0.2em 0.1em;
background-color: #ff9933;
padding: 5px 5px 5px 5px;
}
.sidebar_column {
vertical-align: top;
padding-right: 5px;
}
.sidebar_column p:hover {
background: #E65C00;
padding: 5px 5px 5px 5px;
}
.main_table {
margin-left: auto;
margin-right: auto;
}
.main_banners {
text-align: center;
}
.main_banners img {
transition: transform 0.1s ease;
}
.main_banners img:hover {
transform: scale(0.97);
}
@@ -0,0 +1,49 @@
<html>
<head>
<title>Lumberyard Distribution Portal</title>
<link rel="shortcut icon" href="images/Favicon.ico">
<link rel="stylesheet" id="default_stylesheet-css" href="css/fetch.css" type="text/css" media="all">
</head>
<body>
<?php
$username = $_POST['login'];
$password = $_POST['password'];
$config = include('config.php');
$connection = mysql_connect($config['sql_host'], $config['sql_username'], $config['sql_pass']);
if (!$connection) {
die(mysql_error());
}
mysql_select_db($config['sql_database_name']) or die(mysql_error());
$pass_result = mysql_query("SELECT password FROM users WHERE username=\"" . $username . "\";");
$server_pass = mysql_fetch_array($pass_result);
if (md5($password) != $server_pass['password']) {
mysql_close($connection);
exit("Invalid credentials.");
}
$command = escapeshellcmd("/scripts/get_signed.py --bucket=" . $config['bucket'] . " --expiry=" . $config['expiry']);
$output = shell_exec($command);
$result = json_decode($output, true);
echo "<div id='content'>\n";
echo " <h2>Lumberyard Secure File Distribution</h2>\n";
echo " <div id='nicelist'>\n";
echo " <ul>\n";
foreach ($result as $key => $jsons) {
$parts = explode('/', rtrim($key, '/'));
echo " <li><a href='" . $result[$key] . "'>" . $parts[3] . "</a> </li>\n";
}
echo " </ul>\n";
echo " </div>\n";
echo "</div>\n";
mysql_close($connection);
?>
</body>
</html>
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d75a3785f8422d67887e5501cc9e1261f2e15bf3464f8b40299014faff0ee0ef
size 16958
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Lumberyard Distribution Portal</title>
<link rel="shortcut icon" href="images/Favicon.ico">
<link rel="stylesheet" href="css/kappa.css">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<section class="container">
<div class="login">
<h1>Lumberyard Distribution Portal</h1>
<form method="post" action="fetch_files.php">
<p><input type="text" name="login" value="" placeholder="Username"></p>
<p><input type="password" name="password" value="" placeholder="Password"></p>
<p class="submit"><input type="submit" name="commit" value="Login"></p>
</form>
</div>
</section>
</body>
</html>
@@ -0,0 +1,59 @@
<html>
<head>
<title>Lumberyard Distribution Portal</title>
<link rel="shortcut icon" href="images/Favicon.ico">
<link rel="stylesheet" id="default_stylesheet-css" href="css/style.css" type="text/css" media="all">
</head>
<body>
<?php
$bucket = htmlspecialchars($_GET["bucket"]);
$expiry = htmlspecialchars($_GET["expiry"]);
$unlockpass = htmlspecialchars($_GET["password"]);
$unlockuser = htmlspecialchars($_GET["user"]);
$database_host = "localhost";
$user_name = "lumbery";
$password = "Builder99";
$database_name = "lybuilds";
mysql_connect($database_host, $user_name, $password) or die(mysql_error());
mysql_select_db($database_name) or die(mysql_error());
$pass_result = mysql_query("SELECT password FROM users WHERE username=\"" . $unlockuser . "\";");
$server_pass = mysql_fetch_array($pass_result);
if (md5($unlockpass) != $server_pass['password'])
{
exit("Invalid Password");
}
$command = escapeshellcmd("/scripts/get_signed.py --bucket=" . $bucket . " --expiry=" . $expiry);
$output = shell_exec($command);
$result = json_decode($output, true);
echo " <table style=\"width: 1280px; margin: 0px auto;\">\n";
echo " <tr>\n";
echo " <td>\n";
echo " <div><p class=\"title_font\">Lumberyard Secure File Distribution</p></div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td>\n";
echo " <div><p class=\"sidebar_text\">Bucket: " . $bucket . "</p></div>\n";
echo " <div><p class=\"sidebar_text\">Link will expire on: " . date('Y:m:d H:i:s', time() + $expiry) . "</p></div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr><td><div><p class=\"sidebar_text\"> </p></div></td></tr>\n";
echo " <tr><td><div><p class=\"sidebar_text\">Available Files:</p></div></td></tr>\n";
echo " <tr>\n";
echo " <td class=\"sidebar_column\">\n";
foreach ($result as $key => $jsons) {
echo " <div class=\"sidebar_entry\"><a href=\"" . $result[$key] . "\"><p class=\"sidebar_text\">" . $key . "</p></a></div>\n";
}
?>
</td>
</tr>
</table>
</body>
</html>