mirror of https://github.com/tildeclub/site.git
trim ssh keys and format css
This commit is contained in:
parent
f0cbce70a4
commit
3acfca56c5
52
index.php
52
index.php
|
@ -1,9 +1,9 @@
|
||||||
<?php include "header.php"; ?>
|
<?php include "header.php"; ?>
|
||||||
|
|
||||||
<h1>$ welcome to tilde.club</h1>
|
<h1>$ welcome to tilde.club</h1>
|
||||||
<p><a href="/~faq">Questions? See the official FAQ.</a></p>
|
<p><a href="/wiki/faq.html">Questions? See the official FAQ.</a></p>
|
||||||
|
|
||||||
<p class="advisory">SERVICE ADVISORY: New Server, New Owners, New lease on life for tilde.club. Welcome!. The Expected SSH Hostkey is SHA256:duamOATgnGcfRFFkotCwrAWzZtRjwxm64WAhq5tQRwE and will match the SSHFP records in DNS. You can use ssh -o "VerifyHostKeyDNS yes" user@tilde.club to verify that the key matches DNS.</p>
|
<p class="advisory">SERVICE ADVISORY: New Server, New Owners, New lease on life for tilde.club. Welcome!. The Expected SSH Hostkey is SHA256:duamOATgnGcfRFFkotCwrAWzZtRjwxm64WAhq5tQRwE.</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -38,30 +38,30 @@
|
||||||
gave. Here's who has donated! When you're on the server, THANK
|
gave. Here's who has donated! When you're on the server, THANK
|
||||||
THEM.</p>
|
THEM.</p>
|
||||||
|
|
||||||
<pre>
|
<ul>
|
||||||
10/5/2014 | <a href="/~beau">~beau</a>
|
<li>10/5/2014 | <a href="/~beau">~beau</a></li>
|
||||||
10/5/2014 | <a href="/~skk">~skk</a>
|
<li>10/5/2014 | <a href="/~skk">~skk</a></li>
|
||||||
10/5/2014 | <a href="/~joeld">~joeld</a>
|
<li>10/5/2014 | <a href="/~joeld">~joeld</a></li>
|
||||||
10/5/2014 | <a href="/~john">~john</a>
|
<li>10/5/2014 | <a href="/~john">~john</a></li>
|
||||||
10/5/2014 | <a href="/~brendn">~brendn</a>
|
<li>10/5/2014 | <a href="/~brendn">~brendn</a></li>
|
||||||
10/5/2014 | <a href="/~droob">~droob</a>
|
<li>10/5/2014 | <a href="/~droob">~droob</a></li>
|
||||||
10/5/2014 | <a href="/~delfuego">~delfuego</a>
|
<li>10/5/2014 | <a href="/~delfuego">~delfuego</a></li>
|
||||||
10/5/2014 | <a href="/~jonathan">~jonathan</a>
|
<li>10/5/2014 | <a href="/~jonathan">~jonathan</a></li>
|
||||||
10/5/2014 | <a href="/~coldmode">~coldmode</a>
|
<li>10/5/2014 | <a href="/~coldmode">~coldmode</a></li>
|
||||||
10/5/2014 | <a href="/~jemal">~jemal</a>
|
<li>10/5/2014 | <a href="/~jemal">~jemal</a></li>
|
||||||
10/5/2014 | <a href="/~jonbell">~jonbell</a>
|
<li>10/5/2014 | <a href="/~jonbell">~jonbell</a></li>
|
||||||
10/5/2014 | <a href="/~_">~_</a>
|
<li>10/5/2014 | <a href="/~_">~_</a></li>
|
||||||
10/5/2014 | <a href="/~dvd">~dvd</a>
|
<li>10/5/2014 | <a href="/~dvd">~dvd</a></li>
|
||||||
10/5/2014 | <a href="/~whitneymcn">~whitneymcn</a>
|
<li>10/5/2014 | <a href="/~whitneymcn">~whitneymcn</a></li>
|
||||||
10/5/2014 | <a href="/~jimray">~jimray</a>
|
<li>10/5/2014 | <a href="/~jimray">~jimray</a></li>
|
||||||
10/5/2014 | <a href="/~schussat">~schussat</a>
|
<li>10/5/2014 | <a href="/~schussat">~schussat</a></li>
|
||||||
10/5/2014 | <a href="/~macdiva">~macdiva</a>
|
<li>10/5/2014 | <a href="/~macdiva">~macdiva</a></li>
|
||||||
10/3/2014 | <a href="/~extraface">~extraface</a>
|
<li>10/3/2014 | <a href="/~extraface">~extraface</a></li>
|
||||||
10/3/2014 | <a href="/~joshuag">~joshuag</a>
|
<li>10/3/2014 | <a href="/~joshuag">~joshuag</a></li>
|
||||||
10/3/2014 | <a href="/~zarate">~zarate</a>
|
<li>10/3/2014 | <a href="/~zarate">~zarate</a></li>
|
||||||
10/3/2014 | <a href="/~englishm">~englishm</a>
|
<li>10/3/2014 | <a href="/~englishm">~englishm</a></li>
|
||||||
10/3/2014 | <a href="/~danbri">~danbri</a>
|
<li>10/3/2014 | <a href="/~danbri">~danbri</a></li>
|
||||||
</pre>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -3,7 +3,6 @@ $title = "sign up for the tilde.club!";
|
||||||
include __DIR__."/../header.php";
|
include __DIR__."/../header.php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1>devmode!! please do not use yet!!</h1>
|
|
||||||
<h1>sign up to join tilde.club</h1>
|
<h1>sign up to join tilde.club</h1>
|
||||||
|
|
||||||
<p>we're excited you're here! let's get you signed up!</p>
|
<p>we're excited you're here! let's get you signed up!</p>
|
||||||
|
|
|
@ -68,7 +68,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
||||||
if (strlen($name) > 32)
|
if (strlen($name) > 32)
|
||||||
$message .= "<li>username too long (32 character max)</li>";
|
$message .= "<li>username too long (32 character max)</li>";
|
||||||
|
|
||||||
if (!preg_match('/^[a-z][a-z0-9]{2,31}$/', $name))
|
if (!preg_match('/^[a-z][a-z0-9]{1,30}$/', $name))
|
||||||
$message .= "<li>username contains invalid characters (lowercase only, must start with a letter)</li>";
|
$message .= "<li>username contains invalid characters (lowercase only, must start with a letter)</li>";
|
||||||
|
|
||||||
if ($_REQUEST["sshkey"] == "" || mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-")
|
if ($_REQUEST["sshkey"] == "" || mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-")
|
||||||
|
@ -97,7 +97,8 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
||||||
|
|
||||||
// no validation errors
|
// no validation errors
|
||||||
if ($message == "") {
|
if ($message == "") {
|
||||||
$makeuser = "makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$_REQUEST["sshkey"]}\"";
|
$sshkey = trim($_REQUEST["sshkey"]);
|
||||||
|
$makeuser = "makeuser {$_REQUEST["username"]} {$_REQUEST["email"]} \"{$sshkey}\"";
|
||||||
$msgbody = "
|
$msgbody = "
|
||||||
username: {$_REQUEST["username"]}
|
username: {$_REQUEST["username"]}
|
||||||
email: {$_REQUEST["email"]}
|
email: {$_REQUEST["email"]}
|
||||||
|
|
89
style.css
89
style.css
|
@ -1,19 +1,39 @@
|
||||||
* {font-size:13pt;font-weight:normal;}
|
/* {font-size:13pt;font-weight:normal;} */
|
||||||
|
|
||||||
table {border-collapse:collapse;}
|
table {
|
||||||
td {border:6px double darkorange;padding:10px;}
|
border-collapse: collapse;
|
||||||
ol {margin-left:1em;}
|
|
||||||
body {
|
|
||||||
margin:1em;
|
|
||||||
background:000;
|
|
||||||
font-family:'courier new';
|
|
||||||
color:darkorange;
|
|
||||||
background:#000400;
|
|
||||||
}
|
}
|
||||||
a {background:darkorange;color:#223;font-weight:bold;padding-right:.25em;}
|
td {
|
||||||
.advisory {background:darkorange;color:#223;font-weight:bold;padding-right:.25em;}
|
border: 6px double darkorange;
|
||||||
h1 {text-transform:uppercase;font-weight:bold;
|
padding: 10px;
|
||||||
color:#000400; background:darkorange;
|
}
|
||||||
|
ol {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 1em;
|
||||||
|
background: 000;
|
||||||
|
font-family: "courier new", monospace;
|
||||||
|
color: darkorange;
|
||||||
|
background: #000400;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
background: darkorange;
|
||||||
|
color: #223;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-right: 0.25em;
|
||||||
|
}
|
||||||
|
.advisory {
|
||||||
|
background: darkorange;
|
||||||
|
color: #223;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-right: 0.25em;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000400;
|
||||||
|
background: darkorange;
|
||||||
}
|
}
|
||||||
|
|
||||||
.advisory {
|
.advisory {
|
||||||
|
@ -33,8 +53,9 @@ h1 {text-transform:uppercase;font-weight:bold;
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"], textarea {
|
input[type="text"],
|
||||||
background-color : #333;
|
textarea {
|
||||||
|
background-color: #333;
|
||||||
color: darkorange;
|
color: darkorange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,19 +67,37 @@ div.alert-success {
|
||||||
}
|
}
|
||||||
|
|
||||||
@-moz-keyframes blinker {
|
@-moz-keyframes blinker {
|
||||||
0% { opacity: 1.0; }
|
0% {
|
||||||
50% { opacity: 0.75; }
|
opacity: 1;
|
||||||
100% { opacity: 1.0; }
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@-webkit-keyframes blinker {
|
@-webkit-keyframes blinker {
|
||||||
0% { opacity: 1.0; }
|
0% {
|
||||||
50% { opacity: 0.75; }
|
opacity: 1;
|
||||||
100% { opacity: 1.0; }
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blinker {
|
@keyframes blinker {
|
||||||
0% { opacity: 1.0; }
|
0% {
|
||||||
50% { opacity: 0.75; }
|
opacity: 1;
|
||||||
100% { opacity: 1.0; }
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue