Location: PHPKode > scripts > MTG PHP (Meta Tags Generator) > mtg-php-meta-tags-generator/mtg.php
<HTML><HEAD>
<META NAME="Description" CONTENT="MTG-PHP (Meta Tags Generator)">
<META NAME="Keywords" CONTENT="">
<META NAME="Author" CONTENT="Frederic TYNDIUK (FTLS) / http://www.ftls.org/">
<TITLE>MTG-PHP (Meta Tags Generator)</TITLE></HEAD>
<BODY BGCOLOR="white">
<BR><BR>

<P ALIGN="Center"><FONT FACE="Arial, helvetica" SIZE="+2" COLOR="#336699"><B><EM>MTG (Meta Tags Generator)</EM></B></FONT></P><BR><BR>


<?php
// En: Begin PHP code  / Fr: debut code PHP
/******************************************************************************\
* MTG PHP (Meta Tags Generator)                Version 1.0                     *
* Copyright 2000 Frederic TYNDIUK (FTLS)       All Rights Reserved.            *
* E-Mail: hide@address.com                     Script License: GPL             *
* Created  02/28/2000                          Last Modified 02/28/2000        *
* Scripts Archive at:                          http://www.ftls.org/php/        *
*******************************************************************************/
// Necessary Variables:

$LANGUAGE = "En";
	// En: Chose Language
	// Fr: Choisit la langue. FR -> Francais

// End  Necessary Variables section
/******************************************************************************/

	if ($LANGUAGE == "FR") {
		$tags_error_messages = array (
			'tli' => "Le titre est vide",       'tlo' => "Le titre est trop long",
			'dli' => "La description est vide", 'dlo' => "La description est trop longue",
			'kli' => "Les mots cl&eacute;s sont vides",   'klo' => "Les motes cl&eacute;s sont trop longs");
	} else {
		$tags_error_messages = array (
			'tli' => "Title is empty",       'tlo' => "Title is to long",
			'dli' => "Description is empty", 'dlo' => "Description is to long",
			'kli' => "Keywords are empty",   'klo' => "Keywords are to long");
	}
	
	if (! $Title)       echo $tags_error_messages['tli']."<BR>";
	if (! $Description) echo $tags_error_messages['dli']."<BR>";
	if (! $Keywords)    echo $tags_error_messages['kli']."<BR>";
	if (strlen($Title) > 80)        echo $tags_error_messages['tlo']."<BR>";
	if (strlen($Description) > 150) echo $tags_error_messages['dlo']."<BR>";
	if (strlen($Keywords) > 150)    echo $tags_error_messages['klo']."<BR>";
// En: End PHP code.
// Fr: Fin du code PHP.
?>



<table bgcolor="#C0C0C0"><tr><td>

<FONT FACE="Arial" SIZE="-1">
&lt;HTML&gt;&lt;HEAD&gt;<br>
&lt;META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"&gt;<br>
&lt;META NAME="ROBOTS" CONTENT="<? echo $Robots; ?>"&gt;<br>
&lt;META HTTP-EQUIV="Content-Language" CONTENT="<? echo $Langue; ?>"&gt;<br>
&lt;META NAME="Description" CONTENT="<? echo $Description; ?>"&gt;<br>
&lt;META NAME="Keywords" CONTENT="<? echo $Keywords; ?>"&gt;<br>
&lt;META NAME="Author" CONTENT="<? echo $Name; ?>"&gt;<br>
&lt;META HTTP-EQUIV="Reply-to" CONTENT="<? echo $EMail; ?>"&gt;<br>
&lt;META NAME="Cenerator" CONTENT="MTG-PHP (Meta Tags Generator) v1.0 (C) 2000 Frederic TYNDIUK (alias FTLS, http://www.ftls.org/)"&gt;<br>
&lt;META NAME="Creation_Date" CONTENT="<? echo date("m/d/Y"); ?>"&gt;<br>
&lt;META NAME="revisit-after" CONTENT="<? echo $Revisite; ?>"&gt;<br>
&lt;TITLE&gt;<? echo $Title; ?>&lt;/TITLE&gt;&lt;/HEAD&gt;<br>
</FONT>

</td></tr></table> 

<BR><BR><BR>
<CENTER><FONT FACE="Arial" SIZE=-2>
<EM>&copy Copyright 2000 <A HREF="http://www.ftls.org/">FTLS</A> (Tyndiuk Fr&eacute;d&eacute;ric). All rights reserved.<BR>
FTLS's PHP Scripts Archive : <A HREF="http://www.ftls.org/php/">http://www.ftls.org/php/</A></EM></FONT>
</CENTER></BODY></HTML>
Return current item: MTG PHP (Meta Tags Generator)