mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
16 lines
368 B
PHP
16 lines
368 B
PHP
<?php
|
|
// We are using a custom path here to connect to the database.
|
|
// Why? Performance reasons.
|
|
|
|
$pdo = new PDO("mysql:dbname=8chan;host=localhost", "user", "pass", array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
|
|
|
|
// Captcha expiration:
|
|
$expires_in = 120; // 120 seconds
|
|
|
|
// Captcha dimensions:
|
|
$width = 300;
|
|
$height = 80;
|
|
|
|
// Captcha length:
|
|
$length = 6;
|