<?php
include("db-info.php");
include("session.inc.php");
include("loadsettings.inc.php");
?>
<html>
<head>
<meta name="description" content="<? echo $description; ?>" />
<meta name="keywords" content="<? echo $keywords; ?>" />
<title><? echo $webtitle; ?> - Hosting de Imagenes</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script language="JavaScript">
var x = 1;
function addMore() {
x = x + 1;
if (x > 5)
alert("Lo sentimos! Usted no puede subir mas de 5 fotos al mismo tiempo.");
else
document.getElementById("upload" + x).style.display = "block";
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo2 {color: #709592}
.Estilo3 {color: #FFFFFF}
.Estilo4 {color: #00FF00}
.Estilo5 {color: #CCCCCC; }
.Estilo6 {color: #CCCCB6}
-->
</style>
</head>
<body link=#336699 vlink=#336699 alink=#336699>
<?php include("header.php"); ?>
<center>
<div class="content-container">
<form method=\"GET\" action='images.php'>
<table width=900 bgcolor='#528A89' style=\"BORDER: #b1ddf6 2px solid;\">
<tr height=40>
<td align=left width=400>
<span class="Estilo3">Buscar
<LABEL id='message'>:</LABEL>
</span>
<LABEL id='message'> </LABEL>
<input type='text' name='query' size=30 maxlength='100'>
<input type='submit' value='Buscar'> </td>
<td>
<LABEL id='title'><span class="Estilo3">Buscar Por :</span> </LABEL>
<input type='radio' name='opt' value='tags' CHECKED> <span class="Estilo3">Tags
<input type='radio' name='opt' value='gallery'>
Galeria </span></td>
<td>
<div align="center"><a href="search.php" class="Estilo5">Buscador Avanzado</a> </div></td>
</tr></table>
</form>
<div style="display: none" id="loading" align=center>
<img src='images/loading.gif' border=0><br><br>
</div>
<div class="content-box">
<table> <tr>
<td width=350 valign=top>
<h1 class="Estilo3">Características:</h1>
<ul>
<li class="Estilo3">Subir varias imagenes de una sola vez
<li class="Estilo3">Crear galerias publicas y privadas
<li class="Estilo3">Añadir comentarios en las imagenes
<li class="Estilo3">Añadir cualquier imagen a tus favoritos
<li class="Estilo3">Postea tus fotos en webs, blogs y foros
<li class="Estilo3">Registra una cuenta para administrar tus archivos
<li class="Estilo3">Agrega tags a cada una de tus fotos
<li class="Estilo3">Sube imagenes privadas con password
<li class="Estilo3">Comparte tus imagenes con amigos y familiares
</ul> </td>
<td>
<div class="left">
<h1 class="Estilo3">Subir Imagen </h1>
<form action="process.php" method="POST" enctype="multipart/form-data" name="myForm" class="Estilo3">
<table style="border-collapse: collapse" width=300>
<tr>
<td>
<table id="upload1">
<tr>
<td><LABEL class="Estilo3" id="title">Imagen:</LABEL></td> <td> <input type="file" name="image1" size=40></td>
</tr>
<tr>
<td><LABEL class="Estilo3" id="title">Tags:</LABEL></td> <td><input type="text" name="tags1" size=40 maxlength="200"></td>
</tr>
</table>
<table style="BORDER: #999 1px dotted; MARGIN-TOP: 5px; MARGIN-BOTTOM: 5px; display: none" id="upload2">
<tr>
<td><LABEL id="title">Imagen:</LABEL></td> <td><input type="file" name="image2" size=40></td>
</tr>
<tr>
<td><LABEL id="title">Tags:</LABEL></td> <td><input type="text" name="tags2" size=40 maxlength="200"></td>
</tr>
</table>
<table id="upload3" style="display: none">
<tr>
<td><LABEL id="title">Imagen:</LABEL></td> <td><input type="file" name="image3" size=40></td>
</tr>
<tr>
<td><LABEL id="title">Tags:</LABEL></td> <td><input type="text" name="tags3" size=40 maxlength="200"></td>
</tr>
</table>
<table style="BORDER: #999 1px dotted; MARGIN-TOP: 5px; MARGIN-BOTTOM: 5px; display: none" id="upload4">
<tr>
<td><LABEL id="title">Imagen:</LABEL></td> <td height="18"><input type="file" name="image4" size=40></td>
</tr>
<tr>
<td><LABEL id="title">Tags:</LABEL></td> <td height="22"><input type="text" name="tags4" size=40 maxlength="200"></td>
</tr>
</table>
<table id="upload5" style="display: none">
<tr>
<td><LABEL id="title">Imagen:</LABEL></td> <td><input type="file" name="image5" size=40></td>
</tr>
<tr>
<td><LABEL id="title">Tags:</LABEL></td> <td><input type="text" name="tags5" size=40 maxlength="200"></td>
</tr>
</table>
<!-- ############################################################################################ -->
<?php
//****************************************************************
if ($session == true)
{
echo "<br><table> <tr height=30><td><h2>Opciones: </h2></td></tr>";
$result_set = mysql_query("SELECT id, name FROM `galleries` WHERE userid = '$userid'");
if ($number)
{
echo "<tr><td>
<input type='radio' name='opt' value='gallery'>
<font size=2>Añadir a Categoria:</font></td>";
echo "<td><select name='galleryid'>";
echo "<option value={$row['id']}>{$row['name']}</option>";
echo "</select></td></tr>";
}
echo "<tr><td><input type='radio' name='opt' value='single' CHECKED> <font size=2> Unica imagen </font></td>
<td> <font size=2>(Imagen Privada <input type='checkbox' name='private' value='ON'>)</font></td></tr>";
echo "</table>";
}
//*****************************************************************
?>
<table><tr>
<td>
<br>
<a href="#" class="Estilo6" onClick="addMore()">Subir mas</a> </td>
</tr>
<tr><td>
<LABEL class="Estilo3" id="text">Separar tags por comas. (,) </LABEL>
</td></tr>
<tr><td>
</td></tr>
<tr><td>
<br><a href=#><img src="images/upload.png" border=0
onclick="myForm.submit(); getElementById('loading').style.display='block';"></a>
</td></tr>
</table></td>
</tr>
</table>
</form>
<span class="Estilo3">
<!-- </div> -->
</span></td>
</tr>
</table>
</div>
<br>
<h2 align="center" class="Estilo2">Imagenes al azar:</h2>
<? include("random.inc.php"); ?>
<div class="about">
<? echo $webtitle; ?>™es un hosting de imagenes donde podra alojar sus imagenes facilmente y compartirlas en Facebook, My Space, Blogger, y Muchos otros lugares.
<br>
<br><br><img src="images/share.png">
</div>
<?php include("footer.php"); ?>
</div>
</center>
</body>
</html>