public static function processPostAction() { global $session_userinfo; if (isset($_POST['me_action'])) { if ($_POST['me_action'] == 'WALLPOSTADD') { $user_id = tep_db_prepare_input($_POST['user_id']); $team = tep_db_prepare_input($_POST['team']); $message = htmlspecialchars(tep_db_prepare_input($_POST['message'], true)); $wp = new wall_post(); $wp->create($user_id, $team, $session_userinfo['id'], date('Y-m-d H:i:s'), $message); $ajaxResult = array(); $ajaxResult['user_id'] = $wp->user_id; $ajaxResult['newpost'] = $wp->draw(true, true); ajaxReturn($ajaxResult); exit; } elseif ($_POST['me_action'] == 'WALLPOSTREM') { $wpid = tep_db_prepare_input($_POST['wpid']); $wp = new wall_post($wpid); $wp->delete(); echo utf8_encode($wpid); exit; } objectSocialLinePostAction('wall_post'); } }