irwin238
Gamma
Programador
Verificación en dos pasos activada
Script TextUploading Simplificado
Este es un script simplificado puesto que el completo trae una gran admin, muchas mas opciones, mysql, registro, limitaciones, etc... sin embargo este script es completamente funcional :3
De que sirve???
Es muy simple, ustedes escriben un texto en el formulario y se los guarda como .txt en su servidor, sirve bastante para compartir codigos html,php etc 😛7:😛7:😛7:
Formulario
Registro del txt
Descarga... https://mega.co.nz/#!IpIWHBxC!DOoSrEUP-WsYYXb1WTmFPTc_oCgQ1vcNBXX8XiYxHek (Interesante el nuevo megaupload) 😛4:
Pero por si las dudas tambien lo dejo en mf :encouragement: Text Uploading -.rar
Este es un script simplificado puesto que el completo trae una gran admin, muchas mas opciones, mysql, registro, limitaciones, etc... sin embargo este script es completamente funcional :3
De que sirve???
Es muy simple, ustedes escriben un texto en el formulario y se los guarda como .txt en su servidor, sirve bastante para compartir codigos html,php etc 😛7:😛7:😛7:
Formulario
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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background:url('image/fondo.png');
margin: 0;
padding: 0;
color: #000;
}
</style>
</head>
<body>
<center><br><h1>PoxiTextUploading</h1><br>
<form name="Subir" action="subir.php" method="post">
<textarea cols="60" rows="10" name="texto" placeholder="Ingrese su texto aqui"></textarea>
<p></p>
<p>
<input type="submit" value="Enviar texto" />
</p>
</form>
</center>
</body>
</html>
Registro del txt
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">
<head>
<title>Texto subido</title>
<style type="text/css">
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background:url('image/fondo.png');
margin: 0;
padding: 0;
color: #000;
}
</style>
<script>
function Select()
{
document.getElementById("url").select();
}
</script>
</head>
<body>
<?php
$t = $_POST['texto'];
if ($t=="")
{ //el campo está vacio;
echo "Faltan datos"; }
else { //hay campo;
$str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
$generador = "";
for($i=0;$i<20;$i++) {
$generador .= substr($str,rand(0,62),1);
}
$texto_guardar=fopen("txt/".$generador.".txt" , "a") or die ("<center>Ups hubo un error
al guardar tu texto</center>");
fwrite($texto_guardar,$t);
fclose($texto_guardar);
echo "<center><h1>EXITO</h1>";
echo "Se ha guardado correctamente</center></h3>";
?>
<center><?php
echo "<input type='text' id='url' onclick='Select()' size='50' value='http://poxion.us/text/txt/"."$generador".".txt"."'><button type='button' onclick='Select()'>Seleccionar</button>";?>
<br>
<input type="button" onclick=" location.href='index.php' " value="Subir otro texto" name="regresar" />
</center>
<?php
}
?>
Descarga... https://mega.co.nz/#!IpIWHBxC!DOoSrEUP-WsYYXb1WTmFPTc_oCgQ1vcNBXX8XiYxHek (Interesante el nuevo megaupload) 😛4:
Pero por si las dudas tambien lo dejo en mf :encouragement: Text Uploading -.rar

