View file wapirate/xhtml/users/themes.php

File size: 1.87Kb
<?php

include("../captainsafeconfig.php");

include("../captainsafecore.php");

include("captainsafeoutfn.php");

connectdb();

$mime="application/xhtml+xml";

$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("Ultijen",$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 "<small><b>*Background Color [HEX]: </b></small><input type=\"text\" name=\"bgcl\" size=\"6\" maxlength=\"6\"/><br/>";

				echo "<small><b>*Background Image [URL]: </b></small><input type=\"text\" name=\"bgii\" size=\"200\" maxlength=\"200\"/><br/>";

				echo "Text Color [HEX]: <input type=\"text\" name=\"txcl\" size=\"6\" maxlength=\"6\"/><br/>";

				echo "Link Color [HEX]: <input type=\"text\" name=\"lncl\" size=\"6\" maxlength=\"6\"/> <br/>";

				echo "Header Color [HEX]: <input type=\"text\" name=\"hdcl\" size=\"6\" maxlength=\"6\"/><br/>";

				echo "Header Text Color [HEX]: <input type=\"text\" name=\"htcl\" size=\"6\" maxlength=\"6\"/><br/>";

				echo "<input type=\"submit\" value=\"Preview\"/>";

				echo "</form>";

				echo "<br/>*Choose one only!";

			}

		}

		echo "</p>";

		echo "<p align=\"center\">";

		echo "<a href=\"../index.php?action=main&amp;sid=$sid\">HOME</a>";

		echo "</p>";

		echo "\n</body>\n</html>";

?>