Búsqueda en el Foro:
Buscar


Autor Mensaje
Mensaje24-10-2008, 00:12 (UTC)    
Título del mensaje: pregunta sobre un codigo

hola

tengo el codigo para subir imagenes a imagenshack pero no se si sea ilegal, grasias bueno este es el codigo por si lo quieren.

Código:

<form method="post" action="http://www.imageshack.us/" enctype="multipart/form-data" onsubmit="return checkemail()" id="upform">
<script type="text/javascript" src="/scripts/common/magicbutton.js"></script>
<table cellspacing="0" cellpadding="0" border="0" style="width:100%"><tr>

<td colspan="3" nowrap="NOWRAP">upload:
<input type="radio" id="toggle0" name="uploadtype" onclick="toggleuploadmode(0)"> <a href="#" onclick="toggleuploadmode(0)" title="upload an image" checked>image</a>
<input type="radio" id="toggle1" name="uploadtype" onclick="toggleuploadmode(1)"> <a href="#" onclick="toggleuploadmode(1)" title="transload an image from a url">url</a>
<input type="radio" id="toggle2" name="uploadtype" onclick="toggleuploadmode(2)"> <a href="#" onclick="toggleuploadmode(2)" title="upload a video with the ImageShack toolbar">video</a>
<input type="radio" id="toggle3" name="uploadtype" onclick="toggleuploadmode(3)"> <a href="#" onclick="toggleuploadmode(3)" title="upload multiple images">multiploader</a>  <input type="radio" id="toggle5" name="uploadtype" onclick="toggleuploadmode(5);"> <a href="#" title="send file to friend" onclick="toggleuploadmode(5);" href="#">file&nbsp;exchange</a>
</td>
</tr>
<tr>
<td colspan="3" nowrap="NOWRAP">
<div id="upfile">
    <input type="file" name="fileupload" size="50" style="height:20px;" onchange="showoptions(this)" id="fileupload"/>
</div>
 <div id="upurl" style="display: none"><input type="text" id="fileupload" value="paste image url here" style="color: #888;height:20px"
onfocus="focusfield(this)" name="url" size="50">
</div>
 <div id="upvideo" style="display: none">
 <input type="text" value="" disabled="DISABLED" size="50" style="height:20px"/>&nbsp;<script type="text/javascript">_magic_button('height:20px;width:70px;background-color:#cccccc;')</script>
 </div>
 <div id="upflash" style="display: none">
    <embed src="uploader.swf"
        quality="high"
        bgcolor="#ffffff"
        width="386"
        height="70"
        name="uploader"
        id="uploader"
        align="middle"
        allowScriptAccess="sameDomain"
        type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer"
        flashvars="maxAllowedFileSize=13145728"/>
 </div>


</td>
</tr>
<tr>
    <td colspan="3" style="padding:0;margin:0">
        <center>
        <div id="pipebytes" style="display:none;padding:0;margin:0">
            <br/><br/>
            <iframe id="fpb" src="javascript:void(0)" style="width:385px;height:220px;border:none" scrolling="no" frameborder="0" hspace="0" vspace="0"></iframe>
        </div>
        </center>
    </td>
</tr>

<tr>
<td colspan="3">
<table id="regtags">
<tr id="at1" style="display:none;">
    <td colspan="3">
    &nbsp;&nbsp;<a href="javascript:void(0)" onclick="openemail(); return false;" title="Register at ImageShack"><b>Register (Optional)</b></a>
    </td>
</tr>
<tr id="autoreg" >
    <td><p>email:</p></td>
    <td width="2">&nbsp;</td>
    <td><input type="text" name="email" id="email" size="30" maxlength="100"/></td>
</tr>
<tr id="autoregdesc" >
    <td>&nbsp;</td>
    <td width="2">&nbsp;</td>
    <td nowrap="NOWRAP">
        <p><i>Type in your email address to register upon upload<br />(then check your email for your registration link).</i></p>
    </td>
</tr>
</table>
</td>
</tr>
</table>


<input type="hidden" name="MAX_FILE_SIZE" value="13145728">
<input type="hidden" name="refer" value="">
<input type="hidden" name="brand" value="">

<div id="resizeoptions" style="padding-top: 5px; ">
  <input type="checkbox" name="optimage" id="optimage" value="1"  onclick="optsize.disabled=!this.checked"> resize image?
  <select name="optsize" id="optsize">
    <option value="100x100" >100x75 (avatar)</option>
    <option value="150x150" >150x112 (thumbnail)</option>
    <option value="320x320" selected>320x240 (for websites and email)</option>
    <option value="640x640" >640x480 (for message boards)</option>
    <option value="800x800" >800x600 (15-inch monitor)</option>
    <option value="1024x1024" >1024x768 (17-inch monitor)</option>
    <option value="1280x1280" >1280x1024 (19-inch monitor)</option>
    <option value="1600x1600" >1600x1200 (21-inch monitor)</option>
    <option value="resample" >optimize without resizing</option>
  </select><br />


  <input type="checkbox" name="rembar" id="rembar" value="1" > remove size/resolution bar from thumbnail?
</div>


<div id="filetypeerror" style="display: none"> <b style="color: red;">Please select only one of the supported file types:</b><br /></div>
<p id="filetypeallowed">allowed: <b>jpg jpeg png gif bmp tif tiff</b> < <b>1.53 megabytes</b>.</p>

<p><a href="http://reg.imageshack.us/content.php?page=subscribe"><b>upgrade to 3.00 megabytes per image</b></a></p>  <br/>
<span id="butan_wrap">
    <input id="butan" style="width:135px;border:2px solid #FF6600" type="submit" value="host it!" />
    &nbsp;&nbsp;&nbsp; </span>
    <input id="swfbutan" style="width:135px;display:none;border:2px solid #FF6600" type="button" value="start upload!" onclick="uploadstart()"/>
   
</form>
Mensaje24-10-2008, 01:12 (UTC)    
Título del mensaje:

No creo que sea ilegal ya que lo único que se puede hacer desde la propia página es elegir la imagen y algunos atributos, pero al presionar "hostit" nos lleva a Imageshack asi que no veo problema con este code.
Pueden ver como funciona desde aquí:
http://sitedeejemplo.es.tl/P%E1gina-normal.htm

Salu2!
Mostrar mensajes anteriores:   


Powered by phpBB © 2001, 2005 phpBB Group