diff --git a/activate.html b/activate.html index 7ae2771..b00abb3 100644 --- a/activate.html +++ b/activate.html @@ -1,19 +1,33 @@ - - -Activar cuenta - - -

Activar tu cuenta

-
-

Usuario:
-
-

-

Contrasea:
-
-

-

-

-

-
- - \ No newline at end of file + + + + + + Activar cuenta + + + + +

Activar tu cuenta

+ +
+

Usuario:

+ +

Contraseña:

+ +

+
+ + \ No newline at end of file diff --git a/admin/_menu.php b/admin/_menu.php new file mode 100644 index 0000000..42bb13c --- /dev/null +++ b/admin/_menu.php @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/admin/adduser.php b/admin/adduser.php index bec2f2d..82866f9 100644 --- a/admin/adduser.php +++ b/admin/adduser.php @@ -1,160 +1,175 @@ -Go Back and re-enter the information"; - exit; -} - - - -//check the password length -$pass_len = password_check($min_pass, $max_pass, $_POST[password]); -if ($pass_len == "no") -{ - - - echo "

You must use a password between $min_pass and $max_pass characters in length, please Go Back and try again.

"; - exit; -} - -//check for authority to view this page -if (allow_access(Administrators) != "yes") -{ - echo "not authorized to perform this function"; -} - -//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); - -//check if that username already exists -if ($num != 0){ - -echo "

Sorry, that username already exists.

"; -echo "

Try Another Username.

"; -echo "$_POST[username]"; -exit; - -}else{ - -//or add it to the database -$sql_add = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, - pchange, email, redirect, verified, last_login) VALUES - ('$_POST[firstname]', '$_POST[lastname]', '$_POST[username]', password('$_POST[password]'), - '$_POST[group1]', '$_POST[group2]', '$_POST[group3]', '$_POST[pchange]', '$_POST[email]', - '$_POST[redirect]', '1', 'last_login()')"; - -$result = @mysql_query($sql_add,$connection) or die(mysql_error()); -} - -if ($_POST[email_user] == "Yes") -{ - $mailheaders = "From: $domain\n"; - $mailheaders .= "Dear $_POST[firstname] $_POST[lastname],\n"; - $mailheaders .= "\n"; - $mailheaders .= "An account has been created for you at $domain.\n"; - $mailheaders .= "Please log in with the following account information:\n"; - $mailheaders .= "Username: $_POST[username]\n"; - $mailheaders .= "Password: $_POST[password]\n"; - $mailheaders .= "\n"; - $mailheaders .= "Please login at:\n"; - $mailheaders .= "$base_dir/login.html\n"; - $mailheaders .= "Should you have any complications, please email the System Administrator at:\n"; - $mailheaders .= "$adminemail\n"; - - $to = "$_POST[email]"; - $subject = "Your account has been created !!"; - - mail($to, $subject, $mailheaders, "From: No Reply <$adminemail>\n"); - -} -?> - - - - - - - - -Add User - - - - -

User Added:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
First Name:
Last Name:
Username:
Password:
E-Mail:
Group Memberships: 
  
  
Redirect to:
Password Change Req'd:
User E-Mailed:
- - - - + + + + + + + Añadir nuevo usuario - La Factoría Verde + + + +
+ +
+

No tienes autorización para esta función.

"; +} + +//check required fields +if (($_POST[username] == "")) +{ + echo "


El campo 'Usuario' no puede estar en blanco. Vuelve atrás y cámbialo.

"; + exit; +} + +//check the password length +$pass_len = password_check($min_pass, $max_pass, $_POST[password]); +if ($pass_len == "no") +{ + echo "


La contraseña debe tener una longitud entre $min_pass y $max_pass caracteres. Vuelve atrás y cámbiala.

"; + 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); + +//check if that username already exists +if ($num != 0) { + echo "

El usuario '".$_POST[username]."'ya existe.

"; + echo "

Prueba con otro nombre de usuario.

"; + echo "$_POST[username]"; + exit; +} else { + //or add it to the database + $sql_add = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, + pchange, email, redirect, verified, last_login) VALUES + ('$_POST[firstname]', '$_POST[lastname]', '$_POST[username]', password('$_POST[password]'), + '$_POST[group1]', '$_POST[group2]', '$_POST[group3]', '$_POST[pchange]', '$_POST[email]', + '$_POST[redirect]', '1', 'last_login()')"; + + + $result = @mysql_query($sql_add,$connection) or die(mysql_error()); +} + +/*if ($_POST[email_user] == "Yes") +{ + $mailheaders = "From: $domain\n"; + $mailheaders .= "Dear $_POST[firstname] $_POST[lastname],\n"; + $mailheaders .= "\n"; + $mailheaders .= "An account has been created for you at $domain.\n"; + $mailheaders .= "Please log in with the following account information:\n"; + $mailheaders .= "Username: $_POST[username]\n"; + $mailheaders .= "Password: $_POST[password]\n"; + $mailheaders .= "\n"; + $mailheaders .= "Please login at:\n"; + $mailheaders .= "$base_dir/login.html\n"; + $mailheaders .= "Should you have any complications, please email the System Administrator at:\n"; + $mailheaders .= "$adminemail\n"; + + $to = "$_POST[email]"; + $subject = "Your account has been created !!"; + + mail($to, $subject, $mailheaders, "From: No Reply <$adminemail>\n"); +}*/ + +?> + +

Usuario añadido correctamente

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nombre:
Apellidos:
Usuario:
Contraseña:
E-Mail:
Grupo: 
  
  
Redirigir a:
Cambio de contraseña:
Enviar e-mail al usuario:
+
+
+ ">Volver a la lista +
+
+ +
+ + \ No newline at end of file diff --git a/admin/adminpage.php b/admin/adminpage.php index 9957b9d..f1dc3f9 100644 --- a/admin/adminpage.php +++ b/admin/adminpage.php @@ -1,5 +1,4 @@ + + - - + + + Administración - La Factoría Verde + - - - - - + +
- - - - - - - - - - - - - - - - - - - - - -
  
Panel de controlVer el registro de accesos
Sesin iniciada como Salir
  -

Mandar e-mail a todos los usuarios

- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - firstname; - $m_last = $sql -> lastname; - $g_1 = $sql -> group1; - $g_2 = $sql -> group2; - $g_3 = $sql -> group3; - $chng = $sql -> pchange; - $m_email = $sql -> email; - $direct = $sql -> redirect; - -} -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ +
+ +
+ +
- -
-

-
- - -
-

-
- - - -
- - -
"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nombre: -
Apellidos: - -
Usuario: - -
Contrasea: - -
E-Mail: - -
Grupo: -
  -
  -
Redirigir a: -
Obligar a cambiar la contrasea en el siguiente inicio de sesin: -
E-Mail User Account - Information: -
-  
- -
- -
- - - -
-

-

-
- - - -
-

-

-
- - - - -
- - - -
- - - - - -
Username: -
-
- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nombre: - -
Apellidos: -
- Contrasea: -
- E-Mail: -
- Grupo: -
-   -
-   -
- Redirigir a: -
- Obligar a cambiar la contrasea en el siguiente inicio de sesin: -
- E-Mail User Account Information: -
- -  
- -
- -
- -
- - - - -
-

- -

-
- - - - -
-

- -

