how to add in modlog like which gallery pic is deleted just u get to see deleted comment?
this is deleted comment details
//////////////////////////////del comment
else if($action=="delcmt")
{
$id = $_GET["id"];
echo "<p align=\"center\">";
$res = mysql_query("DELETE FROM fun_galcomments WHERE id ='".$id."'");
if($res)
{
mysql_query("INSERT INTO ibwf_mlog SET action='comment', details='<b>".getnick_uid(getuid_sid($sid))."</b> Deleted a Photo Comment', actdt='".time()."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Comment deleted";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
echo "<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}
how to add onle for to know what the link of the image was when a user delete it?:confused:
this is deleted comment details
//////////////////////////////del comment
else if($action=="delcmt")
{
$id = $_GET["id"];
echo "<p align=\"center\">";
$res = mysql_query("DELETE FROM fun_galcomments WHERE id ='".$id."'");
if($res)
{
mysql_query("INSERT INTO ibwf_mlog SET action='comment', details='<b>".getnick_uid(getuid_sid($sid))."</b> Deleted a Photo Comment', actdt='".time()."'");
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Comment deleted";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
}
echo "<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}
how to add onle for to know what the link of the image was when a user delete it?:confused:
Comment