MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/artinside/www/lhh/generator/pages/mods/extra_flvplayer.inc.php
<?php

return;

$site_url = $grab_parameters['xs_initurl'];

if(!function_exists('xml_extra_video_step1'))
{
function xml_extra_video_step1(&$ent, $cn, &$imlist)
{
   	preg_match_all('#<param name="movie"[^>]*?(flvplayer[^>/]*?\.swf)[^>]*?file=([^&"\'><]*\.flv)#is', 
   		$cn, $aima, PREG_SET_ORDER);
   	foreach($aima as $im)
   	{
   		if(!$imlist[$im[2]]++)
   		$ent['v'][] = array($im[1],$im[2]);
   	}
}

function xml_extra_video_step2(&$varr, $params)
{
	global $site_url;

  	if(preg_match('#^flvplayer#',$varr['playerloc']))
  	{
  		$cl = $varr['vid'];
  		if(!strstr($cl, '://'))$cl = $site_url . $cl;
  		$varr['contentloc'] = $cl ;
  		$varr['playerloc'] = '';
	}
}


}