Add Blog Lavalair (error Posting Message)
Started on the old forum in August 2008 · view the original in the archive · old links redirect here
replace the old codes in genproc.php with these codes below!!!
//////////////////////////////Add Blog
else if($action=="addblg")
{
if(!getplusses(getuid_sid($sid))>50)
{
echo "<card id=\"main\" title=\"Can't Add Added!\">";
echo "<p align=\"center\">";
echo "Only 50+ plusses can add blogs
";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
$msgtxt = $_POST["msgtxt"];
$btitle = $_POST["btitle"];
//$qut = $_POST["qut"];
addonline(getuid_sid($sid),"Added a blog","");
echo "<card id=\"main\" title=\"Blog Added!\">";
echo "<p align=\"center\">";
$crdate = time();
//$uid = getuid_sid($sid);
$res = false;
if((trim($msgtxt)!="")&&(trim($btitle)!=""))
{
$res = mysql_query("INSERT INTO ibwf_blogs SET bowner='".$uid."', bname='".$btitle."', bgdate='".$crdate."', btext='".$msgtxt."'");
}
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Message Posted Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Posting Message";
}
echo "
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
letme know if it works ok?
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)