diff options
| author | Pasha <pasha@member.fsf.org> | 2024-01-20 10:09:23 +0000 | 
|---|---|---|
| committer | Pasha <pasha@member.fsf.org> | 2024-01-20 10:09:23 +0000 | 
| commit | 76669f6c298bcf3f69a0e1df5c524a7cff3e367d (patch) | |
| tree | 9704c3470c1f3ca91510d9af01b8e8eb81969ed9 /web/NetUseAdminWeb/public | |
| download | netusemod-76669f6c298bcf3f69a0e1df5c524a7cff3e367d.tar.gz netusemod-76669f6c298bcf3f69a0e1df5c524a7cff3e367d.tar.bz2 | |
Diffstat (limited to 'web/NetUseAdminWeb/public')
| -rw-r--r-- | web/NetUseAdminWeb/public/404.html | 37 | ||||
| -rw-r--r-- | web/NetUseAdminWeb/public/500.html | 37 | ||||
| -rw-r--r-- | web/NetUseAdminWeb/public/README | 7 | ||||
| -rw-r--r-- | web/NetUseAdminWeb/public/css/error.css | 104 | ||||
| -rwxr-xr-x | web/NetUseAdminWeb/public/dispatch.cgi | 33 | ||||
| -rwxr-xr-x | web/NetUseAdminWeb/public/dispatch.fcgi | 35 | ||||
| -rw-r--r-- | web/NetUseAdminWeb/public/favicon.ico | bin | 0 -> 318 bytes | 
7 files changed, 253 insertions, 0 deletions
| 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 @@ +<!DOCTYPE html> + +<!-- +    NetUseMod is a program to moderate Usenet posts via web interface. +    Copyright (C) 2024  Salahuddin <salahuddin@member.fsf.org> + +    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 <https://www.gnu.org/licenses/>. +--> + +<html lang="en"> +<head> +  <meta charset="utf-8"> +  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> +  <title>Error 404</title> +  <link rel="stylesheet" href="/css/error.css"> +</head> +<body> +<h1>Error 404</h1> +<div id="content"> +<h2>Page Not Found</h2><p>Sorry, this is the void.</p> +</div> +<div id="footer"> +Powered by <a href="http://perldancer.org/">Dancer2</a>. +</div> +</body> +</html> 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 @@ +<!DOCTYPE html> + +<!-- +    NetUseMod is a program to moderate Usenet posts via web interface. +    Copyright (C) 2024  Salahuddin <salahuddin@member.fsf.org> + +    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 <https://www.gnu.org/licenses/>. +--> + +<html lang="en"> +<head> +  <meta charset="utf-8"> +  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> +  <title>Error 500</title> +  <link rel="stylesheet" href="/css/error.css"> +</head> +<body> +<h1>Error 500</h1> +<div id="content"> +<h2>Internal Server Error</h2><p>Wooops, something went wrong</p> +</div> +<div id="footer"> +Powered by <a href="http://perldancer.org/">Dancer2</a>. +</div> +</body> +</html> 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 <salahuddin@member.fsf.org> + +    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 <salahuddin@member.fsf.org> + +    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 <https://www.gnu.org/licenses/>. +*/ + +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 <salahuddin@member.fsf.org> +# +#    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 <https://www.gnu.org/licenses/>. + +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 <salahuddin@member.fsf.org> +# +#    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 <https://www.gnu.org/licenses/>. + +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.icoBinary files differ new file mode 100644 index 0000000..7e29f9a --- /dev/null +++ b/web/NetUseAdminWeb/public/favicon.ico | 
