First commit 10/07/2002
This commit is contained in:
8
sql/index.htm
Normal file
8
sql/index.htm
Normal file
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>:: No dispone de permisos para acceder a esta carpeta ::</title>
|
||||
<META CONTENT="0; URL=/" HTTP-EQUIV="REFRESH">
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
91
sql/infdj.ddl
Normal file
91
sql/infdj.ddl
Normal file
@ -0,0 +1,91 @@
|
||||
################################################################################
|
||||
# (c) copyrights 1999 - 2002 JDsoft
|
||||
# Project: infdj.com
|
||||
# Author(s): Jos<6F> David Guill<6C>n
|
||||
# Target SQL: MySql
|
||||
# Date:
|
||||
# Description:
|
||||
# Tablas usadas por el portal infdj.com
|
||||
#
|
||||
# Generated by: Zeos Database Designer, version 1.0.0
|
||||
################################################################################
|
||||
|
||||
############################### Tables Definitions #############################
|
||||
|
||||
################################################################################
|
||||
# Almacena las noticias posteadas
|
||||
################################################################################
|
||||
CREATE TABLE news (
|
||||
id INTEGER NOT NULL AUTO_INCREMENT, # id de la noticia posteada
|
||||
fecha DATE NOT NULL, # Fecha de la noticia
|
||||
uid INTEGER, # usuario que postea la noticia
|
||||
asunto VARCHAR(50), # cabecera para la noticia
|
||||
noticia TEXT, # cuerpo de la noticia
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
################################################################################
|
||||
# Informacion sobre los usuarios
|
||||
################################################################################
|
||||
CREATE TABLE users (
|
||||
id INTEGER NOT NULL AUTO_INCREMENT, # Identificador del usuario
|
||||
nick VARCHAR(15), # Nick del usuario
|
||||
level INTEGER NOT NULL DEFAULT 0, # nivel de acceso concedido
|
||||
ultimaEntrada DATE, # <20>ltima vez que se valido
|
||||
primeraEntrada DATE, # Fecha de alta en el sistema
|
||||
pass VARCHAR(15), # pasword del usuario
|
||||
Nombre VARCHAR(15), # nombre real del usuario
|
||||
Apellidos VARCHAR(25), # apellidos del usuario
|
||||
fechaNacimiento DATETIME, # Fecha de nacimento
|
||||
calle VARCHAR(30), # direcci<63>n del usr
|
||||
ciudad VARCHAR(15), # ciudad
|
||||
provincia VARCHAR(15), # provincia
|
||||
nacionalidad VARCHAR(15), # nacionalidad
|
||||
cp INTEGER, # C<>digo Postal
|
||||
telefono VARCHAR(15), # tel<65>fono
|
||||
mobil VARCHAR(15), # mobil
|
||||
email VARCHAR(50), # eMail externo a nuestra empresa
|
||||
usaCorreo ENUM('Y','N') DEFAULT 'N', # Indica si usa nuestro servidor de correo
|
||||
preguntaSecreta VARCHAR(25), # Pregunta secreta (para verificar su identidad)
|
||||
respuestaPregunta VARCHAR(25), # Respuesta a la pregunta secreta
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
################################################################################
|
||||
# miniChat para dejar miniMensajes
|
||||
################################################################################
|
||||
CREATE TABLE miniChat (
|
||||
id INTEGER, # id del mensaje
|
||||
fecha DATE, # Fecha del mensaje
|
||||
hora TIME, # Hora del mensaje
|
||||
uid INTEGER DEFAULT 0, # Usuario que deja el mensaje
|
||||
msg VARCHAR(80) # mensaje
|
||||
);
|
||||
|
||||
CREATE TABLE encuestas (
|
||||
id INTEGER NOT NULL, # ID encuesta
|
||||
fecha DATE, # Fecha de la encuesta
|
||||
validaHasta DATE, # Validez de la encuesta
|
||||
pregunta VARCHAR(50), # Pregunta
|
||||
resp1 VARCHAR(35), # Respuesta 1
|
||||
vresp1 SMALLINT DEFAULT 0, # Votos a la respuesta 1
|
||||
resp2 VARCHAR(35), # Respuesta 2
|
||||
vresp2 SMALLINT DEFAULT 0, # Votos a la respuesta 2
|
||||
resp3 VARCHAR(35), # Respuesta 3
|
||||
vresp3 SMALLINT DEFAULT 0, # Votos a la respuesta 3
|
||||
resp4 VARCHAR(35), # Respuesta 4
|
||||
vresp4 SMALLINT DEFAULT 0, # Votos a la respuesta 4
|
||||
uip VARCHAR(15), # <20>ltima direcci<63>n IP que voto.
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE useronline (
|
||||
hora INTEGER NOT NULL, # Hora de la <20>ltima transacci<63>n
|
||||
ip VARCHAR(15) NOT NULL, # Direcci<63>n IP
|
||||
uid INTEGER NOT NULL, # Usuario registrado?
|
||||
visitas INTEGER DEFAULT 0, # N<>meros de visitas a la p<>gina
|
||||
PRIMARY KEY (hora),
|
||||
INDEX (ip),
|
||||
INDEX (uid)
|
||||
);
|
||||
|
0
sql/infdj.drp
Normal file
0
sql/infdj.drp
Normal file
526
sql/infdj.prj
Normal file
526
sql/infdj.prj
Normal file
@ -0,0 +1,526 @@
|
||||
project "infdj.com"
|
||||
description = "Tablas usadas por el portal infdj.com"
|
||||
dbtype = "1"
|
||||
copyrights = "1999 - 2002 JDsoft"
|
||||
author = "Jos<6F> David Guill<6C>n"
|
||||
builddate = ""
|
||||
scripttype = "1"
|
||||
remarks = ""
|
||||
table "news"
|
||||
description = "Almacena las noticias posteadas"
|
||||
remarks = ""
|
||||
left = "20"
|
||||
top = "10"
|
||||
width = "97"
|
||||
height = "105"
|
||||
column "id"
|
||||
description = "id de la noticia posteada"
|
||||
coltype = "counter"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "fecha"
|
||||
description = "Fecha de la noticia"
|
||||
coltype = "date"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "uid"
|
||||
description = "usuario que postea la noticia"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "asunto"
|
||||
description = "cabecera para la noticia"
|
||||
coltype = "varchar"
|
||||
size = "50"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "noticia"
|
||||
description = "cuerpo de la noticia"
|
||||
coltype = "text"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
index "PrimaryKey"
|
||||
description = ""
|
||||
columns = "id"
|
||||
indextype = "2"
|
||||
remarks = ""
|
||||
end
|
||||
end
|
||||
table "users"
|
||||
description = "Informacion sobre los usuarios"
|
||||
remarks = ""
|
||||
left = "157"
|
||||
top = "10"
|
||||
width = "97"
|
||||
height = "105"
|
||||
column "id"
|
||||
description = "Identificador del usuario"
|
||||
coltype = "counter"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "nick"
|
||||
description = "Nick del usuario"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "level"
|
||||
description = "nivel de acceso concedido"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "ultimaEntrada"
|
||||
description = "<22>ltima vez que se valido"
|
||||
coltype = "date"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "primeraEntrada"
|
||||
description = "Fecha de alta en el sistema"
|
||||
coltype = "date"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "pass"
|
||||
description = "pasword del usuario"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "Nombre"
|
||||
description = "nombre real del usuario"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "Apellidos"
|
||||
description = "apellidos del usuario"
|
||||
coltype = "varchar"
|
||||
size = "25"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "fechaNacimiento"
|
||||
description = "Fecha de nacimento"
|
||||
coltype = "datetime"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "calle"
|
||||
description = "direcci<63>n del usr"
|
||||
coltype = "varchar"
|
||||
size = "30"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "ciudad"
|
||||
description = "ciudad"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "provincia"
|
||||
description = "provincia"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "nacionalidad"
|
||||
description = "nacionalidad"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "cp"
|
||||
description = "C<>digo Postal"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "telefono"
|
||||
description = "tel<65>fono"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "mobil"
|
||||
description = "mobil"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "email"
|
||||
description = "eMail externo a nuestra empresa"
|
||||
coltype = "varchar"
|
||||
size = "50"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "usaCorreo"
|
||||
description = "Indica si usa nuestro servidor de correo"
|
||||
coltype = "bool"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "\'N\'"
|
||||
remarks = ""
|
||||
end
|
||||
column "preguntaSecreta"
|
||||
description = "Pregunta secreta (para verificar su identidad)"
|
||||
coltype = "varchar"
|
||||
size = "25"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "respuestaPregunta"
|
||||
description = "Respuesta a la pregunta secreta"
|
||||
coltype = "varchar"
|
||||
size = "25"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
index "PrimaryKey"
|
||||
description = ""
|
||||
columns = "id"
|
||||
indextype = "2"
|
||||
remarks = ""
|
||||
end
|
||||
end
|
||||
table "miniChat"
|
||||
description = "miniChat para dejar miniMensajes"
|
||||
remarks = ""
|
||||
left = "157"
|
||||
top = "135"
|
||||
width = "97"
|
||||
height = "105"
|
||||
column "id"
|
||||
description = "id del mensaje"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "fecha"
|
||||
description = "Fecha del mensaje"
|
||||
coltype = "date"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "hora"
|
||||
description = "Hora del mensaje"
|
||||
coltype = "time"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "uid"
|
||||
description = "Usuario que deja el mensaje"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "msg"
|
||||
description = "mensaje"
|
||||
coltype = "varchar"
|
||||
size = "80"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
end
|
||||
table "encuestas"
|
||||
description = ""
|
||||
remarks = ""
|
||||
left = "20"
|
||||
top = "135"
|
||||
width = "97"
|
||||
height = "105"
|
||||
column "id"
|
||||
description = "ID encuesta"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "fecha"
|
||||
description = "Fecha de la encuesta"
|
||||
coltype = "date"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "validaHasta"
|
||||
description = "Validez de la encuesta"
|
||||
coltype = "date"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "pregunta"
|
||||
description = "Pregunta"
|
||||
coltype = "varchar"
|
||||
size = "50"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "resp1"
|
||||
description = "Respuesta 1"
|
||||
coltype = "varchar"
|
||||
size = "35"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "vresp1"
|
||||
description = "Votos a la respuesta 1"
|
||||
coltype = "smallint"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "resp2"
|
||||
description = "Respuesta 2"
|
||||
coltype = "varchar"
|
||||
size = "35"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "vresp2"
|
||||
description = "Votos a la respuesta 2"
|
||||
coltype = "smallint"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "resp3"
|
||||
description = "Respuesta 3"
|
||||
coltype = "varchar"
|
||||
size = "35"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "vresp3"
|
||||
description = "Votos a la respuesta 3"
|
||||
coltype = "smallint"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "resp4"
|
||||
description = "Respuesta 4"
|
||||
coltype = "varchar"
|
||||
size = "35"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "vresp4"
|
||||
description = "Votos a la respuesta 4"
|
||||
coltype = "smallint"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "uip"
|
||||
description = "<22>ltima direcci<63>n IP que voto."
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
index "primario"
|
||||
description = ""
|
||||
columns = "id"
|
||||
indextype = "2"
|
||||
remarks = ""
|
||||
end
|
||||
end
|
||||
table "useronline"
|
||||
description = ""
|
||||
remarks = ""
|
||||
left = "294"
|
||||
top = "10"
|
||||
width = "97"
|
||||
height = "109"
|
||||
column "hora"
|
||||
description = "Hora de la <20>ltima transacci<63>n"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "ip"
|
||||
description = "Direcci<63>n IP"
|
||||
coltype = "varchar"
|
||||
size = "15"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "uid"
|
||||
description = "Usuario registrado?"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "T"
|
||||
default = ""
|
||||
remarks = "Cuando uid < 0 ( Significa invitado )"
|
||||
end
|
||||
column "visitas"
|
||||
description = "N<>meros de paginas visitas"
|
||||
coltype = "integer"
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = "0"
|
||||
remarks = ""
|
||||
end
|
||||
column "dias"
|
||||
description = "N<>mero de dias distintos que nos ha visitado"
|
||||
coltype = ""
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
column "UltimasVistas"
|
||||
description = "N<>mero de p<>ginas vistas en el <20>ltimo d<>a"
|
||||
coltype = ""
|
||||
size = "0"
|
||||
decimals = "0"
|
||||
notnull = "F"
|
||||
default = ""
|
||||
remarks = ""
|
||||
end
|
||||
index "hora"
|
||||
description = ""
|
||||
columns = "hora"
|
||||
indextype = "2"
|
||||
remarks = ""
|
||||
end
|
||||
index "ip"
|
||||
description = ""
|
||||
columns = "ip"
|
||||
indextype = "0"
|
||||
remarks = ""
|
||||
end
|
||||
index "uid"
|
||||
description = ""
|
||||
columns = "uid"
|
||||
indextype = "0"
|
||||
remarks = ""
|
||||
end
|
||||
end
|
||||
end
|
13
sql/install.txt
Normal file
13
sql/install.txt
Normal file
@ -0,0 +1,13 @@
|
||||
Este directorio contiene los ficheros que pueden ser usados para configurar la base de datos 'SYNCRO' que ser<65> usada por dichas p<>ginas.
|
||||
|
||||
Lo primero que debemos hacer, es crear la base de datos usando el programa 'mysql':
|
||||
|
||||
mysql> CREATE DATABASE INFDJ_COM;
|
||||
mysql> USE INFDJ_COM;
|
||||
|
||||
Para crear las tablas necesarias:
|
||||
|
||||
% mysql -p INFDJ_COM < infdj.ddl
|
||||
|
||||
Para asignar los permisos:
|
||||
% mysql -p SYNCRO < permisos.sql
|
9
sql/permisos.sql
Normal file
9
sql/permisos.sql
Normal file
@ -0,0 +1,9 @@
|
||||
#########################################
|
||||
# Definimos 1 Nuevos USUARIOS #
|
||||
# #
|
||||
################# PERMISOS ESPECIFICOS ##
|
||||
##
|
||||
GRANT ALL PRIVILEGES ON PMUSICA.* to PMUSICA_users@localhost
|
||||
IDENTIFIED BY 'pmusica_password' WITH GRANT OPTION;
|
||||
#GRANT ALL PRIVILEGES ON PMUSICA.* to PMUSICA_users@"%"
|
||||
# IDENTIFIED BY '29dic2001' WITH GRANT OPTION;
|
Reference in New Issue
Block a user