Muchos cambios

git-svn-id: https://192.168.0.254/svn/Proyectos.LaFactoriaVerde_Web/trunk@5 017afc1c-778d-45dc-8efe-cc7a6876851a
This commit is contained in:
David Arranz 2010-10-07 15:54:59 +00:00
parent 933868150c
commit 26b73c5692
22 changed files with 1209 additions and 853 deletions

View File

@ -1,33 +0,0 @@
<!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-Language" content="es-ES" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Activar cuenta</title>
<style type="text/css">
/*<![CDATA[*/
p.c5 {color: #2852A8}
input.c4 {font-family: Verdana}
span.c3 {color: #2852A8; font-family: Verdana}
span.c2 {color: #2852A8; font-family: Verdana; font-size: 80%}
h1.c1 {color: #2852A8; font-family: Verdana; font-size: 120%}
/*]]>*/
</style>
</head>
<body>
<h1 class="c1">Activar tu cuenta</h1>
<form method="post" action="redirect.php">
<p><span class="c2"><strong>Usuario:</strong><br /></span> <span class=
"c3"><input type="text" name="username" size="25" maxlength="25" /></span></p>
<p><span class="c2"><strong>Contraseña:</strong><br /></span> <span class=
"c3"><input type="password" name="password" size="25" maxlength=
"25" /></span></p><input type="hidden" name="activate" value="Yes" />
<p class="c5"><input type="submit" name="submit" value="Activar" class="c4" /></p>
</form>
</body>
</html>

View File

@ -42,7 +42,7 @@ $db = @mysql_select_db($db_name,$connection)
?> ?>
</div> </div>
<div id="content"> <div id="content">
<h2>Modificación de usuario</h2> <h1>Modificación del usuario '<?php echo $_GET[username]; ?>'</h1>
<br/> <br/>
<?php <?php
@ -76,12 +76,15 @@ if ($_GET[username] != "")
</tr> </tr>
<tr> <tr>
<td width="200px">Contraseña:</td> <td width="200px">Contraseña:</td>
<td><input type="text" name="mod_pass" size="20" value="Same as Old"></td> <td><input type="text" name="mod_pass" size="20" value="*******"></td>
</tr> </tr>
<tr> <tr>
<td width="200px">E-Mail:</td> <td width="200px">E-Mail:</td>
<td><input type="text" name="mod_email" size="20" value="<?php echo $m_email; ?>"></td> <td><input type="text" name="mod_email" size="50" value="<?php echo $m_email; ?>"></td>
</tr> </tr>
<?php
if ($_GET[username] != $_SESSION[user_name]) {
?>
<tr> <tr>
<td width="200px">Grupo:</td> <td width="200px">Grupo:</td>
<td><select size="1" name="mod_group1"> <td><select size="1" name="mod_group1">
@ -127,21 +130,15 @@ if ($_GET[username] != "")
<tr> <tr>
<td width="200px">Redirigir a:</td> <td width="200px">Redirigir a:</td>
<td><input type="text" name="mod_redirect" size="50" value="<?php echo $direct; ?>"></td> <td><input type="text" name="mod_redirect" size="50" value="<?php echo $direct; ?>"></td>
</tr> </tr>
<tr> <!--<tr>
<td width="200px">Obligar a cambiar la contraseña en el siguiente inicio de sesión:</td> <td width="200px">Obligar a cambiar la contraseña en el siguiente inicio de sesión:</td>
<td><select size="1" name="mod_chng"> <td><select size="1" name="mod_chng">
<option value="0" selected>No</option> <option value="0" selected>No</option>
<option value="1">Si</option> <option value="1">Si</option>
</select></td> </select></td>
</tr> </tr>-->
<tr> <?php } ?>
<td width="200px">Enviar un e-mail al usuario con su nueva cuenta:</td>
<td><select size="1" name="mod_send">
<option value="No" selected>No</option>
<option value="Yes">Si</option>
</select></td>
</tr>
<tr> <tr>
<td width="200px"><input type="submit" value="Guardar"></td> <td width="200px"><input type="submit" value="Guardar"></td>
<td>&nbsp;</td> <td>&nbsp;</td>

View File

@ -15,6 +15,20 @@ body {
text-align: center; text-align: center;
} }
h1 {
font-size: 140%;
color: #3fa116;
margin: 2px 0 8px 0px;
}
p {
margin: 6px 0;
}
form {
margin: 6px 0;
}
a:link { a:link {
color: #718ABE; color: #718ABE;
text-decoration: none; text-decoration: none;

View File

@ -21,16 +21,19 @@
?> ?>
</div> </div>
<div id="content"> <div id="content">
<h1>E-mail masivo</h1>
<p>Rellenando este formulario, podrá enviar un correo electrónico a todos los usuarios de La Factoría Verde.</p>
<form method="post" action="mail_all_process.php"> <form method="post" action="mail_all_process.php">
<p>Asunto:<br /> <p>
<input type="text" name="e_subject" size="20" /><br /> <strong>Remitente:</strong><br />
Remitente:<br /> <input type="text" name="e_from" size="50" value="La Factoría Verde"/><br /><br />
<input type="text" name="e_from" size="20" /><br />
Mensaje:<br /> <strong>Asunto:</strong><br />
<input type="text" name="e_subject" size="50" /><br /><br />
<strong>Mensaje:</strong><br />
<textarea rows="15" name="e_message" cols="76"> <textarea rows="15" name="e_message" cols="76">
</textarea><br /> </textarea><br /><br />
<input type="submit" value="Enviar" name="B1" /><input type="reset" value="Borrar" <input type="submit" value="Enviar"/><input type="reset" value="Borrar"/></p>
name="B2" /></p>
</form> </form>
</div> </div>
<div id="footer"> <div id="footer">

View File

@ -1,4 +1,4 @@
<? <?php
//prevents caching //prevents caching
header("Expires: Sat, 01 Jan 2000 00:00:00 GMT"); header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
@ -24,15 +24,50 @@ $db = @mysql_select_db($db_name,$connection)or die(mysql_error());
//make the dbase query selecting only email address //make the dbase query selecting only email address
$sql ="SELECT * FROM $table_name"; $sql ="SELECT * FROM $table_name";
$result = @mysql_query($sql,$connection) or die(mysql_error()); $result = @mysql_query($sql,$connection) or die(mysql_error());
?>
echo "Tu mensaje ha sido enviado a los siguientes usuarios:<br/><br/>"; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="es-ES" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enviar e-mail masivo a todos los cliente - La Factoría Verde</title>
<link rel="stylesheet" type="text/css" href="adminpage.css">
<link rel="stylesheet" type="text/css" href="estilos.css">
</head>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<body>
<div id="layout">
<div id="header">
<img src="../img/lafactoriaverde.gif" alt="La Factoría Verde" />
<?php
$menu_activo='mail_masivo';
include('_menu.php');
?>
</div>
<div id="content">
<h1>E-mail masivo</h1>
<p>Tu mensaje está siendo enviado a los siguientes usuarios:</p>
<ul>
<?php
while ($sql = mysql_fetch_object($result)) while ($sql = mysql_fetch_object($result))
{ {
$e_addr = $sql -> email; $e_addr = $sql -> email;
$e_user = $sql -> username; $e_user = $sql -> username;
$subject = $_POST[e_subject]; $subject = $_POST[e_subject];
$mailheaders = $_POST[e_message]; $mailheaders = $_POST[e_message];
mail($e_addr, $subject, $mailheaders, "From: No Reply <$adminemail>\n"); mail($e_addr, $subject, $mailheaders, "From: $_POST[$e_from] <$adminemail>\n");
echo "$e_user<br>"; echo "<li>$e_user</li>";
} }
?> echo "</ul>"
?>
</div>
<div id="footer">
</div>
</div>
</body>
</html>

View File

@ -36,7 +36,7 @@ $db = @mysql_select_db($db_name,$connection) or die(mysql_error());
//check for authority to view this page //check for authority to view this page
if (allow_access(Administrators) != "yes") if (allow_access(Administrators) != "yes")
{ {
echo "<br/><br/><br/><center><p class='error'>No tienes autorización para esta función.</p></center>"; echo "<br/><br/><br/><center><p class='error'>No tiene autorización para esta función.</p></center>";
} }
$mod_user = ''; $mod_user = '';
@ -57,7 +57,7 @@ else {
$msg .= "No ha indicado el usuario.<br/>"; $msg .= "No ha indicado el usuario.<br/>";
} }
if ((mod_user != "") && ($_POST[mod_pass] == "Same as Old")) if ((mod_user != "") && ($_POST[mod_pass] == "*******"))
{ {
$sql = "SELECT * FROM $table_name WHERE username = '$mod_user'"; $sql = "SELECT * FROM $table_name WHERE username = '$mod_user'";
$result = @mysql_query($sql,$connection) or die(mysql_error()); $result = @mysql_query($sql,$connection) or die(mysql_error());
@ -79,7 +79,7 @@ if ((mod_user != "") && ($_POST[mod_pass] == "Same as Old"))
$msg .= "La información del usuario $mod_user ha sido actualizada.<br/>"; $msg .= "La información del usuario $mod_user ha sido actualizada.<br/>";
} }
if (($mod_user != "") && ($_POST[mod_pass] != "Same as Old")) if (($mod_user != "") && ($_POST[mod_pass] != "*******"))
{ {
$sql = "SELECT * FROM $table_name WHERE username = '$mod_user'"; $sql = "SELECT * FROM $table_name WHERE username = '$mod_user'";
$result = @mysql_query($sql,$connection) or die(mysql_error()); $result = @mysql_query($sql,$connection) or die(mysql_error());

View File

@ -46,7 +46,7 @@ $result = @mysql_query($sql,$connection) or die(mysql_error());
?> ?>
</div> </div>
<div id="content"> <div id="content">
<h2>Dar de alta un nuevo usuario</h2> <h1>Dar de alta un nuevo usuario</h1>
<br/> <br/>
<form method="POST" action="<?php echo "adduser.php";?>"> <form method="POST" action="<?php echo "adduser.php";?>">
<table width="100%" id="table44"> <table width="100%" id="table44">
@ -117,7 +117,7 @@ $result = @mysql_query($sql,$connection) or die(mysql_error());
<td><input type="text" name="redirect" size="50" value="/jardines/"><br/> <td><input type="text" name="redirect" size="50" value="/jardines/"><br/>
Por ejemplo: /jardines/casonadesuesa</td> Por ejemplo: /jardines/casonadesuesa</td>
</tr> </tr>
<tr> <!--<tr>
<td width="200px">Obligar a cambiar la contraseña en el siguiente inicio de sesión:</td> <td width="200px">Obligar a cambiar la contraseña en el siguiente inicio de sesión:</td>
<td><select size="1" name="pchange"> <td><select size="1" name="pchange">
<option value="0" selected>No</option> <option value="0" selected>No</option>
@ -130,7 +130,7 @@ $result = @mysql_query($sql,$connection) or die(mysql_error());
<option value="No" selected>No</option> <option value="No" selected>No</option>
<option value="Yes">Si</option> <option value="Yes">Si</option>
</select></td> </select></td>
</tr> </tr>-->
<tr> <tr>
<td width="200px"><input type="submit" value="Guardar" name="B4"></td> <td width="200px"><input type="submit" value="Guardar" name="B4"></td>
<td>&nbsp;</td> <td>&nbsp;</td>

View File

@ -6,10 +6,10 @@
<meta http-equiv="Content-Language" content="es-ES" /> <meta http-equiv="Content-Language" content="es-ES" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>No autorizado</title> <title>No autorizado - La Factoría Verde</title>
</head> </head>
<body> <body>
<p><b><font size="7">TU CUENTA ESTÁ BANEADA</font></b></p> <p><b><font size="7">TU CUENTA ESTÁ SUSPENDIDA</font></b></p>
</body> </body>
</html> </html>

View File

@ -5,7 +5,7 @@ session_start();
//check to see if the user already has an open session //check to see if the user already has an open session
if (($_SESSION[user_name] != "") && ($_SESSION[password] != "")) if (($_SESSION[user_name] != "") && ($_SESSION[password] != ""))
{ {
header("Location:$_SESSION[redirect]"); header("Location:$base_dir/$_SESSION[redirect]");
exit; exit;
} }

View File

@ -71,11 +71,12 @@ input {
left: 0; left: 0;
top: 32px; top: 32px;
width: 762px; width: 762px;
height: 518px; height: 518px;
background-color: #b6cfa0;
} }
#menu { #menu {
margin-top: 100px; margin-top: 88px;
margin-left: 30px; margin-left: 30px;
width: 200px; width: 200px;
} }
@ -129,6 +130,9 @@ input {
} }
#datos-cliente {
}
#modulos { #modulos {
margin-top: 8px; margin-top: 8px;
margin-left: 30px; margin-left: 30px;
@ -140,7 +144,7 @@ input {
} }
#login { #login {
margin-top: 20px; margin-top: 10px;
margin-left: 30px; margin-left: 30px;
} }
@ -184,7 +188,7 @@ input {
#content.inicio { #content.inicio {
background: #fff url('img/fondo-inicio.jpg') no-repeat; background: url('img/fondo-inicio.jpg') no-repeat;
} }
.error { .error {
@ -193,4 +197,11 @@ input {
font-size: 11px; font-size: 11px;
font-variant:small-caps; font-variant:small-caps;
line-height: 140%; line-height: 140%;
}
#eltiempo {
float: right;
position: absolute;
right: 10px;
bottom: 10px;
} }

