1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-11 23:54:10 +02:00

Add Monstra from HG Commit 683dcb70c4cc

This commit is contained in:
Awilum
2012-09-25 19:09:50 +03:00
parent d2db42b2bb
commit 4a5fea5f5b
251 changed files with 35026 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
<?php
/**
* Captcha plugin
*
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012 Romanenko Sergey / Awilum
* @version 1.0.0
*
*/
// Register plugin
Plugin::register( __FILE__,
__('Captcha', 'captcha'),
__('Captcha plugin for Monstra', 'captcha'),
'1.0.0',
'Awilum',
'http://monstra.org/');
// Set crypt captcha path to images
$cryptinstall = Option::get('siteurl').'plugins/captcha/crypt/images/';
// Include Crypt Captcha
include PLUGINS . DS . 'captcha/crypt/cryptographp.fct.php';
/**
* Crypt Captha class
*/
class CryptCaptcha {
/**
* Draw
*/
public static function draw() {
dsp_crypt();
}
/**
* Check
*/
public static function check($answer) {
return chk_crypt($answer);
}
}