New site!
8
.idea/.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
8
.idea/byecorps.com.iml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/byecorps.com.iml" filepath="$PROJECT_DIR$/.idea/byecorps.com.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
20
.idea/php.xml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="MessDetectorOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PHPCSFixerOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PHPCodeSnifferOptionsConfiguration">
|
||||||
|
<option name="highlightLevel" value="WARNING" />
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PhpProjectSharedConfiguration" php_language_level="8.3" />
|
||||||
|
<component name="PhpStanOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PsalmOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
3
blog/blog.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
<h1>Blog</h1>
|
||||||
|
<p>No blog posts yet :(</p>
|
9
credits.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<a href="/">Home</a>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<a href="/blog/">Blog</a>
|
||||||
|
</span>
|
||||||
|
<span id="time"></span>
|
83
css/style.css
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: sans-serif;
|
||||||
|
|
||||||
|
background-color: #e6feff;
|
||||||
|
background-image: url(../img/background.bmp);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-right {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper {
|
||||||
|
margin-top: 86px;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body {
|
||||||
|
background-color: white;
|
||||||
|
|
||||||
|
|
||||||
|
border-top: #ccc 2px solid;
|
||||||
|
border-right: #ccc 2px solid;
|
||||||
|
border-bottom: #ccc 2px solid;
|
||||||
|
border-radius: 0 10px 10px 0;
|
||||||
|
|
||||||
|
padding-bottom: 16px;
|
||||||
|
padding-left: 16px;
|
||||||
|
padding-right: 16px;
|
||||||
|
|
||||||
|
width: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#people td > h3 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#people td > p {
|
||||||
|
margin: 3px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#friends img {
|
||||||
|
height: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#friends a {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation {
|
||||||
|
padding-right: 10px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#time {
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
#badges {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
#badges img {
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*@media (prefers-color-scheme: dark) {
|
||||||
|
html {
|
||||||
|
filter: invert(1);
|
||||||
|
}
|
||||||
|
}*/
|
13
feed.xml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<rss version="2.0">
|
||||||
|
<channel>
|
||||||
|
<title>ByeCorps Blog</title>
|
||||||
|
<link>https://byecorps.com</link>
|
||||||
|
|
||||||
|
<description>Official news for ByeCorps prodcuts.</description>
|
||||||
|
<language>en-ie</language>
|
||||||
|
<copyright>Copyright 2024, ByeCorps</copyright>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
39
footer.html
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p id="footer">
|
||||||
|
(c) ByeCorps 2021-2024
|
||||||
|
<a href="/credits" style="padding-left: 5px">Credits</a>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td id="badges">
|
||||||
|
<a href="/feed.xml"><img src="img/icons/feed.png"></a>
|
||||||
|
<a href="https://validator.w3.org/markup/check?uri=referer"><img
|
||||||
|
src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
|
||||||
|
<a href="https://byemc.xyz"><img src="https://byemc.xyz/assets/buttons/byebutton.gif" alt="Bye's Button"></a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var time = document.getElementById('time');
|
||||||
|
|
||||||
|
function convertDatetoBeats(date, toDigits) {
|
||||||
|
var UTCHour = date.getUTCHours() + 1;
|
||||||
|
var UTCMinute = date.getUTCMinutes();
|
||||||
|
var second = date.getUTCSeconds() + (date.getUTCMilliseconds() / 1000);
|
||||||
|
|
||||||
|
return "@" + ( ( ( 3600 * UTCHour ) + ( 60 * UTCMinute ) + second ) / 86.4).toFixed(toDigits)
|
||||||
|
}
|
||||||
|
|
||||||
|
var currentTime = new Date();
|
||||||
|
time.innerText = convertDatetoBeats(currentTime, 2);
|
||||||
|
|
||||||
|
setInterval(function () {
|
||||||
|
var currentTime = new Date();
|
||||||
|
time.innerText = convertDatetoBeats(currentTime, 2);
|
||||||
|
}, 100);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
25
header.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>ByeCorps</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 class="hidden">ByeCorps</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<table id="wrapper">
|
||||||
|
<tr>
|
||||||
|
<td id="navigation" colspan="2">
|
||||||
|
<span>
|
||||||
|
<a href="/">Home</a>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<a href="/blog/">Blog</a>
|
||||||
|
</span>
|
||||||
|
<span id="time"></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="body" colspan="2">
|
34
home.php
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<p>No, we don't know what we're making either.</p>
|
||||||
|
<p class="socials">
|
||||||
|
Find us on: <br>
|
||||||
|
<a href="https://github.com/byecorps">GitHub</a>
|
||||||
|
<a href="https://fedi.byecorps.com/@byecorps">Fediverse</a>
|
||||||
|
<a href="https://youtube.com/@byecorps">YouTube</a>
|
||||||
|
</p>
|
||||||
|
<h2>People</h2>
|
||||||
|
<table id="people">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<img src="./img/byeman-bcprofile2.gif" alt="Bye's profile picture.">
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<h3>Bye</h3>
|
||||||
|
<p>Bye is the founder and sole member of ByeCorps</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://byemc.xyz">Website</a>
|
||||||
|
<a href="https://github.com/byemc">GitHub</a>
|
||||||
|
<a href="https://fedi.byecorps.com/@bye">Fediverse</a>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<h2>Friends</h2>
|
||||||
|
<p>Check out some of our friends!</p>
|
||||||
|
<div id="friends">
|
||||||
|
<a href="https://litdevs.org">
|
||||||
|
<img src="./img/litdevs.gif" alt="LIT Devs"></a>
|
||||||
|
<a href="https://neatnik.net">
|
||||||
|
<img src="./img/neatnik.png" alt="Neatnik"></a>
|
||||||
|
<a href="https://nineplus.sh">
|
||||||
|
<img src="./img/nineplus.gif" alt="ninePLUS"></a>
|
||||||
|
</div>
|
BIN
img/background.bmp
Normal file
After Width: | Height: | Size: 256 KiB |
BIN
img/byecorps_bkg.xcf
Normal file
BIN
img/byeman-bcprofile2.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
img/fugue-icons-3.5.6.zip
Normal file
BIN
img/icons/feed.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
img/litdevs.gif
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
img/litdevs.xcf
Normal file
BIN
img/neatnik-alt-transparent-light.gif
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
img/neatnik.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
img/nineplus.gif
Normal file
After Width: | Height: | Size: 7 KiB |
42
index.php
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$uri_string = $_SERVER['REQUEST_URI'];
|
||||||
|
$query_string = explode('?', $uri_string);
|
||||||
|
|
||||||
|
if(isset($query_string[1])) {
|
||||||
|
$uri_string = $query_string[0];
|
||||||
|
$query_string = explode('&', $query_string[1]);
|
||||||
|
$query = array();
|
||||||
|
foreach($query_string as $string) {
|
||||||
|
$bits = explode('=', $string);
|
||||||
|
$query[$bits[0]] = $bits[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
$path = $query['path'] ?? "/";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$path = "/";
|
||||||
|
$query = array();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (str_ends_with($path, "/")) {
|
||||||
|
$path = rtrim($path, "/");
|
||||||
|
}
|
||||||
|
|
||||||
|
$pages = [
|
||||||
|
"" => "home.php",
|
||||||
|
"/credits" => "credits.php",
|
||||||
|
"/blog" => "blog/blog.html"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
include ("header.html");
|
||||||
|
|
||||||
|
if (isset($pages[$path])) {
|
||||||
|
include ($pages[$path]);
|
||||||
|
} else {
|
||||||
|
http_response_code(404);
|
||||||
|
include "404.html";
|
||||||
|
}
|
||||||
|
|
||||||
|
include ("footer.html");
|