File size: 1.57Kb
<?php
include("../web1/config.php");
include("../web1/core.php");
include("outfn.php");
connectdb();
$mime="text/html";
$charset = "utf-8";
$sid = $_GET["sid"];
header("content-type:$mime;charset=$charset");
echo("<?xml version=\"1.0\"?>\n");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
$uid = getuid_sid($sid);
$pstyle = gettheme($uid);
echo xhtmlhead("lavalair",$pstyle);
echo "<h3 align=\"center\">Adding themes</h3>\n";
echo "<p>";
if(!isadmin($uid))
{
echo "You can't view this page";
}else{
addonline ($uid, "Admin CP","");
if(!isset($a))
{
//print default page
echo "<form action=\"preview.php?sid=$sid\" method=\"post\">";
echo "Name: <input type=\"text\" name=\"thnm\" size=\"15\" maxlength=\"10\"/><br/>";
echo "Background Color: <input type=\"text\" name=\"bgcl\" size=\"6\" maxlength=\"6\"/> (Hexdecimal input, e.g: FF0000)<br/>";
echo "Text Color: <input type=\"text\" name=\"txcl\" size=\"6\" maxlength=\"6\"/><br/>";
echo "Link Color: <input type=\"text\" name=\"lncl\" size=\"6\" maxlength=\"6\"/> <br/>";
echo "Header Color: <input type=\"text\" name=\"hdcl\" size=\"6\" maxlength=\"6\"/><br/>";
echo "Header Text Color: <input type=\"text\" name=\"htcl\" size=\"6\" maxlength=\"6\"/><br/>";
echo "<input type=\"submit\" value=\"Preview\"/>";
echo "</form>";
}
}
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"../index.php?action=main&sid=$sid\">HOME</a>";
echo "</p>";
echo "\n</body>\n</html>";
?>