Me eh bajado el Swiff.Uploader el 2.0 y lo arme todo con php ahora resulta que como no se nada de js no puedo fucionarlo al php osea sube pero por separado, alguien me ayudaria a fucionarlo, estaria muy agradecido dado que no conosco nadi que sepa js basico es muy minimo pero no se.
Muchas gracias, ah quien me ayuda le pongo un mail o enlace a su sitio en el footer del sitio que es conosido y de años gracias .
http://rapidshare.com/files/133706517/uploader.7z.html
http://rapidshare.com/files/133707184/sitio.rar.html
codigo index:
Código PHP:
error_reporting (E_ALL);
include("./config.php");
$sizehosted = 0; //get the storage size hosted
$handle = opendir("./storage/");
while($file = readdir($handle)) {
$sizehosted = $sizehosted + filesize ("./storage/".$file);
if((is_dir("./storage/".$file.'/')) && ($file != '..')&&($file != '.'))
{
$sizehosted = $sizehosted + total_size("./storage/".$file.'/');
}
}
$sizehosted = round($sizehosted/1024/1024,2);
if(isset($allowedtypes)){ //get allowed filetypes.
$types = implode(", ", $allowedtypes);
$filetypes = "<b>archivos permitidos:</b> ".$types."<br /><br />";
} else { $filetypes = ""; }
if(isset($categories)){ //get categories
$categorylist = "Categoria: <select name=\"category\">";
foreach($categories as $category){
$categorylist .= "<option value=\"".$category."\">".$category."</option>";
}
$categorylist .= "</select><br />";
} else { $filetypes = ""; }
?>
<?php
if (!empty($_GET))
{
require 'download.php';
exit;
}
?> <script type="text/javascript" src="mootools-trunk.js"></script>
<script type="text/javascript" src="Swiff.Uploader.js"></script>
<script type="text/javascript" src="Fx.ProgressBar.js"></script>
<script type="text/javascript" src="FancyUpload2.js"></script>
<?php
include("styles.css");
include("script.js");
require 'db.php';
?>
<form action="script.php" method="post" enctype="multipart/form-data" id="form-upload">
<fieldset id="form-fallback">
<legend>Subir archivo</legend>
<p>
Selecciona algun archivo para subir.
</p>
<label for="form-upload">
Archivo:
<input type="file" name="upload" id="form-upload" />
</label>
</fieldset>
<div id="form-status" class="hide">
<p>
<a href="#browse-all" id="form-browse-all">Buscar archivos</a> |
<a href="#clear-list" id="form-clear">Limpiar lista</a> |
<a href="#upload" id="form-upload">Subir</a>
</p>
<div>
<strong class="overall-title">Progreso total</strong><br />
<img src="bar.gif" class="progress overall-progress" />
</div>
<div>
<strong class="current-title">Progreso por archivo</strong><br />
<img src="bar.gif" class="progress current-progress" />
</div>
<div class="current-text"></div>
</div>
<ul id="form-list"></ul>
</form>
<form enctype="multipart/form-data" action="upload.php" id="form" method="post" onsubmit="a=document.getElementById('form').style;a.display='none';b=document.getElementById('part2').style;b.display='inline';" style="display: inline;">
<p><br />
<?php echo $filetypes; ?>
<input type="file" name="upfile" size="64" />
<input name="submit" type="submit" id="upload" value="Upload!" />
</p>
<p><strong>Upload-limit: Unlimited!</strong> (Max. <strong><u>300 MB</u></strong> per file! Split-archives allowed!)<br>
<strong>Download-limit: Unlimited!</strong> (Some files have more than 100.000 downloads!)</p>
<p>RapidShare, the world's biggest (<strong>over 23 million files uploaded!</strong>) and fastest (<strong>45 Gigabit/s up/down!</strong>) 1-click file-hoster.<br>
Burning the net with 360 Terabytes of hard-drive capacity right now and growing! Millions of users just can't be wrong.</p>
<p><center>
</center>
</form><div id="part2" style="display: none;">
<script language="javascript" src="xp_progress.js"></script>
Upload in progress. Please Wait...
<BR><BR>
<script type="text/javascript">
var bar1= createBar(300,15,'white',1,'black','blue',85,7,3,"");</script>