Пример #1
0
if (isset($_POST['id'])) {
    $action_id = $_POST['id'];
} elseif (isset($_GET['id'])) {
    $action_id = $_GET['id'];
}
$where_clause = he_database::placeholder("se_actions.action_id=?", $action_id);
$wall_action = he_wall::actions_display(0, $setting['setting_actions_actionsonprofile'], $where_clause);
$wall_action = $wall_action[0];
if (!$setting['setting_he_wall_guest_view'] && $user->level_info['level_wall_allowed'] == 0) {
    $page = "error";
    $smarty->assign('error_header', 639);
    $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']));