Размер файла: 2.68Kb
<?php
//
// out.php
// rev003
//
include('config.php');
include('lang/'.$idioma.'.php');
include('funciones.php');
include('data/'.$ID.'info.php');
if($modo=="") { //Actualizamos los datos.
$nota=0;
if($datos=datos("read",$ID,0)) {
$datos[1]++;
$datos[3]++;
$datos[8]=time();
datos("write",$ID,$datos);
if($datos[5]) {
$nota=number_format($datos[4]/$datos[5],1,'.','');
} else {
$nota=0;
}
}
if($showFrame) { //Frame
$HTML.='<html><head>';
$HTML.='<title>'.$topNombre.'</title>';
$HTML.='<frameset rows="37,*" cols="*" frameborder="NO" border="0" framespacing="0">';
$HTML.='<frame name="topo" noresize scrolling="NO" src="out.php?modo=frame&ID='.$ID.'¬a='.$nota.'&votos='.$datos[5].'">';
$HTML.='<frame name="web" noresize src="'.$webURL.'" marginheight="0">';
$HTML.='</frameset>';
$HTML.='</head></html>';
echo $HTML;
exit();
} else {
$HTML.='<table align="center" border="0" bgcolor="Black" cellspacing="1" cellpadding="5">';
$HTML.='<caption><span class="titulo">'.$topNombre.'</span></caption>';
$HTML.='<tr class="1"><td align="center" valign="middle" class="texto0">'.$_UpdateData_.'</td></tr>';
$HTML.='<tr class="0"><td align="center" valign="middle" class="texto0">'.$_EnteringWeb_.$web.'</td></tr>';
$HTML.='</table>';
$HTML.='<script>window.location.replace("'.$webURL.'")</script>';
}
}
if($modo=="frame") {
$HTML.='<table align="center" border="0" bgcolor="Black" cellspacing="1" width="100%">';
$HTML.='<tr>';
$HTML.='<td align="center" width="90" valign="middle" class="1"><a href="'.$topURL.'" target="_blank"><img src="'.$voteURL.'" border="0"></a></td>';
$HTML.='<td align="center" valign="middle" class="0"><a href="'.$webURL.'" target="_top">'.$web.'</a>';
if($enableRate) $HTML.=' <img src="gif/star'.number_format($nota,0,'.','').'.gif" border="0"> <span class="minitexto0"><b>'.$nota.'</b> <i>('.$votos.' '.$_votes_.')</span></i> <INPUT TYPE="BUTTON" class="miniboton" value="'.$_RateIt_.'" onClick="ventana(\'info.php?ID='.$ID.'&modo=puntuar&paso=1\',\'_blank\',300,150)">';
$HTML.=' <INPUT TYPE="BUTTON" class="miniboton" value="'.$_Info_.'" onClick="ventana(\'info.php?ID='.$ID.'\',\'_blank\','.(200*$enableComment+360).','.(200*$enableRate+225).')">';
$HTML.='</td><td align="center" valign="middle" class="1"><a href="'.$webURL.'" target="_top">'.$_Close_.'</a></td>';
$HTML.='</tr>';
$HTML.='</table>';
}
include('html/header.php');
echo $HTML;
include('html/footer.php');
?>