Completed
Branch master (1b1905)
by Mert S.
03:34 queued 01:32
created
functions.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@  discard block
 block discarded – undo
16 16
 		return strtolower($str);
17 17
 	}
18 18
 	
19
+	/**
20
+	 * @param string $gelen
21
+	 */
19 22
 	function ucwords_tr($gelen){
20 23
 	 
21 24
 		$sonuc = '';
@@ -53,6 +56,9 @@  discard block
 block discarded – undo
53 56
 		return $son;
54 57
 	}
55 58
 	
59
+	/**
60
+	 * @param string $gelen
61
+	 */
56 62
 	function kucuk_yap($gelen){
57 63
 	 
58 64
 		$gelen=str_replace('Ç', 'ç', $gelen);
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 	function find($first, $latest, $text) {
4
-		@preg_match_all("/" . preg_quote($first, "/") .
5
-		"(.*?)". preg_quote($latest, "/")."/i", $text, $m);
4
+		@preg_match_all("/".preg_quote($first, "/").
5
+		"(.*?)".preg_quote($latest, "/")."/i", $text, $m);
6 6
 		return @$m[1];
7 7
 	}
8 8
 	
@@ -12,70 +12,70 @@  discard block
 block discarded – undo
12 12
 	}
13 13
 	
14 14
 	function strtolowerTR($str) {
15
-		$str = str_replace(array('i', 'ı', 'ü', 'ğ', 'ş', 'ö', 'ç', 'I', 'İ', 'Ü', 'Ğ', 'Ş', 'Ö', 'Ç'), array('i', 'ı', 'ü', 'ğ', 'ş', 'ö', 'ç', 'ı', 'i','ü', 'ğ', 'ş', 'ö', 'ç'), $str);
15
+		$str = str_replace(array('i', 'ı', 'ü', 'ğ', 'ş', 'ö', 'ç', 'I', 'İ', 'Ü', 'Ğ', 'Ş', 'Ö', 'Ç'), array('i', 'ı', 'ü', 'ğ', 'ş', 'ö', 'ç', 'ı', 'i', 'ü', 'ğ', 'ş', 'ö', 'ç'), $str);
16 16
 		return strtolower($str);
17 17
 	}
18 18
 	
