handle = function() { global $myUser, $blog; if ($myUser['username'] != $blog['poster']) { $poster_user_link = getUserLink($blog['poster']); $admin_user_link = isSuperUser($myUser) ? '管理员' : getUserLink($myUser['username']); $blog_content = HTML::escape($blog['content_md']); $content = <<{$poster_user_link} 您好:

您的博客 {$blog['title']}(ID:{$blog['id']})已经被 {$admin_user_link} 删除,现将博客原文备份发送给您,请查收。

{$blog_content}
EOD; sendSystemMsg($blog['poster'], '博客删除通知', $content); } deleteBlog($blog['id']); }; $delete_form->submit_button_config['class_str'] = 'btn btn-danger'; $delete_form->submit_button_config['text'] = '是的,我确定要删除'; $delete_form->succ_href = HTML::blog_url($blog['poster'], '/archive'); $delete_form->runAtServer(); ?>

您真的要删除博客 “(博客 ID:吗?该操作不可逆!

printHTML(); ?>