-
- - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Borrar usuario - -
Restaurar usuario - -
Banear usuario - -
Bloquear direccin IP - - ...
Lift User Ban - -
Lift IP Ban - -
Vaciar la papelera -
Purgar cuentas inactivas desde
-  
-
- -
-  
-  
-  
-  
-  
-  
-  
-  
- - -
-
- 1) - { - for ($i=0; $i<$c; $i++) - { - $search = $explodeit[$i]."+"; + if ($user_det == "") { + if (!isset($_GET['max_results'])) { + $max_results = 5; + } + else { + $max_results = $_GET['max_results']; } - }else{ - $search = $s_string; - } -} + if (!isset($_GET['page'])) { + $page = 1; + } + else { + $page = $_GET['page']; + } + if (isset($_GET['search'])) { + $s_string = $_GET['search']; + $explodeit = explode(" ", "$s_string"); + $c = count($explodeit); + if ($c > 1) { + for ($i = 0; $i < $c; $i++) { + $search = $explodeit[$i] . "+"; + } + } + else { + $search = $s_string; + } + } + echo "Número de resultados por página: 5"; + echo " 10

"; -echo "Show Number of Results Per Page: 5"; -echo " 10
"; + // Figure out the limit for the query based + // on the current page number. -// Figure out the limit for the query based -// on the current page number. -$from = (($page * $max_results) - $max_results); + $from = (($page * $max_results) - $max_results); -// Perform MySQL query on only the current page number's results -if (!isset($_GET['search'])) -{ - $set_lim = "SELECT * FROM $table_name ORDER BY username LIMIT $from, $max_results"; -}else{ - $search = $_GET['search']; - $set_lim = "SELECT * FROM $table_name WHERE username LIKE '%$search%' || firstname LIKE '%$search%' - || lastname LIKE '%$search%' || group1 LIKE '%$search%' || group2 LIKE '%$search%' || group3 LIKE '%$search%' - || email LIKE '%$search%' ORDER BY username LIMIT $from, $max_results"; -} -$set_res = @mysql_query($set_lim,$connection) or die(mysql_error()); + // Perform MySQL query on only the current page number's results + if (!isset($_GET['search'])) { + $set_lim = "SELECT * FROM $table_name ORDER BY username LIMIT $from, $max_results"; + } + else { + $search = $_GET['search']; + $set_lim = "SELECT * FROM $table_name WHERE username LIKE '%$search%' || firstname LIKE '%$search%' + || lastname LIKE '%$search%' || group1 LIKE '%$search%' || group2 LIKE '%$search%' || group3 LIKE '%$search%' + || email LIKE '%$search%' ORDER BY username LIMIT $from, $max_results"; + } -while ($set_lim = mysql_fetch_object($set_res)) -{ + $set_res = @mysql_query($set_lim, $connection) or die(mysql_error()); + while ($set_lim = mysql_fetch_object($set_res)) { + $fname = $set_lim->firstname; + $lname = $set_lim->lastname; + $uname = $set_lim->username; + $p_change = $set_lim->pchange; + $verif_d = $set_lim->verified; + $last = $set_lim->last_login; + $re_direct = $set_lim->redirect; + $groupA = $set_lim->group1; + $groupB = $set_lim->group2; + $groupC = $set_lim->group3; + $e_mail = $set_lim->email; + if ($p_change == 1) { + $p_change = "Yes"; + } + else { + $p_change = "No"; + } -$fname = $set_lim -> firstname; -$lname = $set_lim -> lastname; -$uname = $set_lim -> username; -$p_change = $set_lim -> pchange; -$verif_d = $set_lim -> verified; -$last = $set_lim -> last_login; -$re_direct = $set_lim -> redirect; -$groupA = $set_lim -> group1; -$groupB = $set_lim -> group2; -$groupC = $set_lim -> group3; -$e_mail = $set_lim -> email; + if ($verif_d == "0") { + $verif_d = "No"; + } + else { + $verif_d = "Yes"; + } + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
$unameE-Mail:$e_mail
"; + echo "Modificar"; + echo "  "; + if ($uname != $_SESSION[user_name]) { + echo "Eliminar"; + /*echo "Eliminar";*/ + } + echo "Nombre:$fname $lname
 Último acceso:$last

"; + } -if ($p_change == 1) -{$p_change = "Yes";}else{$p_change = "No";} + // Figure out the total number of results in DB: + if (!isset($_GET['search'])) { + $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM authorize") , 0); + } + else { + $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM authorize + WHERE username LIKE '%$search%' || firstname LIKE '%$search%' + || lastname LIKE '%$search%' || group1 LIKE '%$search%' || group2 LIKE '%$search%' || group3 LIKE '%$search%' + || email LIKE '%$search%'"),0); + } -if ($verif_d == "0") -{$verif_d= "No";}else{$verif_d= "Yes";} + // Figure out the total number of pages. Always round up using ceil() + $total_pages = ceil($total_results / $max_results); + if ($total_pages > 1) { + // Build Page Number Hyperlinks + echo "
Selecciona una página
"; + // Build Previous Link + if($page > 1) { + $prev = ($page - 1); + echo "<<   "; + } + + for($i = 1; $i <= $total_pages; $i++) { + if(($page) == $i) { + echo "$i "; + } else { + echo "$i "; + } + } - -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; - -echo ""; - -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; - -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; - -echo "
$unameE-Mail:$e_mail
 Name:$fname $lname
 Last Login:$last
"; - - -} - - -// Figure out the total number of results in DB: -if (!isset($_GET['search'])) -{ - $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM authorize"),0); -}else{ -$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM authorize - WHERE username LIKE '%$search%' || firstname LIKE '%$search%' - || lastname LIKE '%$search%' || group1 LIKE '%$search%' || group2 LIKE '%$search%' || group3 LIKE '%$search%' - || email LIKE '%$search%'"),0); -} - -// Figure out the total number of pages. Always round up using ceil() -$total_pages = ceil($total_results / $max_results); - -// Build Page Number Hyperlinks -echo "
Select a Page
"; - -// Build Previous Link -if($page > 1){ - $prev = ($page - 1); - echo "<<   "; -} - -for($i = 1; $i <= $total_pages; $i++){ - if(($page) == $i){ - echo "$i "; - } else { - echo "$i "; - } -} - -// Build Next Link -if($page < $total_pages){ - $next = ($page + 1); - echo "   >>"; -} -echo "
"; -}else{ -echo "Details for $user_det
"; - -$dsql = "SELECT * FROM $table_name WHERE username = '$user_det'"; -$dresults = @mysql_query($dsql,$connection) or die(mysql_error()); -while ($dsql = mysql_fetch_object($dresults)) -{ -$fname = $dsql -> firstname; -$lname = $dsql -> lastname; -$uname = $dsql -> username; -$p_change = $dsql -> pchange; -$verif_d = $dsql -> verified; -$last = $dsql -> last_login; -$re_direct = $dsql -> redirect; -$groupA = $dsql -> group1; -$groupB = $dsql -> group2; -$groupC = $dsql -> group3; -$e_mail = $dsql -> email; - -if ($p_change == "0") -{ -$p_change = "No"; -}else{ -$p_change = "Yes"; -} - -if ($verif_d == "0") -{ -$verif_d = "No"; -}else{ -$verif_d = "Yes"; -} -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
E-Mail:
Real Name:
Last Login: 
Password Change Required: 
Verified Through E-Mail: 
Group Memberships: 
  
  
Redirect to:
- -
">Back to List
- -   >>"; + } + echo "
"; } + } + + if ($search != "") { if ($ret_max) { $page=$ret_page; $max_results=$ret_max; } - echo "
Exit Search"; + echo "
Ver toda la lista"; }else{ echo "

"; } -?> -
-
">

Search -

-
-
-
+?> +
+ + + + + + + \ No newline at end of file diff --git a/admin/adminpage2.php b/admin/adminpage2.php new file mode 100644 index 0000000..e80ef7b --- /dev/null +++ b/admin/adminpage2.php @@ -0,0 +1,993 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/admin/deleteuser.php b/admin/deleteuser.php new file mode 100644 index 0000000..ed1e82a --- /dev/null +++ b/admin/deleteuser.php @@ -0,0 +1,107 @@ + + + + + + + + Eliminar usuario - La Factoría Verde + + + +
+ +
+

No tienes autorización para esta función.

"; +} + +if (isset($_GET['del_user'])) { + $s_string = $_GET['del_user']; + $explodeit = explode(" ", "$s_string"); + $c = count($explodeit); + if ($c > 1) { + for ($i = 0; $i < $c; $i++) { + $del_user = $explodeit[$i] . "+"; + } + } + else { + $del_user = $s_string; + } +} + +if (($del_user != $_SESSION[user_name]) && ($del_user != "")) +{ + $sql = "SELECT * FROM $table_name WHERE username = '$del_user'"; + $result = @mysql_query($sql, $connection) or die(mysql_error()); + //get the number of rows in the result set + $num = mysql_num_rows($result); + //set session variables if there is a match + if ($num != 0) + { + while ($sql = mysql_fetch_object($result)) + { + $first = $sql -> firstname; + $last = $sql -> lastname; + $uname = $sql -> username; + $pass = $sql -> password; + $gr1 = $sql -> group1; + $gr2 = $sql -> group2; + $gr3 = $sql -> group3; + $change = $sql -> pchange; + $e_mail = $sql -> email; + $re_direct = $sql -> redirect; + $ver_d = $sql -> verified; + $last_log = $sql -> last_login; + $del_dat = last_login(); + } + + + $trash_user = "INSERT INTO trash (firstname, lastname, username, password, group1, group2, group3, pchange, email, redirect, verified, last_login, del_date) VALUES ('$first', '$last', '$uname', '$pass', '$gr1', '$gr2', '$gr3', '$change', '$e_mail', '$re_direct', '$ver_d', '$last_log', '$del_dat')"; + + $del = "DELETE FROM $table_name WHERE username = '$del_user'"; + $result = @mysql_query($del,$connection) or die(mysql_error()); + $result1 = @mysql_query($trash_user,$connection) or die(mysql_error()); + $msg .= "El usuario '$del_user' ha sido eliminado.
"; + } else { + $msg .= "No se encuentra el usuario '$del_user'.
"; + } + + $del_banned = "DELETE FROM banned WHERE no_access = '$del_user'"; + $result = @mysql_query($del_banned,$connection) or die(mysql_error()); + + echo $msg; +} +?> +
+
+ ">Volver a la lista +
+
+ +
+ + \ No newline at end of file diff --git a/admin/estilos.css b/admin/estilos.css new file mode 100644 index 0000000..fdc4c40 --- /dev/null +++ b/admin/estilos.css @@ -0,0 +1,56 @@ +/* CSS Document */ + +@import url("../reset.css"); +@import url("menu_style.css"); +@import url("table_style.css"); + + +html, body { + height: 100%; + font-family: Verdana, Geneva, sans-serif; + font-size: 12px; +} + +body { + text-align: center; +} + +a:link { + color: #718ABE; + text-decoration: none; +} + +a:visited { + color: #718ABE; + text-decoration: none; +} + +a:hover { + color: #718ABE; + text-decoration: underline !important; +} + + +input { + font-family: Verdana, Geneva, sans-serif; +} + +#layout { + margin: 10px auto; + width: 800px; + text-align: left; + color: #333; +} + +#header { + width: 100%; +} + +#content { + text-align: left; +} + +.error { + color: #F00; + font-weight: bold; +} \ No newline at end of file diff --git a/admin/images/bg.png b/admin/images/bg.png new file mode 100644 index 0000000..8d5a2dc Binary files /dev/null and b/admin/images/bg.png differ diff --git a/admin/mail_all.htm b/admin/mail_all.htm deleted file mode 100644 index 9e48cfb..0000000 --- a/admin/mail_all.htm +++ /dev/null @@ -1,24 +0,0 @@ - - - - - -E-Mail Subject - - - - - - -

E-Mail Subject:
-
- From Line to Read:
-
- Message:
-
-

- - - - - diff --git a/admin/mail_all.php b/admin/mail_all.php index 0093c2a..387464e 100644 --- a/admin/mail_all.php +++ b/admin/mail_all.php @@ -1,40 +1,40 @@ -
"; - 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
"; - } - -?> \ No newline at end of file + + + + + + Enviar e-mail masivo a todos los cliente - La Factoría Verde + + + + + + + +
+ +
+
+

Asunto:
+
+ Remitente:
+
+ Mensaje:
+
+

+ +
+ +
+ + diff --git a/admin/mail_all_process.php b/admin/mail_all_process.php new file mode 100644 index 0000000..24ba587 --- /dev/null +++ b/admin/mail_all_process.php @@ -0,0 +1,38 @@ +
"; + 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
"; + } +?> \ No newline at end of file diff --git a/admin/menu_style.css b/admin/menu_style.css new file mode 100644 index 0000000..9a72e0d --- /dev/null +++ b/admin/menu_style.css @@ -0,0 +1,48 @@ +ul.menu { +list-style-type:none; +width:auto; +position:relative; +display:block; +height:33px; +background:url(images/bg.png) repeat-x top left; +font-family:Verdana,Helvetica,Arial,sans-serif; +border:1px solid #000; +margin:0 0 10px 0; +padding:0; +} + +ul.menu li { +display:block; +float:left; +margin:0; +padding:0; +} + +ul.menu li a { +float:left; +color:#d0b9a2; +text-decoration:none; +height:24px; +padding:9px 15px 0; +font-weight:normal; +} + +ul.menu li a:hover,.current { +color:#fff; +background:url(images/bg.png) repeat-x top left; +text-decoration:none; +} + +ul.menu .current a { +color:#fff; +font-weight:700; +} + + +/*ORANGE*/ +ul.menu.orange{ +background-color:#DC4900; +} +ul.menu.orange li a:hover, .menu.orange li.current { +background-color:#F46D00; +} diff --git a/admin/mod_user.php b/admin/mod_user.php index 921b2c9..74bfcb0 100644 --- a/admin/mod_user.php +++ b/admin/mod_user.php @@ -1,264 +1,256 @@ - firstname; - $last = $sql -> lastname; - $uname = $sql -> username; - $pass = $sql -> password; - $gr1 = $sql -> group1; - $gr2 = $sql -> group2; - $gr3 = $sql -> group3; - $change = $sql -> pchange; - $e_mail = $sql -> email; - $re_direct = $sql -> redirect; - $ver_d = $sql -> verified; - $last_log = $sql -> last_login; - $del_dat = last_login(); - } - - $trash_user = "INSERT INTO trash (firstname, lastname, username, password, group1, group2, group3, - pchange, email, redirect, verified, last_login, del_date)VALUES - ('$first', '$last', '$uname', '$pass', '$gr1', '$gr2', '$gr3', - '$change', '$e_mail', '$re_direct', '$ver_d', '$last_log', '$del_dat')"; - - $del = "DELETE FROM $table_name WHERE username = '$_POST[del_user]'"; - - $result = @mysql_query($del,$connection) or die(mysql_error()); - $result1 = @mysql_query($trash_user,$connection) or die(mysql_error()); - - $msg .= "User $_POST[del_user] has been trashed from the database.
"; - }else{ - $msg .= "User $_POST[del_user] could not be located in the database.
"; - } - - $del_banned = "DELETE FROM banned WHERE no_access = '$_POST[del_user]'"; - $result = @mysql_query($del_banned,$connection) or die(mysql_error()); - - -} - -if (($_POST[username] != "") && ($_POST[mod_pass] == "Same as Old")) -{ -$sql = "SELECT * FROM $table_name WHERE username = '$_POST[username]'"; -$result = @mysql_query($sql,$connection) or die(mysql_error()); -while ($sql = mysql_fetch_object($result)) - { - $pass = $sql -> password; - $last = $sql -> last_login; - } - $sql = "DELETE FROM $table_name WHERE username = '$_POST[username]'"; - $result = @mysql_query($sql,$connection) or die(mysql_error()); - $sql = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, - pchange, email, redirect, verified, last_login) VALUES ('$_POST[mod_first]', '$_POST[mod_last]', - '$_POST[username]', '$pass', '$_POST[mod_group1]', '$_POST[mod_group2]', - '$_POST[mod_group3]', '$_POST[mod_chng]', '$_POST[mod_email]', '$_POST[mod_redirect]', - '1', '$last')"; - $result = @mysql_query($sql,$connection) or die(mysql_error()); - $msg .= "The information for $_POST[username] has been changed updated.
"; -} - -if (($_POST[username] != "") && ($_POST[mod_pass] != "Same as Old")) -{ -$sql = "SELECT * FROM $table_name WHERE username = '$_POST[username]'"; -$result = @mysql_query($sql,$connection) or die(mysql_error()); -while ($sql = mysql_fetch_object($result)) - { - $pass = $sql -> password; - $last = $sql -> last_login; - } - $sql = "DELETE FROM $table_name WHERE username = '$_POST[username]'"; - $result = @mysql_query($sql,$connection) or die(mysql_error()); - $sql = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, - pchange, email, redirect, verified, last_login) VALUES ('$_POST[mod_first]', '$_POST[mod_last]', - '$_POST[username]', password('$_POST[mod_pass]'), '$_POST[mod_group1]', '$_POST[mod_group2]', - '$_POST[mod_group3]', '$_POST[mod_chng]', '$_POST[mod_email]', '$_POST[mod_redirect]', - '1', '$last')"; - $result = @mysql_query($sql,$connection) or die(mysql_error()); - $msg .= "The information for $_POST[username] has been changed updated.
"; -} - -if ($_POST[ban_user] != "") -{ - - $ban = "INSERT INTO banned (no_access, type) VALUES ('$_POST[ban_user]', 'user')"; - $result = @mysql_query($ban,$connection) or die(mysql_error()); - $msg .= "User $_POST[ban_user] has been banned.
"; - -} - -$ip_addr = "$_POST[oct1].$_POST[oct2].$_POST[oct3].$_POST[oct4]"; - -if ($ip_addr != "...") -{ - $ban_ip = "INSERT INTO banned (no_access, type) VALUES ('$ip_addr', 'ip')"; - $result = @mysql_query($ban_ip,$connection) or die(mysql_error()); - $msg .= "IP Address $ip_addr has been banned.
"; -} - -if ($_POST[lift_user_ban] != "") -{ - - $lift_user = "DELETE FROM banned (no_access, type) WHERE no_access = '$_POST[lift_user_ban]'"; - $result = @mysql_query($lift_user,$connection) or die(mysql_error()); - $msg .= "The Ban for user $_POST[lift_user_ban] has been lifted.
"; - -} - -if ($_POST[lift_ip_ban] != "") -{ - - $lift_ip = "DELETE FROM banned (no_access, type) WHERE no_access = '$_POST[lift_ip_ban]'"; - $result = @mysql_query($lift_ip,$connection) or die(mysql_error()); - $msg .= "The Ban for IP Address $_POST[lift_ip_ban] has been lifted.
"; - -} - -if ($_POST[restore] != "") -{ - $ruser = "SELECT * FROM trash WHERE username = '$_POST[restore]'"; - - $result0 = @mysql_query($ruser, $connection) or die(mysql_error()); - - //get the number of rows in the result set - $num = mysql_num_rows($result0); - - //set session variables if there is a match - if ($num != 0) - { - while ($ruser = mysql_fetch_object($result0)) - { - $rfirst = $ruser -> firstname; - $rlast = $ruser -> lastname; - $runame = $ruser -> username; - $rpass = $ruser -> password; - $rgr1 = $ruser -> group1; - $rgr2 = $ruser -> group2; - $rgr3 = $ruser -> group3; - $rchange = $ruser -> pchange; - $re_mail = $ruser -> email; - $rre_direct = $ruser -> redirect; - $rver_d = $ruser -> verified; - $rlast_log = $ruser -> last_login; - } - - $r_user = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, - pchange, email, redirect, verified, last_login) VALUES - ('$rfirst', '$rlast', '$runame', '$rpass', '$rgr1', '$rgr2', '$rgr3', - '$rchange', '$re_mail', '$rre_direct', '$rver_d', '$rlast_log')"; - - $del = "DELETE FROM trash WHERE username = '$_POST[restore]'"; - - $result = @mysql_query($del,$connection) or die(mysql_error()); - $result1 = @mysql_query($r_user,$connection) or die(mysql_error()); - - $msg .= "User $_POST[restore] has been restored.
"; - }else{ - $msg .= "User $_POST[restore] could not be located in the database.
"; - } -} - -if ($_POST[empt_trash] == "yes") -{ - - $empty = "DELETE FROM trash"; - $gone = @mysql_query($empty, $connection) or die(mysql_error()); - - $msg .= "The trash has been emptied.
"; -} - -if ($_POST[amt_time] != "" && $_POST[incr_time] != "") -{ - $msg .= "The following accounts were inactive for $amt_time $incr_time or more and have been moved to the trash.

"; - $killtime = "NOW() - INTERVAL $_POST[amt_time] $_POST[incr_time]"; - $xfer = "SELECT * FROM $table_name WHERE last_login < $killtime"; - $resultp1 = @mysql_query($xfer, $connection) or die(mysql_error()); - while ($xfer = mysql_fetch_object($resultp1)) - { - $pfirst = $xfer -> firstname; - $plast = $xfer -> lastname; - $puname = $xfer -> username; - $ppass = $xfer -> password; - $pgr1 = $xfer -> group1; - $pgr2 = $xfer -> group2; - $pgr3 = $xfer -> group3; - $ppchange = $xfer -> pchange; - $pe_mail = $xfer -> email; - $pre_direct = $xfer -> redirect; - $pver_d = $xfer -> verified; - $plast_log = $xfer -> last_login; - $pdel_date = last_login(); - - $msg .= "$puname
"; - $xfer2 = "INSERT INTO trash (firstname, lastname, username, password, group1, group2, group3, - pchange, email, redirect, verified, last_login, del_date) VALUES ('$pfirst', ' $plast', '$puname', - '$ppass', '$pgr1', '$pgr2', '$pgr3', '$ppchange', '$pe_mail', '$pre_direct', '$pver_d', '$plast_log', '$pdel_date')"; - $resultp2 = @mysql_query($xfer2, $connection) or die(mysql_error()); - } - $purge = "DELETE FROM $table_name WHERE last_login < $killtime"; - $resultp3 = @mysql_query($purge, $connection) or die(mysql_error()); - -} - - -echo ""; - -echo $msg; - -if ($_POST[username] == $_SESSION[user_name]) -{ -session_destroy(); -echo ""; -echo ""; -echo ""; -echo "New Page 2"; -echo ""; -exit; -} -?> - - - - - -Modify User - - - - - - - - - + firstname; + $last = $sql -> lastname; + $uname = $sql -> username; + $pass = $sql -> password; + $gr1 = $sql -> group1; + $gr2 = $sql -> group2; + $gr3 = $sql -> group3; + $change = $sql -> pchange; + $e_mail = $sql -> email; + $re_direct = $sql -> redirect; + $ver_d = $sql -> verified; + $last_log = $sql -> last_login; + $del_dat = last_login(); + } + + + $trash_user = "INSERT INTO trash (firstname, lastname, username, password, group1, group2, group3, pchange, email, redirect, verified, last_login, del_date) VALUES ('$first', '$last', '$uname', '$pass', '$gr1', '$gr2', '$gr3', '$change', '$e_mail', '$re_direct', '$ver_d', '$last_log', '$del_dat')"; + + $del = "DELETE FROM $table_name WHERE username = '$_POST[del_user]'"; + $result = @mysql_query($del,$connection) or die(mysql_error()); + $result1 = @mysql_query($trash_user,$connection) or die(mysql_error()); + $msg .= "El usuario '$_POST[del_user]' ha sido eliminado.
"; + } else { + $msg .= "No se encuentra el usuario '$_POST[del_user]'.
"; + } + + $del_banned = "DELETE FROM banned WHERE no_access = '$_POST[del_user]'"; + $result = @mysql_query($del_banned,$connection) or die(mysql_error()); +} + +if (($_POST[username] != "") && ($_POST[mod_pass] == "Same as Old")) +{ + $sql = "SELECT * FROM $table_name WHERE username = '$_POST[username]'"; + $result = @mysql_query($sql,$connection) or die(mysql_error()); + + while ($sql = mysql_fetch_object($result)) + { + $pass = $sql -> password; + $last = $sql -> last_login; + } + $sql = "DELETE FROM $table_name WHERE username = '$_POST[username]'"; + $result = @mysql_query($sql,$connection) or die(mysql_error()); + + $sql = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, + pchange, email, redirect, verified, last_login) VALUES ('$_POST[mod_first]', '$_POST[mod_last]', + '$_POST[username]', '$pass', '$_POST[mod_group1]', '$_POST[mod_group2]', + '$_POST[mod_group3]', '$_POST[mod_chng]', '$_POST[mod_email]', '$_POST[mod_redirect]', + '1', '$last')"; + $result = @mysql_query($sql,$connection) or die(mysql_error()); + $msg .= "The information for $_POST[username] has been changed updated.
"; +} + +if (($_POST[username] != "") && ($_POST[mod_pass] != "Same as Old")) +{ + $sql = "SELECT * FROM $table_name WHERE username = '$_POST[username]'"; + $result = @mysql_query($sql,$connection) or die(mysql_error()); + while ($sql = mysql_fetch_object($result)) + { + $pass = $sql -> password; + $last = $sql -> last_login; + } + + $sql = "DELETE FROM $table_name WHERE username = '$_POST[username]'"; + $result = @mysql_query($sql,$connection) or die(mysql_error()); + $sql = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, + pchange, email, redirect, verified, last_login) VALUES ('$_POST[mod_first]', '$_POST[mod_last]', + '$_POST[username]', password('$_POST[mod_pass]'), '$_POST[mod_group1]', '$_POST[mod_group2]', + '$_POST[mod_group3]', '$_POST[mod_chng]', '$_POST[mod_email]', '$_POST[mod_redirect]', + '1', '$last')"; + + $result = @mysql_query($sql,$connection) or die(mysql_error()); + $msg .= "The information for $_POST[username] has been changed updated.
"; +} + +if ($_POST[ban_user] != "") +{ + $ban = "INSERT INTO banned (no_access, type) VALUES ('$_POST[ban_user]', 'user')"; + $result = @mysql_query($ban,$connection) or die(mysql_error()); + $msg .= "User $_POST[ban_user] has been banned.
"; +} + +$ip_addr = "$_POST[oct1].$_POST[oct2].$_POST[oct3].$_POST[oct4]"; +if ($ip_addr != "...") +{ + $ban_ip = "INSERT INTO banned (no_access, type) VALUES ('$ip_addr', 'ip')"; + $result = @mysql_query($ban_ip,$connection) or die(mysql_error()); + $msg .= "IP Address $ip_addr has been banned.
"; +} + +if ($_POST[lift_user_ban] != "") +{ + $lift_user = "DELETE FROM banned (no_access, type) WHERE no_access = '$_POST[lift_user_ban]'"; + $result = @mysql_query($lift_user,$connection) or die(mysql_error()); + $msg .= "The Ban for user $_POST[lift_user_ban] has been lifted.
"; +} + +if ($_POST[lift_ip_ban] != "") +{ + $lift_ip = "DELETE FROM banned (no_access, type) WHERE no_access = '$_POST[lift_ip_ban]'"; + $result = @mysql_query($lift_ip,$connection) or die(mysql_error()); + $msg .= "The Ban for IP Address $_POST[lift_ip_ban] has been lifted.
"; +} + +if ($_POST[restore] != "") +{ + $ruser = "SELECT * FROM trash WHERE username = '$_POST[restore]'"; + $result0 = @mysql_query($ruser, $connection) or die(mysql_error()); + + //get the number of rows in the result set + $num = mysql_num_rows($result0); + + //set session variables if there is a match + if ($num != 0) + { + while ($ruser = mysql_fetch_object($result0)) + { + $rfirst = $ruser -> firstname; + $rlast = $ruser -> lastname; + $runame = $ruser -> username; + $rpass = $ruser -> password; + $rgr1 = $ruser -> group1; + $rgr2 = $ruser -> group2; + $rgr3 = $ruser -> group3; + $rchange = $ruser -> pchange; + $re_mail = $ruser -> email; + $rre_direct = $ruser -> redirect; + $rver_d = $ruser -> verified; + $rlast_log = $ruser -> last_login; + } + + $r_user = "INSERT INTO $table_name (firstname, lastname, username, password, group1, group2, group3, + pchange, email, redirect, verified, last_login) VALUES + ('$rfirst', '$rlast', '$runame', '$rpass', '$rgr1', '$rgr2', '$rgr3', + '$rchange', '$re_mail', '$rre_direct', '$rver_d', '$rlast_log')"; + + $del = "DELETE FROM trash WHERE username = '$_POST[restore]'"; + + $result = @mysql_query($del,$connection) or die(mysql_error()); + $result1 = @mysql_query($r_user,$connection) or die(mysql_error()); + + $msg .= "User $_POST[restore] has been restored.
"; + } else { + $msg .= "User $_POST[restore] could not be located in the database.
"; + } +} + +if ($_POST[empt_trash] == "yes") +{ + $empty = "DELETE FROM trash"; + $gone = @mysql_query($empty, $connection) or die(mysql_error()); + + $msg .= "The trash has been emptied.
"; +} + +if ($_POST[amt_time] != "" && $_POST[incr_time] != "") +{ + $msg .= "The following accounts were inactive for $amt_time $incr_time or more and have been moved to the trash.

"; + $killtime = "NOW() - INTERVAL $_POST[amt_time] $_POST[incr_time]"; + $xfer = "SELECT * FROM $table_name WHERE last_login < $killtime"; + $resultp1 = @mysql_query($xfer, $connection) or die(mysql_error()); + while ($xfer = mysql_fetch_object($resultp1)) + { + $pfirst = $xfer -> firstname; + $plast = $xfer -> lastname; + $puname = $xfer -> username; + $ppass = $xfer -> password; + $pgr1 = $xfer -> group1; + $pgr2 = $xfer -> group2; + $pgr3 = $xfer -> group3; + $ppchange = $xfer -> pchange; + $pe_mail = $xfer -> email; + $pre_direct = $xfer -> redirect; + $pver_d = $xfer -> verified; + $plast_log = $xfer -> last_login; + $pdel_date = last_login(); + + $msg .= "$puname
"; + $xfer2 = "INSERT INTO trash (firstname, lastname, username, password, group1, group2, group3, + pchange, email, redirect, verified, last_login, del_date) VALUES ('$pfirst', ' $plast', '$puname', + '$ppass', '$pgr1', '$pgr2', '$pgr3', '$ppchange', '$pe_mail', '$pre_direct', '$pver_d', '$plast_log', '$pdel_date')"; + $resultp2 = @mysql_query($xfer2, $connection) or die(mysql_error()); + } + + $purge = "DELETE FROM $table_name WHERE last_login < $killtime"; + $resultp3 = @mysql_query($purge, $connection) or die(mysql_error()); +} + + +echo ""; + +echo $msg; + +if ($_POST[username] == $_SESSION[user_name]) +{ + session_destroy(); + echo ""; + echo ""; + echo ""; + echo "New Page 2"; + echo ""; + exit; +} +?> + + + + + + + +Modify User + + + + + + + + + + + + + + + + + + + diff --git a/admin/newuser.php b/admin/newuser.php new file mode 100644 index 0000000..55b2112 --- /dev/null +++ b/admin/newuser.php @@ -0,0 +1,147 @@ + + + + + + + + Añadir nuevo usuario - La Factoría Verde + + + +
+ +
+

Dar de alta un nuevo usuario

+
+
"> +
+ + + + + + + + + + + + + + + + + + + + + +
  
Panel de controlVer el registro de accesos
Sesin iniciada como Salir
  +

Mandar e-mail a todos los usuarios

+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + firstname; + $m_last = $sql -> lastname; + $g_1 = $sql -> group1; + $g_2 = $sql -> group2; + $g_3 = $sql -> group3; + $chng = $sql -> pchange; + $m_email = $sql -> email; + $direct = $sql -> redirect; + +} +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+

+
+ + +
+

+
+ + + +
+ + +
"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nombre: +
Apellidos: + +
Usuario: + +
Contrasea: + +
E-Mail: + +
Grupo: +
  +
  +
Redirigir a: +
Obligar a cambiar la contrasea en el siguiente inicio de sesin: +
E-Mail User Account + Information: +
+  
+ +
+ +
+ + + +
+

+

+
+ + + +
+

+

+
+ + + + +
+ + + +
+ + + + + +
Username: +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nombre: + +
Apellidos: +
+ Contrasea: +
+ E-Mail: +
+ Grupo: +
  + +
  + +
+ Redirigir a: +
+ Obligar a cambiar la contrasea en el siguiente inicio de sesin: +
+ E-Mail User Account Information: +
+ +  
+ +
+ +
+ +
+ + + + +
+

+ +

+
+ + + + +
+

+ +

+
+ + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Borrar usuario + +
Restaurar usuario + +
Banear usuario + +
Bloquear direccin IP + + ...
Lift User Ban + +
Lift IP Ban + +
Vaciar la papelera +
Purgar cuentas inactivas desde
+  
+
+ +
  +
  +
  +
  +
  +
  +
  +
  +
+ + +
+
+ 1) + { + for ($i=0; $i<$c; $i++) + { + $search = $explodeit[$i]."+"; + } + }else{ + $search = $s_string; + } +} + + + + +echo "Show Number of Results Per Page: 5"; +echo " 10
"; + +// Figure out the limit for the query based +// on the current page number. +$from = (($page * $max_results) - $max_results); + +// Perform MySQL query on only the current page number's results +if (!isset($_GET['search'])) +{ + $set_lim = "SELECT * FROM $table_name ORDER BY username LIMIT $from, $max_results"; +}else{ + $search = $_GET['search']; + $set_lim = "SELECT * FROM $table_name WHERE username LIKE '%$search%' || firstname LIKE '%$search%' + || lastname LIKE '%$search%' || group1 LIKE '%$search%' || group2 LIKE '%$search%' || group3 LIKE '%$search%' + || email LIKE '%$search%' ORDER BY username LIMIT $from, $max_results"; +} +$set_res = @mysql_query($set_lim,$connection) or die(mysql_error()); + +while ($set_lim = mysql_fetch_object($set_res)) +{ + +$fname = $set_lim -> firstname; +$lname = $set_lim -> lastname; +$uname = $set_lim -> username; +$p_change = $set_lim -> pchange; +$verif_d = $set_lim -> verified; +$last = $set_lim -> last_login; +$re_direct = $set_lim -> redirect; +$groupA = $set_lim -> group1; +$groupB = $set_lim -> group2; +$groupC = $set_lim -> group3; +$e_mail = $set_lim -> email; + + +if ($p_change == 1) +{$p_change = "Yes";}else{$p_change = "No";} + +if ($verif_d == "0") +{$verif_d= "No";}else{$verif_d= "Yes";} + + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +echo ""; + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +echo "
$unameE-Mail:$e_mail
 Name:$fname $lname
 Last Login:$last
"; + + +} + + +// Figure out the total number of results in DB: +if (!isset($_GET['search'])) +{ + $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM authorize"),0); +}else{ +$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM authorize + WHERE username LIKE '%$search%' || firstname LIKE '%$search%' + || lastname LIKE '%$search%' || group1 LIKE '%$search%' || group2 LIKE '%$search%' || group3 LIKE '%$search%' + || email LIKE '%$search%'"),0); +} + +// Figure out the total number of pages. Always round up using ceil() +$total_pages = ceil($total_results / $max_results); + +// Build Page Number Hyperlinks +echo "
Select a Page
"; + +// Build Previous Link +if($page > 1){ + $prev = ($page - 1); + echo "<<   "; +} + +for($i = 1; $i <= $total_pages; $i++){ + if(($page) == $i){ + echo "$i "; + } else { + echo "$i "; + } +} + +// Build Next Link +if($page < $total_pages){ + $next = ($page + 1); + echo "   >>"; +} +echo "
"; +}else{ +echo "Details for $user_det
"; + +$dsql = "SELECT * FROM $table_name WHERE username = '$user_det'"; +$dresults = @mysql_query($dsql,$connection) or die(mysql_error()); +while ($dsql = mysql_fetch_object($dresults)) +{ +$fname = $dsql -> firstname; +$lname = $dsql -> lastname; +$uname = $dsql -> username; +$p_change = $dsql -> pchange; +$verif_d = $dsql -> verified; +$last = $dsql -> last_login; +$re_direct = $dsql -> redirect; +$groupA = $dsql -> group1; +$groupB = $dsql -> group2; +$groupC = $dsql -> group3; +$e_mail = $dsql -> email; + +if ($p_change == "0") +{ +$p_change = "No"; +}else{ +$p_change = "Yes"; +} + +if ($verif_d == "0") +{ +$verif_d = "No"; +}else{ +$verif_d = "Yes"; +} +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
E-Mail:
Real Name:
Last Login: 
Password Change Required: 
Verified Through E-Mail: 
Group Memberships: 
  
  
Redirect to:
+ +
">Back to List
+ +Exit Search"; +}else{ +echo "

"; +} +?> +
+
">

Search +

+
+
+
diff --git a/admin/changeuser.php b/admin/changeuser.php new file mode 100644 index 0000000..9d264b7 --- /dev/null +++ b/admin/changeuser.php @@ -0,0 +1,146 @@ + + + + + + + + Modificar usuario - La Factoría Verde + + + +
+ +
+

Dar de alta un nuevo usuario

+
+
"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nombre:
Apellidos:
Usuario:
Contraseña:
E-Mail:
Grupo:
 
 
Redirigir a:
Obligar a cambiar la contraseña en el siguiente inicio de sesión:
Enviar un e-mail al usuario con su nueva cuenta:
 
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nombre:
Apellidos:
Usuario:
Contraseña:
E-Mail:
Grupo:
 
 
Redirigir a:
+ Por ejemplo: /jardines/casonadesuesa
Obligar a cambiar la contraseña en el siguiente inicio de sesión:
Enviar un e-mail al usuario con su nueva cuenta:
 
+ + + + + + + + + \ No newline at end of file diff --git a/admin/table_style.css b/admin/table_style.css new file mode 100644 index 0000000..11f2754 --- /dev/null +++ b/admin/table_style.css @@ -0,0 +1,41 @@ +/* + Cusco Sky table styles + written by Braulio Soncco http://www.buayacorp.com +*/ + +table, th, td { + border: 1px solid #D4E0EE; + border-collapse: collapse; + font-family: "Trebuchet MS", Arial, sans-serif; + color: #555; +} + +caption { + font-size: 150%; + font-weight: bold; + margin: 5px; +} + +td, th { + padding: 4px; +} + +thead th { + text-align: center; + background: #E6EDF5; + color: #4F76A3; + font-size: 100% !important; +} + +tbody th { + font-weight: bold; +} + +tbody tr { background: #FCFDFE; } + +tbody tr.odd { background: #F7F9FC; } + + +tfoot th, tfoot td { + font-size: 85%; +} \ No newline at end of file diff --git a/admin/userinfo.php b/admin/userinfo.php new file mode 100644 index 0000000..3e30fbf --- /dev/null +++ b/admin/userinfo.php @@ -0,0 +1,149 @@ + + + + + + + + Información de usuario - La Factoría Verde + + + + +
+ +
+ + + 1) { + for ($i = 0; $i < $c; $i++) { + $user_det = $explodeit[$i] . "+"; + } + } + else { + $user_det = $s_string; + } + } + + if ($user_det != "") { + echo "

Detalles del usuario '".$user_det."'

"; + $dsql = "SELECT * FROM $table_name WHERE username = '$user_det'"; + $dresults = @mysql_query($dsql, $connection) or die(mysql_error()); + while ($dsql = mysql_fetch_object($dresults)) { + $fname = $dsql->firstname; + $lname = $dsql->lastname; + $uname = $dsql->username; + $p_change = $dsql->pchange; + $verif_d = $dsql->verified; + $last = $dsql->last_login; + $re_direct = $dsql->redirect; + $groupA = $dsql->group1; + $groupB = $dsql->group2; + $groupC = $dsql->group3; + $e_mail = $dsql->email; + if ($p_change == "0") { + $p_change = "No"; + } + else { + $p_change = "Yes"; + } + + if ($verif_d == "0") { + $verif_d = "No"; + } + else { + $verif_d = "Yes"; + } + ?> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
E-Mail:
Nombre completo:
Última sesión: 
Solicitud de cambio de contraseña: 
Verificar e-mail: 
Miembro del grupo: 
  
  
Redirigir a:
+
+
+ ">Volver a la lista +
+ +
+ +
+ + \ No newline at end of file diff --git a/banned.html b/banned.html index 62bd1de..ba7b418 100644 --- a/banned.html +++ b/banned.html @@ -1,15 +1,15 @@ - - - - - -Unauthorized - - - - -

YOU'VE BEEN BANNED

- - - - + + + + + + + + No autorizado + + + +

TU CUENTA ESTÁ BANEADA

+ + diff --git a/check_login.php b/check_login.php index 49f3464..1f3e42f 100644 --- a/check_login.php +++ b/check_login.php @@ -1,23 +1,20 @@ - + + diff --git a/config.php b/config.php index 2180e97..eb95a2d 100644 --- a/config.php +++ b/config.php @@ -1,22 +1,22 @@ - - - - -Chane E-Mail Address - - - - - - -
-

E-Mail Address Change

-

New E-Mail Address:
-

-
-

-
-  - - + + + + + Cambiar dirección de e-mail + + + + +
+

Cambio de dirección de e-mail

+ +

Nuevo e-mail:

+

+
  + + diff --git a/emailpass.html b/emailpass.html index 2b72a6c..8791bbb 100644 --- a/emailpass.html +++ b/emailpass.html @@ -1,17 +1,36 @@ - - -Username and Password Request - - -

Request Your Username & Password

-
-

Email Address:
-
-

- -

- -

-
- - \ No newline at end of file + + + + + + + + Recuperación de usuario y contraseña + + + + +

Recuperar usuario y contraseña

+ +
+

Dirección de + e-mail:

+ +

+
+ + diff --git a/errorlogin.html b/errorlogin.html deleted file mode 100644 index 846fb44..0000000 --- a/errorlogin.html +++ /dev/null @@ -1,25 +0,0 @@ - - -Error Login - - -

There was an error logging you -in, please try again...

-
-

Username:
-
-

-

Password:
-
-

-

-Remember -me from this computer

-

-

-
-

-Click here if would like your username and password to be -e-mailed to the address we have on file.

- - \ No newline at end of file diff --git a/estilos.css b/estilos.css new file mode 100644 index 0000000..b3926d1 --- /dev/null +++ b/estilos.css @@ -0,0 +1,196 @@ +/* CSS Document */ +@import url("reset.css"); + +html, body { + height: 100%; + font-family: Verdana, Geneva, sans-serif; +} + +input { + font-family: Verdana, Geneva, sans-serif; +} + +#layout { + width: 1024px; + height: 550px; + text-align: left; + position: absolute; + left: 50%; + top: 50%; + margin-left: -512px; + margin-top: -275px; + background: #fff url("img/inicio-factoria.gif") no-repeat; + color: #fff; +} + +#header { + width: 100%; + height: 30px; +} + + #header h2 { + margin-top: 6px; + margin-left: 18px; + background: url("img/texto-mantenimiento.gif") no-repeat; + width: 640px; + height: 0; + padding: 22px 0 0 0; + overflow: hidden; + } + + #header h3 { + position: absolute; + right: 74px; + top: 7px; + background: url("img/texto-telefono.gif") no-repeat; + width: 125px; + height: 0; + padding: 17px 0 0 0; + overflow: hidden; + } + +#footer { + width: 260px; + position: absolute; + bottom: 0; + right: 0; + text-align: center; + padding: 0 0 6px 0; +} + +#aside { + position: absolute; + right: 0; + top: 31px; + height: 485px; + width: 260px; +} + +#content { + position: absolute; + left: 0; + top: 32px; + width: 762px; + height: 518px; +} + +#menu { + margin-top: 100px; + margin-left: 30px; + width: 200px; +} + #menu ul { + } + + #menu li { + margin: 5px 0; + } + + #menu span { + visibility: hidden; + padding: 0 20px 0 0; + } + + #menu a { + text-decoration: none; + width: 100%; + } + + #menu a.presentacion { + background: url('img/menu-presentacion.gif') 0 0 no-repeat; + } + + #menu a.presentacion:hover { + background: url('img/menu-presentacion-hot.gif') 0 0 no-repeat; + } + + #menu a.servicios { + background: url('img/menu-servicios.gif') 0 0 no-repeat; + } + + #menu a.servicios:hover { + background: url('img/menu-servicios-hot.gif') 0 0 no-repeat; + } + + #menu a.galeria { + background: url('img/menu-galeria.gif') 0 0 no-repeat; + } + + #menu a.galeria:hover { + background: url('img/menu-galeria-hot.gif') 0 0 no-repeat; + } + + #menu a.blog { + background: url('img/menu-blog-consultas.gif') 0 0 no-repeat; + } + + #menu a.blog:hover { + background: url('img/menu-blog-consultas-hot.gif') 0 0 no-repeat; + } + + +#modulos { + margin-top: 8px; + margin-left: 30px; + width: 200px; + width: 200px; + font-size: 11px; + font-variant:small-caps; + line-height: 140%; +} + +#login { + margin-top: 20px; + margin-left: 30px; + width: 200px; + background: url('img/texto-login.gif') 0 0 no-repeat; + height: 165px; + width: 200px; +} + #login h2 { + visibility: hidden; + } + + #login p.texto-pass { + height: 20px; + margin: 0; + padding: 0; + border: 0; + background: url('img/texto-olvidaste-pass.gif') 0 0 no-repeat; + text-indent: -1000em; + } + + form.login-inicio label { + line-height: 20px; + } + + form.login-inicio .campo { + background-color: #c1bfbf; + border: 0; + } + + form.login-inicio .entrar { + background: none; + display:block; + width: 80px; + height: 20px; + margin: 5px 0 0 0; + padding: 0; + border: 0; + cursor: pointer; + cursor: hand; + } + + form.login-inicio span { + visibility: hidden; + } + + +#content.inicio { + background: #fff url('img/fondo-inicio.jpg') no-repeat; +} + +.error { + color: #F00; + font-weight: bold; +} \ No newline at end of file diff --git a/functions.php b/functions.php index a0b936b..e3e9118 100644 --- a/functions.php +++ b/functions.php @@ -1,80 +1,71 @@ - firstname; - $_SESSION[last_name] = $sql -> lastname; - $_SESSION[user_name] = $sql -> username; - $_SESSION[password] = $sql -> password; - $_SESSION[group1] = $sql -> group1; - $_SESSION[group2] = $sql -> group2; - $_SESSION[group3] = $sql -> group3; - $_SESSION[pchange] = $sql -> pchange; - $_SESSION[email] = $sql -> email; - $_SESSION[redirect] = $sql -> redirect; - $_SESSION[verified] = $sql -> verified; - $_SESSION[last_login] = $sql -> last_login; - } - }else{ - $_SESSION[redirect] = "$base_dir/errorlogin.html"; - } -} - -//functions that will determine if access is allowed -function allow_access($group) -{ - if ($_SESSION[group1] == "$group" || $_SESSION[group2] == "$group" || $_SESSION[group3] == "$group" || - $_SESSION[group1] == "Administrators" || $_SESSION[group2] == "Administrators" || $_SESSION[group3] == "Administrators" || - $_SESSION[user_name] == "$group") - { - $allowed = "yes"; - }else{ - $allowed = "no"; - } - return $allowed; -} - -//function to check the length of the requested password -function password_check($min_pass, $max_pass, $pass) -{ - - $valid = "yes"; - if ($min_pass > strlen($pass) || $max_pass < strlen($pass)) - { - $valid = "no"; - } - - return $valid; -} - + firstname; + $_SESSION[last_name] = $sql -> lastname; + $_SESSION[user_name] = $sql -> username; + $_SESSION[password] = $sql -> password; + $_SESSION[group1] = $sql -> group1; + $_SESSION[group2] = $sql -> group2; + $_SESSION[group3] = $sql -> group3; + $_SESSION[pchange] = $sql -> pchange; + $_SESSION[email] = $sql -> email; + $_SESSION[redirect] = $sql -> redirect; + $_SESSION[verified] = $sql -> verified; + $_SESSION[last_login] = $sql -> last_login; + } + }else{ + $_SESSION[redirect] = "$base_dir/login.php?errorlogin=1"; + } +} + +//functions that will determine if access is allowed +function allow_access($group) +{ + if ($_SESSION[group1] == "$group" || $_SESSION[group2] == "$group" || $_SESSION[group3] == "$group" || + $_SESSION[group1] == "Administradores" || $_SESSION[group2] == "Administradores" || $_SESSION[group3] == "Administradores" || + $_SESSION[group1] == "Administrators" || $_SESSION[group2] == "Administrators" || $_SESSION[group3] == "Administrators" || + $_SESSION[user_name] == "$group") + { + $allowed = "yes"; + }else{ + $allowed = "no"; + } + return $allowed; +} + +//function to check the length of the requested password +function password_check($min_pass, $max_pass, $pass) +{ + $valid = "yes"; + if ($min_pass > strlen($pass) || $max_pass < strlen($pass)) + { + $valid = "no"; + } + return $valid; +} + ?> \ No newline at end of file diff --git a/img/fondo-inicio.jpg b/img/fondo-inicio.jpg new file mode 100644 index 0000000..ef6d1b1 Binary files /dev/null and b/img/fondo-inicio.jpg differ diff --git a/img/inicio-factoria.gif b/img/inicio-factoria.gif new file mode 100644 index 0000000..dd8e7d0 Binary files /dev/null and b/img/inicio-factoria.gif differ diff --git a/img/lafactoriaverde.gif b/img/lafactoriaverde.gif new file mode 100644 index 0000000..4d32189 Binary files /dev/null and b/img/lafactoriaverde.gif differ diff --git a/img/menu-blog-consultas-hot.gif b/img/menu-blog-consultas-hot.gif new file mode 100644 index 0000000..2a1ebf2 Binary files /dev/null and b/img/menu-blog-consultas-hot.gif differ diff --git a/img/menu-blog-consultas.gif b/img/menu-blog-consultas.gif new file mode 100644 index 0000000..64dd261 Binary files /dev/null and b/img/menu-blog-consultas.gif differ diff --git a/img/menu-galeria-hot.gif b/img/menu-galeria-hot.gif new file mode 100644 index 0000000..ef7b875 Binary files /dev/null and b/img/menu-galeria-hot.gif differ diff --git a/img/menu-galeria.gif b/img/menu-galeria.gif new file mode 100644 index 0000000..2913d12 Binary files /dev/null and b/img/menu-galeria.gif differ diff --git a/img/menu-presentacion-hot.gif b/img/menu-presentacion-hot.gif new file mode 100644 index 0000000..89108b4 Binary files /dev/null and b/img/menu-presentacion-hot.gif differ diff --git a/img/menu-presentacion.gif b/img/menu-presentacion.gif new file mode 100644 index 0000000..114b52a Binary files /dev/null and b/img/menu-presentacion.gif differ diff --git a/img/menu-servicios-hot.gif b/img/menu-servicios-hot.gif new file mode 100644 index 0000000..97b31b6 Binary files /dev/null and b/img/menu-servicios-hot.gif differ diff --git a/img/menu-servicios.gif b/img/menu-servicios.gif new file mode 100644 index 0000000..9c8bf15 Binary files /dev/null and b/img/menu-servicios.gif differ diff --git a/img/texto-email.gif b/img/texto-email.gif new file mode 100644 index 0000000..e405aea Binary files /dev/null and b/img/texto-email.gif differ diff --git a/img/texto-entrar-hot.gif b/img/texto-entrar-hot.gif new file mode 100644 index 0000000..1c8e8c0 Binary files /dev/null and b/img/texto-entrar-hot.gif differ diff --git a/img/texto-entrar.gif b/img/texto-entrar.gif new file mode 100644 index 0000000..60db628 Binary files /dev/null and b/img/texto-entrar.gif differ diff --git a/img/texto-login.gif b/img/texto-login.gif new file mode 100644 index 0000000..b4cb324 Binary files /dev/null and b/img/texto-login.gif differ diff --git a/img/texto-mantenimiento.gif b/img/texto-mantenimiento.gif new file mode 100644 index 0000000..76af1f0 Binary files /dev/null and b/img/texto-mantenimiento.gif differ diff --git a/img/texto-olvidaste-pass.gif b/img/texto-olvidaste-pass.gif new file mode 100644 index 0000000..9d46a2b Binary files /dev/null and b/img/texto-olvidaste-pass.gif differ diff --git a/img/texto-pincha-aqui.gif b/img/texto-pincha-aqui.gif new file mode 100644 index 0000000..272a6c6 Binary files /dev/null and b/img/texto-pincha-aqui.gif differ diff --git a/img/texto-telefono.gif b/img/texto-telefono.gif new file mode 100644 index 0000000..aed9644 Binary files /dev/null and b/img/texto-telefono.gif differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..519761a --- /dev/null +++ b/index.php @@ -0,0 +1,4 @@ + + diff --git a/login.html b/login.html deleted file mode 100644 index b00df9a..0000000 --- a/login.html +++ /dev/null @@ -1,24 +0,0 @@ - - -Login - - -

Login to Secure Area

-
-

Username:
-
-

-

Password:
-
-

-

-Remember -me from this computer

-

-

-
-

-Click here if would like your username and password to be -e-mailed to the address we have on file.

- - \ No newline at end of file diff --git a/login.php b/login.php new file mode 100644 index 0000000..45d60f4 --- /dev/null +++ b/login.php @@ -0,0 +1,60 @@ + + + + + + La Factoría Verde + + + + + +
+ +
+ +
+

Acceso de clientes

+ +
+

¿Olvidaste tu contraseña?

+ Pincha aqui +
+
+ +

Por favor, vuelve a introducir tus datos de acceso otra vez...

+ +
+
+
+ +
+ + diff --git a/logout.php b/logout.php index 64e146c..713ddd5 100644 --- a/logout.php +++ b/logout.php @@ -1,13 +1,14 @@ - - - - - - + + + + + + + + + diff --git a/logs/log.html b/logs/log.html index 9c2f555..b22b888 100644 --- a/logs/log.html +++ b/logs/log.html @@ -1,9 +1,9 @@ - - -New Page 2 + + + Registro de accesos @@ -15,7 +15,7 @@
@@ -39,7 +39,7 @@


- Volver a la pgina de administracin

+ Volver a la página de administración

diff --git a/no_access.html b/no_access.html index 9ec2599..c53e6ab 100644 --- a/no_access.html +++ b/no_access.html @@ -1,29 +1,43 @@ - - - - -NO ACCESS ALLOWED - - - - -Access Denied!!!

Please login with proper -credentials:

-
-

Username:
-
-

-

Password:
-
-

-

-Remember -me from this computer

-

-

-
-

 

- - - - + + + + + + + Acceso no permitido + + + + + Acceso no permitido + +

Por favor, introduce tus datos de acceso correctos:

+ +
+

Usuario:

+ +

Contraseña:

+ +

No cerrar sesión

+ +

+
+ +

 

+ + diff --git a/not_activated.html b/not_activated.html index 6025afb..bc4c76f 100644 --- a/not_activated.html +++ b/not_activated.html @@ -1,15 +1,14 @@ - - - - -Account Not Activated - - - - -

Your account must be activated before you can log in, please visit the -activation page that was included in the email we sent you.

- - - - + + + + + + + Cuenta sin activar + + + +

Tu cuenta debe ser activada antes de que puedas entrar. Por favor, visita la página de activación que se indica en el e-mail que has recibido.

+ + diff --git a/pass_change.html b/pass_change.html index b8a936b..a99bf10 100644 --- a/pass_change.html +++ b/pass_change.html @@ -1,36 +1,44 @@ - - - - -Password Change - - - - - - -
-

Password Change

-

New Password:
-

- Confirm Password:
-

-

-
-  - - - + + + + + Cambiar la contraseña + + + + + +
+

Cambio de contraseña

+ +

Nueva contraseña:

+ Confirmar contraseña:

+ +

+
  + + diff --git a/index.html b/readme.html similarity index 100% rename from index.html rename to readme.html diff --git a/redirect.php b/redirect.php index 798ffd9..e16d276 100644 --- a/redirect.php +++ b/redirect.php @@ -1,108 +1,102 @@ - no_access; - if ($username == $banned || $REMOTE_ADDR == $banned) - { - include ('banned.html'); - exit; - } - } - -$last_log = last_login(); - -//updates table with last log as now -$sql = "UPDATE $table_name SET last_login = '$last_log' WHERE username = '$_SESSION[user_name]'"; -$result = @mysql_query($sql,$connection) or die(mysql_error()); - -if (($_SESSION[redirect] != "$base_dir/errorlogin.html") && ($log_login == "1")) -{ - include('loglogin.php'); -} - -//redirects the user -header("Location:$_SESSION[redirect]"); - -?> - -Redirect \ No newline at end of file + no_access; + if ($username == $banned || $REMOTE_ADDR == $banned) + { + include ('banned.html'); + exit; + } +} + +$last_log = last_login(); +//updates table with last log as now +$sql = "UPDATE $table_name SET last_login = '$last_log' WHERE username = '$_SESSION[user_name]'"; +$result = @mysql_query($sql, $connection) or die(mysql_error()); +if (($_SESSION[redirect] != "$base_dir/login.php") && ($log_login == "1")) +{ + include('loglogin.php'); +} + +//redirects the user +header("Location:$_SESSION[redirect]"); + +?> + +Redirect + + \ No newline at end of file diff --git a/register.html b/register.html index 9f80a88..1444eb4 100644 --- a/register.html +++ b/register.html @@ -1,79 +1,133 @@ - - -Registration - - - - - -

