And also some small documentation fixes.
This commit is contained in:
Pinga 2023-12-24 11:36:19 +02:00
parent 1df7e548e5
commit 040428bdab
5 changed files with 30 additions and 34 deletions

View file

@ -10,7 +10,7 @@ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' -o caddy-stabl
gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg caddy-stable.gpg.key gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg caddy-stable.gpg.key
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
apt update && apt upgrade apt update && apt upgrade
apt install -y bzip2 caddy composer gettext git gnupg2 net-tools php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-ds php8.2-fpm php8.2-gd php8.2-gnupg php8.2-igbinary php8.2-imap php8.2-intl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-redis php8.2-soap php8.2-swoole php8.2-uuid php8.2-xml pv redis unzip wget whois apt install -y bzip2 caddy composer gettext git gnupg2 net-tools php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-ds php8.2-fpm php8.2-gd php8.2-gmp php8.2-gnupg php8.2-igbinary php8.2-imap php8.2-intl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-redis php8.2-soap php8.2-swoole php8.2-uuid php8.2-xml pv redis unzip wget whois
``` ```
### Configure time: ### Configure time:
@ -254,7 +254,9 @@ systemctl enable caddy
systemctl restart caddy systemctl restart caddy
``` ```
**And now is the right time to import the provided database file for your database type.** **And now is the right time to import the provided database file for your database type using Adminer.**
**After that, please create a database called registryAudit.**
## 7. Control Panel Setup: ## 7. Control Panel Setup:

13
rdap/client/captcha.php Normal file
View file

@ -0,0 +1,13 @@
<?php
session_start();
use Gregwar\Captcha\CaptchaBuilder;
require 'vendor/autoload.php';
$captcha = new CaptchaBuilder;
$captcha->build();
$_SESSION['captcha'] = $captcha->getPhrase();
header('Content-type: image/jpeg');
$captcha->output();

View file

@ -1,22 +1,6 @@
<?php <?php
session_start(); session_start();
use Gregwar\Captcha\CaptchaBuilder;
// Include this part only if the script is requested as an image (for the captcha)
if ($_SERVER['REQUEST_URI'] == '/captcha.php') {
require 'vendor/autoload.php'; // Adjust path as needed
$captcha = new CaptchaBuilder;
$captcha->build();
$_SESSION['captcha'] = $captcha->getPhrase();
header('Content-type: image/jpeg');
$captcha->output();
exit;
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>

13
whois/web/captcha.php Normal file
View file

@ -0,0 +1,13 @@
<?php
session_start();
use Gregwar\Captcha\CaptchaBuilder;
require 'vendor/autoload.php';
$captcha = new CaptchaBuilder;
$captcha->build();
$_SESSION['captcha'] = $captcha->getPhrase();
header('Content-type: image/jpeg');
$captcha->output();

View file

@ -1,22 +1,6 @@
<?php <?php
session_start(); session_start();
use Gregwar\Captcha\CaptchaBuilder;
// Include this part only if the script is requested as an image (for the captcha)
if ($_SERVER['REQUEST_URI'] == '/captcha.php') {
require 'vendor/autoload.php'; // Adjust path as needed
$captcha = new CaptchaBuilder;
$captcha->build();
$_SESSION['captcha'] = $captcha->getPhrase();
header('Content-type: image/jpeg');
$captcha->output();
exit;
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>