
            global $reefless, $page_info, $listing_data, $listing_id;
			if ( $page_info['Controller'] == 'listing_details' )
			{
			    $user_dir = RL_FILES.'qrcode'.RL_DS.'user_'.$listing_data['Account_ID'];
                if(!is_dir($user_dir)){
                    $reefless->rlMkdir($user_dir);
                }
                if(!file_exists($user_dir . RL_DS . 'listing_' . $listing_id . '.png')){
                    $reefless -> loadClass('QrCode', false, 'qrCode');
                    $GLOBALS['rlQrCode'] -> generateQR_Code((int)$listing_id);
                }
                $GLOBALS['rlSmarty'] -> display(RL_ROOT .'plugins'. RL_DS .'qrCode'. RL_DS .'qrCode.tpl');
			}
		