-Register

-
-

-First Name:
-
-

-

-Last Name:
-
-
-
-Username:
-

-

-Password:
-
-
-
Confirm Password:
-

-

-E-Mail Address:
-
-

-

-

-
- - \ No newline at end of file + + + + +Página de registro + + + + +

Registro

+
+

Nombre:
+
+ +

+

Apellidos:
+
+ +
+
Usuario:
+ +

+

Contraseña:
+
+ +
+
Confirmar la contraseña:
+ +

+

Dirección de e-mail:
+
+ +

+

+ +

+
+ + diff --git a/reset.css b/reset.css new file mode 100644 index 0000000..1c85489 --- /dev/null +++ b/reset.css @@ -0,0 +1,53 @@ +/* http://meyerweb.com/eric/tools/css/reset/ */ +/* v1.0 | 20080212 */ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +/* remember to define focus styles! */ +:focus { + outline: 0; +} + +/* remember to highlight inserts somehow! */ +ins { + text-decoration: none; +} +del { + text-decoration: line-through; +} + +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/smpl_sec_header.php b/smpl_sec_header.php index 0932284..7f71620 100644 --- a/smpl_sec_header.php +++ b/smpl_sec_header.php @@ -1,51 +1,49 @@ -
-//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();
-
"; - -if (preg_match("/Windows NT/", $viewer)) -{ - echo "require('$abs\config.php');
-
- require('$abs\functions.php');
-
"; -} -else -{ - echo "require('$abs/config.php');
-
- require('$abs/functions.php');
-
"; -} - -echo " -//this is group name or username of the group or person that you wish to allow access to
-// - please be advise that the Administrators Groups has access to all pages.
-if (allow_access(Administrators) != \"yes\")
-{
-"; -if (preg_match("/Windows NT/", $viewer)) -{ - echo " - include ('$abs\\no_access.html');
- "; -} -else -{ - echo "include ('$abs/no_access.html');
"; -} -echo " -exit;
-}
-?>"; - -?> +
+//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();
+
"; + +if (preg_match("/Windows NT/", $viewer)) +{ + echo "require('$abs\config.php');
+
+ require('$abs\functions.php');
+
"; +} +else +{ + echo "require('$abs/config.php');
+
+ require('$abs/functions.php');
+
"; +} + +echo " +//this is group name or username of the group or person that you wish to allow access to
+// - please be advise that the Administrators Groups has access to all pages.
+if (allow_access(Administrators) != \"yes\")
+{
+"; +if (preg_match("/Windows NT/", $viewer)) +{ + echo " + include ('$abs\\check_login.php');
+ "; +} +else +{ + echo "include ('$abs/check_login.php');
"; +} +echo " +exit;
+}
+?>"; +?> + diff --git a/style.css b/style.css index 9fb19af..f802c9b 100644 --- a/style.css +++ b/style.css @@ -1,72 +1,57 @@ -body { - font-family: Verdana; - font-size: 11px; -} - -a:hover { - color: #0000ff; - font-family: Tahoma; - text-decoration: underline overline; -} - -a:visited, a:active { - color: #0000ff; - font-family: Tahoma; - text-decoration: none; -} - -a:link { - color: #0000ff; - font-family: Tahoma; - text-decoration: overline underline; -} - -td { - font-family: Verdana; - font-size: 8pt; -} - -a { - font-family: Tahoma; -} - -h1 { - font-family: Tahoma; -} - -h2 { - font-family: Tahoma; -} - -h3 { - font-family: Tahoma; -} - -h4 { - font-family: Tahoma; -} - -h5 { - font-family: Tahoma; -} - -h6 { - font-family: Tahoma; -} - -p { - font-family: Tahoma; -} - -tr { - font-family: Tahoma; -} - -
{ - font-family: Verdana; -} - - { - color: #0080ff; - font-family: Verdana; -} \ No newline at end of file +body { + font-family: Verdana; + font-size: 11px; +} +a:hover { + color: #0000ff; + font-family: Tahoma; + text-decoration: underline overline; +} +a:visited, a:active { + color: #0000ff; + font-family: Tahoma; + text-decoration: none; +} +a:link { + color: #0000ff; + font-family: Tahoma; + text-decoration: overline underline; +} +td { + font-family: Verdana; + font-size: 8pt; +} +a { + font-family: Tahoma; +} +h1 { + font-family: Tahoma; +} +h2 { + font-family: Tahoma; +} +h3 { + font-family: Tahoma; +} +h4 { + font-family: Tahoma; +} +h5 { + font-family: Tahoma; +} +h6 { + font-family: Tahoma; +} +p { + font-family: Tahoma; +} +tr { + font-family: Tahoma; +} + { + font-family: Verdana; +} + { + color: #0080ff; + font-family: Verdana; +}