This file contains hidden or 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 | |
/** | |
* @see http://book.cakephp.org/view/1549/An-Automated-tool-for-creating-ACOs | |
*/ | |
function build_acl() { | |
if (!Configure::read('debug')) { | |
return $this->_stop(); | |
} | |
$log = array(); |
This file contains hidden or 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 hidden or 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 | |
/** | |
* Code compleation for CakePHP Helpers in Eclipse PDT | |
* | |
* @author nojimage (http://php-tips.com/) | |
* @original Mark Story | http://mark-story.com/posts/view/code-completion-for-cakephp-in-eclipse | |
*/ | |
// stop page loading | |
exit; |
This file contains hidden or 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 | |
/* i18n schema generated on: 2007-11-25 07:11:25 : 1196004805 */ | |
/** | |
* This is i18n Schema file | |
* | |
* Use it to configure database for i18n | |
* | |
* PHP versions 4 and 5 |
This file contains hidden or 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
# Original code is http://wb.mysql.com/?p=777 | |
# import the wb module | |
from wb import * | |
# import the grt module | |
import grt | |
# import the mforms module for GUI stuff | |
import mforms | |
This file contains hidden or 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 hidden or 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() { | |
/* | |
$x=new App(); | |
$x->__cache=1; | |
$x->__map=array("Core" => array("Router" |
This file contains hidden or 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 hidden or 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
#!/usr/bin/env bash | |
## | |
# php switch (php5.2 <-> php5.3) for macports | |
# | |
# @original http://mark-story.com/posts/view/updating-to-php5-3-with-macports | |
# | |
PORT_BIN=/opt/local/bin/port | |
APACHECTL_BIN=/opt/local/apache2/bin/apachectl | |
function get_ports_installed_version(){ |
This file contains hidden or 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 ExTwitterFormHelper extends TwitterFormHelper { | |
/** | |
* create OAuth Link | |
* | |
* @param $options | |
* loading: loading message | |
* login: login link text | |
* datasource: datasource name (default: twitter) |