shell bypass 403
Cubjrnet7 Shell
: /home/eklavya/backups/joomla3oldsite/components/com_youtubegalleryV25May18/includes/ [ drwxr-xr-x ]
<?php class VideoSource_Vimeo { function extractVimeoID($theLink) { preg_match('/http:\/\/vimeo.com\/(\d+)$/', $theLink, $matches); if (count($matches) != 0) { $vimeo_id = $matches[1]; return $vimeo_id; } return ''; } function getVideoData($videoid,$customimage,$customtitle,$customdescription, $video_showtitle_nav_or_active,$video_showdescription) { $theTitle=''; $Description=''; $theImage=''; // prepare our Consumer Key and Secret $consumer_key = '41349f38982966f25d9a2453dc83a0afe7043bb1'; $consumer_secret = '83bcca5595aecb3b678997c89d991b0a6bb09191'; require_once('vimeo_api.php'); session_start(); $vimeo = new phpVimeo($consumer_key, $consumer_secret, $_SESSION['oauth_access_token'], $_SESSION['oauth_access_token_secret']); $params = array(); $params['video_id'] = $videoid; $video_info = $vimeo->call('videos.getInfo',$params); if(isset($video_info)) { if($customimage!='') $theImage=$customimage; else $theImage=$video_info->video[0]->thumbnails->thumbnail[1]->_content; if($customtitle=='') $theTitle=$video_info->video[0]->title; else $theTitle=$customtitle; if($customdescription=='') $Description=$video_info->video[0]->description; else $Description=$customdescription; $keywords=array(); if(isset($video_info->video[0]->tags->tag)) { foreach($video_info->video[0]->tags->tag as $tag) { $keywords[]=$tag->_content; } } return array( 'videosource'=>'vimeo', 'videoid'=>$videoid, 'imageurl'=>$theImage, 'title'=>$theTitle, 'description'=>$Description, 'publisheddate'=>$video_info->video[0]->upload_date, 'duration'=>$video_info->video[0]->duration, 'rating_average'=>0, 'rating_max'=>0, 'rating_min'=>0, 'rating_numRaters'=>0, 'statistics_favoriteCount'=>$video_info->video[0]->number_of_likes, 'statistics_viewCount'=>$video_info->video[0]->number_of_plays, 'keywords'=>implode(',',$keywords) ); } else return array('videosource'=>'vimeo', 'videoid'=>$videoid, 'imageurl'=>$theImage, 'title'=>$theTitle,'description'=>$Description); } function renderVimeoPlayer($options,$row) { $playerid='youtubegalleryplayerid_'.$row->id; $result='<iframe src="http://player.vimeo.com/video/'.$options['videoid'].'?'; if($options['color1']!='') $result.='color='.$options['color1'].'&'; if($options['showinfo']==0) $result.='portrait=0&title=0&byline=0&'; $result.='"'; $result.=' autoplay='.(int)$options['autoplay'].'' .' loop='.(int)$options['repeat'].'"' .' id="'.$playerid.'"' .' width="'.$options['width'].'" height="'.$options['height'].'" frameborder="'.(int)$options['border'].'"' .($row->responsive==1 ? ' onLoad="YoutubeGalleryAutoResizePlayer'.$row->id.'();"' : '') .'></iframe>'; return $result; } } ?>