Incorrect accessYou cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit(); } class public_forums_ajax_usercp extends ipsAjaxCommand { /** * Main class entry point * * @access public * @param object ipsRegistry reference * @return void [Outputs to screen] */ public function doExecute( ipsRegistry $registry ) { switch( $this->request['do'] ) { case 'get_avatar_images': $this->_getAvatarImages(); break; } } /** * Get avatar images in a directory * * @access protected * @return void [Outputs to screen] */ protected function _getAvatarImages() { $dir = urldecode( $this->request['cat'] ); $images = IPSMember::getFunction()->getHostedAvatarsFromCategory( $dir ); if ( $images === FALSE ) { $this->returnJsonError( $this->lang->words['ajax_avatar_dir'] ); exit(); } else { $output = $this->registry->getClass('output')->getTemplate('ucp')->forumsInlineAvatarImages( $images, $dir ); $this->returnHtml( $output ); } } }