<?php
/*
////////////////////////////////////////////////////////////////////////////////
// Футбольный менеджер для JohnCMS //
// Модификация //
////////////////////////////////////////////////////////////////////////////////
// Anubis(Юрий) (379-619-623) - [email protected] //
// Wap site - http://mobisports.ru //
////////////////////////////////////////////////////////////////////////////////
*/
define('_IN_JOHNCMS', 1);
$textl = 'Менеджер';
require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
if (!$user_id) {
echo '<div class="rmenu"><p>Доступ в менеджер открыт только <a href="../login.php">авторизованным</a> посетителям</p></div>';
require_once ("../incfiles/end.php");
exit;
}
echo '<div class="phdr"><center>Поиск игрока</center></div><br/>';
if (!isset($act) || $act == "") {
echo '<form action="search.php?act=go" method="post">
Игрок(или часть имени):<input type="text" maxlength="20" name="pl"/><br/>
<input type="submit" value="Найти"/></form>';
}
if ($act == "go") {
$pl = htmlspecialchars($_POST['pl']);
$pl = substr($pl, 0, 20);
$pl = trim($pl);
echo ' Найденные игроки:<br/>';
####################################################
$arrita = array("Atalanta", "Parma", "Cagliari", "Reggina", "Lecce", "Fiorentina",
"Genoa", "Inter", "Juventus", "Lazio", "Chievo", "Milan", "Napoli", "Palermo",
"Bologna", "Roma", "Sampdoria", "Siena", "Udinese", "Catania");
$arreng = array("Arsenal", "Aston_Villa", "Portsmouth", "Blackburn", "Bolton",
"Chelsea", "Stock_City", "Everton", "Fullham", "Liverpool", "Manchester_City",
"Manchester_United", "Blackpool", "Newcastle", "Middlesbrough", "West_Bromvich",
"Sunderland", "Tottenham", "Hall_City", "Wigan");
$arrspa = array("Barcelona", "Valencia", "Real_M", "Sevilla", "Atletico_M",
"Deportivo", "Villarreal", "Malaga", "Betis", "Getafe", "Racing",
"Sporting_G", "Athletic_B", "Almeria", "Numancia", "Recreativo", "Valladolid",
"Espanyol", "Mallorca", "Osasuna");
$arrger = array("Hoffenheim", "Bayern_M", "Arminia", "Hamburger", "Bayer_L",
"Borussia_D", "Schalke", "Werder", "Wolfsburg", "Stuttgart", "Cologne",
"Eintracht", "Hannover_96", "Bochum", "Energie_Cottbus", "Hertha", "Karlsruher",
"Borussia_M");
$arrukr = array("Arsenal_K", "Chornomorets", "Dnepr", "Dynamo_K", "Illichivets",
"Karpaty", "Lviv", "Kryvbas", "Kharkiv", "Metalist_K", "Metalurg_D",
"Metalurg_Z", "Shakhtar", "Tavriya", "Vorskla", "Zorya");
$arrrus = array("Rubin", "CSKA_M", "Dynamo_M", "Amkar", "Zenit",
"Krylia_Sovetov", "Lokomotiv_M", "Spartak_M", "Khimki", "Terek", "Luch-Energiya",
"Spartak_N", "Moscow", "Anji", "Saturn", "Shinnik");
$arr_fra = array("Lille", "Marseille", "Lyon", "PSG", "Renn", "Saint-Etienne",
"Lorient", "Montpellie", "Sochaux", "Bordeaux", "Stade_Brestois", "Nice",
"Valenciennes", "Toulouse", "Auxerre", "Nancy", "Monaco", "Caen", "Lens",
"Arles_Avignon");
$arr_por = array("Academica", "Beira-Mar", "Benfica", "Braga", "Feirense",
"G.Vicente", "Leiria", "Maritimo", "Nacional", "Olhanense", "P.Ferreira",
"Porto", "Rio_Ave", "Sporting", "V.Guimaraes", "V.Setubal");
####################################################
for ($i = 0; $i < count($arrita); $i++) {
$file = file("italy/$arrita[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arrita[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arreng); $i++) {
$file = file("england/$arreng[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arreng[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arrspa); $i++) {
$file = file("spain/$arrspa[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arrspa[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arrger); $i++) {
$file = file("germany/$arrger[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arrger[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arrrus); $i++) {
$file = file("russia/$arrrus[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arrrus[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arrukr); $i++) {
$file = file("ukraine/$arrukr[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arr_fra[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arr_fra); $i++) {
$file = file("france/$arr_fra[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arr_fra[$i] .
'<br/>';
}
}
}
for ($i = 0; $i < count($arr_por); $i++) {
$file = file("portugal/$arr_por[$i].dat");
foreach ($file as $k => $v) {
$ex = explode("|", $v);
if (ereg($pl, $ex[0])) {
$stroka = $ex[2];
$coz = strlen($stroka);
if ($coz = 10) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7.$8$9$10', $stroka);
}
if ($coz = 9) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6.$7$8$9', $stroka);
}
if ($coz = 8) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2.$3$4$5.$6$7$8', $stroka);
}
if ($coz = 7) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1.$2$3$4.$5$6$7', $stroka);
}
if ($coz = 6) {
$stroka = preg_replace('/([0-9])+([0-9])+([0-9])+([0-9])+([0-9])+([0-9])/si',
'$1$2$3.$4$5$6', $stroka);
}
$ex[2] = (int)$ex[2];
if ($ex[2] <= 5000000) {
$zp = "1.000";
}
if ($ex[2] > 5000000 && $ex[2] <= 10000000) {
$zp = "5.000";
}
if ($ex[2] > 10000000 && $ex[2] <= 20000000) {
$zp = "25.000";
}
if ($ex[2] > 20000000 && $ex[2] <= 30000000) {
$zp = "50.000";
}
if ($ex[2] > 30000000 && $ex[2] <= 40000000) {
$zp = "100.000";
}
if ($ex[2] > 40000000) {
$zp = "250.000";
}
echo $ex[0] . '/' . $ex[1] . '(' . $ex[3] . '/' . $ex[4] . '/' . $ex[5] . '/' .
$ex[6] . '/' . $ex[7] . '/' . $ex[8] . ')/' . $stroka . '$/' . $zp . '$ - ' . $arr_fra[$i] .
'<br/>';
}
}
}
echo '[<a href="search.php">Назад</a>]<br/>';
}
echo '[<a href="main.php">В панель управления</a>]<br/>';
require_once ("../incfiles/end.php");