commit ec29dd140967038910cc0679936abbadaafc872d Author: jdg Date: Sun Sep 12 22:53:35 2021 +0200 First commit 31/12/2001 diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9c6b2a --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +#SYNCRO + + +*31/12/2001* + +ToDo: wwtcf? + + +![screenshot](/SYNCRO.png "Screenshot") diff --git a/bajar-listado.php b/bajar-listado.php new file mode 100644 index 0000000..9ab5ef5 --- /dev/null +++ b/bajar-listado.php @@ -0,0 +1,274 @@ + +La lista esta tabulada, para que podais importarla en el excel + + + +ID Genero Status Titulo Duración NumCDs owner +086 101 Dálmatas Dib.Animado OK 00:00:00 1 2 celula +138 102 Dalmatas Comedia OK 01:30:00 1 6 ricardo +237 13 fantasmas Terror OK 00:00:00 0 3 lupen +035 15MINUTOS Cine Negro OK 00:00:00 1 3 lupen +289 7 días de vida Terror OK 00:00:00 1 2 celula +255 7 vidas Terror OK 00:00:00 1 5 dani +233 a si en el cielo como en la tierra Comedia OK 00:00:00 1 3 lupen +179 a todo gas Acción OK 00:00:00 0 3 lupen +264 Abre los Ojos C.Ficción OK 00:00:00 1 8 lumo +016 Airbag Comedia Por llegar 00:00:00 0 2 celula +017 Alien - El octavo pasajero C.Ficción Ripeando 00:00:00 0 2 celula +019 Alien III C.Ficción Ripeando 00:00:00 0 2 celula +020 Alien Resurrección C.Ficción Ripeando 00:00:00 0 2 celula +018 Aliens C.Ficción Ripeando 00:00:00 0 2 celula +205 Amelie SIN CLASIFICAR OK 00:00:00 2 6 ricardo +055 AMENAZA FANTASMA EPISODIO 1 C.Ficción OK 00:00:00 2 3 lupen +206 American pie 2 Comedia OK 00:00:00 2 6 ricardo +006 American psyco Intriga OK 00:00:00 1 2 celula +011 Anatomía de un asesinato Drama Ripeando 00:00:00 0 2 celula +194 Araña Mutante C.Ficción OK 01:26:00 1 2 celula +065 ASESINATO EN 8mm Intriga OK 00:00:00 1 3 lupen +166 Atlantis Dib.Animado OK 00:00:00 1 6 ricardo +168 Atlantis Dib.Animado OK 01:31:00 1 7 sires +001 Atmosfera Cero C.Ficción OK 01:44:00 1 2 celula +242 attica la carcel de la muerte SIN CLASIFICAR OK 00:00:00 1 5 dani +244 aun se lo que hicisteis el ultimo verano Terror OK 00:00:00 1 5 dani +296 Austin Powers II - La espía que ....... SIN CLASIFICAR OK 01:30:00 1 2 celula +273 bailando con lobos Oeste OK 00:00:00 1 3 lupen +107 bait Acción OK 00:00:00 0 3 lupen +124 Bajo Sospecha Intriga OK 00:00:00 1 7 sires +287 bandit Comedia OK 00:00:00 1 3 lupen +093 Bats (Murcielagos) Terror OK 00:00:00 1 7 sires +052 BICHOS Dib.Animado OK 00:00:00 1 3 lupen +076 Blancanieves Dib.Animado OK 00:00:00 1 2 celula +245 bowfinger el picaro Comedia OK 00:00:00 1 5 dani +070 BRAVEHEART Bélica OK 00:00:00 2 3 lupen +200 brother Acción OK 00:00:00 0 3 lupen +149 Buzzlightyear (la pelicula) Dib.Animado OK 00:00:00 1 7 sires +082 CADENA DE FAVORES Drama Para Alquilar 00:00:00 0 3 lupen +110 Call Girl Picantes OK 00:00:00 1 6 ricardo +175 Caminando entre dinosaurios Documental OK 03:00:00 3 7 sires +150 Caza al Terrorista SIN CLASIFICAR OK 00:00:00 1 1 jd +249 cherry falls Terror OK 00:00:00 1 5 dani +012 Ciudadano Kane Biografía Ripeando 00:00:00 0 2 celula +246 como perder la cabeza Comedia OK 00:00:00 1 5 dani +099 Como perros y gatos SIN CLASIFICAR OK 00:00:00 1 7 sires +235 conspiracion en la red Intriga OK 00:00:00 1 3 lupen +174 Conspiración en la Red Intriga OK 00:00:00 1 2 celula +004 Cube Fantástico OK 00:00:00 1 2 celula +247 cueste lo que cueste Comedia OK 00:00:00 1 5 dani +248 cut Terror OK 00:00:00 1 5 dani +238 d-tox Intriga OK 00:00:00 1 3 lupen +106 de vuelta a la tierra Comedia OK 00:00:00 0 3 lupen +151 Descubriemdo a Forrester SIN CLASIFICAR OK 00:00:00 1 1 jd +169 Destino de Caballero Acción OK 00:00:00 1 7 sires +182 destino de caballero Aventuras OK 00:00:00 1 3 lupen +284 dia de entrnamiento Intriga OK 00:00:00 1 3 lupen +152 Diario de un adicto al sexo Comedia OK 00:00:00 1 1 jd +250 dias contados Comedia OK 00:00:00 1 5 dani +030 Dime que no es verdad Comedia OK 00:00:00 1 2 celula +071 DINOSAURIO Animación OK 00:00:00 1 3 lupen +034 Dire Straits - On the night Musical OK 00:00:00 2 2 celula +277 dirty dancing Comedia OK 00:00:00 1 3 lupen +127 DOGMA Fantástico OK 00:00:00 1 3 lupen +085 Doraemon y las mil y una noches Dib.Animado OK 01:35:00 1 2 celula +075 Drácula - De brand stoker. Terror OK 00:00:00 1 2 celula +078 Dracula 2001 SIN CLASIFICAR OK 00:00:00 1 1 jd +056 DRAGONES Y MAZMORRAS C.Ficción OK 00:00:00 1 3 lupen +053 EL ARTE DE LA GUERRA Intriga OK 00:00:00 1 3 lupen +113 El Arte de la Guerra Acción OK 00:00:00 1 4 namet +252 el beso del dragon Acción OK 00:00:00 1 5 dani +143 El Bosque Animado Animación OK 01:23:00 1 6 ricardo +117 El cisne mudito Dib.Animado OK 00:00:00 1 6 ricardo +079 El Cuervo -3- Intriga OK 01:07:10 1 1 jd +060 EL DIARIO DE BRITGES JONES Comedia OK 00:00:00 1 3 lupen +057 EL DORADO Dib.Animado OK 00:00:00 1 3 lupen +153 El Emperador y sus locuras SIN CLASIFICAR OK 00:00:00 1 1 jd +251 el espinazo del diablo Terror OK 00:00:00 1 5 dani +134 El gigante de hierro Dib.Animado OK 00:00:00 1 2 celula +180 el golpe perfecto SIN CLASIFICAR OK 00:00:00 0 3 lupen +154 El Grinch Aventuras OK 00:00:00 1 1 jd +214 el hombre sin sombra C.Ficción OK 00:00:00 1 3 lupen +215 el juramento SIN CLASIFICAR OK 00:00:00 0 3 lupen +218 el mosquetero Acción OK 00:00:00 1 3 lupen +196 El pacto de los lobos Terror OK 00:01:35 2 5 dani +037 EL PLANETA DE LOS SIMIOS C.Ficción OK 00:00:00 1 3 lupen +148 El planeta de los Simios (2001) Acción OK 00:01:20 2 6 ricardo +253 el rey pasmado Biografía OK 00:00:00 1 5 dani +192 el sastre de panama Intriga OK 00:00:00 1 3 lupen +118 El señor de los anillos (dibujos) Animación Ripeando 00:00:00 1 6 ricardo +092 El sexto sentido Terror OK 00:00:00 1 7 sires +184 El Silencio de los corderos Intriga OK 00:00:00 2 7 sires +281 El ultimo escalon Terror OK 01:35:00 1 8 lumo +223 el unico Acción OK 00:00:00 1 3 lupen +230 El Unico Acción OK 00:00:00 1 6 ricardo +069 EN Q PIENSAN LAS MUJERES Comedia OK 00:00:00 1 3 lupen +183 Encuentros en la Tercera Fase C.Ficción OK 02:10:00 2 7 sires +049 ENEMIGO A LAS PUERTAS Bélica OK 00:00:00 1 3 lupen +201 estoy hecho un animal Comedia OK 00:00:00 1 3 lupen +195 Estoy hecho un animal Comedia OK 01:30:00 1 5 dani +125 Evasión en la granja Animación OK 00:00:00 1 6 ricardo +137 evulution C.Ficción OK 00:00:00 1 3 lupen +286 falsa identidad Intriga OK 00:00:00 1 3 lupen +067 FAMILI MEN Drama OK 00:00:00 0 3 lupen +221 fanatico Acción OK 00:00:00 1 3 lupen +211 Fantasmas de marte Acción OK 01:20:00 1 6 ricardo +173 Faust Terror OK 01:41:00 1 2 celula +207 Fausto 5.0 SIN CLASIFICAR OK 00:00:00 1 6 ricardo +263 Fausto 5.0 SIN CLASIFICAR OK 00:00:00 1 8 lumo +097 Final Fantasy C.Ficción OK 00:00:00 1 7 sires +080 fortaleza infernal II Acción OK 00:00:00 0 3 lupen +155 Fotaleza Infernal I C.Ficción OK 00:00:00 1 1 jd +089 Freddy Mercury Collection Musical Ripeando 00:00:00 0 2 celula +005 Fuego en el cuerpo Intriga OK 00:00:00 1 2 celula +141 gente pez Comedia OK 00:00:00 0 3 lupen +178 gente pez SIN CLASIFICAR OK 00:00:00 0 3 lupen +116 Ghost in the shell Animación OK 00:00:00 1 6 ricardo +096 Gladiator Drama OK 00:00:00 2 7 sires +162 Gozzila C.Ficción OK 02:13:31 2 7 sires +216 Harry Pother Aventuras OK 02:10:00 2 6 ricardo +144 Heavy Metal 2 - F.A.K.K.2 Animación OK 00:00:00 1 6 ricardo +050 HOMBRES DE HONOR Bélica OK 00:00:00 1 3 lupen +139 hora punta2 SIN CLASIFICAR OK 00:00:00 1 3 lupen +039 HUIDA DEL PLANETA DE LOS SIMIOS C.Ficción OK 00:00:00 1 3 lupen +109 I Swallow 14 Picantes OK 00:00:00 1 6 ricardo +204 IA C.Ficción Ripeando 00:00:00 0 2 celula +186 ingenuas y peligrosas Comedia OK 00:00:00 1 5 dani +266 Intacto Fantástico OK 01:30:00 1 8 lumo +208 Inteligencia Artificial SIN CLASIFICAR OK 00:00:00 2 6 ricardo +241 jay y bob Comedia OK 00:00:00 1 5 dani +270 jeepers creepers Terror OK 00:00:00 1 5 dani +275 johnny mnemonic C.Ficción OK 00:00:00 1 3 lupen +219 juana la loca Biografía OK 00:00:00 1 3 lupen +254 juego asesino Acción OK 00:00:00 1 5 dani +202 Kiriku y la buja Animación OK 00:00:00 1 6 ricardo +147 La bella Durmiente Dib.Animado OK 00:00:00 1 6 ricardo +163 La cabaña Terror OK 01:27:06 1 2 celula +041 LA CONQUISTA DEL PLANETA DE LOS SIMIOS C.Ficción OK 00:00:00 1 3 lupen +026 La cosa Terror OK 00:00:00 1 2 celula +131 La dama y el Vagabundo Dib.Animado OK 01:13:00 1 6 ricardo +112 La hoguera de las vanidades Comedia OK 00:00:00 1 2 celula +098 La Hora de la Araña Intriga OK 00:00:00 1 7 sires +217 La maldicion del escorpion de jade Comedia OK 00:00:00 1 6 ricardo +045 LA MOMIA C.Ficción OK 00:00:00 1 3 lupen +145 La naranja mecanica SIN CLASIFICAR OK 02:10:00 1 6 ricardo +087 La noche de los muertos vivientes (ByN) Terror OK 00:00:00 1 2 celula +028 La noche de los muertos vivientes (color) Terror OK 00:00:00 1 2 celula +227 la novena puerta Intriga OK 00:00:00 1 3 lupen +146 La pelicula de Tiger Dib.Animado OK 00:00:00 1 6 ricardo +282 La pervercion de Barbara Picantes OK 01:15:00 1 8 lumo +040 LA REBELION DEL PLANETA DE LOS SIMIOS C.Ficción OK 00:00:00 1 3 lupen +103 La Solución Final Histórica OK 01:31:54 1 7 sires +262 La sucia historia de Joe Guarro Comedia OK 00:00:00 1 8 lumo +203 la zona gris Drama OK 00:00:00 1 3 lupen +044 LAMOMIA2 C.Ficción OK 00:00:00 1 3 lupen +061 LAS ILUSIONES DE UN MENTIROSO Drama OK 00:00:00 1 3 lupen +027 Los Intocables de E.Ness Acción OK 00:00:00 2 2 celula +177 los limites del silencio SIN CLASIFICAR OK 00:00:00 0 3 lupen +210 los otros Intriga OK 00:00:00 1 3 lupen +088 Los Pazos de Ulloa Drama Ripeando 00:00:00 0 2 celula +130 Los Rios de Color Purpura Intriga OK 00:01:00 1 7 sires +171 Los rios de color purpura Intriga OK 01:41:00 1 1 jd +278 los ultimos dias del eden Intriga OK 00:00:00 1 3 lupen +158 Mad Max II - El guerrero de la carretera Acción OK 01:27:05 1 2 celula +023 Manolito gafotas - Mola ser jefe Comedia OK 01:32:00 1 2 celula +142 Manuelita Dib.Animado OK 01:23:00 1 6 ricardo +010 Matar a un ruiseñor Melodrama Ripeando 00:00:00 0 2 celula +224 matrix Fantástico OK 00:00:00 1 3 lupen +090 Matrix C.Ficción OK 00:00:00 2 7 sires +063 MAYBE BABY Comedia OK 00:00:00 1 3 lupen +121 men in black C.Ficción OK 00:00:00 1 3 lupen +190 menudo bocazas Comedia OK 00:00:00 1 3 lupen +172 Mi perro Skip Drama OK 00:00:00 1 2 celula +225 mirada de angel Drama OK 00:00:00 1 3 lupen +091 Misión a Marte C.Ficción OK 00:00:00 1 7 sires +269 Mision a marte Fantástico OK 01:45:00 1 8 lumo +105 Miss Agente Especial Comedia OK 01:45:40 1 7 sires +279 mothan C.Ficción OK 00:00:00 1 3 lupen +189 moulin rouge Musical OK 00:00:00 1 3 lupen +058 NAUFRAGO Catástrofe OK 00:00:00 1 3 lupen +229 ni una palabra Acción OK 00:00:00 1 3 lupen +280 Noche de miedo Terror OK 01:35:00 1 8 lumo +290 Nolosex 5 Picantes OK 00:00:00 1 2 celula +291 Nolosex 6 Picantes OK 00:00:00 1 2 celula +292 Nolosex 7 Picantes OK 00:00:00 1 2 celula +293 Nolosex 8 Picantes OK 00:00:00 1 2 celula +294 Nolosex 9 Picantes OK 00:00:00 1 2 celula +213 NOLOX IV Picantes OK 00:00:00 1 2 celula +132 NOLOX 1 Picantes OK 00:00:00 1 2 celula +133 NOLOX 2 Picantes OK 00:00:00 1 2 celula +212 NOLOX 3 Picantes OK 00:00:00 1 2 celula +267 Odisea 2010 Fantástico OK 01:55:00 1 8 lumo +165 Odissea 2001 C.Ficción OK 02:22:45 2 7 sires +032 Opera imaginare Musical OK 00:00:00 1 2 celula +123 Operación Swordfish Acción OK 00:00:00 1 7 sires +176 Osmosis Jones Animación OK 00:00:00 1 6 ricardo +209 pacto de lobos Terror OK 00:00:00 1 3 lupen +122 Parque Jurasico III Aventuras OK 00:00:00 1 7 sires +128 PEARL HARBOR SIN CLASIFICAR OK 00:00:00 2 3 lupen +226 pecado original Intriga OK 00:00:00 1 3 lupen +274 persiguiendo a betty Comedia OK 00:00:00 1 3 lupen +102 planes de boda Comedia OK 00:00:00 1 3 lupen +265 Planeta Rojo C.Ficción OK 01:50:00 1 8 lumo +119 Poseido Terror Ripeando 00:00:00 1 5 dani +240 Premonición Intriga OK 00:00:00 1 5 dani +199 q mas puede pasar Comedia OK 00:00:00 1 3 lupen +031 Queen greates Flix Musical OK 00:00:00 2 2 celula +077 Ranma ½ - Cap 1 al 5 Dib.Animado OK 00:00:00 1 1 jd +222 ratas a la carrera Comedia OK 00:00:00 1 3 lupen +268 Reflejos Intriga OK 01:40:00 1 8 lumo +220 reglas de compromiso Bélica OK 00:00:00 1 3 lupen +038 REGRESO AL PLANETA DE LOS SIMIOS C.Ficción OK 00:00:00 1 3 lupen +157 Replicant Acción OK 00:00:00 1 1 jd +074 Sade - Life promise Musical OK 00:00:00 1 2 celula +243 scary movie 2 Comedia OK 00:00:00 1 5 dani +115 Scream 3 Terror OK 00:00:00 1 4 namet +135 seductoras Comedia OK 00:00:00 1 3 lupen +114 Seven Intriga OK 00:00:00 1 4 namet +094 Shaft Acción OK 00:00:00 1 7 sires +234 shangai kid Acción OK 00:00:00 1 3 lupen +025 Shrek Dib.Animado OK 00:00:00 1 2 celula +042 SHREK Animación OK 00:00:00 1 3 lupen +228 sleepy hoyow Fantástico OK 00:00:00 1 3 lupen +059 SNATCH CERDOS Y DIAMANTES Drama OK 00:00:00 1 3 lupen +072 Socorro soy un Pez Dib.Animado OK 01:10:00 1 6 ricardo +136 soldier Acción OK 00:00:00 0 3 lupen +073 South Park - La película Animación OK 00:00:00 1 2 celula +239 spy game Cine Negro OK 00:00:00 1 3 lupen +161 Spy Kids Acción OK 00:00:00 1 6 ricardo +276 stalingrado Bélica OK 00:00:00 1 3 lupen +101 stigmata Intriga OK 00:00:00 0 3 lupen +029 Superman clasic cartoons Dib.Animado OK 00:00:00 1 2 celula +167 Sylvia´s creams Picantes OK 01:20:00 1 6 ricardo +051 TARZAN Dib.Animado OK 00:00:00 1 3 lupen +126 Tattoo Picantes OK 00:00:00 2 6 ricardo +081 taxi 2 Acción OK 00:00:00 0 3 lupen +009 Teléfono Rojo Comedia Para Alquilar 00:00:00 0 2 celula +272 the blair witch project 2 Terror OK 00:00:00 1 5 dani +095 The Body (El cuerpo) Intriga OK 00:00:00 1 7 sires +271 the forzaken Terror OK 00:00:00 1 5 dani +068 THE KID SIN CLASIFICAR Para Alquilar 00:00:00 0 3 lupen +259 the ladies man Comedia OK 00:00:00 1 5 dani +181 the mexican SIN CLASIFICAR OK 00:00:00 0 3 lupen +258 the score Intriga OK 00:00:00 1 5 dani +046 THE SIMPSON 1-2-3-4-5 Dib.Animado OK 00:00:00 1 3 lupen +048 THE SIMPSON 10-11-12-13 Dib.Animado OK 00:00:00 1 3 lupen +047 THE SIMPSON 6-7-8-9- Dib.Animado OK 00:00:00 1 3 lupen +159 The Terminator C.Ficción OK 00:00:00 1 7 sires +160 The Terminator 2 C.Ficción Para Alquilar 00:00:00 1 7 sires +054 TIGERLAND Bélica OK 00:00:00 1 3 lupen +033 Tina Turner - Simply the best '94 Musical OK 00:00:00 2 2 celula +022 Titan AE Dib.Animado OK 00:00:00 1 2 celula +036 TITANES Biografía OK 00:00:00 1 3 lupen +013 Titanic Melodrama Ripeando 00:00:00 0 2 celula +288 todos los chicos de mi vida Comedia OK 00:00:00 1 3 lupen +257 tom raider Acción OK 00:00:00 1 5 dani +232 tomates verdes fritos Drama OK 00:00:00 1 3 lupen +043 TORRENTE2 Comedia OK 00:00:00 1 3 lupen +256 toy stor2 Animación OK 00:00:00 1 5 dani +283 Training Day Acción OK 01:57:04 1 2 celula +193 tuno negro Intriga OK 00:00:00 1 3 lupen +062 UN PAPA GENIAL Comedia OK 00:00:00 1 3 lupen +295 vidocq Intriga OK 00:00:00 1 3 lupen +129 VOWFINGER EL PICARO Comedia OK 00:00:00 1 3 lupen +185 who am i Acción OK 00:00:00 1 5 dani +198 yamasaki Acción OK 00:00:00 1 3 lupen +015 Yo claudio Histórica Por llegar 00:00:00 0 2 celula +260 Zoolander Comedia OK 00:00:00 1 8 lumo diff --git a/common/config.inc.php b/common/config.inc.php new file mode 100644 index 0000000..3054caf --- /dev/null +++ b/common/config.inc.php @@ -0,0 +1,25 @@ +
$string
"; +}; + + +?> \ No newline at end of file diff --git a/common/dbnav_bar.php b/common/dbnav_bar.php new file mode 100644 index 0000000..f5a13f1 --- /dev/null +++ b/common/dbnav_bar.php @@ -0,0 +1,47 @@ +".mysql_error($conexion)); + $numrows = mysql_num_rows( $res ); + + $nav_buttons = "

