function commentOn($id, $comment) { global $group_name; $p = new PeoplePage($group_name); $c = $p->insertComment($id, $comment); if ($c) { $m = new Mailer(_getMemberUsername($id), $group_name); $m->youGotAWallMessage(); return '1'; // true } else { return '0'; } // false }