View File

@ -1,148 +1,296 @@
<html> <html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <head>
<title>Login - Redirect Installation</title>
<link rel="stylesheet" type="text/css" href="../style.css"> <meta http-equiv="Content-Language" content="en-us">
</head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0"> <title>Login - Redirect Installation</title>
<tr>
<td width="383"> <link rel="stylesheet" type="text/css" href="style.css">
<img border="0" src="../images/lr_13_header_01.gif" width="383" height="112"></td>
<td> </head>
<img border="0" src="../images/lr_13_header_02.gif" width="100%" height="112"></td>
<td width="300">
<img border="0" src="../images/lr_13_header_03.gif" width="310" height="112"></td>
</tr> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<tr>
<td width="383"> <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
<img border="0" src="../images/lr_13_header_04.gif" width="383" height="38"></td>
<td> <tr>
<img border="0" src="../images/lr_13_header_05.gif" width="100%" height="38"></td>
<td width="300"> <td width="383">
<img border="0" src="../images/lr_13_header_06.gif" width="310" height="38"></td>
</tr> <img border="0" src="../images/lr_13_header_01.gif" width="383" height="112"></td>
</table>
<form method="POST" action="install_1.php"> <td>
<table border="0" width="100%" id="table1" cellspacing="10" cellpadding="4">
<tr> <img border="0" src="../images/lr_13_header_02.gif" width="100%" height="112"></td>
<td valign="top">
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Name:<br> <td width="300">
</font><input type="text" name="dbase_name" size="20" style="font-family: Verdana; color: #008080"></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Server:<br> <img border="0" src="../images/lr_13_header_03.gif" width="310" height="112"></td>
</font>
<input type="text" name="dbase_server" size="20" style="font-family: Verdana; color: #008080" value="localhost"></p> </tr>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Username:<br>
</font><input type="text" name="dbase_username" size="20" style="font-family: Verdana; color: #008080"></p> <tr>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Password:<br>
</font><input type="text" name="dbase_password" size="20" style="font-family: Verdana; color: #008080"></p> <td width="383">
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Installation
Directory:<br> <img border="0" src="../images/lr_13_header_04.gif" width="383" height="38"></td>
</font><input type="text" name="install_dir" size="50" style="font-family: Verdana; color: #008080" value="http://"></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Administrator's <td>
Email:<br>
</font><input type="text" name="admin_email" size="50" style="font-family: Verdana; color: #008080"><br> <img border="0" src="../images/lr_13_header_05.gif" width="100%" height="38"></td>
<font size="2">Time Zone:<br>
</font><select size="1" name="time_zone" style="font-family: Verdana; color: #008080"> <td width="300">
<option value="-12">-12</option>
<option value="-11">-11</option> <img border="0" src="../images/lr_13_header_06.gif" width="310" height="38"></td>
<option value="-10">-10</option>
<option value="-9.5">-9.5</option> </tr>
<option value="-9">-9</option>
<option value="-8.5">-8.5</option> </table>
<option value="-8">-8 PST</option>
<option value="-7">-7 MST</option> <form method="POST" action="install_1.php">
<option value="-6">-6 CMT</option>
<option value="-5" selected>-5 EST</option> <table border="0" width="100%" id="table1" cellspacing="10" cellpadding="4">
<option value="-4">-4 AST</option>
<option value="-3.5">-3.5</option> <tr>
<option value="-3">-3 ADT</option>
<option value="-2">-2</option> <td valign="top">
<option value="-1">-1</option>
<option value="00">00 GMT</option> <p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Name:<br>
<option value="+1">+1 CET</option>
<option value="+2">+2</option> </font><input type="text" name="dbase_name" size="20" style="font-family: Verdana; color: #008080"></p>
<option value="+3">+3</option>
<option value="+3.5">+3.5</option> <p style="margin-top: 0; margin-bottom: 0"><font size="2">Server:<br>
<option value="+4">+4</option>
<option value="+4.5">+4.5</option> </font>
<option value="+5">+5</option>
<option value="+5.5">+5.5</option> <input type="text" name="dbase_server" size="20" style="font-family: Verdana; color: #008080" value="localhost"></p>
<option value="+6">+6</option>
<option value="+6.5">+6.5</option> <p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Username:<br>
<option value="+7">+7</option>
<option value="+8">+8</option> </font><input type="text" name="dbase_username" size="20" style="font-family: Verdana; color: #008080"></p>
<option value="+9">+9</option>
<option value="+9.5">+9.5</option> <p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Password:<br>
<option value="+10">+10</option>
<option value="+10.5">+10.5</option> </font><input type="text" name="dbase_password" size="20" style="font-family: Verdana; color: #008080"></p>
<option value="+11">+11</option>
<option value="+12">+12</option> <p style="margin-top: 0; margin-bottom: 0"><font size="2">Installation
<option value="+13">+13</option>
<option value="+14">+14</option> Directory:<br>
</select></p>
</td> </font><input type="text" name="install_dir" size="50" style="font-family: Verdana; color: #008080" value="http://"></p>
<td valign="top">
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Domain Name:<br> <p style="margin-top: 0; margin-bottom: 0"><font size="2">Administrator's
www.<input type="text" name="dom_name" size="20" style="font-family: Verdana; color: #008080">.
<select size="1" name="tld1" style="font-family: Verdana; color: #008080"> Email:<br>
<option value=".com" selected>com</option>
<option value=".net">net</option> </font><input type="text" name="admin_email" size="50" style="font-family: Verdana; color: #008080"><br>
<option value=".org">org</option>
<option value=".us">us</option> <font size="2">Time Zone:<br>
<option value=".biz">biz</option>
<option value=".info">info</option> </font><select size="1" name="time_zone" style="font-family: Verdana; color: #008080">
<option>other</option>
<option></option> <option value="-12">-12</option>
</select> - if other than that listed:
<input type="text" name="tld2" size="5" style="font-family: Verdana; color: #008080"></font></p> <option value="-11">-11</option>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Verify New User's
Through Email?<br> <option value="-10">-10</option>
</font><select size="1" name="verify_email" style="font-family: Verdana; color: #008080">
<option value="1" selected>No</option> <option value="-9.5">-9.5</option>
<option value="0">Yes</option>
</select></p> <option value="-9">-9</option>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Default URL:<br>
</font><input type="text" name="default_url" size="50" style="font-family: Verdana; color: #008080" value="http://"></p> <option value="-8.5">-8.5</option>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Minimum Password
Length:<br> <option value="-8">-8 PST</option>
</font><input type="text" name="min_pass_len" size="20" style="font-family: Verdana; color: #008080"></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Maximum Password <option value="-7">-7 MST</option>
Length:<br>
</font><input type="text" name="max_pass_len" size="20" style="font-family: Verdana; color: #008080"></p> <option value="-6">-6 CMT</option>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Log Logins?<br>
</font><select size="1" style="font-family: Verdana; color: #008080" name="log_login"> <option value="-5" selected>-5 EST</option>
<option selected value="0">No</option>
<option value="1">Yes</option> <option value="-4">-4 AST</option>
</select></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Number of Groups:<br> <option value="-3.5">-3.5</option>
</font><select size="1" style="font-family: Verdana; color: #008080" name="num_groups">
<option value="0" selected>0</option> <option value="-3">-3 ADT</option>
<option value="1">1</option>
<option value="2">2</option> <option value="-2">-2</option>
<option value="3">3</option>
<option value="4">4</option> <option value="-1">-1</option>
<option value="5">5</option>
<option value="6">6</option> <option value="00">00 GMT</option>
<option value="7">7</option>
<option value="8">8</option> <option value="+1">+1 CET</option>
<option value="9">9</option>
<option value="10">10</option> <option value="+2">+2</option>
</select></p></td>
</tr> <option value="+3">+3</option>
<tr>
<td valign="top"> <option value="+3.5">+3.5</option>
<input type="submit" value="Submit" name="B1"></td>
<td valign="top"> <option value="+4">+4</option>
&nbsp;</td>
</tr> <option value="+4.5">+4.5</option>
</table>
</form> <option value="+5">+5</option>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<option value="+5.5">+5.5</option>
</body>
<option value="+6">+6</option>
</html>
<option value="+6.5">+6.5</option>
<option value="+7">+7</option>
<option value="+8">+8</option>
<option value="+9">+9</option>
<option value="+9.5">+9.5</option>
<option value="+10">+10</option>
<option value="+10.5">+10.5</option>
<option value="+11">+11</option>
<option value="+12">+12</option>
<option value="+13">+13</option>
<option value="+14">+14</option>
</select></p>
</td>
<td valign="top">
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Domain Name:<br>
www.<input type="text" name="dom_name" size="20" style="font-family: Verdana; color: #008080">.
<select size="1" name="tld1" style="font-family: Verdana; color: #008080">
<option value=".com" selected>com</option>
<option value=".net">net</option>
<option value=".org">org</option>
<option value=".us">us</option>
<option value=".biz">biz</option>
<option value=".info">info</option>
<option>other</option>
<option></option>
</select> - if other than that listed:
<input type="text" name="tld2" size="5" style="font-family: Verdana; color: #008080"></font></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Verify New User's
Through Email?<br>
</font><select size="1" name="verify_email" style="font-family: Verdana; color: #008080">
<option value="1" selected>No</option>
<option value="0">Yes</option>
</select></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Default URL:<br>
</font><input type="text" name="default_url" size="50" style="font-family: Verdana; color: #008080" value="http://"></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Minimum Password
Length:<br>
</font><input type="text" name="min_pass_len" size="20" style="font-family: Verdana; color: #008080"></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Maximum Password
Length:<br>
</font><input type="text" name="max_pass_len" size="20" style="font-family: Verdana; color: #008080"></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Log Logins?<br>
</font><select size="1" style="font-family: Verdana; color: #008080" name="log_login">
<option selected value="0">No</option>
<option value="1">Yes</option>
</select></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Number of Groups:<br>
</font><select size="1" style="font-family: Verdana; color: #008080" name="num_groups">
<option value="0" selected>0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select></p></td>
</tr>
<tr>
<td valign="top">
<input type="submit" value="Submit" name="B1"></td>
<td valign="top">&nbsp;
</td>
</tr>
</table>
</form>
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
</body>
</html>

