ware.php :
codice:
<!DOCTYPE html PUBLIC "markhoppus.altervista.org"
"http://markhoppus.altervista.org">
<html>
<head>
<title>blink 182, HOME PAGE, markhoppus.altervista.org</title>
<link rel="stylesheet" type="text/css" href="forall.css" />
</head>
<body text="white" link=black alink=black vlink=black>
<div id="div1">
[img]logo1.jpg[/img]
<font family="styus BT", "tahoma">
<?
/* Welcome to the WebWorkz Ware Guestbook. This system will allow you to have users post comments to your web site and is fully-customizable. Set the variables below to customize your guestbook. */
/* Customization Variables */
// Your web site address
$yoursiteaddress = "http://markhoppus.altervista.org";
// Your web site
$yoursitename = "home page";
// Max entries per page
$maxperpage = "6";
// Allow HTML in guestbook submissions? (0 = No, 1 = Yes)
$allowhtml = "1";
/* --------------- DO NOT EDIT BELOW THIS LINE -------------- */
/* --------------- PRE-CONFIGURED LAYOUTS ----------------- */
$addform = "<FORM ACTION=\"$PHP_SELF?addsubmit=true\" METHOD=\"POST\">\n";
$addform .= "<table border=\"0\" cols=\"2\" width=\"500\">\n";
$addform .= "<tr>\n";
$addform .= "<td width=\"100\">Nome:</td>\n";
$addform .= "<td width=\"400\"><input type=\"text\" name=\"name\"></td>\n";
$addform .= "</tr><tr>\n";
$addform .= "<td width=\"100\">Indirizzo E-Mail:</td>\n";
$addform .= "<td width=\"400\"><input type=\"text\" name=\"email\"></td>\n";
$addform .= "</tr><tr>\n";
$addform .= "<td width=\"100\">Nome Sito:</td>\n";
$addform .= "<td width=\"400\"><input type=\"text\" name=\"sitename\"></td>\n";
$addform .= "</tr><tr>\n";
$addform .= "<td width=\"100\">Indirizzo Sito:</td>\n";
$addform .= "<td width=\"400\"><input type=\"text\" name=\"siteurl\" value=\"http://\"></td>\n";
$addform .= "</tr><tr>\n";
$addform .= "<td width=\"100\">Messaggio:</td>\n";
$addform .= "<td width=\"400\"><TEXTAREA name=\"message\" cols=\"50\" rows=\"15\"></TEXTAREA></td>\n";
$addform .= "</tr><tr>\n";
$addform .= "<td width=\"100\"></td>\n";
$addform .= "<td width=\"400\"><input type=\"submit\" value=\"Invia Messaggio\">\n";
$addform .= "</tr></table>\n";
$addform .= "</FORM>\n";
include ("header.inc");
include ("entries.inc");
include ("entrycounter.inc");
IF (!isset($add) and !isset($addsubmit))
{
echo ("<A HREF=\"$PHP_SELF?add=true\"><font color=\"white\">Invia Messaggio</a> - </font>");
echo ("<A HREF=\"$yoursiteaddress\"><font color=\"white\">Torna alla $yoursitename</a>
</font>");
$maxperpage = $maxperpage + 0;
IF (!isset($start))
{
$start = $lastentry;
}
$end = $start - $maxperpage;
$count = $start;
while ($count <= $start and $count > $end and $count > 0)
{
$entryid = "entry" . $count;
echo ("<table border=0 cols=2 width=500>");
IF (isset($$entryid))
{
while (list ($variable, $value) = each($$entryid))
{
IF ($allowhtml == 0)
{
$value = Strip_tags($value);
}
IF ($variable == "E-Mail")
{
echo ("<tr>\n<td width=100>\n$variable:\n</td>\n<td width=400>\n<A HREF=\"mailto:$value\"><font color=\"white\">$value</a>\n</td>\n</tr>\n</font>");
}
ELSE IF ($variable == "Site URL")
{
echo ("<tr>\n<td width=100>\n$variable:\n</td>\n<td width=400>\n<A HREF=\"$value\"><font color=\"white\">$value</a>\n</td>\n</tr>\n</font>");
}
ELSE IF ($variable == "Message")
{
$value = str_replace("\\\"", "\"", $value);
echo ("<tr>\n<td width=100>\n$variable:\n</td>\n<td width=400>\n$value\n</td>\n</tr>\n");
}
ELSE
{
echo ("<tr>\n<td width=100>\n$variable:\n</td>\n<td width=400>\n$value\n</td>\n</tr>\n");
}
}
echo ("</table><hr width=100% noshade>");
}
ELSE
{
$end = $end - 1;
}
$count = $count - 1;
}
$entryid = "entry" . $count;
IF ($start != $lastentry)
{
$start = $start + $maxperpage;
echo (" <A HREF=\"$PHP_SELF?start=$start\"><font color=\"white\"><<< Indietro</a></font>");
echo (" ");
}
IF (isset($$entryid))
{
echo (" ");
echo (" <A HREF=\"$PHP_SELF?start=$count\"><font color=\"white\">Avanti >>></a></font>");
}
echo ("
<A HREF=\"$PHP_SELF?add=true\"><font color=\"white\">Invia Messaggio</a> - </font>");
echo ("<A HREF=\"$yoursiteaddress\"><font color=\"white\">Torna alla $yoursitename</a></font>");
}
ELSE IF (isset($add))
{
echo ("$addform");
}
ELSE IF (isset($addsubmit))
{
$required = Array (
'Name' => $name,
'E-Mail' => $email,
'Message' => $message);
while (list($caption, $variable) = each($required))
{
$errorcount = 0;
IF ($variable == "")
{
++$errorcount;
echo ("Required Field '$caption' Was Left Blank.
");
}
}
IF ($errorcount == 0)
{
$filename = "entrycounter.inc";
$increment = $lastentry + 1;
$incrementoutput = "<? $" . "lastentry = " . $increment . "; ?>";
$write = fopen($filename, "w");
fwrite ($write, $incrementoutput);
fclose($write);
$entryid = "entry" . $increment;
$datetime = date ("l F jS @ g:iA T");
$addentry = "<? $" . $entryid .
" = Array ( " .
"'Nome' => '$name', " .
"'Indirizzo E-Mail' => '$email', " .
"'Data messaggio' => '$datetime', " .
"'Nome Sito' => '$sitename', " .
"'Url del sito' => '$siteurl', " .
"'Messaggio' => '$message'); ?>";
$filename2 = "entries.inc";
$write2 = fopen($filename2, "a");
fwrite ($write2, $addentry . "\r\n\r\n");
fclose($write2);
echo ("il tuo messaggio e' stato inviato correttamente.
<A HREF=\"$PHP_SELF\"><font color=\"white\">Torna alla community</a>.</font>");
}
ELSE
{
echo ("
<font color=\"red\">per favore torna dietro e risolvi il problema....</font>");
}
}
include ("footer.inc");
?>
<center><font face="tahoma" size=3>AVVISO IMPORTANTE:</font></center>
<center><font face="tahoma" size=1>I dati inseriti nei campi non verranno assolutamente trattati in alcun modo, per cui,
pur inserendo dati reali, non si corre alcun pericolo...la loro utilita' e' di conoscere,
tramite e-mail altre persone, ed inserire l'url del proprio sito.
</font></center>
</div>
<div id="div2">
<a href="home.html" style="text-decoration: none;">[img]link_home.jpg[/img]
[img]link_news.jpg[/img]
[img]link_discografia.jpg[/img]
[img]link_biografia.jpg[/img]
[img]link_laband.jpg[/img]
[img]link_gallery.jpg[/img]
[img]link_freedownloads.jpg[/img]
[img]link_testi.jpg[/img]
[img]link_traduzioni.jpg[/img]
[b]<font face="GothicE" size=6>L</font><font face="stylus BT" size=4>inks Utili</font>
</div>
</body>
</html>
poi c'e' "ware_gb.php" che vi mettero' se vi serve....prima dell'ultimo mex che si vede, funzionava tutto perfettamente....poi ho editato sia ware.php che ware_gb.php, dove questo messaggio era scritto, per accorciarlo, dato che ne avevo bisogno...da allora non funziona piu'...
ciao e grazie