From 76669f6c298bcf3f69a0e1df5c524a7cff3e367d Mon Sep 17 00:00:00 2001 From: Pasha Date: Sat, 20 Jan 2024 10:09:23 +0000 Subject: initial commit --- web/NetUseAdminWeb/public/404.html | 37 ++++++++++++ web/NetUseAdminWeb/public/500.html | 37 ++++++++++++ web/NetUseAdminWeb/public/README | 7 +++ web/NetUseAdminWeb/public/css/error.css | 104 ++++++++++++++++++++++++++++++++ web/NetUseAdminWeb/public/dispatch.cgi | 33 ++++++++++ web/NetUseAdminWeb/public/dispatch.fcgi | 35 +++++++++++ web/NetUseAdminWeb/public/favicon.ico | Bin 0 -> 318 bytes 7 files changed, 253 insertions(+) create mode 100644 web/NetUseAdminWeb/public/404.html create mode 100644 web/NetUseAdminWeb/public/500.html create mode 100644 web/NetUseAdminWeb/public/README create mode 100644 web/NetUseAdminWeb/public/css/error.css create mode 100755 web/NetUseAdminWeb/public/dispatch.cgi create mode 100755 web/NetUseAdminWeb/public/dispatch.fcgi create mode 100644 web/NetUseAdminWeb/public/favicon.ico (limited to 'web/NetUseAdminWeb/public') diff --git a/web/NetUseAdminWeb/public/404.html b/web/NetUseAdminWeb/public/404.html new file mode 100644 index 0000000..48632d0 --- /dev/null +++ b/web/NetUseAdminWeb/public/404.html @@ -0,0 +1,37 @@ + + + + + + + + + Error 404 + + + +

Error 404

+
+

Page Not Found

Sorry, this is the void.

+
+ + + diff --git a/web/NetUseAdminWeb/public/500.html b/web/NetUseAdminWeb/public/500.html new file mode 100644 index 0000000..064ead8 --- /dev/null +++ b/web/NetUseAdminWeb/public/500.html @@ -0,0 +1,37 @@ + + + + + + + + + Error 500 + + + +

Error 500

+
+

Internal Server Error

Wooops, something went wrong

+
+ + + diff --git a/web/NetUseAdminWeb/public/README b/web/NetUseAdminWeb/public/README new file mode 100644 index 0000000..d2ca5e4 --- /dev/null +++ b/web/NetUseAdminWeb/public/README @@ -0,0 +1,7 @@ + Copyright (C) 2024 Salahuddin + + The following file(s) are licensed under the GNU General Public License + as published by the Free Software Foundation, either version 3 of + the License, or (at your option) any later version. + +favicon.ico diff --git a/web/NetUseAdminWeb/public/css/error.css b/web/NetUseAdminWeb/public/css/error.css new file mode 100644 index 0000000..15c38f3 --- /dev/null +++ b/web/NetUseAdminWeb/public/css/error.css @@ -0,0 +1,104 @@ +/* + NetUseMod is a program to moderate Usenet posts via web interface. + Copyright (C) 2024 Salahuddin + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +body { + font-family: Lucida,sans-serif; +} + +h1 { + color: #AA0000; + border-bottom: 1px solid #444; +} + +h2 { color: #444; } + +pre { + font-family: "lucida console","monaco","andale mono","bitstream vera sans mono","consolas",monospace; + font-size: 12px; + border-left: 2px solid #777; + padding-left: 1em; +} + +footer { + font-size: 10px; +} + +span.key { + color: #449; + font-weight: bold; + width: 120px; + display: inline; +} + +span.value { + color: #494; +} + +/* these are for the message boxes */ + +pre.content { + background-color: #eee; + color: #000; + padding: 1em; + margin: 0; + border: 1px solid #aaa; + border-top: 0; + margin-bottom: 1em; + overflow-x: auto; +} + +div.title { + font-family: "lucida console","monaco","andale mono","bitstream vera sans mono","consolas",monospace; + font-size: 12px; + background-color: #aaa; + color: #444; + font-weight: bold; + padding: 3px; + padding-left: 10px; +} + +table.context { + border-spacing: 0; +} + +table.context th, table.context td { + padding: 0; +} + +table.context th { + color: #889; + font-weight: normal; + padding-right: 15px; + text-align: right; +} + +.errline { + color: red; +} + +pre.error { + background: #334; + color: #ccd; + padding: 1em; + border-top: 1px solid #000; + border-left: 1px solid #000; + border-right: 1px solid #eee; + border-bottom: 1px solid #eee; + overflow-x: auto; +} + diff --git a/web/NetUseAdminWeb/public/dispatch.cgi b/web/NetUseAdminWeb/public/dispatch.cgi new file mode 100755 index 0000000..8a15355 --- /dev/null +++ b/web/NetUseAdminWeb/public/dispatch.cgi @@ -0,0 +1,33 @@ +#!/usr/bin/env perl + +# NetUseMod is a program to moderate Usenet posts via web interface. +# Copyright (C) 2024 Salahuddin +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +BEGIN { $ENV{DANCER_APPHANDLER} = 'PSGI';} +use Dancer2; +use FindBin '$RealBin'; +use Plack::Runner; + +# For some reason Apache SetEnv directives don't propagate +# correctly to the dispatchers, so forcing PSGI and env here +# is safer. +set apphandler => 'PSGI'; +set environment => 'production'; + +my $psgi = path($RealBin, '..', 'bin', 'app.psgi'); +die "Unable to read startup script: $psgi" unless -r $psgi; + +Plack::Runner->run($psgi); diff --git a/web/NetUseAdminWeb/public/dispatch.fcgi b/web/NetUseAdminWeb/public/dispatch.fcgi new file mode 100755 index 0000000..6341d58 --- /dev/null +++ b/web/NetUseAdminWeb/public/dispatch.fcgi @@ -0,0 +1,35 @@ +#!/usr/bin/env perl + +# NetUseMod is a program to moderate Usenet posts via web interface. +# Copyright (C) 2024 Salahuddin +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +BEGIN { $ENV{DANCER_APPHANDLER} = 'PSGI';} +use Dancer2; +use FindBin '$RealBin'; +use Plack::Handler::FCGI; + +# For some reason Apache SetEnv directives don't propagate +# correctly to the dispatchers, so forcing PSGI and env here +# is safer. +set apphandler => 'PSGI'; +set environment => 'production'; + +my $psgi = path($RealBin, '..', 'bin', 'app.psgi'); +my $app = do($psgi); +die "Unable to read startup script: $@" if $@; +my $server = Plack::Handler::FCGI->new(nproc => 5, detach => 1); + +$server->run($app); diff --git a/web/NetUseAdminWeb/public/favicon.ico b/web/NetUseAdminWeb/public/favicon.ico new file mode 100644 index 0000000..7e29f9a Binary files /dev/null and b/web/NetUseAdminWeb/public/favicon.ico differ -- cgit v1.2.1