19
-	function ucwords_tr($gelen){
19
+	function ucwords_tr($gelen) {
20 20
 	 
21 21
 		$sonuc = '';
22 22
 		$kelimeler = explode(" ", $gelen);
23 23
 
24
-		foreach ($kelimeler as $kelime_duz){
24
+		foreach ($kelimeler as $kelime_duz) {
25 25
 
26 26
 			$kelime_uzunluk = strlen($kelime_duz);
27
-			$ilk_karakter = mb_substr($kelime_duz,0,1,'UTF-8');
27
+			$ilk_karakter = mb_substr($kelime_duz, 0, 1, 'UTF-8');
28 28
 
29
-			if($ilk_karakter == 'Ç' or $ilk_karakter=='ç'){
29
+			if ($ilk_karakter == 'Ç' or $ilk_karakter == 'ç') {
30 30
 				$ilk_karakter = 'Ç';
31
-			}elseif ($ilk_karakter=='Ğ' or $ilk_karakter=='ğ') {
32
-				$ilk_karakter='Ğ';
33
-			}elseif($ilk_karakter=='I' or $ilk_karakter=='ı'){
34
-				$ilk_karakter='I';
35
-			}elseif ($ilk_karakter=='İ' or $ilk_karakter=='i'){
36
-				$ilk_karakter='İ';
37
-			}elseif ($ilk_karakter=='Ö' or $ilk_karakter=='ö'){
38
-				$ilk_karakter='Ö';
39
-			}elseif ($ilk_karakter=='Ş' or $ilk_karakter=='ş'){
40
-				$ilk_karakter='Ş';
41
-			}elseif ($ilk_karakter=='Ü' or $ilk_karakter=='ü'){
42
-				$ilk_karakter='Ü';
43
-			}else{
44
-				$ilk_karakter=strtoupper($ilk_karakter);
31
+			}elseif ($ilk_karakter == 'Ğ' or $ilk_karakter == 'ğ') {
32
+				$ilk_karakter = 'Ğ';
33
+			}elseif ($ilk_karakter == 'I' or $ilk_karakter == 'ı') {
34
+				$ilk_karakter = 'I';
35
+			}elseif ($ilk_karakter == 'İ' or $ilk_karakter == 'i') {
36
+				$ilk_karakter = 'İ';
37
+			}elseif ($ilk_karakter == 'Ö' or $ilk_karakter == 'ö') {
38
+				$ilk_karakter = 'Ö';
39
+			}elseif ($ilk_karakter == 'Ş' or $ilk_karakter == 'ş') {
40
+				$ilk_karakter = 'Ş';
41
+			}elseif ($ilk_karakter == 'Ü' or $ilk_karakter == 'ü') {
42
+				$ilk_karakter = 'Ü';
43
+			}else {
44
+				$ilk_karakter = strtoupper($ilk_karakter);
45 45
 			}
46 46
 
47
-			$digerleri=mb_substr($kelime_duz,1,$kelime_uzunluk,'UTF-8');
48
-			$sonuc.=$ilk_karakter.kucuk_yap($digerleri).' ';
47
+			$digerleri = mb_substr($kelime_duz, 1, $kelime_uzunluk, 'UTF-8');
48
+			$sonuc .= $ilk_karakter.kucuk_yap($digerleri).' ';
49 49
 
50 50
 		}
51 51
 
52
-		$son=trim(str_replace('  ', ' ', $sonuc));
52
+		$son = trim(str_replace('  ', ' ', $sonuc));
53 53
 		return $son;
54 54
 	}
55 55
 	
56
-	function kucuk_yap($gelen){
56
+	function kucuk_yap($gelen) {
57 57
 	 
58
-		$gelen=str_replace('Ç', 'ç', $gelen);
59
-		$gelen=str_replace('Ğ', 'ğ', $gelen);
60
-		$gelen=str_replace('I', 'ı', $gelen);
61
-		$gelen=str_replace('İ', 'i', $gelen);
62
-		$gelen=str_replace('Ö', 'ö', $gelen);
63
-		$gelen=str_replace('Ş', 'ş', $gelen);
64
-		$gelen=str_replace('Ü', 'ü', $gelen);
65
-		$gelen=strtolower($gelen);
58
+		$gelen = str_replace('Ç', 'ç', $gelen);
59
+		$gelen = str_replace('Ğ', 'ğ', $gelen);
60
+		$gelen = str_replace('I', 'ı', $gelen);
61
+		$gelen = str_replace('İ', 'i', $gelen);
62
+		$gelen = str_replace('Ö', 'ö', $gelen);
63
+		$gelen = str_replace('Ş', 'ş', $gelen);
64
+		$gelen = str_replace('Ü', 'ü', $gelen);
65
+		$gelen = strtolower($gelen);
66 66
 
67 67
 		return $gelen;
68 68
 	}
69 69
 	
70
-	function hashtag($MultiWord){
70
+	function hashtag($MultiWord) {
71 71
 		$MultiWord = strpos($MultiWord, " ");
72 72
 		
73
-		if	($MultiWord === false)	{$hashtag = "#";}
74
-		else						{$hashtag = "";}
73
+		if ($MultiWord === false) {$hashtag = "#"; }
74
+		else {$hashtag = ""; }
75 75
 		return $hashtag;
76 76
 	}
77 77
 	
78
-	function editLocal($localeEx, $fileop, $fileopUp){
78
+	function editLocal($localeEx, $fileop, $fileopUp) {
79 79
 		for ($y = 0; isset($fileop[$y]); $y++) {
80 80
 			if ($localeEx == $fileopUp[$y]) {
81 81
 				$localeTR = ucwords_tr(strtolowerTR($fileop[$y]));
Please login to merge, or discard this patch.
Braces   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,19 +28,19 @@  discard block
 block discarded – undo
28 28
 
29 29
 			if($ilk_karakter == 'Ç' or $ilk_karakter=='ç'){
30 30
 				$ilk_karakter = 'Ç';
31
-			}elseif ($ilk_karakter=='Ğ' or $ilk_karakter=='ğ') {
31
+			} elseif ($ilk_karakter=='Ğ' or $ilk_karakter=='ğ') {
32 32
 				$ilk_karakter='Ğ';
33
-			}elseif($ilk_karakter=='I' or $ilk_karakter=='ı'){
33
+			} elseif($ilk_karakter=='I' or $ilk_karakter=='ı'){
34 34
 				$ilk_karakter='I';
35
-			}elseif ($ilk_karakter=='İ' or $ilk_karakter=='i'){
35
+			} elseif ($ilk_karakter=='İ' or $ilk_karakter=='i'){
36 36
 				$ilk_karakter='İ';
37
-			}elseif ($ilk_karakter=='Ö' or $ilk_karakter=='ö'){
37
+			} elseif ($ilk_karakter=='Ö' or $ilk_karakter=='ö'){
38 38
 				$ilk_karakter='Ö';
39
-			}elseif ($ilk_karakter=='Ş' or $ilk_karakter=='ş'){
39
+			} elseif ($ilk_karakter=='Ş' or $ilk_karakter=='ş'){
40 40
 				$ilk_karakter='Ş';
41
-			}elseif ($ilk_karakter=='Ü' or $ilk_karakter=='ü'){
41
+			} elseif ($ilk_karakter=='Ü' or $ilk_karakter=='ü'){
42 42
 				$ilk_karakter='Ü';
43
-			}else{
43
+			} else{
44 44
 				$ilk_karakter=strtoupper($ilk_karakter);
45 45
 			}
46 46
 
@@ -70,8 +70,7 @@  discard block
 block discarded – undo
70 70
 	function hashtag($MultiWord){
71 71
 		$MultiWord = strpos($MultiWord, " ");
72 72
 		
73
-		if	($MultiWord === false)	{$hashtag = "#";}
74
-		else						{$hashtag = "";}
73
+		if	($MultiWord === false)	{$hashtag = "#";} else						{$hashtag = "";}
75 74
 		return $hashtag;
76 75
 	}
77 76
 	
Please login to merge, or discard this patch.
rss.php 2 patches
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 				<atom:link href=\"http://deprem.mertskaplan.com/rss\" rel=\"self\" type=\"application/rss+xml\" />
29 29
 				<link>http://deprem.mertskaplan.com</link>
30 30
 				<description>Haberciler ve geliştiriciler için son depremlerin bilgilerini veren özelleştirilebilir RSS yayını.</description>
31
-				<lastBuildDate>". date("D, d M Y H:i:s") ." +0200</lastBuildDate>
31
+				<lastBuildDate>". date("D, d M Y H:i:s")." +0200</lastBuildDate>
32 32
 				<language>tr-TR</language>
33 33
 				<webMaster>[email protected] (Mert Salih Kaplan)</webMaster>
34 34
 				<sy:updatePeriod>hourly</sy:updatePeriod>
@@ -44,75 +44,75 @@  discard block
 block discarded – undo
44 44
 				</image>			
45 45
 	";
46 46
 
47
-	$days = array("Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar");
48
-	$months = array("Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık");
47
+	$days = array("Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar");
48
+	$months = array("Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık");
49 49
 	
50 50
 	$month = $months[date('m') - 1];
51 51
 	$day = $days[date('N') - 1];
52 52
 	
53
-	if	(isset($_GET["mag"]))	{$magOp = str_replace(',', '.', $_GET["mag"]);}
54
-	else						{$magOp = 0;}
53
+	if (isset($_GET["mag"])) {$magOp = str_replace(',', '.', $_GET["mag"]); }
54
+	else {$magOp = 0; }
55 55
 
56
-	for ($x=0; $x <= 140; $x = $x+2) {
56
+	for ($x = 0; $x <= 140; $x = $x + 2) {
57 57
 		
58 58
 		$magDot = str_replace(',', '.', $mag[$x]); 
59 59
 			
60
-		if		(isset($_GET["local"]) && $_GET["local"] == 1) {			
61
-			if	(
62
-					strstr($local[$x],"AKDENIZ") ||
63
-					strstr($local[$x],"AKDENİZ") ||
64
-					strstr($local[$x],"KARADENIZ") ||
65
-					strstr($local[$x],"EGE DENIZI") ||
66
-					strstr($local[$x],"DOGU AKDENIZ") ||
67
-					strstr($local[$x],"ACIKLARI") ||
68
-					strstr($local[$x],"YUNANISTAN") ||
69
-					strstr($local[$x],"GURCISTAN") ||
70
-					strstr($local[$x],"GIRIT ADASI (AKDENIZ)") ||
71
-					strstr($local[$x],"KIBRIS") ||
72
-					strstr($local[$x],"CYPRUS") ||
73
-					strstr($local[$x],"GREECE") ||
74
-					strstr($local[$x],"BULGARISTAN") ||
75
-					strstr($local[$x],"IRAN") ||
76
-					strstr($local[$x],"AEGEAN SEA")
60
+		if (isset($_GET["local"]) && $_GET["local"] == 1) {			
61
+			if (
62
+					strstr($local[$x], "AKDENIZ") ||
63
+					strstr($local[$x], "AKDENİZ") ||
64
+					strstr($local[$x], "KARADENIZ") ||
65
+					strstr($local[$x], "EGE DENIZI") ||
66
+					strstr($local[$x], "DOGU AKDENIZ") ||
67
+					strstr($local[$x], "ACIKLARI") ||
68
+					strstr($local[$x], "YUNANISTAN") ||
69
+					strstr($local[$x], "GURCISTAN") ||
70
+					strstr($local[$x], "GIRIT ADASI (AKDENIZ)") ||
71
+					strstr($local[$x], "KIBRIS") ||
72
+					strstr($local[$x], "CYPRUS") ||
73
+					strstr($local[$x], "GREECE") ||
74
+					strstr($local[$x], "BULGARISTAN") ||
75
+					strstr($local[$x], "IRAN") ||
76
+					strstr($local[$x], "AEGEAN SEA")
77 77
 				 )
78
-				 {$localFilter = 1;}
79
-			else {$localFilter = 0;}
78
+				 {$localFilter = 1; }
79
+			else {$localFilter = 0; }
80 80
 		}
81
-		else	{$localFilter = 0;}
81
+		else {$localFilter = 0; }
82 82
 
83
-		if	($magDot >= $magOp && $localFilter == 0) {
84
-			$editDate = str_replace("/","-",$date[$x]);
83
+		if ($magDot >= $magOp && $localFilter == 0) {
84
+			$editDate = str_replace("/", "-", $date[$x]);
85 85
 			$dateFormat = date("D, d M Y", strtotime($editDate));
86 86
 			setlocale(LC_TIME, 'tr_TR');
87 87
 			$datePrint = date("%e %B %Y, %A", strtotime($editDate));
88 88
 			
89
-			if		($_GET["map"] == "g") {
89
+			if ($_GET["map"] == "g") {
90 90
 				$link = "https://www.google.com/maps/@$lat[$x],$lon[$x],12z";
91 91
 			}
92
-			elseif	($_GET["map"] == "y") {
92
+			elseif ($_GET["map"] == "y") {
93 93
 				$link = "https://harita.yandex.com.tr/?text=$lat[$x]%2C$lon[$x]";
94 94
 			}
95
-			elseif	($_GET["map"] == "o") {
95
+			elseif ($_GET["map"] == "o") {
96 96
 				$link = "http://www.openstreetmap.org/#map=12/$lat[$x]/$lon[$x]";
97 97
 			}
98
-			elseif	($_GET["map"] == "b") {
98
+			elseif ($_GET["map"] == "b") {
99 99
 				$link = "http://www.bing.com/maps/?cp=$lat[$x]~$lon[$x]&amp;lvl=14&amp;sty=h";
100 100
 			}
101
-			elseif	($_GET["map"] == "w") {
101
+			elseif ($_GET["map"] == "w") {
102 102
 				$link = "http://wikimapia.org/#lang=tr&amp;lat=$lat[$x]&amp;lon=$lon[$x]&amp;z=12";
103 103
 			}
104
-			elseif	($_GET["map"] == "h") {
104
+			elseif ($_GET["map"] == "h") {
105 105
 				$link = "https://www.here.com/?map=$lat[$x],$lon[$x],12";
106 106
 			}
107
-			elseif	($_GET["map"] == "z") {
107
+			elseif ($_GET["map"] == "z") {
108 108
 				$link = "https://www.waze.com/livemap/?zoom=12&lat=$lat[$x]&lon=$lon[$x]";
109 109
 			}
110
-			else	{
110
+			else {
111 111
 				$link = "http://www.openstreetmap.org/#map=12/$lat[$x]/$lon[$x]";
112 112
 			}
113 113
 			
114
-			if ($_GET["flash"] == 1 && $mag[$x] >= 5)	{$flash = "⚡ ";}
115
-			else {$flash = "";}
114
+			if ($_GET["flash"] == 1 && $mag[$x] >= 5) {$flash = "⚡ "; }
115
+			else {$flash = ""; }
116 116
 			
117 117
 			if (strpos($local[$x], "*")) {
118 118
 				$localeSTR = strstr($local[$x], '*', true);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 				$localeSTR = $local[$x];
125 125
 			}
126 126
 			
127
-			$localeRp = str_replace("-",", ",str_replace(")","",str_replace("-(",", ",str_replace(" (",", ",str_replace("- (",", ",$localeSTR)))));
127
+			$localeRp = str_replace("-", ", ", str_replace(")", "", str_replace("-(", ", ", str_replace(" (", ", ", str_replace("- (", ", ", $localeSTR)))));
128 128
 			$localeEx = explode(", ", $localeRp);
129 129
 			
130 130
 			$fileop = file("local.txt", FILE_IGNORE_NEW_LINES);
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
 			if (!isset($localeTR1[$x])) {
140 140
 				$localeTR1[$x] = ucwords(strtolower($localeEx[0]));
141 141
 				
142
-				if (!in_array($localeEx[0],$fileInconsistent)) {
143
-					$open = fopen("inconsistent.txt","a");
142
+				if (!in_array($localeEx[0], $fileInconsistent)) {
143
+					$open = fopen("inconsistent.txt", "a");
144 144
 					$write = "$localeEx[0]\n";
145 145
 					fwrite($open, $write);
146 146
 					fclose($open);
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 			if (!isset($localeTR2[$x])) {
151 151
 				$localeTR2[$x] = ucwords(strtolower($localeEx[1]));
152 152
 				
153
-				if (!in_array($localeEx[1],$fileInconsistent)) {
154
-					$open = fopen("inconsistent.txt","a");
153
+				if (!in_array($localeEx[1], $fileInconsistent)) {
154
+					$open = fopen("inconsistent.txt", "a");
155 155
 					$write = "$localeEx[1]\n";
156 156
 					fwrite($open, $write);
157 157
 					fclose($open);
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
 			if (!isset($localeTR3[$x])) {
162 162
 				$localeTR3[$x] = ucwords(strtolower($localeEx[2]));
163 163
 				
164
-				if (!in_array($localeEx[2],$fileInconsistent)) {
165
-					$open = fopen("inconsistent.txt","a");
164
+				if (!in_array($localeEx[2], $fileInconsistent)) {
165
+					$open = fopen("inconsistent.txt", "a");
166 166
 					$write = "$localeEx[2]\n";
167 167
 					fwrite($open, $write);
168 168
 					fclose($open);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 					$hashtag2 = hashtag($localeTR2[$x]);
182 182
 				}
183 183
 			}
184
-			else {$separator1 = ""; $hashtag2 = "";}
184
+			else {$separator1 = ""; $hashtag2 = ""; }
185 185
 			
186 186
 			if (isset($localeEx[2])) {
187 187
 				$separator2 = ", ";
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 					$hashtag3 = hashtag($localeTR3[$x]);
190 190
 				}
191 191
 			}
192
-			else {$separator2 = ""; $hashtag3 = "";}
192
+			else {$separator2 = ""; $hashtag3 = ""; }
193 193
 			
194 194
 			echo "
195 195
 					<item>
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 				}
206 206
 				else {
207 207
 					echo "
208
-						<description><![CDATA[<div><img width=\"640\" height=\"320\" src=\"http://deprem.mertskaplan.com/img.php?url=https%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D$lat[$x]%2C$lon[$x]%26zoom%3D8%26size%3D640x320%26format%3Djpg%26maptype%3Droadmap%26markers%3Dcolor%3Ared%7C$lat[$x]%2C$lon[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR2[$x]%2C$localeTR3[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR3[$x]%26key%3DAIzaSyDVBikwIvQQTFzyjdEWGT-zKu-smi6I1oc\" alt=\"Deprem Bilgi Sistemi\" /></div>$flash". date('j ') . $month . date(' Y ') . $day ." günü $time[$x] sularında merkez üssü $hashtag1$localeTR1[$x]$separator1$hashtag2$localeTR2[$x]$separator2$hashtag3$localeTR3[$x] olan $mag[$x] büyüklüğünde deprem meydana geldi.]]></description>
208
+						<description><![CDATA[<div><img width=\"640\" height=\"320\" src=\"http://deprem.mertskaplan.com/img.php?url=https%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D$lat[$x]%2C$lon[$x]%26zoom%3D8%26size%3D640x320%26format%3Djpg%26maptype%3Droadmap%26markers%3Dcolor%3Ared%7C$lat[$x]%2C$lon[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR2[$x]%2C$localeTR3[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR3[$x]%26key%3DAIzaSyDVBikwIvQQTFzyjdEWGT-zKu-smi6I1oc\" alt=\"Deprem Bilgi Sistemi\" /></div>$flash".date('j ').$month.date(' Y ').$day." günü $time[$x] sularında merkez üssü $hashtag1$localeTR1[$x]$separator1$hashtag2$localeTR2[$x]$separator2$hashtag3$localeTR3[$x] olan $mag[$x] büyüklüğünde deprem meydana geldi.]]></description>
209 209
 					";
210 210
 				}
211 211
 			echo "
Please login to merge, or discard this patch.
Braces   +16 added lines, -32 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
 	$month = $months[date('m') - 1];
51 51
 	$day = $days[date('N') - 1];
52 52
 	
53
-	if	(isset($_GET["mag"]))	{$magOp = str_replace(',', '.', $_GET["mag"]);}
54
-	else						{$magOp = 0;}
53
+	if	(isset($_GET["mag"]))	{$magOp = str_replace(',', '.', $_GET["mag"]);} else						{$magOp = 0;}
55 54
 
56 55
 	for ($x=0; $x <= 140; $x = $x+2) {
57 56
 		
@@ -75,10 +74,8 @@  discard block
 block discarded – undo
75 74
 					strstr($local[$x],"IRAN") ||
76 75
 					strstr($local[$x],"AEGEAN SEA")
77 76
 				 )
78
-				 {$localFilter = 1;}
79
-			else {$localFilter = 0;}
80
-		}
81
-		else	{$localFilter = 0;}
77
+				 {$localFilter = 1;} else {$localFilter = 0;}
78
+		} else	{$localFilter = 0;}
82 79
 
83 80
 		if	($magDot >= $magOp && $localFilter == 0) {
84 81
 			$editDate = str_replace("/","-",$date[$x]);
@@ -88,39 +85,29 @@  discard block
 block discarded – undo
88 85
 			
89 86
 			if		($_GET["map"] == "g") {
90 87
 				$link = "https://www.google.com/maps/@$lat[$x],$lon[$x],12z";
91
-			}
92
-			elseif	($_GET["map"] == "y") {
88
+			} elseif	($_GET["map"] == "y") {
93 89
 				$link = "https://harita.yandex.com.tr/?text=$lat[$x]%2C$lon[$x]";
94
-			}
95
-			elseif	($_GET["map"] == "o") {
90
+			} elseif	($_GET["map"] == "o") {
96 91
 				$link = "http://www.openstreetmap.org/#map=12/$lat[$x]/$lon[$x]";
97
-			}
98
-			elseif	($_GET["map"] == "b") {
92
+			} elseif	($_GET["map"] == "b") {
99 93
 				$link = "http://www.bing.com/maps/?cp=$lat[$x]~$lon[$x]&amp;lvl=14&amp;sty=h";
100
-			}
101
-			elseif	($_GET["map"] == "w") {
94
+			} elseif	($_GET["map"] == "w") {
102 95
 				$link = "http://wikimapia.org/#lang=tr&amp;lat=$lat[$x]&amp;lon=$lon[$x]&amp;z=12";
103
-			}
104
-			elseif	($_GET["map"] == "h") {
96
+			} elseif	($_GET["map"] == "h") {
105 97
 				$link = "https://www.here.com/?map=$lat[$x],$lon[$x],12";
106
-			}
107
-			elseif	($_GET["map"] == "z") {
98
+			} elseif	($_GET["map"] == "z") {
108 99
 				$link = "https://www.waze.com/livemap/?zoom=12&lat=$lat[$x]&lon=$lon[$x]";
109
-			}
110
-			else	{
100
+			} else	{
111 101
 				$link = "http://www.openstreetmap.org/#map=12/$lat[$x]/$lon[$x]";
112 102
 			}
113 103
 			
114
-			if ($_GET["flash"] == 1 && $mag[$x] >= 5)	{$flash = "⚡ ";}
115
-			else {$flash = "";}
104
+			if ($_GET["flash"] == 1 && $mag[$x] >= 5)	{$flash = "⚡ ";} else {$flash = "";}
116 105
 			
117 106
 			if (strpos($local[$x], "*")) {
118 107
 				$localeSTR = strstr($local[$x], '*', true);
119
-			}
120
-			elseif (strpos($local[$x], "[")) {
108
+			} elseif (strpos($local[$x], "[")) {
121 109
 				$localeSTR = strstr($local[$x], '[', true);
122
-			}
123
-			else {
110
+			} else {
124 111
 				$localeSTR = $local[$x];
125 112
 			}
126 113
 			
@@ -180,16 +167,14 @@  discard block
 block discarded – undo
180 167
 				if ($_GET["hashtag"] == 1) {
181 168
 					$hashtag2 = hashtag($localeTR2[$x]);
182 169
 				}
183
-			}
184
-			else {$separator1 = ""; $hashtag2 = "";}
170
+			} else {$separator1 = ""; $hashtag2 = "";}
185 171
 			
186 172
 			if (isset($localeEx[2])) {
187 173
 				$separator2 = ", ";
188 174
 				if ($_GET["hashtag"] == 1) {
189 175
 					$hashtag3 = hashtag($localeTR3[$x]);
190 176
 				}
191
-			}
192
-			else {$separator2 = ""; $hashtag3 = "";}
177
+			} else {$separator2 = ""; $hashtag3 = "";}
193 178
 			
194 179
 			echo "
195 180
 					<item>
@@ -202,8 +187,7 @@  discard block
 block discarded – undo
202 187
 					echo "
203 188
 						<description><![CDATA[<div><img width=\"640\" height=\"320\" src=\"http://deprem.mertskaplan.com/img.php?url=https%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D$lat[$x]%2C$lon[$x]%26zoom%3D8%26size%3D640x320%26format%3Djpg%26maptype%3Droadmap%26markers%3Dcolor%3Ared%7C$lat[$x]%2C$lon[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR2[$x]%2C$localeTR3[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR3[$x]%26key%3DAIzaSyDVBikwIvQQTFzyjdEWGT-zKu-smi6I1oc\" alt=\"Deprem Bilgi Sistemi\" /></div>$flash$hour sularında merkez üssü $hashtag1$localeTR1[$x]$separator1$hashtag2$localeTR2[$x]$separator2$hashtag3$localeTR3[$x] olan $mag[$x] büyüklüğünde deprem meydana geldi.]]></description>
204 189
 					";
205
-				}
206
-				else {
190
+				} else {
207 191
 					echo "
208 192
 						<description><![CDATA[<div><img width=\"640\" height=\"320\" src=\"http://deprem.mertskaplan.com/img.php?url=https%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D$lat[$x]%2C$lon[$x]%26zoom%3D8%26size%3D640x320%26format%3Djpg%26maptype%3Droadmap%26markers%3Dcolor%3Ared%7C$lat[$x]%2C$lon[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR2[$x]%2C$localeTR3[$x]%26markers%3Dsize%3Amid%7Ccolor%3Ablue%7C$localeTR3[$x]%26key%3DAIzaSyDVBikwIvQQTFzyjdEWGT-zKu-smi6I1oc\" alt=\"Deprem Bilgi Sistemi\" /></div>$flash". date('j ') . $month . date(' Y ') . $day ." günü $time[$x] sularında merkez üssü $hashtag1$localeTR1[$x]$separator1$hashtag2$localeTR2[$x]$separator2$hashtag3$localeTR3[$x] olan $mag[$x] büyüklüğünde deprem meydana geldi.]]></description>
209 193
 					";
Please login to merge, or discard this patch.