First commit ~0,10

This commit is contained in:
2021-09-12 22:43:41 +02:00
commit bf5a636f7a
140 changed files with 13185 additions and 0 deletions

59
addons/autenticate.php Normal file
View File

@ -0,0 +1,59 @@
<?php
session_name( "PMUSICAwebsite" );
$v1="user_id";
$v2="user_nick";
$v3="user_auth";
$v4="user_usaCorreo";
$v5="user_level";
$v6="user_idg";
session_register($v1,$v2,$v3,$v4,$v5, $v6);
session_start();
if ( !isset( $user_auth ) || empty( $user_auth ) )
{
$user_auth = false;
if ( ! ( empty( $ulogin ) || empty( $upass ) ) )
checkUser( $ulogin, $upass, true );
}
if ( isset( $db_login ) && isset( $db_pass ) )
checkUser( $db_login, $db_pass, $db_autolog );
function checkUser( $user, $pass, $rem )
{
global $conexion, $id, $user_auth, $user_nick, $user_id, $user_usaCorreo, $user_level, $user_idg;
$dev = false;
$consulta = "SELECT id, pass, level, usaCorreo, idg FROM users WHERE nick = '$user' AND pass='$pass'";
$res = mysql_query( $consulta, $conexion ) OR die("No puedo realizar la consulta");
if ( mysql_num_rows($res) > 0 )
{
$user_id = mysql_result( $res, 0, "id" );
$user_nick = $user;
$user_auth = true;
$user_usaCorreo = mysql_result( $res, 0, "usaCorreo" );
$user_level = mysql_result( $res, 0, "level" );
$user_idg = mysql_result( $res, 0, "idg" );
mysql_query( "UPDATE users SET ultimaEntrada=NOW() WHERE id=$user_id", $conexion ) OR die("No puedo actualizar tu ficha");
if ( $rem )
{
setcookie( "ulogin", "$user", time()+2592000 );
setcookie( "upass", "$pass", time()+2592000 );
}
$dev = true;
}
mysql_free_result($res);
return $dev;
}
// ***********
function getNumNews()
{
global $conexion;
$res = mysql_query( "SELECT COUNT(*) num FROM news", $conexion ) OR die("No puedo realizar la consulta");
$dev = mysql_result( $res, 0, "num" );
mysql_free_result($res);
return $dev;
}
?>

0
addons/autenticate.php~ Normal file
View File

35
addons/email.php Normal file
View File

@ -0,0 +1,35 @@
<h1>Correo interno</h1>
<p class=remark> Actualmente las cuentas de correo internas estan bloqueadas.</p>
No obstante las cuentas de correo antiguas, siguen en perfecto funcionamiento.
Para acceder a ellas, utiliza el siguiente formulario:
<div align="center"><center><table border="1"
cellpadding="3" cellspacing="0" bordercolor="#000000"
bordercolorlight="#000000">
<tr>
<td bgcolor="#800000"><font color="#FFFFFF"
size="2" face="Arial,Helvetica,sans-serif">Email
Login</font><br>
<input type="text" size="15" maxlength="32"
name="loginName"> </td>
<td bgcolor="#800000"><font color="#FFFFFF"
size="2" face="Arial,Helvetica,sans-serif">Password</font><br>
<input type="password" size="15"
maxlength="32" name="user_pwd"> </td>
</tr>
<tr>
<td align="center" bgcolor="#C0C0C0"
style="text-align:center;"><input
type="submit" name="login" value="Login"></td>
<td align="center" bgcolor="#C0C0C0"
style="text-align:center;"><font
color="#000000">Nuevos usuarios</font><br>
<a
href="http://infdj.mail.everyone.net/email/scripts/useragreement.pl"
class="wcMenu">alta GRATIS</a>!</td>
</tr>
</table>
</center></div>

120
addons/estilo.css Normal file
View File