"; + if ( $offset > 1 ) + $nav_buttons .= "<< Anterior -"; + else + $nav_buttons .= "<< Anterior -"; + if ( $numrows > 0 ) + { + $pages = intval( $numrows/$limit ); + if ( $numrows%$limit ) $pages++; + for ( $i=1;$i<=$pages;$i++) + { + $newoffset=$limit*($i-1); + if ( $newoffset == $offset ) + $nav_buttons .= "[$i]-"; + else + $nav_buttons .= "$i-"; + } + } + $nav_buttons .= "

"; + if ( ($offset+$limit)<$numrows ) + $nav_buttons .= "Siguiente >>"; + else + $nav_buttons .= "Siguiente >>"; + $nav_buttons .= "
"; +}; + +function ShowDBnav() +{ + global $nav_buttons; + echo $nav_buttons; +}; + +function GetDBnav() +{ + global $nav_buttons; + return $nav_buttons; +}; diff --git a/error.htm b/error.htm new file mode 100644 index 0000000..eeb9276 --- /dev/null +++ b/error.htm @@ -0,0 +1,28 @@ + + +SYNCRO - ERROR procesando su petición + + +
+ + + + + +

+









+
+ + + + +
Ocurrio un error mientras se procesaba su + petición, (puede que el login/password sean + incorrectos), si el problema persiste consulte + con su administrador.

