Genproc.php
else if($action=="updtthme")
{
addonline(getuid_sid($sid),"Update Profile theme","");
$theme = $_POST["thms"];
$size = $_POST["size"];
$uid = getuid_sid($sid);
$exist = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE id='".$uid."'"));
if ($exist[0]>0)
{
$res = mysql_query("UPDATE ibwf_users SET theme='".$theme.".css' WHERE id='".$uid."'");
}else{
$res = mysql_query("UPDATE ibwf_users SET theme='".$theme.".css' WHERE id='".$uid."'");
}
echo "<p align=\"center\">";
echo mysql_error();
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Updated<br/><br/><br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/><br/>";
}
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
index.php
////////////////////////////////Profile Theme
else if($action=="sitethms")
{
addonline(getuid_sid($sid),"Profile Theme","");
boxstart("Theme");
echo "<p align=\"center\">";
echo "</p>";
echo "<p>";
$tmsg = getpmcount(getuid_sid($sid));
$umsg = getunreadpm(getuid_sid($sid));
echo "<a href=\"inbox.php?action=main&sid=$sid\">»Pm's($umsg/$tmsg)</a><br/>";
$uid =getuid_sid($sid);
//$new_gm = getnewgml($uid);
echo "<p align=\"center\">";
echo "<form action=\"genproc.php?action=updtthme&sid=$sid\" method=\"post\">";
include("set.php");
echo "<input type=\"Submit\" name=\"submit\" Value=\"Save\"></form>";
echo "</p>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}
this is english