history.php
Codice PHP:
<?
include("config.php");
$tn=date("H:i:s",time());
echo("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>MyBox ™ </title>
<link rev="made" href="mailto:mybox@altervista.org" />
<link rev="start" href="mybox.altervista.org/." title="Home Page" />
<link rel="StyleSheet" type="text/css" href="style/style.css" />
<link rel="shortcut icon" type="image/x-icon" href="logo.gif" />
<meta http-equiv="Cache-Control" content="must-revalidate" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta name="description" content="wap mybox " />
<meta name="keywords" content="italy" />
</head>
<body>
<?
////////////////////////////////////////////////////////////
echo "
<center>";
print '[img]'.$image.'[/img]';
print "
";
echo "[size="1"]Lascia un tuo commento [b]oppure[/b], il link al tuo sito...";
echo "<hr>";
print "<a href=\"say.php\">[SCRIVI]</a>
$line2";
$xfile = @file("gb.txt");
$total=count($xfile);
if ($npage == ""){$npage = "1";}
$first = count($xfile) - ($p * ($npage - 1));
$second = count($xfile) - ($p * $npage) + 1;
if ($second < 1) {$second = 1;}
$npages = (int)(count($xfile) / $p);
if ($news_limiter>((int) ($npages*$p))) $npages = $npages+1;
if ($npage <= $npages and $npage>1) $gline_rew = "<small><a href=\"history.php?npage=".($npage-1)."\">< Prec</a>[/size]";
if ($npages > 1 and $npage<$npages) $gline_next = "[size="1"]<a href=\"history.php?npage=".($npage+1)."\">Succ ></a>[/size]";
for ($i = $first-1; $i >= $second-1; $i--)
{
$ii = $i;
$ii++;
$udata = explode("::",$xfile[$i]);
$udata[4] = ereg_replace(" ", "", $udata[4]);
$udata[4]=substr(trim($udata[4]),0,30);
$udata[0]=substr(trim($udata[0]),0,30);
$udata[1] = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'[url="\\1"]\\1[/url]', $udata[1]);
$udata[1] = eregi_replace('([[:space:]()[{}])([url]www.[/url][-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'\\1[url="http://\\2"]\\2[/url]', $udata[1]);
$dt = explode (',', $udata[2]);
$this_day=(date(" j F Y"));
$dt2 = explode (' ', $udata[2]);
if($dt[1]==$this_day){$udata[2]="$dt2[0] [b]Today[/b]";}else{}
print "[size="1"]$udata[2]
Nick: [b]$udata[0][/b]
";
$e=$udata[4];
if ($e==""){}else{
$udata[4] = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})',
'[email="\\1"]\\1[/email]', $udata[4]);
print "Email: $udata[4]
"; }
print "Phone: $udata[3]
Messaggio: $udata[1][/size]
$line2";
}
print $gline_rew."|".$gline_next."";
print "$line2
$total Messaggi Inviati<hr>
[size="1"][b]<a href=\"".$url."\">".$site."</a>[/b]
[/size]
";
echo "
(c) MyBox";
echo "</center></p>";
?>
</body>
</html>