<< Volver

+
+
+
+ diff --git a/foro.php b/foro.php new file mode 100644 index 0000000..46a405d --- /dev/null +++ b/foro.php @@ -0,0 +1,295 @@ +" ); + +require ("common/config.inc.php"); +require ("common/dbnav_bar.php"); + +$limit = 8; +if ( !isset( $offset ) ) $offset = 0; + + // Segun TIPO selecionamos las pelis + $conexion = mysql_connect( 'localhost', 'syncro_users', '29dic2001' ) OR die("No puedo conectar"); + $id = mysql_select_db( 'SYNCRO', $conexion ) OR die("No puedo abrir Base de Datos"); +?> + + + +-= SYNCRO foro =- + + + + + + +$consulta
".mysql_error($conexion)); +?> +
+ + + + +
+ + + + +
+

SyNcro -foro-
+ -=[ Insertar nueva noticia ]=-

+ + + + +
  + + Hacer zoom (Iniciar en una ventana nueva) + +
+
+
+ + +".mysql_error($conexion)); + $NResp = mysql_result( $resp, 0, 'Respuestas' ); + + echo "". + "". + "". + ""; + } + // Fin del bucle de noticias (Cabeceras) +?> +
Fecha -AsuntoResp.Usuario..
$datos[4] -$datos[6]$NResp[-$datos[3]-]"; + if ( $user_auth && ( $user_id == $datos[2] || $user_id == 1 ) ) + echo ""; + echo ""; + if ( $user_auth && ( $user_id == $datos[2] || $user_id == 1 ) ) + echo "'\"Eliminar"; + echo "
+
+

