This commit is contained in:
flash 2024-10-05 16:31:35 +02:00
commit 637dac1570
3 changed files with 2004 additions and 0 deletions

7
config.php Normal file
View file

@ -0,0 +1,7 @@
<?php
rgDnsConfig('pdo_dsn', 'mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=railgun_dns;charset=utf8mb4');
rgDnsConfig('pdo_user', 'railgun_dns');
rgDnsConfig('pdo_pass', 'railgun_dns');
rgDnsConfig('dns_mname', 'ns1.railgun.sh');
rgDnsConfig('dns_rname', 'dns.flash.moe');

1674
index.php Normal file

File diff suppressed because it is too large Load diff

323
style.css Normal file
View file

@ -0,0 +1,323 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
outline-style: none;
}
html,
body {
width: 100%;
height: 100%;
}
.monospace {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}
.rgdns {
font: 12px/20px Tahoma, Geneva, 'Dejavu Sans', Arial, Helvetica, sans-serif;
padding-top: 1px;
background: #fff;
color: #000;
}
.rgdns a {
color: #000;
text-decoration: none;
}
.rgdns a:hover {
text-decoration: underline;
}
.rgdns a:focus {
margin: -1px;
border: 1px dotted #000;
}
.rgdns-header {
background-color: #ccf;
margin: 4px 5px 5px 5px;
}
.rgdns-logo {
padding: 10px;
padding-bottom: 5px;
}
.rgdns-navigation {
padding: 3px 5px 5px 10px;
}
.rgdns-footer {
padding: 5px;
text-align: center;
font-size: .9em;
}
.rgdns-input {
background-color: #fff;
color: #000;
border: 1px solid #7f9db9;
padding: 0 2px;
min-height: 22px;
font: 12px/20px Tahoma, Geneva, 'Dejavu Sans', Arial, Helvetica, sans-serif;
}
.rgdns-input::selection {
background-color: #b2b4bf;
}
.rgdns-input[disabled] {
border-color: #bbb;
background-color: #eee;
}
select.rgdns-input {
padding: 2px 0;
}
.rgdns-button {
border: 1px solid #003c74;
border-radius: 3px;
background: linear-gradient(0deg, #c6c5d7 0%, #dedfec 45%, #f4f5fd 55%, #ffffff 100%);
min-width: 75px;
min-height: 23px;
color: #000;
box-shadow: 0 1px 0 1px #ffffff inset, 1px 1px 0 0 #f1f1ed, -1px -1px 0 0 #dfdbd7;
margin: 3px;
padding: 0 6px;
}
.rgdns-button:focus {
box-shadow: 0 0 2px 1px #6982ee inset, 0 1px 0 2px #ffffff inset, 1px 1px 0 0 #f1f1ed, -1px -1px 0 0 #dfdbd7;
}
.rgdns-button:hover {
box-shadow: 0 0 2px 1px #e59700 inset, 0 1px 0 2px #ffffff inset, 1px 1px 0 0 #f1f1ed, -1px -1px 0 0 #dfdbd7;
}
.rgdns-button:focus:before {
content: '-';
font-size: 0;
border: 1px dotted #000;
border-radius: 2px;
position: absolute;
top: 1px;
left: 1px;
bottom: 1px;
right: 1px;
}
.rgdns-button:active {
background: linear-gradient(180deg, #c6c5d7 0%, #dedfec 45%, #f4f5fd 55%, #ffffff 100%);
box-shadow: 0 0 0 1px #ffffff inset, 1px 1px 0 0 #f1f1ed, -1px -1px 0 0 #dfdbd7;
}
.rgdns-button[disabled] {
background: #f1f1ed !important;
box-shadow: initial !important;
color: #a1a192 !important;
border-color: #c4c3bf !important;
}
.rgdns-form-field {
display: block;
margin: 7px 2px;
}
.rgdns-form-field-title {
padding: 0 3px;
}
.rgdns-form-field-value .rgdns-input {
width: 100%;
}
.rgdns-form-field-checkbox .rgdns-form-field-title,
.rgdns-form-field-checkbox .rgdns-form-field-value {
display: inline-block;
}
.rgdns-login-error {
color: #c22;
font-size: 1.1em;
padding: 4px;
padding-bottom: 0;
margin-bottom: -4px;
}
.rgdns-form-buttons {
text-align: right;
}
.rgdns-login {
max-width: 300px;
margin: 10px auto;
border: 1px solid #ccf;
background-color: #eef;
}
.rgdns-login h2 {
padding: 2px 4px 5px;
background-color: #ccf;
}
.rgdns-container {
margin: 5px 15px;
}
.rgdns-ul {
margin-left: 1.5em;
list-style: square;
}
.rgdns-li-hr {
list-style: none;
border-top: 1px solid #000;
margin: 2px 0;
margin-left: -1.5em;
}
.rgdns-home {
max-width: 200px;
}
.rgdns-setting {
max-width: 400px;
margin: 10px 0;
}
.rgdns-error-paragraph {
color: #c22;
}
.rgdns-table {
border: 1px solid #ccf;
border-spacing: 0;
margin: 10px;
}
.rgdns-table a {
margin: 1px;
}
.rgdns-table a:focus {
margin: 0;
}
.rgdns-table th {
background-color: #ccf;
}
.rgdns-table th,
.rgdns-table td {
padding: 4px 6px;
}
.rgdns-table tr:not(:last-child) td {
border-bottom: 1px solid #ccf;
}
.rgdns-table-important {
background-color: #ccf;
font-weight: bold;
}
.rgdns-table-centre {
text-align: center;
}
.rgdns-table-right {
text-align: right;
}
.rgdns-attempts-table th:nth-child(1) {
min-width: 140px;
}
.rgdns-attempts-table th:nth-child(2) {
min-width: 60px;
}
.rgdns-attempts-table th:nth-child(3) {
min-width: 250px;
}
.rgdns-attempts-table td {
text-align: center;
}
.rgdns-attempts-table td:nth-child(2) {
font-weight: bold;
}
.rgdns-attempts-table-success {
background-color: #cfc;
}
.rgdns-attempts-table-success td:nth-child(2) {
color: #0c0;
}
.rgdns-attempts-table-fail {
background-color: #fcc;
}
.rgdns-attempts-table-fail td:nth-child(2) {
color: #c00;
}
.rgdns-users-table td:nth-child(1),
.rgdns-nameservers-table td:nth-child(1) {
text-align: right;
background-color: #ccf;
}
.rgdns-users-table td:nth-child(2),
.rgdns-nameservers-table td:nth-child(2),
.rgdns-nameservers-table td:nth-child(3),
.rgdns-domains-table-name,
.rgdns-domains-table-owner {
min-width: 150px;
}
.rgdns-users-table td:nth-child(3) {
min-width: 40px;
}
.rgdns-users-table td:nth-child(3),
.rgdns-users-table td:nth-child(4),
.rgdns-users-table td:nth-child(5),
.rgdns-users-table td:nth-child(6),
.rgdns-nameservers-table td:nth-child(4),
.rgdns-nameservers-table td:nth-child(5),
.rgdns-nameservers-table td:nth-child(6) {
text-align: center;
}
.rgdns-users-table td:nth-child(1),
.rgdns-users-table td:nth-child(2),
.rgdns-users-table td:nth-child(3)
.rgdns-nameservers-table td:nth-child(1),
.rgdns-nameservers-table td:nth-child(2) {
font-weight: bold;
}
.rgdns-records-name,
.rgdns-users-table td:nth-child(4),
.rgdns-nameservers-table td:nth-child(5),
.rgdns-domains-table-created {
min-width: 200px;
}
.rgdns-users-table td:nth-child(5),
.rgdns-nameservers-table td:nth-child(6),
.rgdns-domains-table-disabled {
min-width: 240px;
}
.rgdns-domains-table-created,
.rgdns-domains-table-disabled {
text-align: center;
}
.rgdns-users-table-yes,
.rgdns-domains-table-active {
color: #0c0;
}
.rgdns-users-table-no,
.rgdns-domains-table-inactive {
color: #c00;
}
.rgdns-domains-form,
.rgdns-nameserver-form,
.rgdns-records-form {
max-width: 400px;
}
.rgdns-domains-table-status {
text-align: center;
font-weight: bold;
min-width: 100px;
}
.rgdns-records-type {
text-align: center;
min-width: 60px;
}
.rgdns-records-type {
font-weight: bold;
}
.rgdns-records-name {
text-align: right;
}
.rgdns-records-ttl,
.rgdns-records-priority {
text-align: center;
}
.rgdns-records-default {
color: #aaa;
}