} $title = $lang_total['title_main']; $desc = $lang_total['desc_main']; if (count($_POST['matches']) && $user_id && !$edit) { if (isset($_POST['update'])) { $total->UpdateRates($_POST['matches'], $user_id); } else { $total->CreatRate($_POST['matches'], $user_id); } @header('Location:' . $_SERVER['REQUEST_URI']); } if ($user) { $id = $total->db->super_query("SELECT user_id FROM " . PREFIX . "_users WHERE name='" . $total->db->safesql($user) . "'"); if (isset($_GET['tor'])) { $array = $total->GetRateByUserTor($id['user_id'], $start, $per_page, array("date_rate" => "DESC")); $count_all = $total->GetCount(array("user_id" => $id['user_id']), "rates_by_user_tor"); } else { $array = $total->GetRate(array("user_id" => $id['user_id']), $start, $per_page, array("date_rate" => "DESC")); $count_all = $total->GetCount(array("user_id" => $id['user_id']), "rates"); } $name = "user"; $uvalue = $user; } elseif ($matche) { $array = $total->GetRate(array("matche_id" => $matche), $start, $per_page, array("date_rate" => "DESC")); $name = "matche"; $uvalue = $matche; $count_all = $total->GetCount(array("matche_id" => $matche), "rates"); } elseif ($komanda) { $komanda = $total->db->safesql(urldecode($komanda)); $array = $total->GetMatcheUsers("(komanda1='{$komanda}' OR komanda2='{$komanda}')", $start, $per_page, array("calculate" => "ASC", "date_matche" => "DESC"), $user_id); $name = "komanda";