Hallo Könnt Ihr mir hier Helfen.
Kann einer das So einstellen das ich auch MP3 Uploaden kann ?
Ich möchte damit MP3 Uploaden und sollte nach Upload Diesen Player Code in form nähmen.
Hier ist der Script
Hier ist der Player code, Sollte nach Upload Player Ausgabe haben damit User Peer Play druck die Songs anhören Koennen
Kann einer das So einstellen das ich auch MP3 Uploaden kann ?
Ich möchte damit MP3 Uploaden und sollte nach Upload Diesen Player Code in form nähmen.
Hier ist der Script
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MP3 4 YOU - Upload</title>
</head>
<body>
<?php
include('../includes/config.php');
include('includes/functions.php');
if($_FILES['productimage']['name'] != "") {
$sourcename = "source_".$_FILES['productimage']['name'];
move_uploaded_file($_FILES['productimage']['tmp_name'], getOptionValue('ddcartpath')."productimages/".$sourcename);
//create regular sized copy
$srcImg = imagecreatefromjpeg(getOptionValue('ddcartpath')."productimages/".$sourcename);
$origWidth = imagesx($srcImg);
$origHeight = imagesy($srcImg);
$ratio = 400 / $origWidth; // 300 is width
$thumbHeight = $origHeight * $ratio;
$thumbImg = imagecreatetruecolor(400, $thumbHeight);
fastimagecopyresampled($thumbImg, $srcImg, 0, 0, 0, 0, 400, $thumbHeight, $origWidth, $origHeight); //300 is width
imagejpeg($thumbImg, getOptionValue('ddcartpath')."productimages/"."reg_".$_FILES['productimage']['name']);
//create thumb sized copy
$srcImg = imagecreatefromjpeg(getOptionValue('ddcartpath')."productimages/".$sourcename);
$origWidth = imagesx($srcImg);
$origHeight = imagesy($srcImg);
$ratio = 100 / $origWidth; // 300 is width
$thumbHeight = $origHeight * $ratio;
$thumbImg = imagecreatetruecolor(100, $thumbHeight);
fastimagecopyresampled($thumbImg, $srcImg, 0, 0, 0, 0, 100, $thumbHeight, $origWidth, $origHeight); //300 is width
imagejpeg($thumbImg, getOptionValue('ddcartpath')."productimages/"."thumb_".$_FILES['productimage']['name']);
$imgdivname = time();
?>
<script type="text/javascript">
window.opener.imageAdd('<?php echo $_FILES['productimage']['name']; ?>', '<?php echo $imgdivname; ?>');
</script>
Image uploaded. <a href="photoupload.php">Upload another image.</a>
<?php
} else {
?>
<p><strong>Important Note:</strong> Make sure that your images have unique filenames. Uploading an image that has the same filename as an image already in the system will cause it to be overwritten!</p>
<form method="post" action="photoupload.php" enctype="multipart/form-data">
Image File: <input type="file" name="productimage" /> <input type="submit" value="Upload" />
</form>
<?php
} ?>
</body>
</html>
Hier ist der Player code, Sollte nach Upload Player Ausgabe haben damit User Peer Play druck die Songs anhören Koennen
<script type="text/javascript" src="http://www.fxcomponents.com/common/swfobject_v210.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.trackURL = "http://hotflop.de/mp3";
flashvars.title = "88,02.mp3";
flashvars.width = 300;
flashvars.height = 30;
flashvars.autoPlay = "false";
flashvars.autoLoad = "false";
flashvars.downloadEnabled = "false";
flashvars.loop = "false";
flashvars.volume = 0.7;
flashvars.duration = 0;
flashvars.color1 = "0x577ba0";
flashvars.color2 = "0xeeeeee";
flashvars.color3 = "0x333333";
flashvars.color4 = "0xeeeeee";
flashvars.color5 = "0x577ba0";
flashvars.color6 = "0xeeeeee";
var params = {};
params.wmode = "transparent";
swfobject.embedSWF("http://www.fxcomponents.com/common/A3_v100.swf", "A3Player", "300", "30", "9.0.0", false, flashvars, params);
</script>
<style type="text/css">
object { outline: none; }
</style>