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 | |
class MagicMethodFixture { | |
/** | |
* @var array | |
*/ | |
protected $configurations; | |
public function __construct() { | |
$this->configurations = array( |
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
RewriteCond %{HTTP:X-Requested-With} !=XMLHttpRequest | |
RewriteCond %{HTTP:X-REQUESTED-WITH} !^(XMLHttpRequest)$ |
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
diff --git a/system/core/Kohana.php b/system/core/Kohana.php | |
index 271f917..287c271 100644 | |
--- a/system/core/Kohana.php | |
+++ b/system/core/Kohana.php | |
@@ -722,7 +722,7 @@ final class Kohana { | |
if (ob_get_level() >= self::$buffer_level) | |
{ | |
// Set the close function | |
- $close = ($flush === TRUE) ? 'ob_end_flush' : 'ob_end_clean'; | |
+ $close = ($flush === TRUE) ? 'ob_end_flush' : 'Kohana::_ob_end_clean'; |
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.'); | |
/** | |
* Extend this class if you want your model cached. Example usage: | |
* | |
* 1. Model | |
* class Model_User extends ORM_Cached {} | |
* | |
* 2. Usage | |
* |
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 Security extends Kohana_Security { | |
protected static $_logout_token_name = 'logout_token_key'; | |
public static $csrf_field = 'token'; | |
/** | |
* Creates a validation object to check if the field specified |
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
object Model_User(16) { | |
protected _validation => NULL | |
protected _object => array(6) ( | |
"id" => string(1) "1" | |
"email" => string(23) "kemal.delalic@gmail.com" | |
"username" => string(4) "kemo" | |
"password" => string(64) "ab1bed09899950fe87a5d30495362b362398015b5d22d5e2ce4f781a7ef91bdd" | |
"logins" => string(2) "10" | |
"last_login" => string(10) "1388421310" | |
) |
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
(string) mukuru-card | |
echo ( ! $a == 'mukuru-card') -> | |
FALSE | |
echo ($a != 'mukuru-card') -> | |
FALSE | |
(string) | |
echo ( ! $a == 'mukuru-card') -> | |
TRUE | |
echo ($a != 'mukuru-card') -> |
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
## | |
## ca-bundle.crt -- Bundle of CA Root Certificates | |
## | |
## Certificate data from Mozilla as of: Sun Feb 19 04:03:37 2012 | |
## | |
## This is a bundle of X.509 certificates of public Certificate Authorities | |
## (CA). These were automatically extracted from Mozilla's root certificates | |
## file (certdata.txt). This file can be found in the mozilla source tree: | |
## http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 | |
## |
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.'); | |
/** | |
* Google (unofficial) Weather API Helper | |
* | |
* @author Kemal Delalic <kemal.delalic@gmail.com> | |
*/ | |
class Weather { | |
protected static $_days = array( | |
'Mon' => 'Monday', |
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
// Just save the JS below as a bookmark and click it while on the page you wish to inspect | |
javascript:(function(){var script=document.createElement('script');script.type='text/javascript';script.src='http://javascriptrocks.com/tools/dommonster.js?'+(new Date().getTime());document.getElementsByTagName('body')[0].appendChild(script);})() |
NewerOlder