accessByLevel(2, 2); @session_start(); $post_id = $_GET['post']; $n = $_GET['n']; $query = sprintf("SELECT n.*, b.blog_url, b.blog_name, b.blog_author". " FROM ".SPG_PREFIX."_comm_notify n, ".SPG_PREFIX."_comm_notify_blogs b". " WHERE post_id = %s AND n.user_name=%s AND parent = 0 AND n.blog_id=b.blog_id". " ORDER by n.comm_no desc", $this->data->quote_smart($post_id), $this->data->quote_smart($n)); $result = $GLOBALS['dbcon']->query($query); if (DB::isError($result)) { die ($result->getMessage().__FILE__.__LINE__); } while($topComment = $result->fetchRow()) { $comm_no = $topComment['comm_no']; $delScript = "confirmDelCommentNotify('".$_GET['n']."', '".$topComment['id']."', 'comment')"; ?> data->quote_smart($post_id), $this->data->quote_smart($n), $this->data->quote_smart($comm_no)); $childresult = $GLOBALS['dbcon']->query($query); if (DB::isError($childresult)) { die ($childresult->getMessage().__FILE__.__LINE__); } while($childComment = $childresult->fetchRow()) { $delScript = "confirmDelCommentNotify('".$_GET['n']."', '".$childComment['id']."', 'comment')"; ?>
:    
:
:    
: