Pastoid

/** * Handle inco

The page you are looking at now is at this URL: http://pastoid.com/asn

This paste was last updated on March 12, 2009 at 10:19 pm.

php coderaw

	/**
	 * Handle incoming requests to /admin_ajax for admin ajax requests
	 */
	public function act_admin_ajax()
	{
		$context = $this->handler_vars['context'];
		if ( method_exists( $this, 'ajax_' . $context ) ) {
			$type = ( isset( $this->handler_vars['content_type'] ) && !empty( $this->handler_vars['content_type'] ) ) ? $this->handler_vars['content_type'] : '';
			// Access check to see if the user is allowed the requested page
			if ( !$this->access_allowed( 'ajax_' . $context, $type ) ) {
				//Session::error(_t('Access to that page has been denied by the administrator.'));
				echo json_encode('Access to that page has been denied by the administrator.');
				die;
			}
			call_user_func( array( $this, 'ajax_' . $context ), $this->handler_vars );
		}
		else {
			header( 'HTTP/1.1 403 Forbidden', true, 403 );
			die();
		}
	}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 5
search.live.com 2
drunkenmonkey.org 1
Is this paste spam?
<Hide