Файл: masteram_us/work/css/created.php
Строк: 302
<?php
require'../../shaxty.php';
$title='Создание стиля CSS';
$align = 'left';
$head = 'Создание стиля CSS';
include_once (H.'shaxty/head.php');
echo '<br />';
$name = $_SESSION['arand'] = rand(0, 9999999999);
$bgcolor = htmlspecialchars($bgcolor);
$bodyfont = htmlspecialchars($bodyfontcolor);
$bodyfontsize = htmlspecialchars($bodyfontsize);
$fontfamily = htmlspecialchars($fontfamily);
$fontsize = htmlspecialchars($fontsize);
$fontcolor = htmlspecialchars($fontcolor);
$ahoverfontfamily = htmlspecialchars($ahoverfontfamily);
$ahoverfontcolor = htmlspecialchars($ahoverfontcolor);
$ahoverborderright = htmlspecialchars($ahoverborderright);
$ahoverborderleft = htmlspecialchars($ahoverborderleft);
$ahoverborderbottom = htmlspecialchars($ahoverborderbottom);
$ahoverbordertop = htmlspecialchars($ahoverbordertop);
$ahoverbackground = htmlspecialchars($ahoverbackground);
$underline_hover = htmlspecialchars($underline_hover);
$alinkfontfamily = htmlspecialchars($alinkfontfamily);
$alinkfontcolor = htmlspecialchars($alinkfontcolor);
$alinkborderright = htmlspecialchars($alinkborderright);
$alinkborderleft = htmlspecialchars($alinkborderleft);
$alinkborderbottom = htmlspecialchars($alinkborderbottom);
$alinkbordertop = htmlspecialchars($alinkbordertop);
$alinkbackground = htmlspecialchars($alinkbackground);
$underline_link = htmlspecialchars($underline_link);
$aactivefontfamily = htmlspecialchars($aactivefontfamily);
$aactivefontcolor = htmlspecialchars($aactivefontcolor);
$aactiveborderright = htmlspecialchars($aactiveborderright);
$aactiveborderleft = htmlspecialchars($aactiveborderleft);
$aactiveborderbottom = htmlspecialchars($aactiveborderbottom);
$aactivebordertop = htmlspecialchars($aactivebordertop);
$aactivebackground = htmlspecialchars($aactivebackground);
$underline_active = htmlspecialchars($underline_active);
$avisitedfontfamily = htmlspecialchars($avisitedfontfamily);
$avisitedfontcolor = htmlspecialchars($avisitedfontcolor);
$avisitedborderright = htmlspecialchars($avisitedborderright);
$avisitedeborderleft = htmlspecialchars($avisitedborderleft);
$avisitedborderbottom = htmlspecialchars($avisitedborderbottom);
$avisitedbordertop = htmlspecialchars($avisitedbordertop);
$avisitedbackground = htmlspecialchars($avisitedbackground);
$underline_visited = htmlspecialchars($underline_visited);
$bordertable = htmlspecialchars($bordertable);
$tablebgcolor = htmlspecialchars($tablebgcolor);
$fonttable = htmlspecialchars($fonttable);
$tablefontcolor = htmlspecialchars($tablefontcolor);
$tableleft = htmlspecialchars($tableleft);
$tableright = htmlspecialchars($tableright);
$tablebottom = htmlspecialchars($tablebottom);
$tabletop = htmlspecialchars($tabletop);
$tablelefttpx = htmlspecialchars($tablelefttpx);
$tablerightpx = htmlspecialchars($tablerightpx);
$tablebottompx = htmlspecialchars($tablebottompx);
$tabletoppx = htmlspecialchars($tabletoppx);
$bordertable = htmlspecialchars($bordertable);
$tablebgcolor = htmlspecialchars($tablebgcolor);
$fonttable = htmlspecialchars($fonttable);
$tableleft = htmlspecialchars($tableleft);
$tableright = htmlspecialchars($tableright);
$tablebottom = htmlspecialchars($tablebottom);
$tabletop = htmlspecialchars($tabletop);
$tablelefttp = htmlspecialchars($bgcolor);
$bgcolor = htmlspecialchars($tablelefttp);
$tablerightpx = htmlspecialchars($tablerightpx);
$tablebottompx = htmlspecialchars($tablebottompx);
$tabletoppx = htmlspecialchars($tabletoppx);
$tablewidth = htmlspecialchars($tablewidth);
$file = fopen ("files/$name.css","w+");
$str = "body {background-color: $bgcolor ; font-family: $bodyfont; font-size: $bodyfontsize; font-color: $bodyfontcolor;};
font {font-family: $fontfamily; font-size: $fontsize; font-color: $fontcolor;};
a:hover {font-family:$ahoverfontfamily; color: $ahoverfontcolor; border-right: $ahoverborderright; border-left; $ahoverborderleft; border-bottom: $ahoverborderbottom; border-top: $ahoverbordertop; text-decoration: $underline_hover;};
a:active {font-family:$aactivefontfamily; color: $aactivefontcolor; border-right: $aactiveborderright; border-left; $aactiveborderleft; border-bottom: $aactiveborderbottom; border-top: $aactivebordertop; text-decoration: $underline_active;};
a:visited {font-family:$avisitedfontfamily; color: $avisitedfontcolor; border-right: $avisitedborderright; border-left; $avisitedborderleft; border-bottom: $avisitedborderbottom; border-top: $avisitedbordertop; text-decoration: $underline_visited;};
a:link {font-family:$alinkfontfamily; color: $alinkfontcolor; border-right: $alinkborderright; border-left; $alinkborderleft; border-bottom: $alinkborderbottom; border-top: $alinkbordertop; text-decoration: $underline_link;};
table {backround-color: $tablebgcolor; border-left: $tablelefttpx bold $tableleft; border-right: $tablerightpx bold $tableright; border-bottom: $tablebottompx bold $tablebottom; border-top: $tabletoppx bold $tabletop; font-family: $fonttable ; color: $tablefontcolor; $tablewidth; };
";
if ( !$file )
{
echo("Нет файла в дирректории: files/. Или не удалось создать");
}
else
{
fputs ( $file, $str);
}
fclose ($file);
print "
<html>
<meta http-equiv=content-type content=text/html; charset=utf-8>
<body bgcolor=#F0F8FF>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<th align=center bgcolor=#8FBC8F>
<font face=verdana size=2 color=#F0F8FF>
Файл создан поздравляем
</font>
</th>
<tr>
<td>
<hr color=#BDB76B size=1>
</td>
</tr>
</table>
<font face=verdana color=#4682B4 size=2>Вот <a href=files/$name.css>файл</a></font><br />
<form>
<input type=text value=http://$site/work/css/files/$name.css>
</form>
<br />
<br />
<font color=##696969 face=verdana size=2>
<font color=blue>body</font> {<font color=#9ACD32>background-color:</font> $bgcolor ; <font color=#9ACD32>font-family:</font> $bodyfont; <font color=#9ACD32>font-size:</font> $bodyfontsize; <font color=#9ACD32>font-color:</font> $bodyfontcolor;};<br />
<font color=blue>font</font> {<font color=#9ACD32>font-family:</font> $fontfamily; <font color=#9ACD32>font-size:</font> $fontsize; <font color=#9ACD32>font-color:</font> $fontcolor;};<br />
<font color=blue>a:hover</font> {<font color=#9ACD32>font-family: </font>$ahoverfontfamily; <font color=#9ACD32>color:</font> $ahoverfontcolor; <font color=#9ACD32>border-right:</font> $ahoverborderright; <font color=#9ACD32>border-left:</font> $ahoverborderleft; <font color=#9ACD32>border-bottom:</font> $ahoverborderbottom; <font color=#9ACD32>border-top:</font> $ahoverbordertop; <font color=#9ACD32>text-decoration:</font> $underline_hover;};<br />
<font color=blue>a:link</font> {<font color=#9ACD32>font-family:</font> $alinkfontfamily; <font color=#9ACD32>color:</font> $alinkfontcolor; <font color=#9ACD32>border-right:</font> $alinkborderright; <font color=#9ACD32>border-left:</font> $alinkborderleft; <font color=#9ACD32>border-bottom:</font> $alinkborderbottom; <font color=#9ACD32>border-top:</font> $alinkbordertop; <font color=#9ACD32>text-decoration:</font> $underline_link;};<br />
<font color=blue>a:active</font> {<font color=#9ACD32>font-family:</font> $aactivefontfamily; <font color=#9ACD32>color:</font> $aactivefontcolor; <font color=#9ACD32>border-right:</font> $aactiveborderright; <font color=#9ACD32>border-left:</font> $aactiveborderleft; <font color=#9ACD32>border-bottom:</font> $aactiveborderbottom; <font color=#9ACD32>border-top:</font> $aactivebordertop; <font color=#9ACD32>text-decoration:</font> $underline_active;};<br />
<font color=blue>a:visited</font> {<font color=#9ACD32>font-family:</font> $avisitedfontfamily; <font color=#9ACD32>color:</font> $avisitedfontcolor; <font color=#9ACD32>border-right:</font> $avisitedborderright; <font color=#9ACD32>border-left:</font> $avisitedborderleft; <font color=#9ACD32>border-bottom:</font> $avisitedborderbottom; <font color=#9ACD32>border-top:</font> $avisitedbordertop; <font color=#9ACD32>text-decoration:</font> $underline_visited;};<br />
<font color=blue>table</font> {<font color=#9ACD32>backround-color:</font> $tablebgcolor; <font color=#9ACD32>border-left:</font> $tablelefttpx bold $tableleft; <font color=#9ACD32>border-right:</font> $tablerightpx bold $tableright; <font color=#9ACD32>border-bottom:</font> $tablebottompx bold $tablebottom; <font color=#9ACD32>border-top:</font> $tabletoppx bold $tabletop; <font color=#9ACD32>font-family:</font> $fonttable ; color: $tablefontcolor; $tablewidth; };
<br />
</font>
<br />
<a href='index.php?'> « Создать еще один</a>
<br />
</body>
</html>";
echo "</font>";
echo '« <a href="/work/?">Назад</a>';
include_once (H.'shaxty/foot.php');
foot();
?>