Просмотр файла masterwap/meta/meta_teg.php

Размер файла: 6.2Kb
<?php

/*
/////////////////////////////////////////////
// Автор: TDR                              //
// ICQ: 563-1991-59                        //
// E-mail: [email protected]                   //
// Сайт: gens.wup.ru  Все для WAP-мастеров //
/////////////////////////////////////////////
*/

define('_IN_JOHNCMS', 1);

$textl = 'Генератор META-тегов';
$rootpath = '../../';
require_once ("../../incfiles/core.php");

require_once ("../../incfiles/head.php");

header("Content-type:text/html; charset=utf-8");

echo '<div class="bmenu"><center><b>Генератор META-тегов</b></center></div>';

echo '<div class="menu">
<style type="text/css">
<!--
.style3 {
font-size: x-small;
font-style: italic;
}
-->
</style>
<form action="index.php" method="POST" enctype="multipart/form-data" name="form1" id="form1">
<table width="100%" border="0" align="center" cellpadding="4" class="ttable">
<tr>
<td width="39%"><div align="right"><strong>Title</strong>, заголовок  страницы:</div></td>
<td width="61%"><input name="title" type="text" id="title" size="40" /></td>
</tr>

<tr>
<td><div align="right"><strong>Description</strong>, описание:</div></td>
<td><input name="desc" type="text" id="desc" size="40" /></td>
</tr>
<tr>
<td><div align="right"><strong>Keywords</strong>, поисковые слова разделяйте запятой: </div></td>
<td><input name="keys" type="text" id="keys" size="40" /></td>
</tr>
<tr>
<td><div align="right"><strong>Owner</strong>,  email владельца сайта</div></td>
<td><input name="owner" type="text" id="owner" size="40" /></td>
</tr>
<tr>
<td><div align="right"><strong>Author</strong>, имя автора:</div></td>
<td><input name="author" type="text" id="author" size="40" /></td>
</tr>
<tr>
<td><div align="right"><strong>Expiry Date</strong>, дата окончания:</div></td>
<td><input name="expiry" type="text" id="expiry" value="Mon, 31 Dec 2007 00:00:01 PST" size="40" />
<span class="style3">(оставьте пустым, если <strong>Never</strong>)</span></td>
</tr>
<tr>
<td><div align="right"><strong>Charset</strong>, кодировка:</div></td>
<td><select name="charset" size="1">
<OPTION SELECTED>windows-1251
<OPTION>KOI8-R
<OPTION>ISO-8859-1
<OPTION>ISO-8859-2
<OPTION>ISO-8859-3
<OPTION>ISO-8859-4
<OPTION>ISO-8859-5
<OPTION>ISO-8859-6
<OPTION>ISO-8859-7
<OPTION>ISO-8859-8
<OPTION>ISO-8859-9
<OPTION>ISO-2022-JP
<OPTION>ISO-2022-JP-2
<OPTION>ISO-2022-KR
<OPTION>SHIFT_JIS
<OPTION>EUC-KR
<OPTION>BIG5
<OPTION>KSC_5601
<OPTION>HZ-GB-2312
<OPTION>JIS_X0208
<OPTION>GB2312
<OPTION>US-ASCII
</select></td>
</tr>
<tr>
<td><div align="right"><strong>Object Type</strong>, тип документа</div></td>
<td><SELECT NAME="objecttype" SIZE="1">
<OPTION SELECTED>Document
<OPTION>Homepage
<OPTION>World
<OPTION>RealWorld
<OPTION>FAQ
<OPTION>RFC
<OPTION>Magazine
<OPTION>Mall
<OPTION>Dictionary
<OPTION>Archive
<OPTION>SearchEngine
<OPTION>Hypercatalog
<OPTION>Keybank
<OPTION>Manual
<OPTION>Index
<OPTION>Book
<OPTION>Database
<OPTION>Journal
<OPTION>Catalog
<OPTION>Linecard
<OPTION>Howto
</SELECT></td>
</tr>
<tr>
<td><div align="right"><strong>Language</strong>, язык содержания сайта:</div></td>
<td><select name="lang" size="1" id="lang">
<option value="en">English
<option value="en-US">English - US
<option value="en-GB">English - GB
<option value="fr">French
<option value="de">German
<option value="zh">Chinese
<option value="es">Spanish
<option value="it">Italian
<option value="ru">Russian
<option value="jp">Japanese
</select></td>
</tr>

