function new_post_notify($wall_object, $wall_object_id, $action_id) { global $user, $notify, $url; if (!$wall_object || !$wall_object_id || !$action_id) { return false; } $owner = he_wall::get_wall_owner($wall_object, $wall_object_id); if (!$owner || !$owner->user_exists || $owner->user_info['user_id'] == $user->user_info['user_id']) { return false; } if ($owner->usersetting_info['usersetting_notify_wallpost']) { $login_url = '<a href="' . $url->url_base . "login.php\">" . $url->url_base . "login.php</a>"; $replace_arr = array($owner->user_displayname, $user->user_displayname, $login_url); send_systememail('wallpost', $owner->user_info['user_email'], $replace_arr); } $url_vars = array('', $action_id); $replace_arr = array($user->user_displayname); $notify->notify_add($owner->user_info['user_id'], 'wallpost', $action_id, $url_vars, $replace_arr); }
$smarty->assign('error_message', 690706102); $smarty->assign('error_submit', 641); include "footer.php"; } $action_info = he_wall::get_action_info($action_id); if (!$action_info) { he_wall::delete_action_notify($action_id); } if (!$wall_action) { $page = "error"; $smarty->assign('error_header', 639); $smarty->assign('error_message', 690706081); $smarty->assign('error_submit', 641); include "footer.php"; } $action_wall_owner = he_wall::get_wall_owner($action_info['action_object_owner'], $action_info['action_object_owner_id']); if ($user->user_exists && ($user->user_info['user_id'] == $wall_action['action_user_id'] || $user->user_info['user_id'] == $action_wall_owner->user_info['user_id'])) { he_wall::delete_action_notify($action_id); } $wall_action['owner'] = new se_user(array($wall_action['action_user_id'])); $total_comments = he_wall::total_comments($action_id); $per_click = $setting['setting_he_wall_comments_per_page']; $result = he_wall::get_paging_comments($action_id, $total_comments - $per_click, $per_click); $action_likes = he_wall::get_likes(array($action_id)); $count = $result['count']; $action_comments = $result['action_comments']; $per_click = $result['per_click']; $actiontype = he_wall::get_actiontype($action_id); $filename = he_wall::get_action_filename($action_id); if ($actiontype == 'wallpostphoto' && !$filename && $action_info['action_object_owner'] == 'group') { $media_ext = he_wall::get_action_media_ext($action_id, 'group');