<?php
if ($besed['kurator']!=0){
if ($time>$besed['timekurator']){
mysql_query("DELETE FROM `besed` WHERE `id` = '$besed[id]'");
mysql_query("DELETE FROM `besed_post` WHERE `id_besed` = '$besed[id]'");
mysql_query("UPDATE `user` SET `roombesedka` = '0' WHERE `id` = '$besed[kurator]' LIMIT 1");
unlink(H.'besedka/img/icon/'.$besed['id'].'.png');
}
}
?>