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:
parent
933868150c
commit
26b73c5692
@ -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>
|
||||
@ -42,7 +42,7 @@ $db = @mysql_select_db($db_name,$connection)
|
||||
?>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>Modificación de usuario</h2>
|
||||
<h1>Modificación del usuario '<?php echo $_GET[username]; ?>'</h1>
|
||||
<br/>
|
||||
|
||||
<?php
|
||||
@ -76,12 +76,15 @@ if ($_GET[username] != "")
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
<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>
|
||||
<?php
|
||||
if ($_GET[username] != $_SESSION[user_name]) {
|
||||
?>
|
||||
<tr>
|
||||
<td width="200px">Grupo:</td>
|
||||
<td><select size="1" name="mod_group1">
|
||||
@ -127,21 +130,15 @@ if ($_GET[username] != "")
|
||||
<tr>
|
||||
<td width="200px">Redirigir a:</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><select size="1" name="mod_chng">
|
||||
<option value="0" selected>No</option>
|
||||
<option value="1">Si</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>-->
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td width="200px"><input type="submit" value="Guardar"></td>
|
||||
<td> </td>
|
||||
|
||||
@ -15,6 +15,20 @@ body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 140%;
|
||||
color: #3fa116;
|
||||
margin: 2px 0 8px 0px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: #718ABE;
|
||||
text-decoration: none;
|
||||
|
||||
@ -21,16 +21,19 @@
|
||||
?>
|
||||
</div>
|
||||
<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">
|
||||
<p>Asunto:<br />
|
||||
<input type="text" name="e_subject" size="20" /><br />
|
||||
Remitente:<br />
|
||||
<input type="text" name="e_from" size="20" /><br />
|
||||
Mensaje:<br />
|
||||
<p>
|
||||
<strong>Remitente:</strong><br />
|
||||
<input type="text" name="e_from" size="50" value="La Factoría Verde"/><br /><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><br />
|
||||
<input type="submit" value="Enviar" name="B1" /><input type="reset" value="Borrar"
|
||||
name="B2" /></p>
|
||||
</textarea><br /><br />
|
||||
<input type="submit" value="Enviar"/><input type="reset" value="Borrar"/></p>
|
||||
</form>
|
||||
</div>
|
||||
<div id="footer">
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
//prevents caching
|
||||
header("Expires: Sat, 01 Jan 2000 00:00:00 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
|
||||
$sql ="SELECT * FROM $table_name";
|
||||
$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))
|
||||
{
|
||||
$e_addr = $sql -> email;
|
||||
$e_user = $sql -> username;
|
||||
$subject = $_POST[e_subject];
|
||||
$mailheaders = $_POST[e_message];
|
||||
mail($e_addr, $subject, $mailheaders, "From: No Reply <$adminemail>\n");
|
||||
echo "$e_user<br>";
|
||||
mail($e_addr, $subject, $mailheaders, "From: $_POST[$e_from] <$adminemail>\n");
|
||||
echo "<li>$e_user</li>";
|
||||
}
|
||||
?>
|
||||
echo "</ul>"
|
||||
?>
|
||||
</div>
|
||||
<div id="footer">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -36,7 +36,7 @@ $db = @mysql_select_db($db_name,$connection) or die(mysql_error());
|
||||
//check for authority to view this page
|
||||
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 = '';
|
||||
@ -57,7 +57,7 @@ else {
|
||||
$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'";
|
||||
$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/>";
|
||||
}
|
||||
|
||||
if (($mod_user != "") && ($_POST[mod_pass] != "Same as Old"))
|
||||
if (($mod_user != "") && ($_POST[mod_pass] != "*******"))
|
||||
{
|
||||
$sql = "SELECT * FROM $table_name WHERE username = '$mod_user'";
|
||||
$result = @mysql_query($sql,$connection) or die(mysql_error());
|
||||
|
||||
@ -46,7 +46,7 @@ $result = @mysql_query($sql,$connection) or die(mysql_error());
|
||||
?>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>Dar de alta un nuevo usuario</h2>
|
||||
<h1>Dar de alta un nuevo usuario</h1>
|
||||
<br/>
|
||||
<form method="POST" action="<?php echo "adduser.php";?>">
|
||||
<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/>
|
||||
Por ejemplo: /jardines/casonadesuesa</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!--<tr>
|
||||
<td width="200px">Obligar a cambiar la contraseña en el siguiente inicio de sesión:</td>
|
||||
<td><select size="1" name="pchange">
|
||||
<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="Yes">Si</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td width="200px"><input type="submit" value="Guardar" name="B4"></td>
|
||||
<td> </td>
|
||||
|
||||
@ -6,10 +6,10 @@
|
||||
<meta http-equiv="Content-Language" content="es-ES" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>No autorizado</title>
|
||||
<title>No autorizado - La Factoría Verde</title>
|
||||
</head>
|
||||
|
||||
<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>
|
||||
</html>
|
||||
|
||||
@ -5,7 +5,7 @@ session_start();
|
||||
//check to see if the user already has an open session
|
||||
if (($_SESSION[user_name] != "") && ($_SESSION[password] != ""))
|
||||
{
|
||||
header("Location:$_SESSION[redirect]");
|
||||
header("Location:$base_dir/$_SESSION[redirect]");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
19
estilos.css
19
estilos.css
@ -71,11 +71,12 @@ input {
|
||||
left: 0;
|
||||
top: 32px;
|
||||
width: 762px;
|
||||
height: 518px;
|
||||
height: 518px;
|
||||
background-color: #b6cfa0;
|
||||
}
|
||||
|
||||
#menu {
|
||||
margin-top: 100px;
|
||||
margin-top: 88px;
|
||||
margin-left: 30px;
|
||||
width: 200px;
|
||||
}
|
||||
@ -129,6 +130,9 @@ input {
|
||||
}
|
||||
|
||||
|
||||
#datos-cliente {
|
||||
}
|
||||
|
||||
#modulos {
|
||||
margin-top: 8px;
|
||||
margin-left: 30px;
|
||||
@ -140,7 +144,7 @@ input {
|
||||
}
|
||||
|
||||
#login {
|
||||
margin-top: 20px;
|
||||
margin-top: 10px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
@ -184,7 +188,7 @@ input {
|
||||
|
||||
|
||||
#content.inicio {
|
||||
background: #fff url('img/fondo-inicio.jpg') no-repeat;
|
||||
background: url('img/fondo-inicio.jpg') no-repeat;
|
||||
}
|
||||
|
||||
.error {
|
||||
@ -193,4 +197,11 @@ input {
|
||||
font-size: 11px;
|
||||
font-variant:small-caps;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
#eltiempo {
|
||||
float: right;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
}
|
||||
@ -1,148 +1,296 @@
|
||||
<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 topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
|
||||
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="383">
|
||||
<img border="0" src="../images/lr_13_header_01.gif" width="383" height="112"></td>
|
||||
<td>
|
||||
<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>
|
||||
<tr>
|
||||
<td width="383">
|
||||
<img border="0" src="../images/lr_13_header_04.gif" width="383" height="38"></td>
|
||||
<td>
|
||||
<img border="0" src="../images/lr_13_header_05.gif" width="100%" height="38"></td>
|
||||
<td width="300">
|
||||
<img border="0" src="../images/lr_13_header_06.gif" width="310" height="38"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<form method="POST" action="install_1.php">
|
||||
<table border="0" width="100%" id="table1" cellspacing="10" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Name:<br>
|
||||
</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>
|
||||
</font>
|
||||
<input type="text" name="dbase_server" size="20" style="font-family: Verdana; color: #008080" value="localhost"></p>
|
||||
<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>
|
||||
<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>
|
||||
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Installation
|
||||
Directory:<br>
|
||||
</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
|
||||
Email:<br>
|
||||
</font><input type="text" name="admin_email" size="50" style="font-family: Verdana; color: #008080"><br>
|
||||
<font size="2">Time Zone:<br>
|
||||
</font><select size="1" name="time_zone" style="font-family: Verdana; color: #008080">
|
||||
<option value="-12">-12</option>
|
||||
<option value="-11">-11</option>
|
||||
<option value="-10">-10</option>
|
||||
<option value="-9.5">-9.5</option>
|
||||
<option value="-9">-9</option>
|
||||
<option value="-8.5">-8.5</option>
|
||||
<option value="-8">-8 PST</option>
|
||||
<option value="-7">-7 MST</option>
|
||||
<option value="-6">-6 CMT</option>
|
||||
<option value="-5" selected>-5 EST</option>
|
||||
<option value="-4">-4 AST</option>
|
||||
<option value="-3.5">-3.5</option>
|
||||
<option value="-3">-3 ADT</option>
|
||||
<option value="-2">-2</option>
|
||||
<option value="-1">-1</option>
|
||||
<option value="00">00 GMT</option>
|
||||
<option value="+1">+1 CET</option>
|
||||
<option value="+2">+2</option>
|
||||
<option value="+3">+3</option>
|
||||
<option value="+3.5">+3.5</option>
|
||||
<option value="+4">+4</option>
|
||||
<option value="+4.5">+4.5</option>
|
||||
<option value="+5">+5</option>
|
||||
<option value="+5.5">+5.5</option>
|
||||
<option value="+6">+6</option>
|
||||
<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">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<p style="margin-top: 0; margin-bottom: 0"> </p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<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 topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
|
||||
|
||||
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
|
||||
|
||||
<tr>
|
||||
|
||||
<td width="383">
|
||||
|
||||
<img border="0" src="../images/lr_13_header_01.gif" width="383" height="112"></td>
|
||||
|
||||
<td>
|
||||
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
|
||||
<td width="383">
|
||||
|
||||
<img border="0" src="../images/lr_13_header_04.gif" width="383" height="38"></td>
|
||||
|
||||
<td>
|
||||
|
||||
<img border="0" src="../images/lr_13_header_05.gif" width="100%" height="38"></td>
|
||||
|
||||
<td width="300">
|
||||
|
||||
<img border="0" src="../images/lr_13_header_06.gif" width="310" height="38"></td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<form method="POST" action="install_1.php">
|
||||
|
||||
<table border="0" width="100%" id="table1" cellspacing="10" cellpadding="4">
|
||||
|
||||
<tr>
|
||||
|
||||
<td valign="top">
|
||||
|
||||
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Database Name:<br>
|
||||
|
||||
</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>
|
||||
|
||||
</font>
|
||||
|
||||
<input type="text" name="dbase_server" size="20" style="font-family: Verdana; color: #008080" value="localhost"></p>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<p style="margin-top: 0; margin-bottom: 0"><font size="2">Installation
|
||||
|
||||
Directory:<br>
|
||||
|
||||
</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
|
||||
|
||||
Email:<br>
|
||||
|
||||
</font><input type="text" name="admin_email" size="50" style="font-family: Verdana; color: #008080"><br>
|
||||
|
||||
<font size="2">Time Zone:<br>
|
||||
|
||||
</font><select size="1" name="time_zone" style="font-family: Verdana; color: #008080">
|
||||
|
||||
<option value="-12">-12</option>
|
||||
|
||||
<option value="-11">-11</option>
|
||||
|
||||
<option value="-10">-10</option>
|
||||
|
||||
<option value="-9.5">-9.5</option>
|
||||
|
||||
<option value="-9">-9</option>
|
||||
|
||||
<option value="-8.5">-8.5</option>
|
||||
|
||||
<option value="-8">-8 PST</option>
|
||||
|
||||
<option value="-7">-7 MST</option>
|
||||
|
||||
<option value="-6">-6 CMT</option>
|
||||
|
||||
<option value="-5" selected>-5 EST</option>
|
||||
|
||||
<option value="-4">-4 AST</option>
|
||||
|
||||
<option value="-3.5">-3.5</option>
|
||||
|
||||
<option value="-3">-3 ADT</option>
|
||||
|
||||
<option value="-2">-2</option>
|
||||
|
||||
<option value="-1">-1</option>
|
||||
|
||||
<option value="00">00 GMT</option>
|
||||
|
||||
<option value="+1">+1 CET</option>
|
||||
|
||||
<option value="+2">+2</option>
|
||||
|
||||
<option value="+3">+3</option>
|
||||
|
||||
<option value="+3.5">+3.5</option>
|
||||
|
||||
<option value="+4">+4</option>
|
||||
|
||||
<option value="+4.5">+4.5</option>
|
||||
|
||||
<option value="+5">+5</option>
|
||||
|
||||
<option value="+5.5">+5.5</option>
|
||||
|
||||
<option value="+6">+6</option>
|
||||
|
||||
<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">
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<p style="margin-top: 0; margin-bottom: 0"> </p>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
@ -1,70 +1,139 @@
|
||||
<?php
|
||||
|
||||
//store variables into a session
|
||||
session_start(install);
|
||||
|
||||
$_SESSION[dbase_name] = $_POST[dbase_name];
|
||||
$_SESSION[dbase_server] = $_POST[dbase_server];
|
||||
$_SESSION[dbase_username] = $_POST[dbase_username];
|
||||
$_SESSION[dbase_password] = $_POST[dbase_password];
|
||||
$_SESSION[table_name] = "authorize";
|
||||
$_SESSION[install_dir] = $_POST[install_dir];
|
||||
$_SESSION[time_zone] = $_POST[time_zone];
|
||||
$_SESSION[verify_email] = $_POST[verify_email];
|
||||
$_SESSION[default_url] = $_POST[default_url];
|
||||
$_SESSION[min_pass_len] = $_POST[min_pass_len];
|
||||
$_SESSION[max_pass_len] = $_POST[max_pass_len];
|
||||
$_SESSION[log_login] = $_POST[log_login];
|
||||
$_SESSION[group_number] = $_POST[num_groups];
|
||||
$_SESSION[domain] = "."."$_POST[dom_name]"."$_POST[tld1]"."$_POST[tld2]";
|
||||
$_SESSION[admin_email] = $_POST[admin_email];
|
||||
|
||||
if (!$_POST[num_groups])
|
||||
{
|
||||
header("Location:install_2.php");
|
||||
}
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">";
|
||||
include ('header.html');
|
||||
|
||||
if (!$_POST[dbase_name] || !$_POST[dbase_server] || !$_POST[dbase_username] || !$_POST[dbase_password] ||
|
||||
!$_POST[install_dir] || !$_POST[time_zone] ||
|
||||
!$_POST[default_url] || !$_POST[min_pass_len] || !$_POST[max_pass_len] || !$_POST[dom_name] || !$_POST[admin_email])
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<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>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
//store variables into a session
|
||||
|
||||
session_start(install);
|
||||
|
||||
|
||||
|
||||
$_SESSION[dbase_name] = $_POST[dbase_name];
|
||||
|
||||
$_SESSION[dbase_server] = $_POST[dbase_server];
|
||||
|
||||
$_SESSION[dbase_username] = $_POST[dbase_username];
|
||||
|
||||
$_SESSION[dbase_password] = $_POST[dbase_password];
|
||||
|
||||
$_SESSION[table_name] = "authorize";
|
||||
|
||||
$_SESSION[install_dir] = $_POST[install_dir];
|
||||
|
||||
$_SESSION[time_zone] = $_POST[time_zone];
|
||||
|
||||
$_SESSION[verify_email] = $_POST[verify_email];
|
||||
|
||||
$_SESSION[default_url] = $_POST[default_url];
|
||||
|
||||
$_SESSION[min_pass_len] = $_POST[min_pass_len];
|
||||
|
||||
$_SESSION[max_pass_len] = $_POST[max_pass_len];
|
||||
|
||||
$_SESSION[log_login] = $_POST[log_login];
|
||||
|
||||
$_SESSION[group_number] = $_POST[num_groups];
|
||||
|
||||
$_SESSION[domain] = "."."$_POST[dom_name]"."$_POST[tld1]"."$_POST[tld2]";
|
||||
|
||||
$_SESSION[admin_email] = $_POST[admin_email];
|
||||
|
||||
|
||||
|
||||
if (!$_POST[num_groups])
|
||||
|
||||
{
|
||||
|
||||
header("Location:install_2.php");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">";
|
||||
|
||||
include ('header.html');
|
||||
|
||||
|
||||
|
||||
if (!$_POST[dbase_name] || !$_POST[dbase_server] || !$_POST[dbase_username] || !$_POST[dbase_password] ||
|
||||
|
||||
!$_POST[install_dir] || !$_POST[time_zone] ||
|
||||
|
||||
!$_POST[default_url] || !$_POST[min_pass_len] || !$_POST[max_pass_len] || !$_POST[dom_name] || !$_POST[admin_email])
|
||||
|
||||
{
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
@ -1,233 +1,466 @@
|
||||
<?php
|
||||
|
||||
session_start(install);
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">";
|
||||
|
||||
include ('header.html');
|
||||
|
||||
$group_array = array();
|
||||
|
||||
$i = 1;
|
||||
while ($i <= $_SESSION[group_number])
|
||||
{
|
||||
$group = "group$i";
|
||||
array_push($group_array, "$_POST[$group]");
|
||||
$i++;
|
||||
}
|
||||
|
||||
$i = 1;
|
||||
|
||||
//test connection to dbase verifing dbase name, server, username and password
|
||||
|
||||
$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());
|
||||
|
||||
//create a message to be displayed at the end of the installation
|
||||
if ($db)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
//create a table in that dbase
|
||||
$sql ="
|
||||
CREATE TABLE IF NOT EXISTS $_SESSION[table_name]
|
||||
(
|
||||
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
|
||||
)";
|
||||
|
||||
$result = @mysql_query($sql,$connection)
|
||||
or die(mysql_error());
|
||||
|
||||
if ($result)
|
||||
{
|
||||
echo "Table $_SESSION[table_name] 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;
|
||||
}
|
||||
|
||||
//create a table in that dbase
|
||||
$sql_log ="
|
||||
CREATE TABLE IF NOT EXISTS log_login
|
||||
(
|
||||
username VARCHAR(20),
|
||||
date VARCHAR(20),
|
||||
time VARCHAR(20),
|
||||
ip_addr VARCHAR(20),
|
||||
oper_sys VARCHAR(20),
|
||||
brow VARCHAR(20)
|
||||
)
|
||||
";
|
||||
|
||||
$result_log = @mysql_query($sql_log,$connection)
|
||||
or die(mysql_error());
|
||||
|
||||
if ($result_log)
|
||||
{
|
||||
echo "Table log_login 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;
|
||||
}
|
||||
|
||||
//create a table in that dbase
|
||||
$sql_ban ="
|
||||
CREATE TABLE IF NOT EXISTS banned
|
||||
(
|
||||
no_access VARCHAR(30),
|
||||
type VARCHAR(10)
|
||||
)
|
||||
";
|
||||
|
||||
$result_ban = @mysql_query($sql_ban,$connection)
|
||||
or die(mysql_error());
|
||||
|
||||
if ($result_ban)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
//create a table in that dbase
|
||||
$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] = "
|
||||
<?
|
||||
|
||||
//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>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
session_start(install);
|
||||
|
||||
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\">";
|
||||
|
||||
|
||||
|
||||
include ('header.html');
|
||||
|
||||
|
||||
|
||||
$group_array = array();
|
||||
|
||||
|
||||
|
||||
$i = 1;
|
||||
|
||||
while ($i <= $_SESSION[group_number])
|
||||
|
||||
{
|
||||
|
||||
$group = "group$i";
|
||||
|
||||
array_push($group_array, "$_POST[$group]");
|
||||
|
||||
$i++;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$i = 1;
|
||||
|
||||
|
||||
|
||||
//test connection to dbase verifing dbase name, server, username and password
|
||||
|
||||
|
||||
|
||||
$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());
|
||||
|
||||
|
||||
|
||||
//create a message to be displayed at the end of the installation
|
||||
|
||||
if ($db)
|
||||
|
||||
{
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//create a table in that dbase
|
||||
|
||||
$sql ="
|
||||
|
||||
CREATE TABLE IF NOT EXISTS $_SESSION[table_name]
|
||||
|
||||
(
|
||||
|
||||
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
|
||||
|
||||
)";
|
||||
|
||||
|
||||
|
||||
$result = @mysql_query($sql,$connection)
|
||||
|
||||
or die(mysql_error());
|
||||
|
||||
|
||||
|
||||
if ($result)
|
||||
|
||||
{
|
||||
|
||||
echo "Table $_SESSION[table_name] 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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//create a table in that dbase
|
||||
|
||||
$sql_log ="
|
||||
|
||||
CREATE TABLE IF NOT EXISTS log_login
|
||||
|
||||
(
|
||||
|
||||
username VARCHAR(20),
|
||||
|
||||
date VARCHAR(20),
|
||||
|
||||
time VARCHAR(20),
|
||||
|
||||
ip_addr VARCHAR(20),
|
||||
|
||||
oper_sys VARCHAR(20),
|
||||
|
||||
brow VARCHAR(20)
|
||||
|
||||
)
|
||||
|
||||
";
|
||||
|
||||
|
||||
|
||||
$result_log = @mysql_query($sql_log,$connection)
|
||||
|
||||
or die(mysql_error());
|
||||
|
||||
|
||||
|
||||
if ($result_log)
|
||||
|
||||
{
|
||||
|
||||
echo "Table log_login 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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//create a table in that dbase
|
||||
|
||||
$sql_ban ="
|
||||
|
||||
CREATE TABLE IF NOT EXISTS banned
|
||||
|
||||
(
|
||||
|
||||
no_access VARCHAR(30),
|
||||
|
||||
type VARCHAR(10)
|
||||
|
||||
)
|
||||
|
||||
";
|
||||
|
||||
|
||||
|
||||
$result_ban = @mysql_query($sql_ban,$connection)
|
||||
|
||||
or die(mysql_error());
|
||||
|
||||
|
||||
|
||||
if ($result_ban)
|
||||
|
||||
{
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//create a table in that dbase
|
||||
|
||||
$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] = "
|
||||
|
||||
<?
|
||||
|
||||
|
||||
|
||||
//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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,81 +1,161 @@
|
||||
<?php
|
||||
|
||||
session_start(install);
|
||||
|
||||
include ('header.html');
|
||||
include ('../functions.php');
|
||||
|
||||
$admin_username = $_POST[username];
|
||||
|
||||
if (!$_POST[first_name] || !$_POST[last_name] || !$_POST[user_name] || !$_POST[password] || !$_POST[redirect_to])
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$pass_len = password_check($_SESSION[min_pass_len], $_SESSION[max_pass_len], $_POST[password]);
|
||||
if ($pass_len == "no")
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
//make connection to dbase
|
||||
$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
|
||||
$num = mysql_num_rows($name_result);
|
||||
|
||||
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>";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
session_start(install);
|
||||
|
||||
|
||||
|
||||
include ('header.html');
|
||||
|
||||
include ('../functions.php');
|
||||
|
||||
|
||||
|
||||
$admin_username = $_POST[username];
|
||||
|
||||
|
||||
|
||||
if (!$_POST[first_name] || !$_POST[last_name] || !$_POST[user_name] || !$_POST[password] || !$_POST[redirect_to])
|
||||
|
||||
{
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pass_len = password_check($_SESSION[min_pass_len], $_SESSION[max_pass_len], $_POST[password]);
|
||||
|
||||
if ($pass_len == "no")
|
||||
|
||||
{
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//make connection to dbase
|
||||
|
||||
$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
|
||||
|
||||
$num = mysql_num_rows($name_result);
|
||||
|
||||
|
||||
|
||||
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>
|
||||
44
jardines/plantilla/index.html
Normal file
44
jardines/plantilla/index.html
Normal 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>
|
||||
@ -49,7 +49,8 @@
|
||||
<p class="texto-pass">¿Olvidaste tu contraseña?</p>
|
||||
<a href="emailpass.html"><img src="img/texto-pincha-aqui.gif" alt="Pincha aqui" /></a>
|
||||
</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 id="content" class="inicio"></div>
|
||||
|
||||
@ -22,20 +22,6 @@
|
||||
<input type="submit" name="B1" style="font-family: Tahoma; font-size: 8pt"></p>
|
||||
</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>
|
||||
<i><b><font face="Tahoma" size="2">
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
{
|
||||
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();
|
||||
return (false);
|
||||
}
|
||||
@ -29,9 +29,8 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<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>
|
||||
<h1>Cambio de la contraseña</h1>
|
||||
<form method="post" action="pass_change.php" onSubmit="return Form1_Validator(this)" language="JavaScript" name="Form1">
|
||||
|
||||
<p class="c4"><span class="c3">Nueva contraseña:<br /></span> <input type="password"
|
||||
name="p_word" size="20" /><span class="c3"><br />
|
||||
|
||||
@ -93,7 +93,7 @@ if (($_SESSION[redirect] != "$base_dir/login.php") && ($log_login == "1"))
|
||||
}
|
||||
|
||||
//redirects the user
|
||||
header("Location:$_SESSION[redirect]");
|
||||
header("Location:$base_dir/$_SESSION[redirect]");
|
||||
|
||||
?>
|
||||
<html>
|
||||
|
||||
133
register.html
133
register.html
@ -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>
|
||||
98
register.php
98
register.php
@ -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>
|
||||
Loading…
Reference in New Issue
Block a user