Share
ShareSidebar

MetaTag Generator

print '

‘;

extract($_POST);
if(isset($_POST['action'])){
$action = $_POST['action'];
}else
$action = NULL;
if(isset($_POST['getmetafrompage'])){
$getmetafrompage = $_POST['getmetafrompage'];
}else
$getmetafrompage = NULL;

if ($action == “generate”)
{
print “

Insert the following HTML code between the <HEAD> tags of your site:”;
print “

“;
print “Create another set of meta tags

“;

}
else
{
print “Nattu testing”;
if (isset($getmetafrompage))
{
$MetaTags = get_meta_tags($getmetafrompage);
}
if(isset($MetaTags["description"]))
$description = $MetaTags["description"];
else
$description = NULL;

if(isset($MetaTags["keywords"]))
$keywords = $MetaTags["keywords"];
else
$keywords = NULL;

if(isset($MetaTags["robot1"]))
$robot = $MetaTags["robot1"];
else
$robot1 = NULL;

if(isset($MetaTags["author1"]))
$author = $MetaTags["author1"];
else
$author = NULL;

if(isset($MetaTags["refresh"]))
$refresh = $MetaTags["refresh"];
else
$refresh = NULL;

if(isset($MetaTags["copyright"]))
$copyright = $MetaTags["copyright"];
else
$copyright = NULL;

if(isset($MetaTags["revisit-after"]))
$revisit = $MetaTags["revisit-after"];
else
$revisit = NULL;

if(isset($MetaTags["generator"]))
$generator = $MetaTags["generator"];
else
$generator = NULL;

if(isset($MetaTags["language"]))
$language = $MetaTags["language"];
else
$language = NULL;

$year = date(’y');

print “

“;
print “If your page already has META tags you may import and edit them.
“;
print “URL:

“;
print “



“;
print “
“;
print “Site Description:

“;
print “
Site Keywords: (Seperate with commas):

“;
print “

“;
print “Optional information:
(Check the tags you would like to include)

“;
print “

if (isset($robot1))
print "CHECKED";
print "> What should robots do?
“;
print “    

“;
print “

if (isset($refresh))
print "CHECKED";
print "> Refresh this page after seconds.

“;
print “

if (isset($copyright))
print "CHECKED";
print "> Copyright line:
    

if (isset($copyright))
print "$copyright";
else
print "Copyright &copy 20$year Your Company. All Rights Reserved.";
print "\" SIZE=35>

“;
print “

if (isset($author))
print "CHECKED";
print "> Author:
    

“;
print “

if (isset($generator))
print "CHECKED";
print "> Generator:
    

“;
print “

if (isset($language))
print "CHECKED";
print "> Language:
    

“;
print “

if (isset($revisit))
print "CHECKED";
print "> Search engines should revisit this page after days.

“;
print ““;
print “

“;
print “

“;
}

print ‘

‘;
?>

eXTReMe Tracker