+ + +
" method="POST"> +
+ + + + +
+ + + + +

SyNcro + -foro-
+ -=[ Insertando nueva + Noticia ]=-

+ + + + +
 Cancelar la operaci¢n actual
+
+
+ + + + + + + + + + +
[]

+
+
+
+ +$sql_ins
".mysql_error($conexion)); + + $dev = MakeBox( "

Tu \"Noticia\" ha sido insertada
-[ver noticias]-


" ); + } else { + $dev = MakeBox( "

No puedo insertar una noticia VACIA.
-[ver noticias]-


" ); + } + echo $dev; + } + // Actualizamos los datos + if ( strcmp( $accion, "edit" )==0 ) + { + if ( isset( $p_asunto ) && !empty( $p_asunto ) && + isset( $p_comentario ) && !empty( $p_comentario ) ) + { + if ( $user_id != 1 ) $ps_comentario = strip_tags($p_comentario); else $ps_comentario = $p_comentario; + $sql_upd = "UPDATE foro SET Asunto='$p_asunto', Comentario='$p_comentario' WHERE id=$new"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo realizar la Actualizacion de la Noticia
$sql_upd
".mysql_error($conexion)); + $dev = MakeBox( "

Tu \"Noticia\" ha sido actualizada
-[ver noticias]-


" ); + } else { + $dev = MakeBox( "

No puedo modificar una noticia a VACIA.
-[ver noticias]-


" ); + } + echo $dev; + } + // Eliminamos la noticia + if ( strcmp( $accion, "del" )==0 ) + { + if ( isset( $new ) ) + { + $sql_upd = "DELETE FROM foro WHERE id=$new"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo eliminar la Noticia
$sql_upd
".mysql_error($conexion)); + $dev = MakeBox( "

La \"Noticia\" ha sido eliminada
-[ver noticias]-


" ); + } else { + $dev = MakeBox( "

No estas autorizado a eliminar esa Noticia
-[ver noticias]-


" ); + } + echo $dev; + } + } + + // VER NOTICIA + if ( strcmp( $accion, "vn" ) == 0 ) + { + $qFROM = "foro WHERE id=$nid OR post_ant=$nid"; + $consulta = "SELECT * FROM $qFROM ORDER BY id LIMIT $offset, $limit"; + $res = mysql_query( $consulta, $conexion ) OR die("No puedo realizar la consulta
$consulta
".mysql_error($conexion)); + +?> +
+ + + + +
+ + + + +
+

SyNcro -foro-
+ -=[ Responder a esta noticia ]=-

+ + + + +
  + + Hacer zoom (Iniciar en una ventana nueva) + +
+
+
+ +" . + "". + ""; + } +// Fin del bucle de noticias +?> +
". + "". + "". + "". + "". + "
$datos[4] - $datos[6][-$datos[3]-]"; + if ( $user_auth && ( $user_id == $datos[2] || $user_id == 1 ) ) + echo ""; + echo ""; + if ( $user_auth && ( $user_id == $datos[2] || $user_id == 1 ) ) + echo "'\"Eliminar"; + echo "

". nl2br($datos[7]) ."

+
-=[ volver al foro ]=-

+
+

+ + + diff --git a/gestion-amispelis.php b/gestion-amispelis.php new file mode 100644 index 0000000..f1a4d4d --- /dev/null +++ b/gestion-amispelis.php @@ -0,0 +1,104 @@ +"; + }else { + $conexion = mysql_connect( 'localhost', 'syncro_users', '29dic2001' ) OR die("No puedo conectar"); + $id = mysql_select_db( 'SYNCRO', $conexion ) OR die("No puedo abrir Base de Datos"); + + if ( isset( $p_status ) ) + { + if ( strcmp( $accion, "insertar" )==0 ) + { + // INSERTAMOS EN LA LISTA PERSONAL... + $sql_upd = "INSERT INTO pelis_user (user, peli, status) VALUES($user_id,$peli_id,'$p_status')"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo realizar las Inserciones Personales
$sql_upd
".mysql_error($conexion)); + $ins_upd = true; + } else + if ( strcmp( $accion, "editar" )==0 ) + { + $sql_upd = "UPDATE pelis_user SET status='$p_status' WHERE user = $user_id AND peli = $peli_id"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo realizar las Actualizaciones Personales
$sql_upd
".mysql_error($conexion)); + $ins_upd = true; + } + } + if ( !isset($accion) ) + { + $res = mysql_query( "SELECT * FROM pelis_user WHERE user='$user_id' AND peli='$peli_id'", $conexion ) OR die("No puedo consultar si tienes esta peli.
$sql_upd
".mysql_error($conexion)); + if ( mysql_num_rows( $res ) != 0 ) $accion = "editar"; + } + mysql_close($conexion); +?> + + + + SYNCRO: Listado de peliculas + + + + + + +"; +else + echo "
"; +?> + +
+ + + +
+La pelicula "$peli_name" ha sido agregada ó modificada de tu lista personal"; + }else { +?> +
+ + + + +

+ Agregar la película "", a + mi listado personal con el siguiente estado:

Estado:

+
+
+ +
+
+
+ + + \ No newline at end of file diff --git a/gestion-fotop.php b/gestion-fotop.php new file mode 100644 index 0000000..df72935 --- /dev/null +++ b/gestion-fotop.php @@ -0,0 +1,28 @@ +"; + } +?> \ No newline at end of file diff --git a/gestion-listado.php b/gestion-listado.php new file mode 100644 index 0000000..2f8f084 --- /dev/null +++ b/gestion-listado.php @@ -0,0 +1,280 @@ +$consulta
".mysql_error($conexion)); +?> + + + + + +SYNCRO: Listado de peliculas + + + + + +
+
method="post"> +
+ + + +
+ + + + +'; ?> + + + + + +
Leyenda:Filtrar por Estado:
+ :-( Aun no disponible
+ +:-( ¡La estan pidiendo!
'; + else + echo ':-) Añadir a mi listado
'; +?> + + :-) ¡Tengo que pedirla!
+
Filtrar por Género:
+

+
+ +
+
+
+
+ + + + + +
+ + + + + + + + + 0 ) + { + if ( $user_auth ) + { + $ver_preview = "gestion-pelisp.php?peli_id="; + $target = "target='preview'"; + } else $ver_preview = "#"; + + while ( $datos = mysql_fetch_array($res) ) + { + if ( strcmp( $datos[2], "OK" ) == 0 ) + $p_imgStatus = ""; + else + $p_imgStatus = ""; + if ( strcmp($datos[4], "00:00:00" ) != 0 ) + { + $hh = strtok($datos[4], ":"); + $mm = strtok(":"); + $dur = $hh*60 + $mm; + if ( $dur == 0 ) $dur = ""; + } else $dur=""; + + if ( $linea_color ) + echo ""; + else + echo ""; + $linea_color = !$linea_color; + + echo "" . + "" . + ""; +if ( !$slapiden ) echo ""; + echo "" . + ""; + if ( $user_auth && empty( $p_imgStatus ) ) + { + if ( $sdown ) + { + if ( empty($datos[6]) ) + { + echo ""; + } else { + if ( strcmp($datos[6],"OK") != 0 ) + echo ""; + else + echo ""; + } + } else { + echo ""; + } + if ( $slapiden && !empty($datos[7]) ) + echo ""; + else + echo ""; + } else { + echo ""; + echo ""; + echo ""; + } + echo ""; + }; + + } else { + echo ""; + } +?> +
+"; +?> Género +"; +?> TítuloDur.CD's- status -
$datos[1]$datos[3]$dur$datos[7]$datos[5]$p_imgStatus      
-= ERROR =-La consulta no produjo resultados
+
+

+ +

 

+ + diff --git a/gestion-menu.php b/gestion-menu.php new file mode 100644 index 0000000..ef1f0b6 --- /dev/null +++ b/gestion-menu.php @@ -0,0 +1,85 @@ + + + + + + +-= SYNCRO =- + + + + + + + + +


SyNcro

-=[ News ]=-

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + +
 
>> Mi Ficha
>> Listar
-+ Todo
+ -+ Mias
-+ En curso
+
>Bajar lista +
>> Insertar
>> Foro
+ >> Salir
+
+
+ +


+

+ +


+Diseñado por:
+JD soft.

