Initial Kohana install
[speedfreak] / Server / system / controllers / captcha.php
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3  * Outputs the dynamic Captcha resource.
4  * Usage: Call the Captcha controller from a view, e.g.
5  *        <img src="<?php echo url::site('captcha') ?>" />
6  *
7  * $Id: captcha.php 3769 2008-12-15 00:48:56Z zombor $
8  *
9  * @package    Captcha
10  * @author     Kohana Team
11  * @copyright  (c) 2007-2008 Kohana Team
12  * @license    http://kohanaphp.com/license.html
13  */
14 class Captcha_Controller extends Controller {
15
16         public function __call($method, $args)
17         {
18                 // Output the Captcha challenge resource (no html)
19                 // Pull the config group name from the URL
20                 Captcha::factory($this->uri->segment(2))->render(FALSE);
21         }
22
23 } // End Captcha_Controller