Skip to content

Commit

Permalink
Fixed #28
Browse files Browse the repository at this point in the history
And also some small documentation fixes.
  • Loading branch information
getpinga committed Dec 24, 2023
1 parent 1df7e54 commit 040428b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 34 deletions.
6 changes: 4 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 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:
Expand Down Expand Up @@ -254,7 +254,9 @@ systemctl enable 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:

Expand Down
13 changes: 13 additions & 0 deletions rdap/client/captcha.php
Original file line number Diff line number Diff line change
@@ -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();
16 changes: 0 additions & 16 deletions rdap/client/index.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
<?php
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>
<html lang="en">
<head>
Expand Down
13 changes: 13 additions & 0 deletions whois/web/captcha.php
Original file line number Diff line number Diff line change
@@ -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();
16 changes: 0 additions & 16 deletions whois/web/index.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
<?php
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>
<html lang="en">
<head>
Expand Down

0 comments on commit 040428b

Please sign in to comment.