mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 22:50:07 +01:00
made captcha more poni
Also adjusted some options to make it a little harder on easy mode. If that makes sense.
This commit is contained in:
parent
64adb71d2a
commit
feafee2a3d
2 changed files with 9 additions and 7 deletions
|
@ -5,7 +5,7 @@ function captcha($color, $mode, $mul, $allowed) {
|
||||||
$font_path = dirname(__FILE__) . '/fonts/';
|
$font_path = dirname(__FILE__) . '/fonts/';
|
||||||
|
|
||||||
if ($mode == "Easy") {
|
if ($mode == "Easy") {
|
||||||
$fonr_name = 'SigmarOne.ttf';
|
$fonr_name = 'PonyvilleMedium0.4.ttf';
|
||||||
} elseif ($mode == "Normal") {
|
} elseif ($mode == "Normal") {
|
||||||
$fonr_name = 'times_new_yorker.ttf';
|
$fonr_name = 'times_new_yorker.ttf';
|
||||||
} elseif ($mode == "Tough") {
|
} elseif ($mode == "Tough") {
|
||||||
|
@ -18,25 +18,27 @@ function captcha($color, $mode, $mul, $allowed) {
|
||||||
$captcha_config = array(
|
$captcha_config = array(
|
||||||
'code' => '',
|
'code' => '',
|
||||||
'min_length' => 5,
|
'min_length' => 5,
|
||||||
'max_length' => 5,
|
'max_length' => 6,
|
||||||
'backgrounds' => array(
|
'backgrounds' => array(
|
||||||
$bg_path . 'text3.png',
|
$bg_path . 'text3.png',
|
||||||
$bg_path . 'text2.png',
|
$bg_path . 'text2.png',
|
||||||
$bg_path . 'text1.png'
|
$bg_path . 'text1.png'
|
||||||
),
|
),
|
||||||
'fonts' => array(
|
'fonts' => array(
|
||||||
$font_path . $fonr_name
|
$font_path . 'LMS Pretty Pony.ttf',
|
||||||
|
$font_path . 'PonyvilleMedium0.4.ttf',
|
||||||
|
$font_path . 'PonyvilleMedium0.4.ttf'
|
||||||
),
|
),
|
||||||
'characters' => $allowed,
|
'characters' => $allowed,
|
||||||
'min_font_size' => 28,
|
'min_font_size' => 20,
|
||||||
'max_font_size' => 28,
|
'max_font_size' => 28,
|
||||||
'color' => $color,
|
'color' => $color,
|
||||||
'angle_min' => 0,
|
'angle_min' => 0,
|
||||||
'angle_max' => 10,
|
'angle_max' => 5,
|
||||||
'shadow' => true,
|
'shadow' => true,
|
||||||
'shadow_color' => '#fff',
|
'shadow_color' => '#fff',
|
||||||
'shadow_offset_x' => -1,
|
'shadow_offset_x' => -2,
|
||||||
'shadow_offset_y' => 1
|
'shadow_offset_y' => 4
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$captcha_config = array(
|
$captcha_config = array(
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB |
Loading…
Add table
Reference in a new issue