<tr>
<td><div align="right"><strong>Robots</strong></div></td>
<td><input name="robots" type="radio" value="nofollow" />

don&lsquo;t follow (<strong>nofollow</strong>)
<input name="robots" type="radio" value="noindex" />
don&lsquo;t include (<strong>noindex</strong>)
<input name="robots" type="radio" value="index,follow" checked="checked" />
<strong>index&amp;follow</strong></td>
</tr>
<tr>
<td><div align="right"><strong>Revisit</strong> Interval:</div></td>
<td><input name="revisit_int" type="text" id="revisit_int" value="4" size="3" maxlength="3" /> <select name="revisit_char" id="revisit_char">
<option>days</option>
<option>weeks</option>
<option>months</option>
</select>      </td>
</tr>

<tr>
<td colspan="2"><input name="act" type="hidden" id="act" value="go" />
<center><input type="submit" name="Submit" value="Сгенерировать" /></center> </td>
</tr>
<tr>
<td colspan="2">
';

function html2txt($document){


$search = array('@<script[^>]*?>.*?</script>@si',  // Strip out javascript
'@<[\/\!]*?[^<>]*?>@si',            // Strip out HTML tags
'@<style[^>]*?>.*?</style>@siU',    // Strip style tags properly
'@<![\s\S]*?--[ \t\n\r]*>@',        // Strip multi-line comments including CDATA
'@\[.*\]@'
);
$text = preg_replace($search, '', $document);
return $text;
}

if($_POST['act']=='go')
{
extract($_POST);
if(!$expiry)$expiry='0';
echo"
<table width='80%' align='center'>
<tr align='center'><td><b>META теги:</b></td></tr>
<tr><td>
&lt;META NAME=&quot;TITLE&quot; CONTENT=&quot;$title&quot;&gt;<br />
&lt;META NAME=&quot;DESCRIPTION&quot; CONTENT=&quot;$desc&quot;&gt;<br />
&lt;META NAME=&quot;KEYWORDS&quot; CONTENT=&quot;$keys&quot;&gt;<br />
&lt;META NAME=&quot;OWNER&quot; CONTENT=&quot;$owner&quot;&gt;<br />
&lt;META NAME=&quot;AUTHOR&quot; CONTENT=&quot;$author&quot;&gt;<br />
&lt;META Name=&quot;RESOURCE-TYPE&quot; content =&quot;$objecttype&quot;&gt;<br />
&lt;META HTTP-EQUIV=&quot;EXPIRES&quot; CONTENT=&quot;$expiry&quot;&gt;<br />
&lt;META HTTP-EQUIV=&quot;CHARSET&quot; CONTENT=&quot;$charset&quot;&gt;<br />
&lt;META HTTP-EQUIV=&quot;CONTENT-LANGUAGE&quot; CONTENT=&quot;$lang&quot;&gt;<br />
&lt;META NAME=&quot;ROBOTS&quot; CONTENT=&quot;$robots&quot;&gt;<br />
&lt;META NAME=&quot;REVISIT-AFTER&quot; CONTENT=&quot;$revisit_int $revisit_char&quot;&gt;
</td></tr></table>
";
}

echo "
</td>
</tr>
</table>
</form>
</p>
</div>";

echo '<div class="bmenu">« <a href="/masterwap/index.php">Назад</a></div>';

require_once ("../../incfiles/end.php");


?>