? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/modules/mod_fbfanbox/
File Upload :
Current File : /home/admin/public_html/old/modules/mod_fbfanbox/helper.php

<?php
/**
 * Helper class for Facebook Fanbox module
 * 
 * @package    Facebook Fanbox
 * @link       http://www.khawaib.co.uk
 * @license    http://www.khawaib.co.uk
 */
class modFacebookFanboxHelper {
  /**
   * Retrieves the html
   *
   * @param array $params An object containing the module parameters
   * @access public
   */    
  function getFanbox( $params )   {
  	global $mainframe;
  	if ((!trim($params->get('api_key'))) || (!trim($params->get('profile_id')))) {
			$fanboxhtml = 'Please enter valid API Key from you Facebook API and your valid Profile ID.';
  	} else {
  		if (trim( $params->get( 'script_call' ) )) {
				$fanboxhtml = '<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>';
			}
			$fanboxhtml .= '<script type="text/javascript">FB.init("'.trim( $params->get( 'api_key' ) ).'");</script>';
			$fanboxhtml .= '<fb:fan profile_id="'.trim( $params->get( 'profile_id' ) ).'" stream="'.trim( $params->get( 'include_stream' ) ).'" connections="'.trim( $params->get( 'number_of_fans' ) ).'" width="'.trim( $params->get( 'boxwidth' ) ).'" height="'.trim( $params->get( 'boxheight' ) ).'"';

			$fanboxhtml .= '></fb:fan>';
			if (trim( $params->get( 'link_to_page' ) )) {
				$fanboxhtml .= '<div style="font-size:8px; padding-left:10px"><a href="'.trim($params->get('link')).'"';
				if ($params->get('target')) { 
					$fanboxhtml .= 'target="_blank"';
				}
				$fanboxhtml .= '>'.trim( $params->get( 'profile_name' ) ).'</a> '.trim( $params->get( 'text_after_link' ) ).'</div>';
			}
	  }
	  return $fanboxhtml;
  }
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$