Questo è il file header.php
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="Description" content="Make money completing offers. Payments sent via Paypal." />
<meta name="Keywords" content="make money online,get paid to,gpt" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="images/CoolWater.css" type="text/css" />
<? include"config.php"; ?>
<title><?=$sitename;?> - <?=$slogan;?></title>
</head>
<body>
<?
if($_GET['ref']!="")
{
$ref=strip_tags($_GET['ref']);
}
?>
<div id="wrap">
<div id="header">
<h1 id="logo-text">"><?=$sitename;?></h1>
<p id="slogan"><?=$slogan;?></p>
<div id="header-links">
</p>
</div>
<div id="header-stats">
<?
if($page=="home")
{
$home="current";
}
else if($page=="how")
{
$how="current";
}
else if($page=="signup")
{
$signup="current";
}
else if($page=="offers")
{
$offers="current";
}
else if($page=="friends")
{
$friends="current";
}
else if($page=="login")
{
$login="current";
}
if($_SESSION['loggedin']==1)
{
include"mysql.php";
$signupbutton="";
$logbutton=" [*]<a href=\"logout.php\">Logout</a>";
$message="";
if($_GET['act']="changepaypal" && $_GET['paypal']!="")
{
$_GET['act']=strip_tags($_GET['act']);
$paypal=$_GET['paypal'];
$paypal=str_replace(array("<", ">"), array("<", ">"), $paypal);
mysql_query("update users set `paypal`='$paypal' where id={$_SESSION['userid']}",$c);
$message="<font color=\"red\">Indirizzo paypal aggiornato.</font>";
}
$getuser=mysql_query("select * from users where id={$_SESSION['userid']}",$c);
$ui=mysql_fetch_array($getuser);
$ip = ($_SERVER['HTTP_X_FORWARDED_FOR'])
? $_SERVER['HTTP_X_FORWARDED_FOR']
: $_SERVER['REMOTE_ADDR'];
mysql_query("update users set `userIP`='$ip' where id={$_SESSION['userid']}",$c);
if($ui['banned']!="")
{
die("<center><font color=\"red\">Il tuo account è stato bannato.
Reason: {$ui['banned']}</font></center>");
}
}
else
{
$signupbutton=" <li id=\"$signup\"><a href=\"signup.php?ref=$ref\">Registrati</a>";
$logbutton=" <li id=\"$login\"><a href=\"login.php?ref=$ref\">Login</a>";
}
include"mysql.php";
$getusers=mysql_query("select count(*) as cnt from users",$c);
$totalusers=mysql_fetch_array($getusers);
$totalusers=$totalusers['cnt'];
$getusers=mysql_query("select * from users",$c);
$totalmoney=0;
while($usr=mysql_fetch_array($getusers))
{
$totalmoney=$totalmoney+$usr['total_earned'];
}
$getoffers=mysql_query("select count(*) as cnt from offers where active=1",$c);
$ocnt=mysql_fetch_array($getoffers);
$ocnt=$ocnt['cnt'];
print"
Offerte Totali: $ocnt
Utenti Totali: $totalusers
Totale Guadagnato: \$$totalmoney</p>";
?>
</div>
</div>
<div id="menu">
<ul>
<?
$home="";
$how="";
$signup="";
$offers="";
$friends="";
$login="";
?>
<li id="<?=$home;?>">">Home
<li id="<?=$how;?>">Come Funziona
<? print"$signupbutton"; ?>
<li id="<?=$offers;?>">Offerte
<? print"$logbutton"; ?>
[/list]
</div>
<div id="content-wrap">
<div id="main">
<?
if($_SESSION['loggedin']==1 && $ui['email_verified']!=1)
{
?>
<center> <font color="red">La tua email non è verificata.
Devi verificarla per richiedere il payout-.</font>
Clicca qui per raggiungere la pagina di verificazione</center>
<?
}
?>
Dove inserisco le altre cose?