Поиск говнокода

Этот поиск практически ничего не может найти! Но вы всё-таки попытайтесь, вдруг повезет.

Кресты / Говнокод #17460 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 62
  63. 63
  64. 64
  65. 65
  66. 66
  67. 67
  68. 68
  69. 69
  70. 70
  71. 71
  72. 72
  73. 73
  74. 74
  75. 75
  76. 76
  77. 77
  78. 78
  79. 79
  80. 80
  81. 81
  82. 82
  83. 83
  84. 84
  85. 85
  86. 86
  87. 87
  88. 88
  89. 89
  90. 90
  91. 91
  92. 92
  93. 93
  94. 94
  95. 95
  96. 96
  97. 97
  98. 98
  99. 99
#include <fstream>
#include <string.h>
#include <stdlib.h>
#include <iostream>
typedef unsigned int uint;
std::string sMsg;

int GetShift()
{
	int iResult = 0;
	for(uint i = 0; i < sMsg.size(); i++)
	{
		if(!isalpha(sMsg[i])) continue;
		
		if(isupper(sMsg[i]))
		{
			iResult = int(sMsg[i]) - int('A');
			break;
		}
		else if(islower(sMsg[i]))
		{
			iResult = int(sMsg[i]) - int('a');
			break;
		}
	}
	return iResult;
}

int Pos(const char* _Str, char _Ch)
{
	int i = 0;
	while(*_Str)
	{
		if(*_Str == _Ch)
		{
			return i;
		}
		_Str++;
		i++;
	}
	return -1;
}