+ + + diff --git a/gestion-pelisp.php b/gestion-pelisp.php new file mode 100644 index 0000000..83477ee --- /dev/null +++ b/gestion-pelisp.php @@ -0,0 +1,307 @@ +$sql_upd
".mysql_error($conexion)); + $consulta = "SELECT * FROM pelis_user WHERE peli = $peli_id"; + $res = mysql_query( $consulta, $conexion ) OR die("No puedo consultar que usuarios tienen esta peli"); + $nres = mysql_num_rows($res); + mysql_free_result($res); + if ( $nres == 0 ) + { + // Como nadie mas tiene esta peli, la eliminamos completamente + $borr = "DELETE FROM pelis WHERE id = $peli_id"; + $res = mysql_query( $borr, $conexion ) OR die("No puedo eliminar esta peli de la lista
$sql_upd
".mysql_error($conexion)); + } + mysql_close($conexion); + } + + if ( isset( $p_id ) ) + { + if ( strcmp( $accion, "editar" ) == 0 && $user_auth ) + { + $conexion = mysql_connect( 'localhost', 'syncro_users', '29dic2001' ) OR die("No puedo conectar"); + $id = mysql_select_db( 'SYNCRO', $conexion ) OR die("No puedo abrir Base de Datos"); + + $modf = "UPDATE pelis SET "; + // Solo el que la creo, puede modificar su estado... + if ( $user_id == $p_uid ) + { + $modf = $modf . " Genero = '$p_genero'"; + $modf = $modf . ", Status = '$p_status'"; + $modf = $modf . ", titulo = '$p_titulo'"; + $modf = $modf . ", FechaRip = '$p_frip'"; + $modf = $modf . ", Duracion = '$p_dur'"; + $modf = $modf . ", NumCDs = '$p_cds'"; + $modf = $modf . ", Comentarios = '$p_comm'"; + if ( !empty($imgData_name) && $imgData_size > 0 ) + { + $img_prop = GetImageSize($imgData); + $imgW = $img_prop[0]; $p_imgW = $imgW; + $imgH = $img_prop[1]; $p_imgH = $imgH; + $data = addslashes(fread(fopen($imgData,"rb"), filesize($imgData))); + $modf = $modf . ", Imagen = '$data', filetype='$imgData_type', imgW='$imgW', imgH='$imgH'"; + } + } else { + $modf = $modf . " Comentarios = '$p_comm'"; + } + $modf = $modf . " WHERE id = ".$p_id; + } + $res = mysql_query( $modf, $conexion ) OR die("No puedo modificar esta peli
$sql_upd
".mysql_error($conexion)); + mysql_close($conexion); + } + } else { + // La visionamos... + $conexion = mysql_connect( 'localhost', 'syncro_users', '29dic2001' ) OR die("No puedo conectar"); + $id = mysql_select_db( 'SYNCRO', $conexion ) OR die("No puedo abrir Base de Datos"); + + $consulta = "SELECT "; + $consulta = $consulta . "p.owner, p.Genero, p.Status, p.Titulo, p.FechaRip, p.Duracion, p.NumCDs, p.Comentarios, p.imgH, p.imgW"; + $consulta = $consulta . ", u.Apodo"; + $consulta = $consulta . " FROM pelis p, users u WHERE p.id = $peli_id AND p.owner = u.id"; + $res = mysql_query( $consulta, $conexion ) OR die("No puedo realizar la consulta"); + if ( mysql_num_rows($res) > 0 ) + { + $p_uid = mysql_result( $res, 0, 'owner' ); + $p_user = mysql_result( $res, 0, 'Apodo' ); + $p_genero= mysql_result( $res, 0, 'Genero' ); + $p_status= mysql_result( $res, 0, 'Status' ); + $p_titulo= mysql_result( $res, 0, 'Titulo' ); + $p_frip = mysql_result( $res, 0, 'FechaRip' ); + $p_cds = mysql_result( $res, 0, 'NumCDs' ); + $p_dur = mysql_result( $res, 0, 'Duracion' ); + $p_comm = mysql_result( $res, 0, 'Comentarios' ); + $p_imgH = mysql_result( $res, 0, 'imgH' ); + $p_imgW = mysql_result( $res, 0, 'imgW' ); + } + mysql_free_result($res); + mysql_close($conexion); + + if ( $user_auth ) + { + $mostrar_enviar = true; + $mostrar_borrar = true; + } + } + } else { + // Modo Insertar PELI + // Si el usuario esta 'authenticate' + if ( user_auth ) + { + $ins_ok = isset( $p_titulo ) && !empty( $p_titulo ); + if ( $ins_ok ) + { + if ( empty( $p_titulo ) ) + die( "Es imprescindible introducir el Titulo" ); + // Procedemos a la insercion: + // 1º insertamos la peli en la base de datos... + // 2º insertamos la peli en la lista personal... + if ( !empty($imgData_name) && $imgData_size > 0 ) + { + $img_prop = GetImageSize($imgData); + $imgW = $img_prop[0]; $p_imgW = $imgW; + $imgH = $img_prop[1]; $p_imgH = $imgH; + $data = addslashes(fread(fopen($imgData,"rb"), filesize($imgData))); + $sql_upd = "INSERT INTO pelis (owner, Genero, Status, Titulo, FechaRip, Duracion, NumCDs, Comentarios, Imagen, filetype, imgW, imgH) VALUES"; + $sql_upd = $sql_upd . "($user_id, '$p_genero', '$p_status', '$p_titulo', '$p_frip', '$p_dur', '$p_cds', '$p_comm', '$data', '$imgData_type', '$imgW', '$imgH')"; + } else { + $sql_upd = "INSERT INTO pelis (owner, Genero, Status, Titulo, FechaRip, Duracion, NumCDs, Comentarios) VALUES"; + $sql_upd = $sql_upd . "($user_id, '$p_genero', '$p_status', '$p_titulo', '$p_frip', '$p_dur', '$p_cds', '$p_comm')"; + } + $mostrar_enviar = false; + $mostrar_borrar = false; + } else { + $p_uid = $user_id; + $p_user = $user_name; + $mostrar_enviar = true; + $mostrar_borrar = false; + } + + if ( $ins_ok ) + { + $conexion = mysql_connect( 'localhost', 'syncro_users', '29dic2001' ) OR die("No puedo conectar"); + $id = mysql_select_db( 'SYNCRO', $conexion ) OR die("No puedo abrir Base de Datos"); + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo realizar las Inserciones
$sql_upd
".mysql_error($conexion)); + $sql_upd = "INSERT INTO pelis_user (user, peli) VALUES($user_id,LAST_INSERT_ID())"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo realizar las Inserciones Personales
$sql_upd
".mysql_error($conexion)); + mysql_close($conexion); + } + } + } + + +$image_prop = ""; +if ( $p_imgW > 0 ) +{ + if ( $p_imgW > $p_imgH ) + { + $imgH = intval(($p_imgH/$p_imgW)*180); $imgW = 180; + $image_prop = " width=\"180\" height=\"".$imgH."\""; + } else { + $imgW = intval(($p_imgW/$p_imgH)*150); $imgH = 150; + $image_prop = " height=\"150\" width=\"".$imgW."\""; + } +} +?> + + + +-= SYNCRO =- + + + + + +"; + else + echo "
"; + } else { + echo ''; + } +?> +
+ + + +
+ + + + +
>
+
+ + + + + + +
+ + + + + + + + + + + + +
Ripeador:Estado Actual:
Num.CD's:Género:
+ + + + + + + + + + + +
Fecha Rip.TituloDuración
+
+ + + + +
+ + +ELIMINAR'; + if ( $mostrar_enviar ) + echo ''; +?> +
+
+ + + + + +
+
+ +
+
+
+ + +
+ + + diff --git a/gestion-pidiendo.php b/gestion-pidiendo.php new file mode 100644 index 0000000..e4c1a45 --- /dev/null +++ b/gestion-pidiendo.php @@ -0,0 +1,98 @@ + $user_id AND "; + $parse_options = ""; + } + $qFROM = "users u, pelis_user pu, pelis_user mu WHERE $solo_esta_peli pu.user = u.id AND pu.status='PEDIR' AND mu.user=$user_id AND pu.peli=mu.peli AND mu.status='OK'"; + $consulta = "SELECT DISTINCT u.id, u.Apodo FROM $qFROM"; + } else { + die(""); + } + $res = mysql_query( $consulta, $conexion ) OR die("No puedo realizar la consulta
$consulta
".mysql_error($conexion)); + if ( isset( $uid ) ) + $resp = mysql_query( "SELECT p.Titulo FROM pelis_user pu, pelis_user mu, pelis p WHERE pu.user='$uid' AND pu.status='PEDIR' AND mu.user='$user_id' AND mu.status='OK' AND pu.peli=mu.peli AND p.id=pu.peli ORDER BY p.Titulo", $conexion ) OR die("No puedo realizar la consulta
$consulta
".mysql_error($conexion)); + +?> + + + + + +SYNCRO: Listado de usuarios que solicitan una pelicula + + + + + +
+ + +
+ + + + + 0 ) + { + while ( $datos = mysql_fetch_array($res) ) + { + if ( $linea_color ) + echo ""; + else + echo ""; + $linea_color = !$linea_color; + + + echo ""; + }; + } else { + echo "-= ERROR =- La consulta no produjo resultados"; + } +?>
> Usuario+
$datos[1]++
+
+ + Para ver que otras peliculas (de las que tu ya tienes), esta pidiendo otro usuario, pica sobre el icono correspondiente.

