[Comoblog-commit] modules/mod_comment_notify/include mod_comment_notify.inc.php,NONE,1.1
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2005-11-28 10:41:55
|
Update of /cvsroot/comoblog/modules/mod_comment_notify/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13672/mod_comment_notify/include Added Files: mod_comment_notify.inc.php Log Message: initial add mod_comment_notify, this mod will email a notification of new comments to the site owner, ive not used it in anger since i first wrote it, as i replace it with an rss feed of comments, how ever i believe it all works okay - on linux at least., it should probably be tested some more, however i noticed that there was a feature request for this, so im adding it as a base for some one to look at, test and file any bug reports. --- NEW FILE: mod_comment_notify.inc.php --- <?php function mod_comment_notify ($item_id) { $query = "select post_mail_subject from ".CFG_MYSQL_TABPREFIX."posts where post_id = '".$item_id ."'"; $item ="Unknown Post ". $query; $result = mysql_query($query); if ($result) { $item = mysql_result($result, 0); } return ($item); } ?> |