This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::set('forum', 'forum/<action>') | |
->defaults(array( | |
'controller' => 'forum', | |
'action' => 'index', | |
)) | |
->methods(array( | |
Request::PUT => array | |
( | |
'update_post', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* User controller | |
* Handles login, signup, post-signup pages | |
* | |
* @author Kemal Delalic <[email protected]> | |
* @version 1.0.0 | |
*/ | |
class Controller_User extends Controller_Template { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Text extends Kohana_Text { | |
public static function extract_emails($string) | |
{ | |
$return = array(); | |
if (Valid::email($string)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Search extends Controller { | |
/** | |
* @var Database_Result | |
*/ | |
protected $_results; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* Strict JSend response formatting | |
* | |
* @author kemo <github.com/kemo> | |
* @see http://labs.omniti.com/labs/jsend | |
*/ | |
class View_Ajax { | |
// Release version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* @author kemo <github.com/kemo> | |
*/ | |
class Security extends Kohana_Security { | |
/** | |
* Logs the timed purpose to session | |
* @param string purpose | |
* @return void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
abstract class Database_Query_Builder_Where extends Kohana_Database_Query_Builder_Where { | |
/** | |
* Closes an open "AND WHERE (...)" grouping. | |
* | |
* @return $this | |
*/ | |
public function and_where_close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Process URI | |
* | |
* @param string $uri URI | |
* @param array $routes Route | |
* @return array | |
*/ | |
public static function process_uri($uri, $routes = NULL) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // bootstrap ... | |
// Include app routes | |
if ( ! Route::cache()) | |
{ | |
require APPPATH.'routes.php'; | |
Route::cache(Kohana::$environment === Kohana::PRODUCTION); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Image_GD extends Kohana_Image_GD { | |
public function grayscale() | |
{ | |
// Creating the Canvas | |
$bwimage = $this->_create($this->width, $this->height); | |
$this->_load_image(); |
OlderNewer