[ ESTO AUN NO ESTA ] + +
+ 0 ) + { + while ( $datos = mysql_fetch_array($resp) ) + { + echo $datos[0] . "
"; + } + } +?> +
+ +

Mostrar todos los usuarios a los que le puedo prestar algo +
+ +

 

+ + diff --git a/gestion.php b/gestion.php new file mode 100644 index 0000000..55ed0d1 --- /dev/null +++ b/gestion.php @@ -0,0 +1,60 @@ + 0 ) + { + $pwd = mysql_result( $res, 0, 'Password' ); + if ( strcmp( $pwd, $user_pwd ) == 0 ) + { + session_name( "SYNCRO" ); + $v1="user_id"; + $v2="user_name"; + $v3="user_auth"; + session_register($v1,$v2,$v3); + session_start(); + + $sin_error = true; + $user_id = mysql_result( $res, 0, "id" ); + $user_name = $user; + $user_auth = true; + $sin_error = true; + } + } + mysql_free_result($res); + mysql_close($conexion); + } + + if ( $sin_error == false ) + { + echo ""; + } else { +?> + + + + +-= SYNCRO =- + + + + + + + + + + + diff --git a/images/!.gif b/images/!.gif new file mode 100644 index 0000000..3424b18 Binary files /dev/null and b/images/!.gif differ diff --git a/images/0-chapter.BMP b/images/0-chapter.BMP new file mode 100644 index 0000000..ec2190c Binary files /dev/null and b/images/0-chapter.BMP differ diff --git a/images/bd.gif b/images/bd.gif new file mode 100644 index 0000000..b5c38d6 Binary files /dev/null and b/images/bd.gif differ diff --git a/images/bf.gif b/images/bf.gif new file mode 100644 index 0000000..0c503f9 Binary files /dev/null and b/images/bf.gif differ diff --git a/images/bi.gif b/images/bi.gif new file mode 100644 index 0000000..efe8782 Binary files /dev/null and b/images/bi.gif differ diff --git a/images/borrar.gif b/images/borrar.gif new file mode 100644 index 0000000..aa36fc8 Binary files /dev/null and b/images/borrar.gif differ diff --git a/images/del.gif b/images/del.gif new file mode 100644 index 0000000..f4552ff Binary files /dev/null and b/images/del.gif differ diff --git a/images/down.BMP b/images/down.BMP new file mode 100644 index 0000000..38c8c01 Binary files /dev/null and b/images/down.BMP differ diff --git a/images/edit.gif b/images/edit.gif new file mode 100644 index 0000000..311dfe4 Binary files /dev/null and b/images/edit.gif differ diff --git a/images/enviar.gif b/images/enviar.gif new file mode 100644 index 0000000..5d5df3a Binary files /dev/null and b/images/enviar.gif differ diff --git a/images/error1.gif b/images/error1.gif new file mode 100644 index 0000000..14d2363 Binary files /dev/null and b/images/error1.gif differ diff --git a/images/error2.gif b/images/error2.gif new file mode 100644 index 0000000..10f4967 Binary files /dev/null and b/images/error2.gif differ diff --git a/images/exp.gif b/images/exp.gif new file mode 100644 index 0000000..5c5f5db Binary files /dev/null and b/images/exp.gif differ diff --git a/images/mbf.gif b/images/mbf.gif new file mode 100644 index 0000000..f756040 Binary files /dev/null and b/images/mbf.gif differ diff --git a/images/mbi.gif b/images/mbi.gif new file mode 100644 index 0000000..db5d91a Binary files /dev/null and b/images/mbi.gif differ diff --git a/images/minfo-.gif b/images/minfo-.gif new file mode 100644 index 0000000..f409a30 Binary files /dev/null and b/images/minfo-.gif differ diff --git a/images/minfo.gif b/images/minfo.gif new file mode 100644 index 0000000..162933c Binary files /dev/null and b/images/minfo.gif differ diff --git a/images/ntm-new.BMP b/images/ntm-new.BMP new file mode 100644 index 0000000..af9fb02 Binary files /dev/null and b/images/ntm-new.BMP differ diff --git a/images/ok.gif b/images/ok.gif new file mode 100644 index 0000000..84165fd Binary files /dev/null and b/images/ok.gif differ diff --git a/images/pdown.gif b/images/pdown.gif new file mode 100644 index 0000000..7f7e9dd Binary files /dev/null and b/images/pdown.gif differ diff --git a/images/pped.gif b/images/pped.gif new file mode 100644 index 0000000..a06f999 Binary files /dev/null and b/images/pped.gif differ diff --git a/images/ppre.gif b/images/ppre.gif new file mode 100644 index 0000000..a6fd873 Binary files /dev/null and b/images/ppre.gif differ diff --git a/images/prip.gif b/images/prip.gif new file mode 100644 index 0000000..a8bbf8f Binary files /dev/null and b/images/prip.gif differ diff --git a/images/simagen.gif b/images/simagen.gif new file mode 100644 index 0000000..a8bbf8f Binary files /dev/null and b/images/simagen.gif differ diff --git a/images/sortd.gif b/images/sortd.gif new file mode 100644 index 0000000..9157f97 Binary files /dev/null and b/images/sortd.gif differ diff --git a/images/syncro.ico b/images/syncro.ico new file mode 100644 index 0000000..aa97b17 Binary files /dev/null and b/images/syncro.ico differ diff --git a/images/triangle-l.BMP b/images/triangle-l.BMP new file mode 100644 index 0000000..ed85529 Binary files /dev/null and b/images/triangle-l.BMP differ diff --git a/index.htm b/index.htm new file mode 100644 index 0000000..e1a6e07 --- /dev/null +++ b/index.htm @@ -0,0 +1,99 @@ + + + + +-= SYNCRO =- + + + + + +


+
+
+

+
+ + + + + + + +
+ + + + + + +


+ SyNcro

+

+
+

Esto solo funciona si usamos estas páginas para + coordinarnos y saber que tiene quien, y que esta pasando + (o pretende pasar) cada uno.

+

Asi que ya sabeis, usadlo para organizar vuestras + pelis, y notificar al resto el estado de los trabajos.
+
+
+

+
+
+ + + + + + +
+ + + + +
+ + + + + + + + +
Login:
Password:
+
+
Necesario para actualizar tus listados.Si + no tienes, solicitalos!.
+
+
+


+
+

+
+ + + + +

[ Listado + Global ]

+
+
+ + diff --git a/miFicha.php b/miFicha.php new file mode 100644 index 0000000..ba52b34 --- /dev/null +++ b/miFicha.php @@ -0,0 +1,180 @@ + + + + + + +-= SYNCRO =- + + + + + + +$sql_upd
".mysql_error($conexion)); + } else { + if ( isset( $info_user ) ) + $consulta = "SELECT * FROM users WHERE id = ".$info_user; + else + $consulta = "SELECT * FROM users WHERE id = ".$user_id; + $res = mysql_query( $consulta, $conexion ) OR die("No puedo realizar la consulta"); + if ( mysql_num_rows($res) > 0 ) + { + $nombre = mysql_result( $res, 0, 'Nombre' ); + $apellidos= mysql_result( $res, 0, 'Apellidos' ); + $email = mysql_result( $res, 0, 'e_Mail' ); + $tlf1 = mysql_result( $res, 0, 'Telefono1' ); + $tlf2 = mysql_result( $res, 0, 'Telefono2' ); + $tlf3 = mysql_result( $res, 0, 'Telefono3' ); + $tlf4 = mysql_result( $res, 0, 'Telefono4' ); + $url = mysql_result( $res, 0, 'url' ); + $calle = mysql_result( $res, 0, 'Calle' ); + $calle2 = mysql_result( $res, 0, 'Calle2' ); + $num = mysql_result( $res, 0, 'Num' ); + $piso = mysql_result( $res, 0, 'Piso' ); + $letra = mysql_result( $res, 0, 'Letra' ); + $cp = mysql_result( $res, 0, 'CP' ); + $poblacion= mysql_result( $res, 0, 'Poblacion' ); + $provincia= mysql_result( $res, 0, 'Provincia' ); + $pwd = mysql_result( $res, 0, 'Password' ); + } + mysql_free_result($res); + } + mysql_close($conexion); + +if ( isset($info_user) ) $hidden_pwd = "hidden"; else $hidden_pwd =""; +?> +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Nombre:Apellidos:Password: +"; + else + echo ""; +?> +
Telefonos:Fax:
e-mail: Dirección pág. WEB: 
+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
CalleNum/Piso/Letra--
 CP:
Población:Provincia:
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/news.php b/news.php new file mode 100644 index 0000000..41102b8 --- /dev/null +++ b/news.php @@ -0,0 +1,222 @@ + + + + +-= SYNCRO news =- + + + + + + +$consulta
".mysql_error($conexion)); +?> +
+ + + + +
+ + + + +
+

SyNcro -news-
+Insertar nueva noticia ]=-"; +?>

