1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-11 07:16:10 +01:00
vichan/inc/captcha/config.php

17 lines
399 B
PHP
Raw Normal View History

2017-04-24 11:40:49 +02:00
<?php
// We are using a custom path here to connect to the database.
// Why? Performance reasons.
2017-04-24 11:41:49 +02:00
$pdo = new PDO("mysql:dbname=database_name;host=localhost", "database_user", "database_password", array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
2017-04-24 11:40:49 +02:00
// Captcha expiration:
2017-04-24 11:41:49 +02:00
$expires_in = 120; // 120 seconds
2017-04-24 11:40:49 +02:00
// Captcha dimensions:
$width = 250;
$height = 80;
// Captcha length:
2017-04-24 11:41:49 +02:00
$length = 6;