@@ -8,10 +8,10 @@ |
||
8 | 8 | <?php $__db_h = new db_helper(); ?> |
9 | 9 | <?php $__time_h = new time_helper(); ?> |
10 | 10 | <?php |
11 | - $__server->page_embeds->page_title = "SubRocks - Replace me"; |
|
12 | - $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
|
13 | - $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png"; |
|
14 | - $__server->page_embeds->page_url = "https://subrock.rocks/"; |
|
11 | + $__server->page_embeds->page_title = "SubRocks - Replace me"; |
|
12 | + $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
|
13 | + $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png"; |
|
14 | + $__server->page_embeds->page_url = "https://subrock.rocks/"; |
|
15 | 15 | ?> |
16 | 16 | <!DOCTYPE html> |
17 | 17 | <html> |
@@ -15,14 +15,14 @@ discard block |
||
15 | 15 | return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars. |
16 | 16 | } |
17 | 17 | |
18 | - if(isset($_POST['layout'])) { |
|
18 | + if (isset($_POST['layout'])) { |
|
19 | 19 | $stmt = $__db->prepare("UPDATE users SET layout = :layout WHERE username = :username"); |
20 | 20 | $stmt->bindParam(":layout", $_POST['layout']); |
21 | 21 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
22 | 22 | $stmt->execute(); |
23 | 23 | } |
24 | 24 | |
25 | - if(isset($_POST['left'])) { |
|
25 | + if (isset($_POST['left'])) { |
|
26 | 26 | $clean = $_POST['left']; |
27 | 27 | $stmt = $__db->prepare("UPDATE users SET 2009_user_left = :clean WHERE username = :username"); |
28 | 28 | $stmt->bindParam(":clean", $clean); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $stmt->execute(); |
31 | 31 | } |
32 | 32 | |
33 | - if(isset($_POST['right'])) { |
|
33 | + if (isset($_POST['right'])) { |
|
34 | 34 | $clean = $_POST['right']; |
35 | 35 | $stmt = $__db->prepare("UPDATE users SET 2009_user_right = :clean WHERE username = :username"); |
36 | 36 | $stmt->bindParam(":clean", $clean); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | |
42 | - if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_GET['n']) { |
|
43 | - if(!empty($_GET["n"]) && $_GET['n'] == "pfp") { |
|
42 | + if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_GET['n']) { |
|
43 | + if (!empty($_GET["n"]) && $_GET['n'] == "pfp") { |
|
44 | 44 | $target_dir = "../dynamic/pfp/"; |
45 | 45 | $imageFileType = strtolower(pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION)); |
46 | 46 | $target_name = md5_file($_FILES["file"]["tmp_name"]) . "." . $imageFileType; |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | $uploadOk = true; |
51 | 51 | $movedFile = false; |
52 | 52 | |
53 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
54 | - && $imageFileType != "gif" ) { |
|
53 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
54 | + && $imageFileType != "gif") { |
|
55 | 55 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
56 | 56 | $uploadOk = false; |
57 | 57 | goto skip; |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | } |
75 | 75 | } |
76 | 76 | } |
77 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['backgroundbgset']) { |
|
78 | - if(!empty($_FILES["backgroundbgset"]["name"])) { |
|
77 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['backgroundbgset']) { |
|
78 | + if (!empty($_FILES["backgroundbgset"]["name"])) { |
|
79 | 79 | $target_dir = "../dynamic/banners/"; |
80 | 80 | $imageFileType = strtolower(pathinfo($_FILES["backgroundbgset"]["name"], PATHINFO_EXTENSION)); |
81 | 81 | $target_name = md5_file($_FILES["backgroundbgset"]["tmp_name"]) . "." . $imageFileType; |
@@ -85,14 +85,14 @@ discard block |
||
85 | 85 | $uploadOk = true; |
86 | 86 | $movedFile = false; |
87 | 87 | |
88 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
89 | - && $imageFileType != "gif" ) { |
|
88 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
89 | + && $imageFileType != "gif") { |
|
90 | 90 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
91 | 91 | $uploadOk = false; |
92 | 92 | goto skip; |
93 | 93 | } |
94 | 94 | |
95 | - if($uploadOk) { |
|
95 | + if ($uploadOk) { |
|
96 | 96 | if (file_exists($target_file)) { |
97 | 97 | $movedFile = true; |
98 | 98 | } else { |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | } |
109 | 109 | } |
110 | 110 | } |
111 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['bannerset']) { |
|
112 | - if(!empty($_FILES["file"]["name"])) { |
|
111 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['bannerset']) { |
|
112 | + if (!empty($_FILES["file"]["name"])) { |
|
113 | 113 | $target_dir = "../dynamic/banners/"; |
114 | 114 | $imageFileType = strtolower(pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION)); |
115 | 115 | $target_name = md5_file($_FILES["file"]["tmp_name"]) . "." . $imageFileType; |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | $uploadOk = true; |
120 | 120 | $movedFile = false; |
121 | 121 | |
122 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
123 | - && $imageFileType != "gif" ) { |
|
122 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
123 | + && $imageFileType != "gif") { |
|
124 | 124 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
125 | 125 | $uploadOk = false; |
126 | 126 | goto skip; |
127 | 127 | } |
128 | 128 | |
129 | - if($uploadOk) { |
|
129 | + if ($uploadOk) { |
|
130 | 130 | if (file_exists($target_file)) { |
131 | 131 | $movedFile = true; |
132 | 132 | } else { |
@@ -142,8 +142,8 @@ discard block |
||
142 | 142 | } |
143 | 143 | } |
144 | 144 | } |
145 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['videopagebanner']) { |
|
146 | - if(!empty($_FILES["videopagebanner"]["name"])) { |
|
145 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['videopagebanner']) { |
|
146 | + if (!empty($_FILES["videopagebanner"]["name"])) { |
|
147 | 147 | $target_dir = "/dynamic/subscribe/"; |
148 | 148 | $imageFileType = strtolower(pathinfo($_FILES["videopagebanner"]["name"], PATHINFO_EXTENSION)); |
149 | 149 | $target_name = md5_file($_FILES["videopagebanner"]["tmp_name"]) . "." . $imageFileType; |
@@ -153,14 +153,14 @@ discard block |
||
153 | 153 | $uploadOk = true; |
154 | 154 | $movedFile = false; |
155 | 155 | |
156 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
157 | - && $imageFileType != "gif" ) { |
|
156 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
157 | + && $imageFileType != "gif") { |
|
158 | 158 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
159 | 159 | $uploadOk = false; |
160 | 160 | goto skip; |
161 | 161 | } |
162 | 162 | |
163 | - if($uploadOk) { |
|
163 | + if ($uploadOk) { |
|
164 | 164 | if (file_exists($target_file)) { |
165 | 165 | $movedFile = true; |
166 | 166 | } else { |
@@ -178,71 +178,71 @@ discard block |
||
178 | 178 | } |
179 | 179 | } |
180 | 180 | |
181 | - if(!empty($_POST['bio'])) { |
|
181 | + if (!empty($_POST['bio'])) { |
|
182 | 182 | $__user_u->update_row($_SESSION['siteusername'], "bio", $_POST['bio']); |
183 | 183 | } |
184 | 184 | |
185 | - if(!empty($_POST['featuredchannels'])) { |
|
185 | + if (!empty($_POST['featuredchannels'])) { |
|
186 | 186 | $__user_u->update_row($_SESSION['siteusername'], "featured_channels", $_POST['featuredchannels']); |
187 | 187 | } |
188 | 188 | |
189 | - if(!empty($_POST['css'])) { |
|
189 | + if (!empty($_POST['css'])) { |
|
190 | 190 | $__user_u->update_row($_SESSION['siteusername'], "css", $_POST['css']); |
191 | 191 | } |
192 | 192 | |
193 | - if(!empty($_POST['videoid'])) { |
|
193 | + if (!empty($_POST['videoid'])) { |
|
194 | 194 | $__user_u->update_row($_SESSION['siteusername'], "featured", $_POST['videoid']); |
195 | 195 | } |
196 | 196 | |
197 | - if(!empty($_POST['solidcolor'])) { |
|
197 | + if (!empty($_POST['solidcolor'])) { |
|
198 | 198 | $__user_u->update_row($_SESSION['siteusername'], "primary_color", $_POST['solidcolor']); |
199 | 199 | } |
200 | 200 | |
201 | - if(!empty($_POST['transparency'])) { |
|
201 | + if (!empty($_POST['transparency'])) { |
|
202 | 202 | $__user_u->update_row($_SESSION['siteusername'], "transparency", $_POST['transparency']); |
203 | 203 | } |
204 | 204 | |
205 | - if(!empty($_POST['genre'])) { |
|
205 | + if (!empty($_POST['genre'])) { |
|
206 | 206 | $__user_u->update_row($_SESSION['siteusername'], "genre", $_POST['genre']); |
207 | 207 | } |
208 | 208 | |
209 | - if(!empty($_POST['bordercolor'])) { |
|
209 | + if (!empty($_POST['bordercolor'])) { |
|
210 | 210 | $__user_u->update_row($_SESSION['siteusername'], "border_color", $_POST['bordercolor']); |
211 | 211 | } |
212 | 212 | |
213 | - if(!empty($_POST['country'])) { |
|
213 | + if (!empty($_POST['country'])) { |
|
214 | 214 | $__user_u->update_row($_SESSION['siteusername'], "country", $_POST['country']); |
215 | 215 | } // duplicate? |
216 | 216 | |
217 | - if(!empty($_POST['header'])) { |
|
217 | + if (!empty($_POST['header'])) { |
|
218 | 218 | $__user_u->update_row($_SESSION['siteusername'], "custom_header", $_POST['header']); |
219 | 219 | } |
220 | 220 | |
221 | - if(!empty($_POST['customtext'])) { |
|
221 | + if (!empty($_POST['customtext'])) { |
|
222 | 222 | $__user_u->update_row($_SESSION['siteusername'], "custom_text", $_POST['customtext']); |
223 | 223 | } |
224 | 224 | |
225 | - if(!empty($_POST['country'])) { |
|
225 | + if (!empty($_POST['country'])) { |
|
226 | 226 | $__user_u->update_row($_SESSION['siteusername'], "custom_text", $_POST['country']); |
227 | 227 | } // duplicate? |
228 | 228 | |
229 | - if(!empty($_POST['website'])) { |
|
229 | + if (!empty($_POST['website'])) { |
|
230 | 230 | $__user_u->update_row($_SESSION['siteusername'], "website", $_POST['website']); |
231 | 231 | } |
232 | 232 | |
233 | - if(!empty($_POST['channelboxcolor'])) { |
|
233 | + if (!empty($_POST['channelboxcolor'])) { |
|
234 | 234 | $__user_u->update_row($_SESSION['siteusername'], "secondary_color", $_POST['channelboxcolor']); |
235 | 235 | } |
236 | 236 | |
237 | - if(!empty($_POST['backgroundcolor'])) { |
|
237 | + if (!empty($_POST['backgroundcolor'])) { |
|
238 | 238 | $__user_u->update_row($_SESSION['siteusername'], "third_color", $_POST['backgroundcolor']); |
239 | 239 | } |
240 | 240 | |
241 | - if(!empty($_POST['textmaincolor'])) { |
|
241 | + if (!empty($_POST['textmaincolor'])) { |
|
242 | 242 | $__user_u->update_row($_SESSION['siteusername'], "primary_color_text", $_POST['textmaincolor']); |
243 | 243 | } |
244 | 244 | |
245 | - if(!empty($_POST['bgoptionset'])) { |
|
245 | + if (!empty($_POST['bgoptionset'])) { |
|
246 | 246 | $bgoption = $_POST['bgoption']; |
247 | 247 | $bgcolor = $_POST['solidcolor']; |
248 | 248 | $default = "default.png"; |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | |
252 | 252 | $__user_u->update_row($_SESSION['siteusername'], "2009_bgcolor", $bgcolor); |
253 | 253 | |
254 | - if($bgoption == "solid") { |
|
254 | + if ($bgoption == "solid") { |
|
255 | 255 | $__user_u->update_row($_SESSION['siteusername'], "2009_bg", $default); |
256 | 256 | } |
257 | 257 | } |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | </script> |
287 | 287 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
288 | 288 | <img src="/dynamic/pfp/<?php echo $_user['pfp']; ?>" style="width:100px;height:100px;"><br> |
289 | - <?php if($_user['pfp'] != "default.png") { ?> |
|
289 | + <?php if ($_user['pfp'] != "default.png") { ?> |
|
290 | 290 | <a href="/get/remove_profile_pic">Remove Profile Picture</a><br> |
291 | 291 | <?php } ?> |
292 | 292 | <br><hr class="thin-line-darker" style="width:unset;"> |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | <input style="width: 169px;position: relative;top: 10px;" type="file" name="videopagebanner" id="avatar-upload"> |
296 | 296 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
297 | 297 | </div><br> |
298 | - <?php if(!empty($_user['subbutton'])) { ?> |
|
298 | + <?php if (!empty($_user['subbutton'])) { ?> |
|
299 | 299 | <a href="/get/remove_watch_banner">Remove Watch Page Banner</a><br> |
300 | 300 | <?php } ?><br><hr class="thin-line-darker" style="width:unset;"> |
301 | 301 | |
@@ -315,17 +315,17 @@ discard block |
||
315 | 315 | |
316 | 316 | <b>Featured Video</b> |
317 | 317 | <div class="customization-module" id="featuredvid" action="/d/channel_update" enctype="multipart/form-data" style="display: inline-block;float:right;position: relative;bottom: 6px;"> |
318 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']);?>" name="videoid"> |
|
318 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']); ?>" name="videoid"> |
|
319 | 319 | </div><br><br><hr class="thin-line-darker" style="width:unset;"> |
320 | 320 | |
321 | 321 | <b>Featured Channels</b> |
322 | 322 | <div class="customization-module" id="featuredvid" action="/d/channel_update" enctype="multipart/form-data" style="display: inline-block;float:right;position: relative;bottom: 6px;"> |
323 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']);?>" name="featuredchannels"> |
|
323 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']); ?>" name="featuredchannels"> |
|
324 | 324 | </div><br><br><hr class="thin-line-darker" style="width:unset;"> |
325 | 325 | |
326 | 326 | <b>Website</b> |
327 | 327 | <div class="customization-module" id="featuredvid" action="/d/channel_update" enctype="multipart/form-data" style="float: right;position: relative;top: -7px;"> |
328 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']);?>" name="website"> |
|
328 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']); ?>" name="website"> |
|
329 | 329 | |
330 | 330 | </div><br><br><hr class="thin-line-darker" style="width:unset;"> |
331 | 331 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | <span style="font-size: 11px;" class="grey-text">This will show what type of channel you are to other users.</span> |
335 | 335 | <div class="customization-module" id="channellayout" action="/d/channel_update" enctype="multipart/form-data" style="float: right;position: relative;top: -19px;"> |
336 | 336 | <select class="yt-uix-button yt-uix-button-default" style="position:relative;top:6px;" name="genre"> |
337 | - <?php foreach($categories as $category) { ?> |
|
337 | + <?php foreach ($categories as $category) { ?> |
|
338 | 338 | <option value="<?php echo $category; ?>"><?php echo $category; ?></option> |
339 | 339 | <?php } ?> |
340 | 340 | </select> |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | <select class="yt-uix-button yt-uix-button-default" style="position:relative;top:6px;" name="transparency"> |
349 | 349 | <?php |
350 | 350 | $trans = array( |
351 | - "1.1","1.0","0.9","0.8","0.7","0.6","0.5","0.4","0.3","0.2","0.1", |
|
351 | + "1.1", "1.0", "0.9", "0.8", "0.7", "0.6", "0.5", "0.4", "0.3", "0.2", "0.1", |
|
352 | 352 | ); |
353 | 353 | ?> |
354 | 354 | <option value="1.0">100% (Visible)</option> |
@@ -371,12 +371,12 @@ discard block |
||
371 | 371 | <select class="yt-uix-button yt-uix-button-default" style="position:relative;top:6px;" id="country" name="country" value="<?php echo $_user['country']?>"> |
372 | 372 | <?php |
373 | 373 | $countries = array( |
374 | - "Select country","Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe" |
|
374 | + "Select country", "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe" |
|
375 | 375 | ); |
376 | 376 | |
377 | 377 | $countryLength = sizeof($countries); |
378 | 378 | $i = 0; |
379 | - for($i = 0;$i <= $countryLength; $i++) |
|
379 | + for ($i = 0; $i <= $countryLength; $i++) |
|
380 | 380 | { |
381 | 381 | $c = $countries[$i]; |
382 | 382 | if ($c == $_user['country']) |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | else |
390 | 390 | { |
391 | 391 | ?> |
392 | - <option value="<?php echo $c;?>"><?php echo $c; ?></option> |
|
392 | + <option value="<?php echo $c; ?>"><?php echo $c; ?></option> |
|
393 | 393 | <?php |
394 | 394 | } |
395 | 395 | } |
@@ -18,17 +18,17 @@ |
||
18 | 18 | "username" => str_replace("@", "", $_SESSION['siteusername']), |
19 | 19 | // "avatar_url" => "https://subrock.rocks/dynamic/pfp/", |
20 | 20 | "tts" => false, |
21 | -], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ); |
|
21 | +], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); |
|
22 | 22 | |
23 | -$ch = curl_init( $webhookurl ); |
|
24 | -curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-type: application/json')); |
|
25 | -curl_setopt( $ch, CURLOPT_POST, 1); |
|
26 | -curl_setopt( $ch, CURLOPT_POSTFIELDS, $json_data); |
|
27 | -curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1); |
|
28 | -curl_setopt( $ch, CURLOPT_HEADER, 0); |
|
29 | -curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); |
|
23 | +$ch = curl_init($webhookurl); |
|
24 | +curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json')); |
|
25 | +curl_setopt($ch, CURLOPT_POST, 1); |
|
26 | +curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data); |
|
27 | +curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); |
|
28 | +curl_setopt($ch, CURLOPT_HEADER, 0); |
|
29 | +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
|
30 | 30 | |
31 | -$response = curl_exec( $ch ); |
|
32 | -curl_close( $ch ); |
|
31 | +$response = curl_exec($ch); |
|
32 | +curl_close($ch); |
|
33 | 33 | header('Location: ' . $_SERVER['HTTP_REFERER'] . '&success=Successfully reported this video.'); |
34 | 34 | ?> |
35 | 35 | \ No newline at end of file |