+ + + + +
  + + Hacer zoom (Iniciar en una ventana nueva) + +
+
+
+ +" . + "". + ""; + } +// Fin del bucle de noticias +?> +
". + "". + "". + "". + "". + "
$datos[3] - $datos[5][-$datos[2]-]"; + if ( $user_auth && ( $user_id == $datos[1] || $user_id == 1 ) ) + echo ""; + echo ""; + if ( $user_auth && ( $user_id == $datos[1] || $user_id == 1 ) ) + echo "'\"Eliminar"; + echo "

$datos[6]

+
+

+ + +
" method="POST"> +
+ + + + +
+ + + + +

SyNcro + -news-
+ -=[ Insertando nueva + Noticia]=-

+ + + + +
 Cancelar la operaci¢n actual
+
+
+ + + + + + + + + + +
[]

+
+
+
+ +$sql_ins
".mysql_error($conexion)); + + $dev = MakeBox( "

Tu \"Noticia\" ha sido insertada
-[ver noticias]-


" ); + } else { + $dev = MakeBox( "

No puedo insertar una noticia VACIA.
-[ver noticias]-


" ); + } + echo $dev; + } + // Actualizamos los datos + if ( strcmp( $accion, "edit" )==0 ) + { + if ( isset( $p_asunto ) && !empty( $p_asunto ) && + isset( $p_comentario ) && !empty( $p_comentario ) ) + { + $sql_upd = "UPDATE news SET Asunto='$p_asunto', Comentario='$p_comentario' WHERE id=$new"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo realizar la Actualizacion de la Noticia
$sql_upd
".mysql_error($conexion)); + $dev = MakeBox( "

Tu \"Noticia\" ha sido actualizada
-[ver noticias]-


" ); + } else { + $dev = MakeBox( "

No puedo modificar una noticia a VACIA.
-[ver noticias]-


" ); + } + echo $dev; + } + // Eliminamos la noticia + if ( strcmp( $accion, "del" )==0 ) + { + if ( isset( $new ) ) + { + $sql_upd = "DELETE FROM news WHERE id=$new"; + $res = mysql_query( $sql_upd, $conexion ) OR die("No puedo eliminar la Noticia
$sql_upd
".mysql_error($conexion)); + $dev = MakeBox( "

La \"Noticia\" ha sido eliminada
-[ver noticias]-


" ); + } else { + $dev = MakeBox( "

No estas autorizado a eliminar esa Noticia
-[ver noticias]-


" ); + } + echo $dev; + } + } + mysql_close($conexion); +?> + + diff --git a/plantilla.htm b/plantilla.htm new file mode 100644 index 0000000..080e9a3 --- /dev/null +++ b/plantilla.htm @@ -0,0 +1,440 @@ + + + + + +-= SYNCRO =- + + + + + + +


+

+ +
+
+ + + +
+ + + + +
-- Reservado para una foto --

-- + Reservado para una foto --

+

-- Reservado para una foto --

+
+ + + + + + +
+ + + + + + + + + + + + +
Ripeador:NOMBREEstado Actual:
Num.CD's:Género:
+ + + + + + + + + + + +
Fecha Rip.TituloDuración
+
+ + + + +
+
+
+ + + + +
+
+


+

+
+ +


+-SEPARACION-

+ +
+
+ + + +
+ + + + + + + + + + + + + + + +
Leyenda:Filtrar por Estado:
:-( + Aun no disponible
+ :-) + Añadir a mi listado
Filtrar por Género:
+

+
 

<< Anterior

Siguiente >>
+
+
+
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
GéneroTítuloDuraciónCD'sStatus  
p_gen sdadasdasp_tit asdasdasdasdasdasddp_durasdasdasdasdasdp_cdap_inf  
+
+
+ +
+
+ + + +
+ + + + + +
.

<< Anterior

Siguiente >>
+
+
+
+ +

 

+ +

- SEPARACION -

+ +
+
+ + + +
+ + + + +

+ Agregar la película "PELICULA", a + mi listado personal con el siguiente estado:

Estado:

+
+
+
+
+ +

 

+ +

- SEPARACION -

+ +

 

+ +
+
+ + + +
+ + + + +

SyNcro + -news-
+ -=[ Insertar + nueva noticia ]=-

+ + + + +
 Hacer zoom (Iniciar en una ventana nueva)
+
+
+ + + + + + + +
+ + + + + + +
00-00-00 Subject[user]'Eliminar esta noticia
+
+

TEXTO DEL MENSAJE

+
+
+
+
+
+ +

 

+ +

- SEPARACION -

+ +

 

+ +
+
+ + + +
+ + + + +

SyNcro + -news-
+ -=[ Insertando nueva + Noticia]=-

+ + + + +
 Hacer zoom (Iniciar en una ventana nueva)
+
+ + + + +

+
+ + + + + + + + + + +
00-00-00[user]

