From 04ab99feedaad236946ec6fefc2503adfa9b0213 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 4 Jul 2022 00:16:43 +0000 Subject: [PATCH] Initial import --- .debug | 0 .gitattributes | 1 + .gitignore | 1 + .gitmodules | 3 +++ LICENCE | 25 +++++++++++++++++++++++++ README.md | 3 +++ lib/index | 1 + public/index.php | 24 ++++++++++++++++++++++++ ryouko.php | 20 ++++++++++++++++++++ 9 files changed, 78 insertions(+) create mode 100644 .debug create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 LICENCE create mode 100644 README.md create mode 160000 lib/index create mode 100644 public/index.php create mode 100644 ryouko.php diff --git a/.debug b/.debug new file mode 100644 index 0000000..e69de29 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d61bd4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/the diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b6b60d0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/index"] + path = lib/index + url = git@github.com:flashwave/index.git diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..6d00a99 --- /dev/null +++ b/LICENCE @@ -0,0 +1,25 @@ +BSD 2-Clause License + +Copyright (c) 2022, flashwave +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5d608af --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Ryouko + +Ryouko (snip.flashii.org) is a hoster for code and text snippets with edit history. diff --git a/lib/index b/lib/index new file mode 160000 index 0000000..3eb650c --- /dev/null +++ b/lib/index @@ -0,0 +1 @@ +Subproject commit 3eb650c246c8932722da203ca75a0a54c5c69ef9 diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..f613c5f --- /dev/null +++ b/public/index.php @@ -0,0 +1,24 @@ +use('/', function($response) { + $response->setPoweredBy('Ryouko+Index'); +}); + +$router->get('/', function() { + $sb = new StringBuilder; + $sb->appendLine(''); + $sb->appendLine('Flashii Labs Snippets'); + $sb->appendLine('Coming sooner than the actual labs, I can assure you that.'); + return $sb; +}); + +$router->dispatch(); diff --git a/ryouko.php b/ryouko.php new file mode 100644 index 0000000..0c335dc --- /dev/null +++ b/ryouko.php @@ -0,0 +1,20 @@ +