1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-06 13:16:54 +02:00

Monstra Library: basic core improvments

This commit is contained in:
Awilum
2013-01-04 21:08:04 +02:00
parent 7437cc6abb
commit ef12b7492e
289 changed files with 16265 additions and 17155 deletions

View File

@@ -1,49 +1,48 @@
<?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
{
/**
* Captcha plugin
*
* @package Monstra
* @subpackage Plugins
* @author Romanenko Sergey / Awilum
* @copyright 2012 Romanenko Sergey / Awilum
* @version 1.0.0
*
* Draw
*/
// 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';
public static function draw()
{
dsp_crypt();
}
/**
* Crypt Captha class
* Check
*/
class CryptCaptcha {
/**
* Draw
*/
public static function draw() {
dsp_crypt();
}
/**
* Check
*/
public static function check($answer) {
return chk_crypt($answer);
}
}
public static function check($answer)
{
return chk_crypt($answer);
}
}