Skip to content

Instantly share code, notes, and snippets.

View lgersman's full-sized avatar
💭
Stecke voller Bratentang 💪

lars.gersmann lgersman

💭
Stecke voller Bratentang 💪
View GitHub Profile
@zircote
zircote / PrivateIPAssertion.php
Created June 13, 2011 06:00
Private IP address Zend_Acl Assertion
<?php
require_once 'Zend/Acl/Assert/Interface.php';
/**
*
* Assert the REMOTE_ADDR of the reqeust is from a private IP address
* @author zircote
*
*/
class PrivateIPAssertion implements Zend_Acl_Assert_Interface
{
@nebiros
nebiros / ErrorController.php
Created January 15, 2010 18:40
Display AJAX errors on Zend Framework
<?php
class ErrorController extends Zend_Controller_Action
{
public function errorAction()
{
/** Other suff */
if ( true === $this->getRequest()->isXmlHttpRequest() )
{
@eleclerc
eleclerc / Danceric_Log_Writer_Xmpp.php
Created December 2, 2009 01:28
Zend Log Writer XMPP (gtalk)
<?php
/**
* Writter for Zend_Log that use the XMPP protocol.
*
* This class depends on XMPPHP library from http://code.google.com/p/xmpphp
* Note: The recipient must have added the sender to his roster/contactlist
* in order for him to receive the message
*
* @category Danceric
* @package Danceric_Log