Pastoid

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

This paste was last updated on June 30, 2010 at 11:06 am.

Pasted Coderaw

<?php
 
/** 
 * Redirect anonymous users to the login form.
 *
 */
class LockOut extends Plugin
{
        /**
         * Add update beacon support
         **/
        public function action_update_check()
        {
                Update::add( $this->info->name, $this->info->guid, $this->info->version );
        }
 
        public function action_template_header()
        {
                if ( ! User::identify()->loggedin ) {
                        Utils::redirect( URL::get( 'auth', array( 'page' => 'login' ) ) );
                }
        }
 
}
 
?>
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 21
Is this paste spam?
<Hide