Deduplicate a bit

This commit is contained in:
2022-01-13 23:24:10 +01:00
parent 9a3656ef28
commit 84ef36cee0
9 changed files with 6 additions and 499 deletions

View File

@@ -5,8 +5,8 @@
// doublethink.cleverweb.cz
session_start();
// inicializace
require './imagelightnessat.func.php';
require './linear_perspective.class.php';
require __DIR__ . '/imagelightnessat.func.php';
require __DIR__ . '/linear_perspective.class.php';
$perspective = new linear_perspective();
// konfigurace rozměrů a pozic
@@ -23,7 +23,7 @@ $white = imagecolorexact($matrix, 255, 255, 255);
imagefill($matrix, 0, 0, $white);
// font calibri neni kvůli licenčním podmínkám připojen, použijte jakýkoliv svůj
imagefttext($matrix, 20, 0, 2, 25, $black, './3DCaptcha.ttf', $_SESSION['captcha']);
imagefttext($matrix, 20, 0, 2, 25, $black, __DIR__ . '/3DCaptcha.ttf', $_SESSION['captcha']);
// výpočet bodů ve 3d
$point = [];