} else { $is_save = true; } if ($_POST['add_mod'] == 1 && count($error) <= 0) { header("Location: /users/{$_SESSION['login']}/opinions/#n_{$id_advice}"); exit; } //} } if (!$advice) { header("Location: /404.php"); exit; } } else { if ($edit > 0 && !get_uid(false)) { header("Location: /404.php"); exit; } } if ($is_convert && isset($_POST['save'])) { header("Location: /users/{$_SESSION['login']}/opinions/?from=norisk&edit={$id_advice}"); } if ($user->uid == $_SESSION['uid']) { $new_advices = $paid_advice->getAdvices($_SESSION['uid']); } $msgs = sbr::getUserFeedbacks($to_id, is_emp($user->role), $sort > 0 ? $sort : false, $period, true, false); $_user = new users(); if (get_uid(0)) { $_user->GetUser($_SESSION['login']); } }