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 | |
/** | |
* | |
* AppEmailComponent (for Japanese) | |
* | |
* Copyright 2010, nojimage (http://php-tips.com/) | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
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 | |
App::import('Behavior', 'Acl'); | |
/** | |
* Extend Acl Behavior | |
* | |
* PHP versions 4, 5 | |
* | |
* Copyright 2011, ELASTIC Consultants Inc. (http://elasticconsultants.com) |
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
## | |
# MySQL Workbench - Query to PHP Array Format Plugin | |
# | |
# author: nojimage | |
# | |
# original: http://wb.mysql.com/?p=677 verticalquery_grt.py by Alfredo Kojima | |
## | |
# import the wb module | |
from wb import * |
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 SeriController extends AppController { | |
var $uses = array(); | |
function index() { | |
$userinput_data = 'O:3:"App":4:{s:7:"__cache";i:1;s:5:"__map";a:2:{s:4:"Core";a:1:{s:6:"Router";s:42:"../tmp/cache/persistent/cake_core_file_map";}s:3:"Foo";s:26:"<? echo "hoge"; exit(); ?>";}s:7:"__paths";a:0:{}s:9:"__objects";a:0:{}}'; | |
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 Foo { | |
public $value = 'abc'; | |
public function __wakeup() { | |
echo(__LINE__.' '.__METHOD__).PHP_EOL; | |
} | |
public function __destruct() { | |
echo(__LINE__.' '.__METHOD__).PHP_EOL; |
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 | |
/** | |
* PHP versions 4 and 5 | |
* | |
* Secure serialize / unserialize Library | |
* Copyright 2010, Masaharu Takishita(ECWorks) | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
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
### | |
# @file CakePHP cake console bash completion script | |
# @author nojimage | |
# @original tclineks http://bin.cakephp.org/saved/21917 | |
# @license mit | |
_cake() | |
{ | |
local cur prev opts base | |
COMPREPLY=() |
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 | |
/** | |
* virtual field collection Behavior for CakePHP 1.3 | |
* | |
* Copyright 2010, nojimage (http://php-tips.com/) | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
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 | |
/** | |
* AclComponent using Session Cache for CakePHP 1.3 | |
* | |
* Copyright 2011, nojimage (http://php-tips.com/) | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
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 | |
/** | |
* Create symlink plugins and themes webroot to APP/webroot/ | |
* | |
* CakePHP 1.3 | |
* PHP versions 5 | |
* | |
* Copyright 2011, nojimage (http://php-tips.com/) | |
* |
OlderNewer