@ -0,0 +1,120 @@
/* Enlaces */
a {
color: #000000;
font: 8pt verdana, arial, helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
fade: true;
}
a:hover {color: #FF0000;}
/* Enlaces grandes (Usados en ver_discos) */
.eBig {
color: #0000FF;
font: 12pt verdana, arial, helvetica, sans-serif;
font-weight: bold;
font-size: 12pt;
fade: -1;
text-decoration: none;
}
.eBig:hover {color: #FF0000;}
/* Cuerpo */
BODY {
scrollbar-face-color:#66CC66;
scrollbar-highlight-color:#66CC66;
scrollbar-3dlight-color:#000000;
scrollbar-darkshadow-color:#000000;
scrollbar-shadow-color:#66CC66;
scrollbar-arrow-color:none;
scrollbar-track-color:#40BF30;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 10pt;
text-align: justify;
color: #000000;
}
td, tr {
font: 10pt verdana, arial;
text-align: justify;
font-weight: bold;
}
.colIzq {
BACKGROUND: #FFCC33;
}
.td_lista {
BACKGROUND: #EEEEEE;
}
.td_estilos {
BORDER-RIGHT: black 2px solid;
BORDER-LEFT: black 1px solid;
BORDER-TOP: black 1px solid;
BORDER-BOTTOM: #000000 3px solid;
BACKGROUND: white;
width: 100%;
}
.lmenu {
/*
BORDER-TOP: #66CC66 1px solid;
BORDER-BOTTOM: #66CC66 1px solid;
*/
font: 8pt verdana, arial;
text-align: center;
}
.lmenuo {
/*
BORDER-RIGHT: black 1px solid;
BORDER-LEFT: black 3px solid
BORDER-TOP: #FF0000 1px solid;
BORDER-BOTTOM: #FF0000 1px solid;
*/
font: 8pt verdana, arial;
font-color: black;
text-align: center;
BACKGROUND: #FFA600;
}
.menuB {
font: 10pt verdana, arial;
text-align: center;
BACKGROUND: #FFCC66;
COLOR: #FFCC66;
}
.menuL {
color:#FFFFFF;
background:#800000;
font-size: 10pt;
border-style : solid;
border-left-width : 0;
border-top-width : 0;
border-bottom-width : 0;
border-right-width : 0;
}
/* formularios */
input {
background-color: #FFFFFF;
border-width: 1;
border-color: #cccccc;
border-style: solid;
color: #CC3333;
font-size: 10pt;
}
select {
background-color: #FFFFFF;
border-width: 1;
border-color: #cccccc;
border-style: solid;
color: #CC3333;
font-size: 10pt;
}

0
addons/estilo.css~ Normal file
View File

119
addons/fade.js Normal file
View File

@ -0,0 +1,119 @@
/*************
**** <config>
**/
startColor = "#000000"; // MouseOut link color
endColor = "#ff0000"; // MouseOver link color
stepIn = 20; // delay when fading in
stepOut = 20; // delay when fading out
/*
** set to true or false; true will
** cause all links to fade automatically
***/
autoFade = false;
/*
** set to true or false; true will cause all CSS
** classes with "fade" in them to fade onmouseover
***/
sloppyClass = true;
/**
**** </config>
**************/
/*************
**** <install>
**
**
**** </install>
**************/
hexa = new makearray(16);
for(var i = 0; i < 10; i++)
hexa[i] = i;
hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
hexa[13]="d"; hexa[14]="e"; hexa[15]="f";
document.onmouseover = domouseover;
document.onmouseout = domouseout;
startColor = dehexize(startColor.toLowerCase());
endColor = dehexize(endColor.toLowerCase());
var fadeId = new Array();
function dehexize(Color){
var colorArr = new makearray(3);
for (i=1; i<7; i++){
for (j=0; j<16; j++){
if (Color.charAt(i) == hexa[j]){
if (i%2 !=0)
colorArr[Math.floor((i-1)/2)]=eval(j)*16;
else
colorArr[Math.floor((i-1)/2)]+=eval(j);
}
}
}
return colorArr;
}
function domouseover() {
if(document.all){
var srcElement = event.srcElement;
if ((srcElement.tagName == "A" && autoFade) || srcElement.className ==
"fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1))
fade(startColor,endColor,srcElement.uniqueID,stepIn);
}
}
function domouseout() {
if (document.all){
var srcElement = event.srcElement;
if ((srcElement.tagName == "A" && autoFade) || srcElement.className ==
"fade" || (sloppyClass && srcElement.className.indexOf("fade") != -1))
fade(endColor,startColor,srcElement.uniqueID,stepOut);
}
}
function makearray(n) {
this.length = n;
for(var i = 1; i <= n; i++)
this[i] = 0;
return this;
}
function hex(i) {
if (i < 0)
return "00";
else if (i > 255)
return "ff";
else
return "" + hexa[Math.floor(i/16)] + hexa[i%16];}
function setColor(r, g, b, element) {
var hr = hex(r); var hg = hex(g); var hb = hex(b);
element.style.color = "#"+hr+hg+hb;
}
function fade(s,e, element,step){
var sr = s[0]; var sg = s[1]; var sb = s[2];
var er = e[0]; var eg = e[1]; var eb = e[2];
if (fadeId[0] != null && fade[0] != element){
setColor(sr,sg,sb,eval(fadeId[0]));
var i = 1;
while(i < fadeId.length){
clearTimeout(fadeId[i]);
i++;
}
}
for(var i = 0; i <= step; i++) {
fadeId[i+1] = setTimeout("setColor(Math.floor(" +sr+ " *(( " +step+ " - "
+i+ " )/ " +step+ " ) + " +er+ " * (" +i+ "/" +
step+ ")),Math.floor(" +sg+ " * (( " +step+ " - " +i+ " )/ " +step+ " ) + "
+eg+ " * (" +i+ "/" +step+
")),Math.floor(" +sb+ " * ((" +step+ "-" +i+ ")/" +step+ ") + " +eb+ " * ("
+i+ "/" +step+ ")),"+element+");",i*step);
}
fadeId[0] = element;
}

0
addons/fade.js~ Normal file
View File

8
addons/index.htm Normal file
View 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>

38
addons/misc.js Normal file
View File

@ -0,0 +1,38 @@
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
function high(which2)
{
theobject=which2;
highlighting=setInterval("highlightit(theobject)",50);
}
function low(which2)
{
clearInterval(highlighting);
which2.filters.alpha.opacity=50;
}
function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if(window.highlighting)
clearInterval(highlighting)
}
function abreVentana( hVentana, url, W, H )
{
if ( hVentana.location && !hVentana.closed )
{
hVentana.location.href = url;
} else {
hVentana = window.open( url,"PMweb","width="+W+",height="+H+",top=50,left=50,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no");
if ( !hVentana.opener ) hVentana.opener = self;
}
if ( window.focus ) hVentana.focus();
}

5
addons/open_db.php Normal file
View File

@ -0,0 +1,5 @@
<?
global $conexion, $id;
$conexion = mysql_connect( 'localhost', 'PMUSICA_users', 'pmusica_password' ) OR die("No puedo conectar");
$id = mysql_select_db( 'PMUSICA', $conexion ) OR die("No puedo abrir Base de Datos");
?>

30
addons/rpublicidad.php Normal file
View File

@ -0,0 +1,30 @@
<?
// funciones para la rotaci<63>n de la publicidad
if ( isset( $show ) )
{
require("open_db.php");
$res = @mysql_query( "SELECT url FROM publicidad WHERE id=$show", $conexion );
if ( mysql_num_rows($res)>0 )
{
$datos = @mysql_fetch_array($res);
@mysql_query( "UPDATE publicidad SET nVisitas=nVisitas+1 WHERE id=$show", $conexion );
header("location:$datos[0]\n\n");
}
}
function MuestraBanner( $tipo, $conexion )
{
$res = @mysql_query( "SELECT id, filename FROM publicidad WHERE tipo='$tipo' ORDER BY rand()", $conexion );
if ( mysql_num_rows($res) > 0 )
{
$datos = @mysql_fetch_array($res);
echo "<a href=\"addons/rpublicidad.php?show=$datos[0]\" target=_blank><img src=\"db/publicidad/$datos[0]"."_i001@$datos[1]\" border=0></a>";
@mysql_query( "UPDATE publicidad SET nVistos=nVistos+1 WHERE id=$datos[0]", $conexion );
} else {
echo "<center>Se produjo algun error en el sistema de publicidad</center>";
}
}
?>

0
addons/rpublicidad.php~ Normal file
View File