int main()
{
	std::ifstream fin("input.txt");
	std::ofstream fout("output.txt");
	
	std::getline(fin, sMsg);
	
	int iShift = GetShift();
	if(iShift == 0)
	{
		fout << sMsg;
	}
	else
	{
		char* szOriginal = (char*)malloc(100);
		strcpy(szOriginal, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
		char* szShift = (char*)malloc(100);
		strcpy(szShift, "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ");
		szShift += iShift;
		
		char* szOriginalL = (char*)malloc(100);
		strcpy(szOriginalL, "abcdefghijklmnopqrstuvwxyz");
		char* szShiftL = (char*)malloc(100);
		strcpy(szShiftL, "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz");
		szShiftL += iShift;
		
		for(int i = 0; i < sMsg.size(); i++)
		{
			if(!isalpha(sMsg[i]))	
				fout << sMsg[i];
			else
			{
				if(isupper(sMsg[i]))
				{
					int iPos = Pos(szShift, sMsg[i]);
					fout << *(szOriginal + iPos);
				}
				else if(islower(sMsg[i]))
				{
					
					int iPos = Pos(szShiftL, sMsg[i]);
					fout << *(szOriginalL + iPos);
				}
			}
		}
		
		free(szOriginal);
		free(szShift);
		free(szOriginalL);
		free(szShiftL);
	}
	
	fin.close();
	fout.close();
	return 0;
}

В рамках подготовки к прошедшей областной олимпиаде по информатике среди школьников Минской области решал задачи. Данный говнокод решение задачи про шифр цезаря (данная задача была на областной олимпиаде в 2013 - 2014 учебном году).
Задача: расшифровать строку, которая зашифрована шифром Цезаря, так, чтобы полученная расшифровка была минимальна лексикографически.
Зашифрованная строка находится в файле input.txt, результат надо было вывести output.txt

Janycz Janycz, (Updated )

Комментарии (81, +81)

"PHP" / Говнокод #16410 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 62
  63. 63
  64. 64
  65. 65
  66. 66
  67. 67
  68. 68
  69. 69
  70. 70
  71. 71
  72. 72
  73. 73
  74. 74
  75. 75
  76. 76
  77. 77
while ($rown2 = mysql_fetch_array($nresult2)) {
  // Несколько строк кода
  $znap = $rown2['znap'];
  // И ещё немного
  // А теперь надо узнать название шоссе, на котором расположен коттедж:
  if ($znap == "1") {
$napr = "Алтуфьевское";
} elseif ($znap == "2") {
$napr = "Дмитровское";
} elseif ($znap == "3") {
$napr = "Куркинское";
} elseif ($znap == "4") {
$napr = "Ленинградское";
} elseif ($znap == "5") {
$napr = "Новосходненское";
} elseif ($znap == "6") {
$napr = "Рогачевское";
} elseif ($znap == "7") {
$napr = "Савеловское";
} elseif ($znap == "8") {
$napr = "Боровское";
} elseif ($znap == "9") {
$napr = "Калужское";
} elseif ($znap == "10") {
$napr = "Киевское";
} elseif ($znap == "11") {
$napr = "Старокалужское";
} elseif ($znap == "12") {
$napr = "Варшавское";
} elseif ($znap == "13") {
$napr = "Новокаширское";
} elseif ($znap == "14") {
$napr = "Симферопольское";
} elseif ($znap == "15") {
$napr = "Волоколамское";
} elseif ($znap == "16") {
$napr = "Пятницкое";
} elseif ($znap == "17") {
$napr = "Горьковское";
} elseif ($znap == "18") {
$napr = "Домодедовское";
} elseif ($znap == "19") {
$napr = "Егорьевское";
} elseif ($znap == "20") {
$napr = "Носовихинское";
} elseif ($znap == "21") {
$napr = "Рязанское";
} elseif ($znap == "22") {
$napr = "Ильинское";
} elseif ($znap == "23") {
$napr = "Можайское / Минское";
} elseif ($znap == "25") {
$napr = "Новорижское";
} elseif ($znap == "26") {
$napr = "Рижское";
} elseif ($znap == "27") {
$napr = "Рублево-Успенское";
} elseif ($znap == "28") {
$napr = "Сколковское";
} elseif ($znap == "29") {
$napr = "Успенское";
} elseif ($znap == "30") {
$napr = "Каширское";
} elseif ($znap == "31") {
$napr = "Новорязанское";
} elseif ($znap == "32") {
$napr = "Осташковское";
} elseif ($znap == "33") {
$napr = "Щелковское";
} elseif ($znap == "35") {
$napr = "Подушкинское";
} elseif ($znap == "34") {
$napr = "Ярославское";
} else {
$napr = "";
}
// Дальше ещё куча кода

Во, заказали доработку проекта....

mkramer mkramer, (Updated )

Комментарии (4, +4)

"PHP" / Говнокод #9958 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
// Функция вывода всего списка новостей.
function show_list($news)
{
  echo '<html>';
  echo '<head>';
  echo '<title>Последние новости</title>';
  echo '</head>';
  echo '<body>';
  echo '<ul>';
  for ($i = 0; $i < count($news); $i++)
  {
      echo '<li>';
      echo '<a href="news.php?id=' . ($i + 1) . '">'; 
      echo $news[$i];
      echo '</a>';
      echo '</li>';        
  }
echo '</ul>';    
  echo '</body>';    
  echo '</html>';    
}
// Функция вывода конкретной новости.
function show_item($news, $id)
{
  echo '<html>';
  echo '<head>';
  echo "<title>Новость #$id</title>";
  echo '</head>';
  echo '<body>';
  echo '<a href="news.php">Вернуться к списку новостей</a>';
  echo '<p>';
  echo $news[$id - 1];
  echo '</p>';    
  echo '<p>';
  echo 'Представьте, что здесь много текста и картинок :)';
  echo '</p>';    
  echo '</body>';    
  echo '</html>';    
}
// Точка входа.
// Создаем массив новостей.
$news = array();
$news[0] = 'За качество ответят. Контролировать продукты питания начали по-
новому.';
$news[1] = 'Варшава не раскрывает перечень возможных мер против Минска';
$news[2] = 'Павел Астахов намерен добиваться отставки ряда чиновников 
Удмуртии';
// Был ли передан id новости в качестве параметра?
if (isset($_GET['id']))
{
  show_item($news, $_GET['id']);
}
else
{
  show_list($news);
}

http://otvety.google.ru/otvety/thread?tid=3f83527f1a2f59df

valera5505 valera5505, (Updated )

Комментарии (11, +11)

"PHP" / Говнокод #431 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 62
  63. 63
  64. 64
  65. 65
  66. 66
  67. 67
  68. 68
  69. 69
  70. 70
  71. 71
  72. 72
  73. 73
  74. 74
  75. 75
  76. 76
  77. 77
  78. 78
  79. 79
  80. 80
  81. 81
  82. 82
  83. 83
  84. 84
  85. 85
  86. 86
  87. 87
  88. 88
  89. 89
  90. 90
  91. 91
  92. 92
  93. 93
  94. 94
  95. 95
  96. 96
  97. 97
  98. 98
  99. 99
  100. 100
if ($_GET[g] == 1) {$dir="g/irk/files/"; $dir_count="g/irk/banners/"; $city_for_files='Иркутск'; $city_for_files2='Иркутска'; $cityphonecode='3952'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 2) {$dir="g/novosib/files/"; $dir_count="g/novosib/banners/"; $city_for_files='Новосибирск'; $city_for_files2='Новосибирска'; $cityphonecode='383'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 3) {$dir="g/moscow/files/"; $dir_count="g/moscow/banners/"; $city_for_files='Москва'; $city_for_files2='Москвы'; $cityphonecode='495'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 4) {$dir="g/minsk/files/"; $dir_count="g/minsk/banners/"; $city_for_files='Минск'; $city_for_files2='Минска'; $cityphonecode='17'; $countryphonecode='Белорусии - 735';}
elseif ($_GET[g] == 5) {$dir="g/speterburg/files/"; $dir_count="g/speterburg/banners/"; $city_for_files='Санкт-Петербург'; $city_for_files2='Санкт-Петербурга'; $cityphonecode='812'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 6) {$dir="g/kiev/files/"; $dir_count="g/kiev/banners/"; $city_for_files='Киев'; $city_for_files2='Киева'; $cityphonecode='44'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 7) {$dir="g/kemerovo/files/"; $dir_count="g/kemerovo/banners/"; $city_for_files='Кемерово'; $city_for_files2='Кемерово'; $cityphonecode='3842'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 8) {$dir="g/angarsk/files/"; $dir_count="g/angarsk/banners/"; $city_for_files='Ангарск'; $city_for_files2='Ангарска'; $cityphonecode='3951'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 9) {$dir="g/ijevsk/files/"; $dir_count="g/ijevsk/banners/"; $city_for_files='Ижевск'; $city_for_files2='Ижевска'; $cityphonecode='3412'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 10) {$dir="g/chudovo/files/"; $dir_count="g/chudovo/banners/"; $city_for_files='Чудово'; $city_for_files2='Чудово';}
elseif ($_GET[g] == 11) {$dir="g/cheremhovo/files/"; $dir_count="g/cheremhovo/banners/"; $city_for_files='Черемхово'; $city_for_files2='Черемхово'; $cityphonecode='39546'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 12) {$dir="g/nnovgorod/files/"; $dir_count="g/nnovgorod/banners/"; $city_for_files='Нижний Новгород'; $city_for_files2='Нижнего Новгорода'; $cityphonecode='8312'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 13) {$dir="g/kaliningrad/files/"; $dir_count="g/kaliningrad/banners/"; $city_for_files='Калининград'; $city_for_files2='Калининграда'; $cityphonecode='4012'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 14) {$dir="g/bratsk/files/"; $dir_count="g/bratsk/banners/"; $city_for_files='Братск'; $city_for_files2='Братска'; $cityphonecode='3953'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 15) {$dir="g/dzerjinsk/files/"; $dir_count="g/dzerjinsk/banners/"; $city_for_files='Дзержинск'; $city_for_files2='Дзержинска'; $cityphonecode='8313'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 16) {$dir="g/serov/files/"; $dir_count="g/serov/banners/"; $city_for_files='Серов'; $city_for_files2='Серова'; $cityphonecode='34315'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 17) {$dir="g/ustilimsk/files/"; $dir_count="g/ustilimsk/banners/"; $city_for_files='Усть-Илимск'; $city_for_files2='Усть-Илимска'; $cityphonecode='39535'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 18) {$dir="g/vladivostok/files/"; $dir_count="g/vladivostok/banners/"; $city_for_files='Владивосток'; $city_for_files2='Владивостока'; $cityphonecode='4232'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 19) {$dir="g/chita/files/"; $dir_count="g/chita/banners/"; $city_for_files='Чита'; $city_for_files2='Читы'; $cityphonecode='3022'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 20) {$dir="g/krasnoiarsk/files/"; $dir_count="g/krasnoiarsk/banners/"; $city_for_files='Красноярск'; $city_for_files2='Красноярска'; $cityphonecode='3912'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 21) {$dir="g/barnaul/files/"; $dir_count="g/barnaul/banners/"; $city_for_files='Барнаул'; $city_for_files2='Барнаула'; $cityphonecode='3852'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 22) {$dir="g/arhangelsk/files/"; $dir_count="g/arhangelsk/banners/"; $city_for_files='Архангельск'; $city_for_files2='Архангельска'; $cityphonecode='8182'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 23) {$dir="g/tomsk/files/"; $dir_count="g/tomsk/banners/"; $city_for_files='Томск'; $city_for_files2='Томска'; $cityphonecode='3822'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 24) {$dir="g/astrahan/files/"; $dir_count="g/astrahan/banners/"; $city_for_files='Астрахань'; $city_for_files2='Астрахани'; $cityphonecode='8512'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 25) {$dir="g/nahodka/files/"; $dir_count="g/nahodka/banners/"; $city_for_files='Находка'; $city_for_files2='Находки'; $cityphonecode='42366'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 26) {$dir="g/cherepovec/files/"; $dir_count="g/cherepovec/banners/"; $city_for_files='Череповец'; $city_for_files2='Череповца'; $cityphonecode='8202'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 27) {$dir="g/belgorod/files/"; $dir_count="g/belgorod/banners/"; $city_for_files='Белгород'; $city_for_files2='Белгорода'; $cityphonecode='4722'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 28) {$dir="g/briansk/files/"; $dir_count="g/briansk/banners/"; $city_for_files='Брянск'; $city_for_files2='Брянска'; $cityphonecode='4832'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 29) {$dir="g/vladimir/files/"; $dir_count="g/vladimir/banners/"; $city_for_files='Владимир'; $city_for_files2='Владимира'; $cityphonecode='4922'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 30) {$dir="g/volgograd/files/"; $dir_count="g/volgograd/banners/"; $city_for_files='Волгоград'; $city_for_files2='Волгограда'; $cityphonecode='8442'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 31) {$dir="g/vologda/files/"; $dir_count="g/vologda/banners/"; $city_for_files='Вологда'; $city_for_files2='Вологды'; $cityphonecode='8172'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 32) {$dir="g/voronej/files/"; $dir_count="g/voronej/banners/"; $city_for_files='Воронеж'; $city_for_files2='Воронежа'; $cityphonecode='4732'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 33) {$dir="g/ivanovo/files/"; $dir_count="g/ivanovo/banners/"; $city_for_files='Иваново'; $city_for_files2='Иваново'; $cityphonecode='4932'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 34) {$dir="g/kaluga/files/"; $dir_count="g/kaluga/banners/"; $city_for_files='Калуга'; $city_for_files2='Калуги'; $cityphonecode='48422'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 35) {$dir="g/kirov/files/"; $dir_count="g/kirov/banners/"; $city_for_files='Киров'; $city_for_files2='Кирова'; $cityphonecode='8332'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 36) {$dir="g/kostroma/files/"; $dir_count="g/kostroma/banners/"; $city_for_files='Кострома'; $city_for_files2='Костромы'; $cityphonecode='4942'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 37) {$dir="g/rostov/files/"; $dir_count="g/rostov/banners/"; $city_for_files='Ростов-на-Дону'; $city_for_files2='Ростова-на-Дону'; $cityphonecode='8632'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 38) {$dir="g/klaipeda/files/"; $dir_count="g/klaipida/banners/"; $city_for_files='Клайпеда'; $city_for_files2='Клайпеды'; $cityphonecode='46'; $countryphonecode='Литвы - 370';}
elseif ($_GET[g] == 39) {$dir="g/varshava/files/"; $dir_count="g/varshava/banners/"; $city_for_files='Варшава (Warszawa)'; $city_for_files2='Варшавы'; $cityphonecode='22'; $countryphonecode='Польши - 48';}
elseif ($_GET[g] == 40) {$dir="g/usoliesib/files/"; $dir_count="g/usoliesib/banners/"; $city_for_files='Усолье-Сибирское'; $city_for_files2='Усолья-Сибирского'; $cityphonecode='39543'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 41) {$dir="g/GERMANY/hannover/files/"; $dir_count="g/GERMANY/hannover/banners/"; $city_for_files='Ганновер'; $city_for_files2='Ганновера'; $cityphonecode=''; $countryphonecode='Германии -';}
elseif ($_GET[g] == 42) {$dir="g/habarovsk/files/"; $dir_count="g/habarovsk/banners/"; $city_for_files='Хабаровск'; $city_for_files2='Хабаровска'; $cityphonecode='4212'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 43) {$dir="g/lipeck/files/"; $dir_count="g/lipeck/banners/"; $city_for_files='Липецк'; $city_for_files2='Липецка'; $cityphonecode='4742'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 44) {$dir="g/yaroslavl/files/"; $dir_count="g/yaroslavl/banners/"; $city_for_files='Ярославль'; $city_for_files2='Ярославля'; $cityphonecode='4852'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 45) {$dir="g/riazan/files/"; $dir_count="g/riazan/banners/"; $city_for_files='Рязань'; $city_for_files2='Рязани'; $cityphonecode='4912'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 46) {$dir="g/ufa/files/"; $dir_count="g/ufa/banners/"; $city_for_files='Уфа'; $city_for_files2='Уфы'; $cityphonecode='347'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 47) {$dir="g/ekaterinburg/files/"; $dir_count="g/ekaterinburg/banners/"; $city_for_files='Екатеринбург'; $city_for_files2='Екатеринбурга'; $cityphonecode='343'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 48) {$dir="g/POLAND/poznan/files/"; $dir_count="g/POLAND/poznan/banners/"; $city_for_files='Познань'; $city_for_files2='Познани'; $cityphonecode='61'; $countryphonecode='Польши - 48';}
elseif ($_GET[g] == 49) {$dir="g/pereslavlzalesskii/files/"; $dir_count="g/pereslavlzalesskii/banners/"; $city_for_files='Переславль-Залесский'; $city_for_files2='Переславля-Залесского'; $cityphonecode='48535'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 50) {$dir="g/ulanude/files/"; $dir_count="g/ulanude/banners/"; $city_for_files='Улан-Удэ'; $city_for_files2='Улан-Удэ'; $cityphonecode='30122'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 51) {$dir="g/stavropol/files/"; $dir_count="g/stavropol/banners/"; $city_for_files='Ставрополь'; $city_for_files2='Ставрополя'; $cityphonecode='8652'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 52) {$dir="g/velikieluki/files/"; $dir_count="g/velikieluki/banners/"; $city_for_files='Великие Луки'; $city_for_files2='города Великие Луки'; $cityphonecode='81153'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 54) {$dir="g/harkov/files/"; $dir_count="g/harkov/banners/"; $city_for_files='Харьков'; $city_for_files2='Харькова'; $cityphonecode='057'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 55) {$dir="g/tula/files/"; $dir_count="g/tula/banners/"; $city_for_files='Тула'; $city_for_files2='Тулы'; $cityphonecode='4872'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 56) {$dir="g/orel/files/"; $dir_count="g/orel/banners/"; $city_for_files='Орел'; $city_for_files2='Орла'; $cityphonecode='4862'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 57) {$dir="g/gomel/files/"; $dir_count="g/gomel/banners/"; $city_for_files='Гомель'; $city_for_files2='Гомеля'; $cityphonecode='232'; $countryphonecode='Белоруссии - 375';}
elseif ($_GET[g] == 58) {$dir="g/vorkuta/files/"; $dir_count="g/vorkuta/banners/"; $city_for_files='Воркута'; $city_for_files2='Воркуты'; $cityphonecode='82151'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 59) {$dir="g/dnepropetrovsk/files/"; $dir_count="g/dnepropetrovsk/banners/"; $city_for_files='Днепропетровск'; $city_for_files2='Днепропетровск'; $cityphonecode='056'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 60) {$dir="g/dusseldorf/files/"; $dir_count="g/dusseldorf/banners/"; $city_for_files='Дюссельдорф'; $city_for_files2='Дюссельдорфа'; $cityphonecode='211'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 61) {$dir="g/bonn/files/"; $dir_count="g/bonn/banners/"; $city_for_files='Бонн'; $city_for_files2='Бонна'; $cityphonecode='228'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 62) {$dir="g/gamburg/files/"; $dir_count="g/gamburg/banners/"; $city_for_files='Гамбург'; $city_for_files2='Гамбурга'; $cityphonecode='40'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 63) {$dir="g/zaporozhie/files/"; $dir_count="g/zaporozhie/banners/"; $city_for_files='Запорожье'; $city_for_files2='Запорожья'; $cityphonecode='61'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 64) {$dir="g/voskresensk/files/"; $dir_count="g/voskresensk/banners/"; $city_for_files='Воскресенск'; $city_for_files2='Воскресенска'; $cityphonecode='496'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 65) {$dir="g/nijnitagil/files/"; $dir_count="g/nijnitagil/banners/"; $city_for_files='Нижний Тагил'; $city_for_files2='Нижнего Тагила'; $cityphonecode='3435'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 66) {$dir="g/samara/files/"; $dir_count="g/samara/banners/"; $city_for_files='Самара'; $city_for_files2='Самары'; $cityphonecode='846'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 67) {$dir="g/taganrog/files/"; $dir_count="g/taganrog/banners/"; $city_for_files='Таганрог'; $city_for_files2='Таганрога'; $cityphonecode='8634'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 68) {$dir="g/nurnberg/files/"; $dir_count="g/nurnberg/banners/"; $city_for_files='Нюрнберг'; $city_for_files2='Нюрнберга'; $cityphonecode='911'; $countryphonecode='Германии - 49';}
elseif ($_GET[g] == 69) {$dir="g/mariuopol/files/"; $dir_count="g/mariuopol/banners/"; $city_for_files='Мариуополь'; $city_for_files2='Мариуополя'; $cityphonecode='629'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 70) {$dir="g/uzhnouralsk/files/"; $dir_count="g/uzhnouralsk/banners/"; $city_for_files='Южноуральск'; $city_for_files2='Южноуральска'; $cityphonecode='35134'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 73) {$dir="g/almati/files/"; $dir_count="g/almati/banners/"; $city_for_files='Алматы'; $city_for_files2='Алматы'; $cityphonecode='3272'; $countryphonecode='Казахстана - 7';}
elseif ($_GET[g] == 74) {$dir="g/saratov/files/"; $dir_count="g/saratov/banners/"; $city_for_files='Саратов'; $city_for_files2='Саратова'; $cityphonecode='8452'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 75) {$dir="g/kirovgrad/files/"; $dir_count="g/kirovgrad/banners/"; $city_for_files='Кировград'; $city_for_files2='Кировграда'; $cityphonecode='34357'; $countryphonecode='Украины - 380';}
elseif ($_GET[g] == 76) {$dir="g/orenburg/files/"; $dir_count="g/orenburg/banners/"; $city_for_files='Оренбург'; $city_for_files2='Оренбурга'; $cityphonecode='3532'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 77) {$dir="g/ulianovsk/files/"; $dir_count="g/ulianovsk/banners/"; $city_for_files='Ульяновск'; $city_for_files2='Ульяновска'; $cityphonecode='8422'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 78) {$dir="g/stupino/files/"; $dir_count="g/stupino/banners/"; $city_for_files='Ступино'; $city_for_files2='Ступино'; $cityphonecode='264'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 79) {$dir="g/abakan/files/"; $dir_count="g/abakan/banners/"; $city_for_files='Абакан'; $city_for_files2='Абакана'; $cityphonecode='39022'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 80) {$dir="g/ozersk/files/"; $dir_count="g/ozersk/banners/"; $city_for_files='Озерск'; $city_for_files2='Озерска'; $cityphonecode='35130'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 71) {$dir="g/tbilisi/files/"; $dir_count="g/tbilisi/banners/"; $city_for_files='Тбилиси'; $city_for_files2='Тбилиси'; $cityphonecode='32'; $countryphonecode='Грузии - 7';}
elseif ($_GET[g] == 72) {$dir="g/vilnus/files/"; $dir_count="g/vilnus/banners/"; $city_for_files='Вильнюс'; $city_for_files2='Вильнюса'; $cityphonecode='5'; $countryphonecode='Литвы - 370';}
elseif ($_GET[g] == 81) {$dir="g/kungur/files/"; $dir_count="g/kungur/banners/"; $city_for_files='Кунгур'; $city_for_files2='Кунгура'; $cityphonecode='34271'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 82) {$dir="g/sochi/files/"; $dir_count="g/sochi/banners/"; $city_for_files='Сочи'; $city_for_files2='Сочи'; $cityphonecode='8622'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 83) {$dir="g/magadan/files/"; $dir_count="g/magadan/banners/"; $city_for_files='Магадан'; $city_for_files2='Магадана'; $cityphonecode='4132'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 84) {$dir="g/gai/files/"; $dir_count="g/gai/banners/"; $city_for_files='Гай'; $city_for_files2='Гай'; $cityphonecode='35362'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 85) {$dir="g/kasimov/files/"; $dir_count="g/kasimov/banners/"; $city_for_files='Касимов'; $city_for_files2='Касимова'; $cityphonecode='49131'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 86) {$dir="g/berdsk/files/"; $dir_count="g/berdsk/banners/"; $city_for_files='Бердск'; $city_for_files2='Бердска'; $cityphonecode='38341'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 87) {$dir="g/armavir/files/"; $dir_count="g/armavir/banners/"; $city_for_files='Армавир'; $city_for_files2='Армавира'; $cityphonecode='86137'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 88) {$dir="g/staroskol/files/"; $dir_count="g/staroskol/banners/"; $city_for_files='Старый Оскол'; $city_for_files2='Старый Оскол'; $cityphonecode='4725'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 89) {$dir="g/salavat/files/"; $dir_count="g/salavat/banners/"; $city_for_files='Салават'; $city_for_files2='Салавата'; $cityphonecode='34763'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 90) {$dir="g/mendeleevsk/files/"; $dir_count="g/mendeleevsk/banners/"; $city_for_files='Менделеевск'; $city_for_files2='Менделеевска'; $cityphonecode='85549'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 91) {$dir="g/omsk/files/"; $dir_count="g/omsk/banners/"; $city_for_files='Омск'; $city_for_files2='Омска'; $cityphonecode='3812'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 92) {$dir="g/velikii novgorod/files/"; $dir_count="g/velikii novgorod/banners/"; $city_for_files='Великий Новгород'; $city_for_files2='Великого Новгорода'; $cityphonecode='8162'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 93) {$dir="g/astana/files/"; $dir_count="g/astana/banners/"; $city_for_files='Астана'; $city_for_files2='Астаны'; $cityphonecode='3172'; $countryphonecode='Казахстана - 7';}
elseif ($_GET[g] == 94) {$dir="g/yakutsk/files/"; $dir_count="g/yakutsk/banners/"; $city_for_files='Якутск'; $city_for_files2='Якутска'; $cityphonecode='4112'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 95) {$dir="g/kazan/files/"; $dir_count="g/kazan/banners/"; $city_for_files='Казань'; $city_for_files2='Казани'; $cityphonecode='843'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 96) {$dir="g/iokshar/files/"; $dir_count="g/iokshar/banners/"; $city_for_files='Йошкар-Ола'; $city_for_files2='Йошкар-Ола'; $cityphonecode='8362'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 97) {$dir="g/bogota/files/"; $dir_count="g/bogota/banners/"; $city_for_files='Богота'; $city_for_files2='Богота'; $cityphonecode='1'; $countryphonecode='Колумбии - 57';}
elseif ($_GET[g] == 98) {$dir="g/zlatoust/files/"; $dir_count="g/zlatoust/banners/"; $city_for_files='Златоуст'; $city_for_files2='Златоуста'; $cityphonecode='1'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 99) {$dir="g/kishtim/files/"; $dir_count="g/kishtim/banners/"; $city_for_files='Кыштым'; $city_for_files2='Кыштыма'; $cityphonecode='35151'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 100) {$dir="g/perm/files/"; $dir_count="g/perm/banners/"; $city_for_files='Пермь'; $city_for_files2='Перми'; $cityphonecode='342'; $countryphonecode='России - 7';}
elseif ($_GET[g] == 101) {$dir="g/chelyabinsk/files/"; $dir_count="g/chelyabinsk/banners/"; $city_for_files='Челябинск'; $city_for_files2='Челябинска'; $cityphonecode='342'; $countryphonecode='России - 7';}

это надо прочувствовать, поэтому вставляю полностью

guest guest, (Updated )

Комментарии (19, +19)