+
+
+
+ + diff --git a/salir.php b/salir.php new file mode 100644 index 0000000..f713e67 --- /dev/null +++ b/salir.php @@ -0,0 +1,6 @@ +"; +?> \ No newline at end of file diff --git a/sql/Leeme.txt b/sql/Leeme.txt new file mode 100644 index 0000000..8bfd7d0 --- /dev/null +++ b/sql/Leeme.txt @@ -0,0 +1,18 @@ +Este directorio contiene los ficheros que pueden ser usados para configurar la base de datos 'SYNCRO' que será usada por dichas páginas. + +Lo primero que debemos hacer, es crear la base de datos usando el programa 'mysql': + +mysql> CREATE DATABASE SYNCRO; +mysql> USE SYNCRO; + +Para crear las tablas necesarias: + +% mysql -p SYNCRO < cr_users_tbl.sql +% mysql -p SYNCRO < cr_pelis_tbl.sql +% mysql -p SYNCRO < cr_pelis_user_tbl.sql +% mysql -p SYNCRO < cr_news_tbl.sql + +Para asignar los permisos: +% mysql -p SYNCRO < cr_global_key.sql + + diff --git a/sql/Pruebas.txt b/sql/Pruebas.txt new file mode 100644 index 0000000..d263b7c --- /dev/null +++ b/sql/Pruebas.txt @@ -0,0 +1,23 @@ +Pelis de un usuario: + +SELECT p.titulo, pu.status FROM pelis p, pelis_user pu WHERE pu.user=7 AND p.id=pu.peli; + +Pelis que pide alguien: + +SELECT DISTINCT pu.peli FROM pelis_user pu WHERE pu.status='PEDIR'; + +Pelis poseidas por un USUARIO que pide ALGUIEN sin incluir las que pido +SELECT DISTINCT p.titulo, pu.status, pup.peli FROM pelis p, pelis_user pu + LEFT JOIN pelis_user pup ON (pup.status='PEDIR' AND pu.status='OK' AND p.id=pup +.peli) WHERE pu.user=7 AND p.id=pu.peli; + + +Noticias y nº de respuestas +SELECT f.Asunto + (SELECT COUNT(p.post_ant) + FROM foro p + WHERE p.post_ant=f.id) AS Respuestas +FROM foro f +WHERE f.post_ant is NULL; + +SELECT f.post_ant, COUNT(*) AS Respuestas FROM foro p GROUP BY p.post_ant; \ No newline at end of file diff --git a/sql/cr_foro_tbl.sql b/sql/cr_foro_tbl.sql new file mode 100644 index 0000000..d74e247 --- /dev/null +++ b/sql/cr_foro_tbl.sql @@ -0,0 +1,28 @@ +# drop the "foro" table if it exists, then recreate it + +DROP TABLE IF EXISTS foro; + +CREATE TABLE foro +( + # /********************\ + #|* Datos Básicos *| + # \********************/ + id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, + post_ant SMALLINT, + owner SMALLINT, + Apodo VARCHAR(15), + fecha DATE, + hora TIME, + Asunto VARCHAR(40), + Comentario TEXT, + + # /************************\ + #|* CLAVES PK, SK *| + # \************************/ + + PRIMARY KEY (id) +); + +# Cargamos otros datos suministrados por defecto... +# LOAD DATA LOCAL INFILE "foro.txt" INTO TABLE personas; + diff --git a/sql/cr_global_key.sql b/sql/cr_global_key.sql new file mode 100644 index 0000000..c2e6e54 --- /dev/null +++ b/sql/cr_global_key.sql @@ -0,0 +1,9 @@ +######################################### +# Definimos 3 Nuevos USUARIOS # +# # +################# PERMISOS ESPECIFICOS ## +## +GRANT ALL PRIVILEGES ON SYNCRO.* to syncro_users@localhost + IDENTIFIED BY '29dic2001' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON SYNCRO.* to syncro_users@"%" + IDENTIFIED BY '29dic2001' WITH GRANT OPTION; diff --git a/sql/cr_news_tbl.sql b/sql/cr_news_tbl.sql new file mode 100644 index 0000000..bb92b6c --- /dev/null +++ b/sql/cr_news_tbl.sql @@ -0,0 +1,27 @@ +# drop the "pelis" table if it exists, then recreate it + +DROP TABLE IF EXISTS news; + +CREATE TABLE news +( + # /********************\ + #|* Datos Básicos *| + # \********************/ + id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, + owner SMALLINT, + Apodo VARCHAR(15), + fecha DATE, + hora TIME, + Asunto VARCHAR(40), + Comentario TEXT, + + # /************************\ + #|* CLAVES PK, SK *| + # \************************/ + + PRIMARY KEY (id) +); + +# Cargamos otros datos suministrados por defecto... +# LOAD DATA LOCAL INFILE "pelis.txt" INTO TABLE personas; + diff --git a/sql/cr_pelis_tbl.sql b/sql/cr_pelis_tbl.sql new file mode 100644 index 0000000..fb3998d --- /dev/null +++ b/sql/cr_pelis_tbl.sql @@ -0,0 +1,58 @@ +# drop the "pelis" table if it exists, then recreate it + +DROP TABLE IF EXISTS pelis; + +CREATE TABLE pelis +( + # /********************\ + #|* Datos Básicos *| + # \********************/ + id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, + owner SMALLINT, + Genero ENUM( "SIN CLASIFICAR", + "Acción", + "Animación", + "Aventuras", + "Bélica", + "Biografía", + "Catástrofe", + "C.Ficción", + "Fantástico", + "Cine Negro", + "Comedia", + "Dib.Animado", + "Documental", + "Drama", + "Histórica", + "Intriga", + "Musical", + "Melodrama", + "Oeste", + "Terror", + "Picantes" + ) DEFAULT "SIN CLASIFICAR", + Status ENUM( "OK", + "Para Alquilar", + "Ripeando", + "Por llegar" + ), + Titulo VARCHAR(30) NOT NULL, + FechaRip DATE, + Duracion TIME, + NumCDs SMALLINT DEFAULT '1', + Comentarios TEXT, + Imagen BLOB, + filetype VARCHAR(50), + imgH SMALLINT, + imgW SMALLINT, + + # /************************\ + #|* CLAVES PK, SK *| + # \************************/ + + PRIMARY KEY (id), +); + +# Cargamos otros datos suministrados por defecto... +# LOAD DATA LOCAL INFILE "pelis.txt" INTO TABLE personas; + diff --git a/sql/cr_pelis_users_tbl.sql b/sql/cr_pelis_users_tbl.sql new file mode 100644 index 0000000..7de60b5 --- /dev/null +++ b/sql/cr_pelis_users_tbl.sql @@ -0,0 +1,20 @@ +# drop the "pelis_user" table if it exists, then recreate it + +DROP TABLE IF EXISTS pelis_user; + +CREATE TABLE pelis_user +( + # /********************\ + #|* Datos Básicos *| + # \********************/ + user SMALLINT UNSIGNED NOT NULL REFERENCES users, + peli SMALLINT UNSIGNED NOT NULL REFERENCES pelis, + status ENUM( "OK", "PEDIR" ) DEFAULT "OK" + + PRIMARY KEY (user, peli) + +); + +# Cargamos otros datos suministrados por defecto... +# LOAD DATA LOCAL INFILE "pelis_user.txt" INTO TABLE personas; + diff --git a/sql/cr_users_tbl.sql b/sql/cr_users_tbl.sql new file mode 100644 index 0000000..919b749 --- /dev/null +++ b/sql/cr_users_tbl.sql @@ -0,0 +1,43 @@ +# drop the "personas" table if it exists, then recreate it + +DROP TABLE IF EXISTS users; + +CREATE TABLE users +( + # /********************\ + #|* Datos Básicos *| + # \********************/ + id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, + Apodo VARCHAR(10) NOT NULL, + Nombre VARCHAR(15), + Apellidos VARCHAR(30), + + Telefono1 VARCHAR(15), + Telefono2 VARCHAR(15), + Telefono3 VARCHAR(15), + Telefono4 VARCHAR(15), + e_Mail VARCHAR(30), + url VARCHAR(50), + Calle VARCHAR(25), + Calle2 VARCHAR(25), + Num VARCHAR(4), + Piso VARCHAR(2), + Letra VARCHAR(2), + Poblacion VARCHAR(20), + Provincia VARCHAR(15), + CP SMALLINT, + + Password VARCHAR(15), + + Imagen BLOB, + + # /************************\ + #|* CLAVES PK, SK *| + # \************************/ + + PRIMARY KEY (id) +); + +# Cargamos otros datos suministrados por defecto... +# LOAD DATA LOCAL INFILE "personas.txt" INTO TABLE personas; + diff --git a/syncro.css b/syncro.css new file mode 100644 index 0000000..c45b144 --- /dev/null +++ b/syncro.css @@ -0,0 +1,69 @@ + /* Enlaces */ + a { + color: #FFFFBB; + font-size: 9pt; + text-decoration: none; + } + + A:hover {color: #FFFF00;} + + .a2 { + color: #800000; + font-size: 14pt; + font-weight: bold; + text-decoration: none; + } + + A:hover.a2 {color: #FF0000;} + + h1 { + color: #D8A60E; + font-size: 24pt; + font-weight: bold; + text-decoration: none; + } + +BODY { + scrollbar-face-color: #52A54A; + scrollbar-highlight-color: #484848; + scrollbar-3dlight-color: #52A54A; + scrollbar-darkshadow-color: #427B42; + scrollbar-shadow-color: #FFFFFF; + scrollbar-arrow-color: #FFFF00; + scrollbar-track-color: #52A54A; + font-family: arial, helvetica, sans-serif; + font-size: 10pt; + color: #D8A60E; +} + + /* Tablas */ + td, th { + font-size: 10pt; + color: #D8A60E; + text-align: justify;margin-right:5.0pt; + } + + .tdr { + font-size: 10pt; + color: #D8A60E; + text-align: right;margin-right:5.0pt; + } +/* formularios */ +input { + background-color: #242424; + border-width: 0; + border-color: #646464; + border-style: solid; + color: #CC3333; + font-size: 10pt; +} + +select { + background-color: #242424; + border-width: 1; + border-color: #646464; + border-style: solid; + color: #CC3333; + font-size: 10pt; +} + diff --git a/test.php b/test.php new file mode 100644 index 0000000..3b5daa1 --- /dev/null +++ b/test.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tmp-syncro.rar b/tmp-syncro.rar new file mode 100644 index 0000000..d456c71 Binary files /dev/null and b/tmp-syncro.rar differ