%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/modules/mod_sj_facebook/ |
Upload File : |
<?php /** * @package Sj Facebook * @version 2.5 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @copyright (c) 2012 YouTech Company. All Rights Reserved. * @author YouTech Company http://www.smartaddons.com * */ defined('_JEXEC') or die; class modSjFacebookHelper{ public static function getFanbox($params){ //get params from admin config $pageid = trim($params->get('pageid')); $facebookheight = trim((int)$params->get('facebookheight')); if($facebookheight == 0){ $height = '500'; }else{ $heightmax = trim($params->get('facebookheight')); if($heightmax > 600){ $height = '600'; }elseif($heightmax >=300 & $heightmax <= 600){ $height = trim($params->get('facebookheight')); }elseif($heightmax < 300){ $height = '600'; } } $facebookwidth = trim((int)$params->get('facebookwidth')); if($facebookwidth == 0){ $width = '500'; }else{ $widthmax = trim($params->get('facebookwidth')); if($widthmax > 500){ $width = '500'; }elseif($widthmax >=180 & $widthmax <= 500){ $width = trim($params->get('facebookwidth')); }elseif($widthmax < 180){ $width = '500'; } } $hide_cover = trim($params->get('hide_cover')); $show_facepile = trim($params->get('show_facepile')); $stream = trim($params->get('stream')); $small_header = trim($params->get('small_header')); $bordercolor = trim($params->get('bordercolor')); // get data from facebook $fbcontent = ""; if($pageid == '' ){ $fbcontent.='Please enter your valid Page ID.'; }else{ $href_id = (strpos($pageid,'http') !== false )?'?href=':'?id='; $fbcontent .= '<iframe src="http://www.facebook.com/plugins/likebox.php'.$href_id.$pageid; if ( $stream ){ $fbcontent .= '&stream=true'; } if ( $hide_cover ){ $fbcontent .= '&hide_cover=true'; } if ( $small_header ){ $fbcontent .= '&small_header=true'; } if ( $show_facepile == 0 ){ $fbcontent .= '&show_facepile=false'; } if ( $height ){ $fbcontent .= '&height='.$height.''; } if ( $width ){ $fbcontent .= '&width='.$width.'"'; } $fbcontent .= ' style="overflow:auto;background-color: transparent;border:1px solid '.$bordercolor.';'; if ( $height ){ $fbcontent .= 'height:'.$height.'px;'; } if ( $width ){ $fbcontent .= 'width:'.$width.'px;'; } $fbcontent .= '" ></iframe>'; } return $fbcontent; } } ?>