| Server IP : 82.148.16.210 / Your IP : 216.73.216.19 Web Server : nginx/1.29.5 System : Linux mail.sarafai.ru 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64 User : root ( 0) PHP Version : 7.4.33 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/fita.staroobrad.ru/public/wp-content/plugins/flash-mp3-player/inc/ |
Upload File : |
<?php require_once('./class.utils.php');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel='stylesheet' href='css/wp-admin.css' type='text/css' media='all' />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#insert-button').click(function(){
width = $('#fmp-jw-widget-width').val();
height = $('#fmp-jw-widget-height').val();
config = $('#fmp-jw-widget-config').val();
playlist = $('#fmp-jw-widget-playlist').val();
file = $('#fmp-jw-widget-file').val();
id = $('#fmp-jw-widget-id').val();
cclass=$('#fmp-jw-widget-class').val();
shortcode = '';
shortcode += '[mp3player';
if(width != '')
shortcode += ' width=' + width;
if(height != '')
shortcode += ' height=' + height;
if (config != '')
shortcode += ' config=' + config;
else{
alert('Please create a config file first!');
window.parent.send_to_editor('');
return;
}
if (playlist != '')
shortcode += ' playlist=' + playlist;
if (id != '')
shortcode += ' id=' + id;
if (cclass != '')
shortcode += ' class=' + cclass;
if (file != '')
shortcode += ' file=' + file;
if (playlist == '' && file == ''){
alert('You should tell the player a playlist or a single song url!');
window.parent.send_to_editor('');
return;
}
shortcode += ']'
window.parent.send_to_editor(shortcode);
});
});
</script>
<style type="text/css">
body{
text-align:center;
width:90%;
font-family:"Lucida Grande",Verdana,Arial,"Bitstream Vera";
}
#wpcontent{
text-align:left;
margin: 20px auto;
padding:20px 20px;
}
</style>
</head>
<body>
<?php
$config_file_dir = $_REQUEST['config'];
$playlist_file_dir = $_REQUEST['playlist'];
$config_files = array();
$playlist_files = array();
$temp = array();
$temp = my_scandir($config_file_dir);
foreach($temp as $name){
if(strpos($name, '.xml') !== false)
$config_files[] = $name;
}
$temp = array();
$temp = my_scandir($playlist_file_dir);
foreach($temp as $name){
if(strpos($name, '.xml') !== false)
$playlist_files[] = $name;
}
unset($temp,$name);
?>
<div id="wpcontent">
<form class="form-table">
<p>
<label for="fmp-jw-widget-width">
Width:<input id="fmp-jw-widget-width" type="text" value="" class="widefat" />
<br/><small>Just input the number, the unit is pixel.</small>
</label>
</p>
<p>
<label for="fmp-jw-widget-height">
Height:<input id="fmp-jw-widget-height" type="text" value="" class="widefat" />
<br/><small>Just input the number, the unit is pixel.</small>
</label>
</p>
<p>
<label for="fmp-jw-widget-config">
Choose a config file:
<select id="fmp-jw-widget-config">
<?php foreach($config_files as $config_file) :?>
<option value="<?php echo $config_file;?>"><?php echo $config_file;?></option>
<?php endforeach;?>
</select>
</label>
</p>
<p>
<label for="fmp-jw-widget-playlist">
Choose a playlist:
<select id="fmp-jw-widget-playlist">
<option value="">Without Playlist and Play Single Song</option>
<?php foreach($playlist_files as $playlist_file) :?>
<option value="<?php echo $playlist_file;?>"><?php echo $playlist_file;?></option>
<?php endforeach;?>
</select>
</label>
</p>
<p>
<label for="fmp-jw-widget-id">
Container <code>id</code>:<input id="fmp-jw-widget-id" type="text" value="" class="widefat" />
</label>
</p>
<p>
<label for="fmp-jw-widget-class">
Container <code>class</code>:<input type="text" id="fmp-jw-widget-class" value="" class="widefat" />
</label>
</p>
<p>
<label for="fmp-jw-widget-file">
Play single song:<input type="text" id="fmp-jw-widget-file" value="" class="widefat" />
</label>
</p>
<p>
<input type="button" value="Insert" name="insert" id="insert-button" class="button-primary" />
</p>
</form>
</div>
</body>
</html>