View File

@ -1,70 +1,139 @@
<?php <?php
//store variables into a session
session_start(install);
//store variables into a session
$_SESSION[dbase_name] = $_POST[dbase_name];
$_SESSION[dbase_server] = $_POST[dbase_server]; session_start(install);
$_SESSION[dbase_username] = $_POST[dbase_username];
$_SESSION[dbase_password] = $_POST[dbase_password];
$_SESSION[table_name] = "authorize";
$_SESSION[install_dir] = $_POST[install_dir]; $_SESSION[dbase_name] = $_POST[dbase_name];
$_SESSION[time_zone] = $_POST[time_zone];
$_SESSION[verify_email] = $_POST[verify_email]; $_SESSION[dbase_server] = $_POST[dbase_server];
$_SESSION[default_url] = $_POST[default_url];
$_SESSION[min_pass_len] = $_POST[min_pass_len]; $_SESSION[dbase_username] = $_POST[dbase_username];
$_SESSION[max_pass_len] = $_POST[max_pass_len];
$_SESSION[log_login] = $_POST[log_login]; $_SESSION[dbase_password] = $_POST[dbase_password];
$_SESSION[group_number] = $_POST[num_groups];
$_SESSION[domain] = "."."$_POST[dom_name]"."$_POST[tld1]"."$_POST[tld2]"; $_SESSION[table_name] = "authorize";
$_SESSION[admin_email] = $_POST[admin_email];
$_SESSION[install_dir] = $_POST[install_dir];
if (!$_POST[num_groups])
{ $_SESSION[time_zone] = $_POST[time_zone];
header("Location:install_2.php");
} $_SESSION[verify_email] = $_POST[verify_email];
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">"; $_SESSION[default_url] = $_POST[default_url];
include ('header.html');
$_SESSION[min_pass_len] = $_POST[min_pass_len];
if (!$_POST[dbase_name] || !$_POST[dbase_server] || !$_POST[dbase_username] || !$_POST[dbase_password] ||
!$_POST[install_dir] || !$_POST[time_zone] || $_SESSION[max_pass_len] = $_POST[max_pass_len];
!$_POST[default_url] || !$_POST[min_pass_len] || !$_POST[max_pass_len] || !$_POST[dom_name] || !$_POST[admin_email])
{ $_SESSION[log_login] = $_POST[log_login];
echo "<p>You must complete all of the fields, please <a href=\"javascript:history.go(-1)\">Go Back </a>and complete all of the fields.</p>";
exit; $_SESSION[group_number] = $_POST[num_groups];
}
$_SESSION[domain] = "."."$_POST[dom_name]"."$_POST[tld1]"."$_POST[tld2]";
?> $_SESSION[admin_email] = $_POST[admin_email];
<html>
<head> if (!$_POST[num_groups])
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> {
<link rel="stylesheet" type="text/css" href="../style.css">
<title>Login - Redirect Installation</title> header("Location:install_2.php");
</head>
}
<body>
Enter the names of your Groups:<br>
(Do not use Administrators or Users as a Group Name as there are pre-configured groups)<br> echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">";
<form method="POST" action="install_2.php">
<?php include ('header.html');
$i = 1;
while ($i <= $_SESSION[group_number])
{
echo "<p>Group $i<br><input type=\"text\" name=\"group$i\" size=\"20\"></p>"; if (!$_POST[dbase_name] || !$_POST[dbase_server] || !$_POST[dbase_username] || !$_POST[dbase_password] ||
$i++;
} !$_POST[install_dir] || !$_POST[time_zone] ||
?>
!$_POST[default_url] || !$_POST[min_pass_len] || !$_POST[max_pass_len] || !$_POST[dom_name] || !$_POST[admin_email])
<p><input type="submit" value="Submit" name="B1"></p>
</form> {
echo "<p>You must complete all of the fields, please <a href=\"javascript:history.go(-1)\">Go Back </a>and complete all of the fields.</p>";
</body>
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Login - Redirect Installation</title>
</head>
<body>
Enter the names of your Groups:<br>
(Do not use Administrators or Users as a Group Name as there are pre-configured groups)<br>
<form method="POST" action="install_2.php">
<?php
$i = 1;
while ($i <= $_SESSION[group_number])
{
echo "<p>Group $i<br><input type=\"text\" name=\"group$i\" size=\"20\"></p>";
$i++;
}
?>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
</body>
</html> </html>

View File

@ -1,233 +1,466 @@
<?php <?php
session_start(install);
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">"; session_start(install);
include ('header.html');
$group_array = array(); echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">";
$i = 1;
while ($i <= $_SESSION[group_number])
{ include ('header.html');
$group = "group$i";
array_push($group_array, "$_POST[$group]");
$i++;
} $group_array = array();
$i = 1;
//test connection to dbase verifing dbase name, server, username and password $i = 1;
$connection = @mysql_connect($_SESSION[dbase_server], $_SESSION[dbase_username], $_SESSION[dbase_password]) while ($i <= $_SESSION[group_number])
or die(mysql_error());
{
$db = @mysql_select_db($_SESSION[dbase_name],$connection)
or die(mysql_error()); $group = "group$i";
//create a message to be displayed at the end of the installation array_push($group_array, "$_POST[$group]");
if ($db)
{ $i++;
echo "Connection to Database $_SESSION[dbase_name] Successful.<br>";
}else{ }
echo "<p>There was an error connecting to the database.</p>";
echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your Database information.</a></p>";
exit;
} $i = 1;
//create a table in that dbase
$sql ="
CREATE TABLE IF NOT EXISTS $_SESSION[table_name] //test connection to dbase verifing dbase name, server, username and password
(
firstname VARCHAR(20),
lastname VARCHAR(20),
username VARCHAR(20), $connection = @mysql_connect($_SESSION[dbase_server], $_SESSION[dbase_username], $_SESSION[dbase_password])
password VARCHAR(50),
group1 VARCHAR(20), or die(mysql_error());
group2 VARCHAR(20),
group3 VARCHAR(20),
pchange VARCHAR(1),
email VARCHAR(100), $db = @mysql_select_db($_SESSION[dbase_name],$connection)
redirect VARCHAR(100),
verified VARCHAR(1), or die(mysql_error());
last_login DATE
)";
$result = @mysql_query($sql,$connection) //create a message to be displayed at the end of the installation
or die(mysql_error());
if ($db)
if ($result)
{ {
echo "Table $_SESSION[table_name] has been created.<br>";
}else{ echo "Connection to Database $_SESSION[dbase_name] Successful.<br>";
echo "<p>There was an error creating the table.</p>";
echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>"; }else{
exit;
} echo "<p>There was an error connecting to the database.</p>";
//create a table in that dbase echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your Database information.</a></p>";
$sql_log ="
CREATE TABLE IF NOT EXISTS log_login exit;
(
username VARCHAR(20), }
date VARCHAR(20),
time VARCHAR(20),
ip_addr VARCHAR(20),
oper_sys VARCHAR(20), //create a table in that dbase
brow VARCHAR(20)
) $sql ="
";
CREATE TABLE IF NOT EXISTS $_SESSION[table_name]
$result_log = @mysql_query($sql_log,$connection)
or die(mysql_error()); (
if ($result_log) firstname VARCHAR(20),
{
echo "Table log_login has been created.<br>"; lastname VARCHAR(20),
}else{
echo "<p>There was an error creating the table.</p>"; username VARCHAR(20),
echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>";
exit; password VARCHAR(50),
}
group1 VARCHAR(20),
//create a table in that dbase
$sql_ban =" group2 VARCHAR(20),
CREATE TABLE IF NOT EXISTS banned
( group3 VARCHAR(20),
no_access VARCHAR(30),
type VARCHAR(10) pchange VARCHAR(1),
)
"; email VARCHAR(100),
$result_ban = @mysql_query($sql_ban,$connection) redirect VARCHAR(100),
or die(mysql_error());
verified VARCHAR(1),
if ($result_ban)
{ last_login DATE
echo "Table banned has been created.<br>";
}else{ )";
echo "<p>There was an error creating the table.</p>";
echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>";
exit;
} $result = @mysql_query($sql,$connection)
//create a table in that dbase or die(mysql_error());
$sql_trash ="
CREATE TABLE IF NOT EXISTS trash
(
firstname VARCHAR(20), if ($result)
lastname VARCHAR(20),
username VARCHAR(20), {
password VARCHAR(50),
group1 VARCHAR(20), echo "Table $_SESSION[table_name] has been created.<br>";
group2 VARCHAR(20),
group3 VARCHAR(20), }else{
pchange VARCHAR(1),
email VARCHAR(100), echo "<p>There was an error creating the table.</p>";
redirect VARCHAR(100),
verified VARCHAR(1), echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>";
last_login DATE,
del_date DATE exit;
)
"; }
$result_trash = @mysql_query($sql_trash,$connection)
or die(mysql_error());
//create a table in that dbase
if ($result_trash)
{ $sql_log ="
echo "Table trash has been created.<br>";
}else{ CREATE TABLE IF NOT EXISTS log_login
echo "<p>There was an error creating the table.</p>";
echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>"; (
exit;
} username VARCHAR(20),
date VARCHAR(20),
?>
time VARCHAR(20),
<html>
ip_addr VARCHAR(20),
<head>
<meta http-equiv="Content-Language" content="en-us"> oper_sys VARCHAR(20),
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Login - Redirect Installation</title> brow VARCHAR(20)
<link rel="stylesheet" type="text/css" href="../style.css">
</head> )
<body> ";
<table border="1" width="100%" id="table1">
<tr>
<td width="100%"> $result_log = @mysql_query($sql_log,$connection)
<?php or die(mysql_error());
$_SESSION[config] = "
&lt;?
//set up the names of the database and table if ($result_log)
\$db_name =\"$_SESSION[dbase_name]\";
\$table_name =\"$_SESSION[table_name]\"; {
//connect to the server and select the database echo "Table log_login has been created.<br>";
\$server = \"$_SESSION[dbase_server]\";
\$dbusername = \"$_SESSION[dbase_username]\"; }else{
\$dbpassword = \"$_SESSION[dbase_password]\";
echo "<p>There was an error creating the table.</p>";
//domain information
\$domain = \"$_SESSION[domain]\"; echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>";
//Change to \"0\" to turn off the login log exit;
\$log_login = \"$_SESSION[log_login]\";
}
//base_dir is the location of the files, ie http://www.yourdomain/login
\$base_dir = \"$_SESSION[install_dir]\";
//length of time the cookie is good for - 7 is the days and 24 is the hours //create a table in that dbase
//if you would like the time to be short, say 1 hour, change to 60*60*1
\$duration = time()+(60*60*24*30); $sql_ban ="
//the site administrator\'s email address CREATE TABLE IF NOT EXISTS banned
\$adminemail = \"$_SESSION[admin_email]\";
(
//sets the time to EST
\$zone=3600*$_SESSION[time_zone]; no_access VARCHAR(30),
//do you want the verify the new user through email if the user registers themselves? type VARCHAR(10)
//yes = \"0\" : no = \"1\"
\$verify = \"$_SESSION[verify_email]\"; )
//default redirect, this is the URL that all self-registered users will be redirected to ";
\$default_url = \"$_SESSION[default_url]\";
//minimum and maximum password lengths
\$min_pass = $_SESSION[min_pass_len]; $result_ban = @mysql_query($sql_ban,$connection)
\$max_pass = $_SESSION[max_pass_len];
or die(mysql_error());
\$num_groups = $_SESSION[group_number]+2;
\$group_array = array(";
$i = 0; if ($result_ban)
while ($i < $_SESSION[group_number])
{ {
$group = "group$i";
$_SESSION[config] .= "\"$group_array[$i]\", "; echo "Table banned has been created.<br>";
$i++;
} }else{
$_SESSION[config] .= "\"Users\",";
$_SESSION[config] .= "\"Administrators\"); echo "<p>There was an error creating the table.</p>";
?>"; echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>";
include ('create_admin.php'); exit;
?></tr> }
</table>
</body> //create a table in that dbase
</html> $sql_trash ="
CREATE TABLE IF NOT EXISTS trash
(
firstname VARCHAR(20),
lastname VARCHAR(20),
username VARCHAR(20),
password VARCHAR(50),
group1 VARCHAR(20),
group2 VARCHAR(20),
group3 VARCHAR(20),
pchange VARCHAR(1),
email VARCHAR(100),
redirect VARCHAR(100),
verified VARCHAR(1),
last_login DATE,
del_date DATE
)
";
$result_trash = @mysql_query($sql_trash,$connection)
or die(mysql_error());
if ($result_trash)
{
echo "Table trash has been created.<br>";
}else{
echo "<p>There was an error creating the table.</p>";
echo "<p><a href=\"javascript:history.go(-2)\">Please go back and check your information.</a></p>";
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Login - Redirect Installation</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<table border="1" width="100%" id="table1">
<tr>
<td width="100%">
<?php
$_SESSION[config] = "
&lt;?
//set up the names of the database and table
\$db_name =\"$_SESSION[dbase_name]\";
\$table_name =\"$_SESSION[table_name]\";
//connect to the server and select the database
\$server = \"$_SESSION[dbase_server]\";
\$dbusername = \"$_SESSION[dbase_username]\";
\$dbpassword = \"$_SESSION[dbase_password]\";
//domain information
\$domain = \"$_SESSION[domain]\";
//Change to \"0\" to turn off the login log
\$log_login = \"$_SESSION[log_login]\";
//base_dir is the location of the files, ie http://www.yourdomain/login
\$base_dir = \"$_SESSION[install_dir]\";
//length of time the cookie is good for - 7 is the days and 24 is the hours
//if you would like the time to be short, say 1 hour, change to 60*60*1
\$duration = time()+(60*60*24*30);
//the site administrator\'s email address
\$adminemail = \"$_SESSION[admin_email]\";
//sets the time to EST
\$zone=3600*$_SESSION[time_zone];
//do you want the verify the new user through email if the user registers themselves?
//yes = \"0\" : no = \"1\"
\$verify = \"$_SESSION[verify_email]\";
//default redirect, this is the URL that all self-registered users will be redirected to
\$default_url = \"$_SESSION[default_url]\";
//minimum and maximum password lengths
\$min_pass = $_SESSION[min_pass_len];
\$max_pass = $_SESSION[max_pass_len];
\$num_groups = $_SESSION[group_number]+2;
\$group_array = array(";
$i = 0;
while ($i < $_SESSION[group_number])
{
$group = "group$i";
$_SESSION[config] .= "\"$group_array[$i]\", ";
$i++;
}
$_SESSION[config] .= "\"Users\",";
$_SESSION[config] .= "\"Administrators\");
?>";
include ('create_admin.php');
?></tr>
</table>
</body>
</html>

View File

@ -1,81 +1,161 @@
<?php <?php
session_start(install);
include ('header.html'); session_start(install);
include ('../functions.php');
$admin_username = $_POST[username];
include ('header.html');
if (!$_POST[first_name] || !$_POST[last_name] || !$_POST[user_name] || !$_POST[password] || !$_POST[redirect_to])
{ include ('../functions.php');
echo "<p>You must complete all of the fields, please <a href=\"create_admin.php\">Go Back </a>and complete all of the fields.</p>";
exit;
}
$admin_username = $_POST[username];
$pass_len = password_check($_SESSION[min_pass_len], $_SESSION[max_pass_len], $_POST[password]);
if ($pass_len == "no") if (!$_POST[first_name] || !$_POST[last_name] || !$_POST[user_name] || !$_POST[password] || !$_POST[redirect_to])
{
echo "<p>You must use a password between $_SESSION[min_pass_len] and $_SESSION[max_pass_len] characters in length, please <a href=\"create_admin.php\">Go Back </a>and try again.</p>"; {
exit;
} echo "<p>You must complete all of the fields, please <a href=\"create_admin.php\">Go Back </a>and complete all of the fields.</p>";
//make connection to dbase exit;
$connection = @mysql_connect($_SESSION[dbase_server], $_SESSION[dbase_username], $_SESSION[dbase_password])
or die(mysql_error()); }
$db = @mysql_select_db($_SESSION[dbase_name],$connection)
or die(mysql_error());
$check_name = "SELECT * FROM $_SESSION[table_name] WHERE username = '$_POST[user_name]'";
$name_result = @mysql_query($check_name,$connection) or die(mysql_error());
//get the number of rows in the result set $pass_len = password_check($_SESSION[min_pass_len], $_SESSION[max_pass_len], $_POST[password]);
$num = mysql_num_rows($name_result);
if ($pass_len == "no")
if ($num != 0)
{ {
echo "<p>That username already exists. Please <a href=\"create_admin.php\">Go Back </a>and enter a different username.</p>";
exit; echo "<p>You must use a password between $_SESSION[min_pass_len] and $_SESSION[max_pass_len] characters in length, please <a href=\"create_admin.php\">Go Back </a>and try again.</p>";
}
exit;
$date = last_login();
}
//enter information into table
$sql = "INSERT INTO $_SESSION[table_name] VALUES
('$_POST[first_name]', '$_POST[last_name]', '$_POST[user_name]',
password('$_POST[password]'), 'Administrators', '', '', '0', '$_SESSION[admin_email]', //make connection to dbase
'$_POST[redirect_to]', '1', '$date')";
$connection = @mysql_connect($_SESSION[dbase_server], $_SESSION[dbase_username], $_SESSION[dbase_password])
$result = @mysql_query($sql,$connection) or die(mysql_error());
or die(mysql_error());
if($result)
{
?>
<html> $db = @mysql_select_db($_SESSION[dbase_name],$connection)
<head> or die(mysql_error());
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Login - Redirect Installation</title>
<link rel="stylesheet" type="text/css" href="../style.css"> $check_name = "SELECT * FROM $_SESSION[table_name] WHERE username = '$_POST[user_name]'";
</head>
$name_result = @mysql_query($check_name,$connection) or die(mysql_error());
<?php
echo "<p>The Administrators Account has been Successfully Created.</p>";
echo "<p>The last step is to create a file named config.php.<br>";
echo "Copy and paste the below into this file and upload to $_SESSION[install_dir].</p>"; //get the number of rows in the result set
echo "<textarea rows=\"47\" name=\"S1\" cols=\"120\" style=\"font-family: Tahoma; font-size: 8pt\">$_SESSION[config]</textarea></p>";
echo "<p>For a sample of the header of each secure page, please <a href=\"../smpl_sec_header.php\">Click Here</a></p>"; $num = mysql_num_rows($name_result);
echo "<p>Should you have any difficulties, please visit the Help Forum:";
echo "<br><a href=\"http://www.mpdolan.com/bb\">MPDolan.com Help Forum</a></p>";
echo "<p>Please login as with the Adminstrator's Account to complete testing.";
echo "<br><a href =\"$_SESSION[install_dir]/login.html\">Login Now</a></p><br>"; if ($num != 0)
}
{
?> echo "<p>That username already exists. Please <a href=\"create_admin.php\">Go Back </a>and enter a different username.</p>";
exit;
}
$date = last_login();
//enter information into table
$sql = "INSERT INTO $_SESSION[table_name] VALUES
('$_POST[first_name]', '$_POST[last_name]', '$_POST[user_name]',
password('$_POST[password]'), 'Administrators', '', '', '0', '$_SESSION[admin_email]',
'$_POST[redirect_to]', '1', '$date')";
$result = @mysql_query($sql,$connection) or die(mysql_error());
if($result)
{
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Login - Redirect Installation</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<?php
echo "<p>The Administrators Account has been Successfully Created.</p>";
echo "<p>The last step is to create a file named config.php.<br>";
echo "Copy and paste the below into this file and upload to $_SESSION[install_dir].</p>";
echo "<textarea rows=\"47\" name=\"S1\" cols=\"120\" style=\"font-family: Tahoma; font-size: 8pt\">$_SESSION[config]</textarea></p>";
echo "<p>For a sample of the header of each secure page, please <a href=\"../smpl_sec_header.php\">Click Here</a></p>";
echo "<p>Should you have any difficulties, please visit the Help Forum:";
echo "<br><a href=\"http://www.mpdolan.com/bb\">MPDolan.com Help Forum</a></p>";
echo "<p>Please login as with the Adminstrator's Account to complete testing.";
echo "<br><a href =\"$_SESSION[install_dir]/login.html\">Login Now</a></p><br>";
}
?>
</html> </html>

View File

@ -0,0 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="es-ES" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jardín Pedreña - La Factoría Verde</title>
<link rel="stylesheet" href="http://www.rodax-software.com/lafactoriaverde.es/estilos.css" type="text/css" media="all" />
</head>
<body>
<div id="layout">
<div id="header">
<h2>Mantenimiento de jardines, podas, diseño y riego en Cantabria</h2>
<h3>Teléfono: 678 71 72 85</h3>
</div>
<div id="aside">
<div id="menu">
<div id="datos-cliente">
<p>Hola Luis y Paloma<br/><br/>
<strong>Cliente:</strong><br/>
Luis y Paloma<br/><br/>
<strong>Ubicación:</strong><br/>
Jardín Pedreña<br/><br/>
<strong>GPS:</strong><br/>
30º 40' 45"<br/></p>
</div>
<br/>
<ul>
<li><a href="http://www.rodax-software.com/lafactoriaverde.es/logout.php" target="_self">Salir</a></li>
</ul>
</div>
<div id="eltiempo">
<div id="c_e2925a77fd1823c9b93e15c65cf26e53" class="normal"><h2 style="color: #000000; margin: 0 0 3px; padding: 2px; font: bold 13px/1.2 Verdana; text-align: center;"><a href="http://www.eltiempo.es/suesa.html" style="color: #000000; text-decoration: none;">pronostico del tiempo Suesa</a></h2></div><script type="text/javascript" src="http://www.eltiempo.es/widget/widget_loader/e2925a77fd1823c9b93e15c65cf26e53"></script>
</div>
</div>
<div id="content">
lkajlka sjdaldjaljdlajsdlj
</div>
<div id="footer">
<a href="mailto:agapanto@lafactoriaverde.es"><img src="http://rodax-software.com/lafactoriaverde.es/img/texto-email.gif" alt="agapanto@lafactoriaverde.es"/></a>
</div>
</div>
</body>
</html>

View File

@ -49,7 +49,8 @@
<p class="texto-pass">¿Olvidaste tu contraseña?</p> <p class="texto-pass">¿Olvidaste tu contraseña?</p>
<a href="emailpass.html"><img src="img/texto-pincha-aqui.gif" alt="Pincha aqui" /></a> <a href="emailpass.html"><img src="img/texto-pincha-aqui.gif" alt="Pincha aqui" /></a>
</div> </div>
<div id="modulos"> <div id="eltiempo">
<div id="c_e2925a77fd1823c9b93e15c65cf26e53" class="normal"><h2 style="color: #000000; margin: 0 0 3px; padding: 2px; font: bold 13px/1.2 Verdana; text-align: center;"><a href="http://www.eltiempo.es/suesa.html" style="color: #000000; text-decoration: none;">pronostico del tiempo Suesa</a></h2></div><script type="text/javascript" src="http://www.eltiempo.es/widget/widget_loader/e2925a77fd1823c9b93e15c65cf26e53"></script>
</div> </div>
</div> </div>
<div id="content" class="inicio"></div> <div id="content" class="inicio"></div>

View File

@ -22,20 +22,6 @@
<input type="submit" name="B1" style="font-family: Tahoma; font-size: 8pt"></p> <input type="submit" name="B1" style="font-family: Tahoma; font-size: 8pt"></p>
</form> </form>
<p><br>
<br>
<br>
<br>
<i><b><font face="Tahoma" size="2">ARIN WhoIs</font></b></i></p>
</p>
<form METHOD="POST" ACTION="http://ws.arin.net/cgi-bin/whois.pl" target="_blank">
<p align="left"><b><font FACE="Tahoma" SIZE="2">Buscar:</font></b> <br>
<input TYPE="text" NAME="queryinput" SIZE="20"><br>
<input TYPE="submit" style="font-family: Tahoma; font-size:8pt">
<br>
</p>
</form>
<p align="left"><br> <p align="left"><br>
<i><b><font face="Tahoma" size="2"> <i><b><font face="Tahoma" size="2">

View File

@ -10,7 +10,7 @@
{ {
if (theForm.p_word.value != theForm.password2.value) if (theForm.p_word.value != theForm.password2.value)
{ {
alert("The two passwords are not the same."); alert("Las dos contraseñas introducidas no coinciden. Revíselo.");
theForm.password2.focus(); theForm.password2.focus();
return (false); return (false);
} }
@ -29,9 +29,8 @@
</head> </head>
<body> <body>
<form method="post" action="pass_change.php" onsubmit="return Form1_Validator(this)" <h1>Cambio de la contraseña</h1>
language="JavaScript" name="Form1"> <form method="post" action="pass_change.php" onSubmit="return Form1_Validator(this)" language="JavaScript" name="Form1">
<p class="c2"><span class="c1">Cambio de contraseña</span></p>
<p class="c4"><span class="c3">Nueva contraseña:<br /></span> <input type="password" <p class="c4"><span class="c3">Nueva contraseña:<br /></span> <input type="password"
name="p_word" size="20" /><span class="c3"><br /> name="p_word" size="20" /><span class="c3"><br />

View File

@ -93,7 +93,7 @@ if (($_SESSION[redirect] != "$base_dir/login.php") && ($log_login == "1"))
} }
//redirects the user //redirects the user
header("Location:$_SESSION[redirect]"); header("Location:$base_dir/$_SESSION[redirect]");
?> ?>
<html> <html>

View File

@ -1,133 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="es-ES" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Página de registro</title>
<script language="JavaScript" type="text/javascript">
//<![CDATA[
<!--
function Form1_Validator(theForm)
{
if (theForm.firstname.value == "")
{
alert("Por favor, indica tu nombre.");
theForm.firstname.focus();
return (false);
}
if (theForm.lastname.value == "")
{
alert("Por favor, indica tus apellidos.");
theForm.lastname.focus();
return (false);
}
if (theForm.username.value == "")
{
alert("Por favor, indica un nombre de usuario.");
theForm.username.focus();
return (false);
}
if (theForm.email.value == "")
{
alert("Por favor, indica una dirección de correo electrónico correcta.");
theForm.email.focus();
return (false);
}
if (theForm.password.value == "")
{
alert("Por favor, indica una contraseña.");
theForm.password.focus();
return (false);
}
if (theForm.password.value != theForm.confirm.value)
{
alert("Las contraseñas no coinciden. Asegúrate que introduces dos veces la misma contraseña correctamente.");
theForm.confirm.focus();
return (false);
}
}
//-->
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
input.c9 {
font-family: Tahoma
}
p.c8 {
margin-top: 0;
margin-bottom: 0
}
span.c7 {
font-family: Tahoma
}
span.c6 {
font-family: Tahoma;
font-size: 80%
}
p.c5 {
font-family: Tahoma;
margin-bottom: 0;
margin-top: 0
}
span.c4 {
font-family: Tahoma;
font-size: 70%
}
strong.c3 {
font-weight: 400
}
span.c2 {
font-size: 80%
}
h1.c1 {
font-family: Tahoma;
font-size: 120%;
margin-bottom: 0;
margin-top: 0
}
/*]]>*/
</style>
</head>
<body>
<h1 class="c1">Registro</h1>
<form method="post" action="register.php" onsubmit="return Form1_Validator(this)"
language="JavaScript" name="Form1">
<p class="c5"><strong class="c3"><span class="c2">Nombre:</span></strong><span class="c2"><br />
</span> <span class="c4">
<input name=
"firstname" size="25" maxlength="50" />
</span></p>
<p class="c5"><strong class="c3"><span class="c2">Apellidos:</span></strong><span class="c2"><br />
</span> <span class="c4">
<input name=
"lastname" size="25" maxlength="50" />
<br />
</span> <span class=
"c6">Usuario:</span><span class="c4"><br />
<input name="username" size="25" maxlength="50" />
</span></p>
<p class="c5"><strong class="c3"><span class=
"c2">Contraseña:</span></strong><span class="c2"><br />
</span> <span class=
"c4">
<input type="password" name="password" size="25" maxlength="25" />
<br />
</span> <span class="c2"><strong class="c3">Confirmar la contraseña:</strong></span><span class=
"c4"><br />
<input type="password" name="confirm" size="25" maxlength="25" />
</span></p>
<p class="c8"><strong class="c3"><span class="c6">Dirección de e-mail</span></strong><span class="c7"><strong class="c3"><span class=
"c2">:</span></strong><span class="c2"><br />
</span> <span class="c4">
<input type=
"text" name="email" size="25" maxlength="100" />
</span></span></p>
<p class="c8">
<input type="submit" name="submit" value="Enviar" class="c9" />
</p>
</form>
</body>
</html>

View File

@ -1,98 +0,0 @@
<?
//prevents caching
header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: post-check=0, pre-check=0",false);
session_cache_limiter();
session_start();
//require the config file
require ("config.php");
require ("functions.php");
//checks password length
if (password_check($min_pass, $max_pass, $_POST[password]) == "no")
{
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="refresh" content="0; url=javascript:history.go(-1)">
<title>Registration</title>
<script language="JavaScript">
<!--
function FP_popUpMsg(msg) {//v1.0
alert(msg);
}
// -->
</script>
</head>
<body onload="FP_popUpMsg('Your password must be between <? echo $min_pass; ?> & <? echo $max_pass; ?> characters.')">
</body>
</html>
<?
exit;
}
//make the connection to the database
$connection = @mysql_connect($server, $dbusername, $dbpassword) or die(mysql_error());
$db = @mysql_select_db($db_name,$connection)or die(mysql_error());
//make query to database
$sql ="SELECT * FROM $table_name WHERE username= '$_POST[username]'";
$result = @mysql_query($sql,$connection) or die(mysql_error());
//get the number of rows in the result set
$num = mysql_num_rows($result);
//checks it see if that username already exists
if ($num != 0){
echo "<P>Sorry, that username already exists.</P>";
echo "<P><a href=\"#\" onClick=\"history.go(-1)\">Try Another Username.</a></p>";
exit;
}else{
$sql = "INSERT INTO $table_name VALUES
('$_POST[firstname]', '$_POST[lastname]', '$_POST[username]', password('$_POST[password]'), 'Users', '', '', '$pchange',
'$_POST[email]', '$default_url', '$verify', '')";
$result = @mysql_query($sql,$connection) or die(mysql_error());
}
//checks to see if the user needs to verify their email address before accessing the site
if ($verify == "0")
{
$mailheaders = "From: www$domain\n";
$mailheaders .= "Your account has been created.\n";
$mailheaders .= "Please activate your account now by visiting this page:\n";
$mailheaders .= "$base_dir/activate.html\n";
$to = "$_POST[email]";
$subject = "Please activate your account";
mail($to, $subject, $mailheaders, "From: No Reply <$adminemail>\n");
}else{
header('Location:login.html');
}
?>
<HTML>
<HEAD>
<TITLE>Add a User</TITLE>
</HEAD>
<BODY>
<H1>Please check your email to activate your account.</H1>
</BODY>
</HTML>