panelden onaylama dosyası;
<?php
include "connect.php";
include "var.php";
session_start();
print "<link rel='stylesheet' href='style.css' type='text/css'>";
if(isset($_SESSION['topadmin']))
{
print "<table width=90%>";
print "<tr><td valign='top'>";
include "adminleft.php";
print "</td>";
print "<td valign='top' width=80%>";
print "<table class='maintable'>";
print "<tr class='headline'><td><center>Validate Sites</center></td></tr>";
print "<tr class='mainrow'><td>";
if(isset($_POST['submit']))
{
$ID=$_POST['ID'];
$selectsite="SELECT * from ts_sites where ID='$ID'";
$selectsite2=mysql_query($selectsite) or die("no select");
$selectsite3=mysql_fetch_array($selectsite2);
$validatesite="Update ts_sites set validated='1' where ID='$ID'";
mysql_query($validatesite) or die("Could not validate site");
print "Site Validated";
mail("$selectsite3[email]","Your site has been Validated", "Your site $selectsite3[title] has been validated at $title");
}
else if(isset($_POST['submit2']))
{
$ID=$_POST['ID'];
$selectsite="SELECT * from ts_sites where ID='$ID'";
$selectsite2=mysql_query($selectsite) or die("no select");
$selectsite3=mysql_fetch_array($selectsite2);
$deletesite="DELETE from ts_sites where ID='$ID'";
mysql_query($deletesite) or die("Could not delete site");
print "Site Deleted";
mail("$selectsite3[email]","Your site has been Deleted", "Your site $selectsite3[title] has been Deleted at $title");
}
else
{
$getnotvalidated="SELECT * from ts_sites where validated='0'";
$getnotvalidated2=mysql_query($getnotvalidated) or die("Could not get sites");
while($getvalidated3=mysql_fetch_array($getnotvalidated2))
{
print "<form action='validate.php' method='post'>";
print "Site: <A href='$getvalidated3[url]' target='_blank'>$getvalidated3[title]</a><br>";
print "<img src='$getvalidated3[button]'><br>";
print "Category:$getvalidated3[catparent]<br>";
print "Description: $getvalidated3[description]<br>";
print "<input type='hidden' name='ID' value='$getvalidated3[ID]'>";
print "<input type='submit' name='submit' value='validate'>";
print " <input type='submit' name='submit2' value='Delete'></form>";
}
}
print "</td></tr></table>";
print "</td></tr></table>";
}
else
{
print "Not logged in";
}
?>Siteyi onayladıktan sonramail("$selectsite3[email]","Your site has been Validated", "Your site $selectsite3[title] has been validated at $title");bu içerikte mail gidiyor.Kullanıcının sayfasına koyması gereken link şu şekilde;
http://www.toplistdomaini.com/in.php?ID=10(Her sitenin id si farklı ve scriptte $ID olarak tanımlı)
Bende mail olarak şöyle göndermeyi deniyorum
mail("$selectsite3[email]","Your site has been Validated", "Your site $selectsite3[title] has been validated at $title","<a href="http://www.toplistdomain.com/in.php?ID=$ID"Toplist</a>");Fakat hata veriyor,sizce ne yapabilirim