Forráskód Böngészése

Spaces and tabs - nitpicking

Signed-off-by: emanuele <[email protected]>
emanuele 11 éve
szülő
commit
f2c884ccea
40 módosított fájl, 310 hozzáadás és 314 törlés
  1. 1 1
      Sources/Display.php
  2. 1 1
      Sources/Groups.php
  3. 9 9
      Sources/Load.php
  4. 10 11
      Sources/ManageBans.php
  5. 2 2
      Sources/ManageBoards.php
  6. 10 10
      Sources/ManageMembergroups.php
  7. 1 1
      Sources/MessageIndex.php
  8. 1 1
      Sources/Post.php
  9. 1 1
      Sources/PostModeration.php
  10. 6 6
      Sources/Printpage.php
  11. 1 1
      Sources/QueryString.php
  12. 3 3
      Sources/Reports.php
  13. 3 3
      Sources/SendTopic.php
  14. 2 2
      Sources/Subs-Auth.php
  15. 1 1
      Sources/Subs-BoardIndex.php
  16. 1 1
      Sources/Subs-Db-mysqli.php
  17. 4 4
      Sources/Subs-Members.php
  18. 2 2
      Sources/Who.php
  19. 1 2
      Themes/default/BoardIndex.template.php
  20. 6 6
      Themes/default/Display.template.php
  21. 2 2
      Themes/default/ManageBoards.template.php
  22. 11 11
      Themes/default/ManageMembergroups.template.php
  23. 6 6
      Themes/default/Printpage.template.php
  24. 5 5
      Themes/default/Settings.template.php
  25. 10 10
      Themes/default/Who.template.php
  26. 38 38
      Themes/default/css/admin.css
  27. 111 111
      Themes/default/css/index.css
  28. 2 2
      Themes/default/css/rtl.css
  29. 1 1
      Themes/default/scripts/admin.js
  30. 8 8
      Themes/default/scripts/drafts.js
  31. 3 3
      Themes/default/scripts/icondropdown.js
  32. 1 2
      Themes/default/scripts/profile.js
  33. 7 7
      Themes/default/scripts/script.js
  34. 3 3
      Themes/default/scripts/theme.js
  35. 10 10
      Themes/default/scripts/topic.js
  36. 1 1
      other/install_2-1_mysql.sql
  37. 14 14
      other/install_2-1_postgresql.sql
  38. 1 1
      other/install_2-1_sqlite.sql
  39. 0 1
      other/upgrade.php
  40. 10 10
      other/upgrade_2-0_postgresql.sql

+ 1 - 1
Sources/Display.php

@@ -381,7 +381,7 @@ function Display()
 
 	// Did we report a post to a moderator just now?
 	$context['report_sent'] = isset($_GET['reportsent']);
-	
+
 	// Did we send this topic to a friend?
 	$context['topic_sent'] = isset($_GET['topicsent']);
 

+ 1 - 1
Sources/Groups.php

@@ -102,7 +102,7 @@ function GroupList()
 						else
 						{
 							$color_style = empty($rowData[\'online_color\']) ? \'\' : sprintf(\' style="color: %1$s;"\', $rowData[\'online_color\']);
-							
+
 							if (allowedTo(\'manage_membergroups\'))
 							{
 								$group_name = sprintf(\'<a href="%1$s?action=admin;area=membergroups;sa=members;group=%2$d"%3$s>%4$s</a>\', $scripturl, $rowData[\'id_group\'], $color_style, $rowData[\'group_name\']);

+ 9 - 9
Sources/Load.php

@@ -699,7 +699,7 @@ function loadBoard()
 	{
 		// Get this into an array of keys for array_intersect
 		$moderator_groups = array_keys($board_info['moderator_groups']);
-		
+
 		// Now check if the user is a moderator.
 		$user_info['is_mod'] = isset($board_info['moderators'][$user_info['id']]) || count(array_intersect($user_info['groups'], $moderator_groups)) != 0;
 
@@ -1001,7 +1001,7 @@ function loadMemberData($users, $is_name = false, $set = 'normal')
 	}
 
 	$additional_mods = array();
-	
+
 	// Are any of these users in groups assigned to moderate this board?
 	if (!empty($loaded_ids) && !empty($board_info['moderator_groups']) && $set === 'normal')
 	{
@@ -1011,9 +1011,9 @@ function loadMemberData($users, $is_name = false, $set = 'normal')
 				$groups = array_merge(array($user_profile[$a_member]['id_group']), explode(',', $user_profile[$a_member]['additional_groups']));
 			else
 				$groups = array($user_profile[$a_member]['id_group']);
-			
+
 			$temp = array_intersect($groups, array_keys($board_info['moderator_groups']));
-			
+
 			if (!empty($temp))
 			{
 				$additional_mods[] = $a_member;
@@ -1304,7 +1304,7 @@ function loadMemberCustomFields($users, $params)
 		c.show_display, c.show_profile, c.private, c.active, c.bbc, c.can_search, c.default_value, c.enclose, c.placement, t.variable, t.value, t.id_member
 		FROM {db_prefix}themes AS t
 			LEFT JOIN {db_prefix}custom_fields AS c ON (c.col_name = t.variable)
-		WHERE id_member IN ({array_int:loaded_ids}) 
+		WHERE id_member IN ({array_int:loaded_ids})
 			AND variable IN ({array_string:params})',
 		array(
 			'loaded_ids' => $users,
@@ -2223,8 +2223,8 @@ function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload =
 			}
 			$txt['emails'] = array();
 		}
-		// For sake of backward compatibility: $birthdayEmails is supposed to be 
-		// empty in a normal install. If it isn't it means the forum is using 
+		// For sake of backward compatibility: $birthdayEmails is supposed to be
+		// empty in a normal install. If it isn't it means the forum is using
 		// something "old" (it may be the translation, it may be a mod) and this
 		// code (like the piece above) takes care of converting it to the new format
 		if (!empty($birthdayEmails))
@@ -2312,7 +2312,7 @@ function getBoardParents($id_parent)
 							'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_moderator'] . '">' . $row['real_name'] . '</a>'
 						);
 					}
-				
+
 				// If a moderator group exists for this board, add that moderator group for all children too
 				if (!empty($row['id_moderator_group']))
 					foreach ($boards as $id => $dummy)
@@ -2322,7 +2322,7 @@ function getBoardParents($id_parent)
 							'name' => $row['group_name'],
 							'href' => $scripturl . '?action=groups;sa=members;group=' . $row['id_moderator_group'],
 							'link' => '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $row['id_moderator_group'] . '">' . $row['group_name'] . '</a>'
-						);					
+						);
 					}
 			}
 			$smcFunc['db_free_result']($result);

+ 10 - 11
Sources/ManageBans.php

@@ -430,7 +430,7 @@ function BanEdit()
 						'data' => array(
 							'function' => create_function('$ban_item', '
 								global $txt, $context, $scripturl;
-								
+
 								return \'<a href="\' . $scripturl . \'?action=admin;area=ban;sa=edittrigger;bg=\' . $context[\'ban\'][\'id\'] . \';bi=\' . $ban_item[\'id\'] . \'">\' . $txt[\'ban_edit_trigger\'] . \'</a>\';
 							'),
 							'style' => 'text-align: center;',
@@ -702,7 +702,7 @@ function banLoadAdditionalIPs($member_id)
 	$search_list += array('ips_in_messages' => 'banLoadAdditionalIPsMember', 'ips_in_errors' => 'banLoadAdditionalIPsError');
 
 	$return = array();
-	foreach ($search_list as $key => $callable) 
+	foreach ($search_list as $key => $callable)
 		if (is_callable($callable))
 			$return[$key] = call_user_func($callable, $member_id);
 
@@ -788,7 +788,7 @@ function banEdit2()
 		$ban_info['cannot']['access'] = empty($ban_info['full_ban']) ? 0 : 1;
 		$ban_info['cannot']['post'] = !empty($ban_info['full_ban']) || empty($_POST['cannot_post']) ? 0 : 1;
 		$ban_info['cannot']['register'] = !empty($ban_info['full_ban']) || empty($_POST['cannot_register']) ? 0 : 1;
-		$ban_info['cannot']['login'] = !empty($ban_info['full_ban']) || empty($_POST['cannot_login']) ? 0 : 1;	
+		$ban_info['cannot']['login'] = !empty($ban_info['full_ban']) || empty($_POST['cannot_login']) ? 0 : 1;
 
 		// Adding a new ban group
 		if (empty($_REQUEST['bg']))
@@ -844,7 +844,6 @@ function banEdit2()
 /**
  * Saves one or more ban triggers into a ban item: according to the suggestions
  * checks the $_POST variable to verify if the trigger is present
- * If 
  *
  * @param array $suggestions
  * @param int $ban_group
@@ -1006,7 +1005,7 @@ function removeBanLogs($ids = array())
 
 /**
  * This function validates the ban triggers
- * 
+ *
  * Errors in $context['ban_errors']
  *
  * @param array $triggers
@@ -1178,7 +1177,7 @@ function validateTriggers(&$triggers)
 
 /**
  * This function actually inserts the ban triggers into the database
- * 
+ *
  * Errors in $context['ban_errors']
  *
  * @param int $group_id
@@ -1271,7 +1270,7 @@ function addTriggers($group_id = 0, $triggers = array(), $logs = array())
 
 /**
  * This function updates an existing ban trigger into the database
- * 
+ *
  * Errors in $context['ban_errors']
  *
  * @param int $ban_item
@@ -1322,7 +1321,7 @@ function updateTriggers($ban_item = 0, $group_id = 0, $trigger = array(), $logs
 
 	$smcFunc['db_query']('', '
 		UPDATE {db_prefix}ban_items
-		SET 
+		SET
 			hostname = {string:hostname}, email_address = {string:email_address}, id_member = {int:id_member},
 			ip_low1 = {int:ip_low1}, ip_high1 = {int:ip_high1},
 			ip_low2 = {int:ip_low2}, ip_high2 = {int:ip_high2},
@@ -1376,7 +1375,7 @@ function logTriggersUpdates($logs, $new = true)
 /**
  * Updates an existing ban group
  * If the name doesn't exists a new one is created
- * 
+ *
  * Errors in $context['ban_errors']
  *
  * @param array $ban_info
@@ -1440,9 +1439,9 @@ function updateBanGroup($ban_info = array())
  * Creates a new ban group
  * If a ban group with the same name already exists or the group s sucessfully created the ID is returned
  * On error the error code is returned or false
- * 
+ *
  * Errors in $context['ban_errors']
- * 
+ *
  * @param array $ban_info
  * @return int the ban group's ID
  */

+ 2 - 2
Sources/ManageBoards.php

@@ -560,7 +560,7 @@ function EditBoard()
 	while ($row = $smcFunc['db_fetch_assoc']($request))
 		$context['board']['moderator_groups'][$row['id_group']] = $context['groups'][$row['id_group']]['name'];
 	$smcFunc['db_free_result']($request);
-	
+
 	$context['board']['moderator_groups_list'] = empty($context['board']['moderator_groups']) ? '' : '&quot;' . implode('&quot;, &qout;', $context['board']['moderator_groups']) . '&quot;';
 
 	if (!empty($context['board']['moderator_groups']))
@@ -670,7 +670,7 @@ function EditBoard2()
 		}
 
 		$boardOptions['moderator_group_string'] = $_POST['moderator_groups'];
-		
+
 		if (isset($_POST['moderator_group_list']) && is_array($_POST['moderator_group_list']))
 		{
 			$moderator_groups = array();

+ 10 - 10
Sources/ManageMembergroups.php

@@ -668,7 +668,7 @@ function EditMembergroup()
 			'current_group' => $_REQUEST['group'],
 		)
 	);
-	
+
 	// Why don't we have a $smcFunc['db_result'] function?
 	$result = $smcFunc['db_fetch_row']($request);
 	$context['is_moderator_group'] = ($result[0] > 0);
@@ -828,7 +828,7 @@ function EditMembergroup()
 
 			foreach ($updates as $additional_groups => $memberArray)
 				updateMemberData($memberArray, array('additional_groups' => implode(',', array_diff(explode(',', $additional_groups), array((int) $_REQUEST['group'])))));
-			
+
 			// Sorry, but post groups can't moderate boards
 			$request = $smcFunc['db_query']('', '
 				DELETE FROM {db_prefix}moderator_groups
@@ -869,7 +869,7 @@ function EditMembergroup()
 						'current_group' => $_REQUEST['group'],
 					)
 				);
-				
+
 				// Hidden groups can't moderate boards
 				$smcFunc['db_query']('', '
 					DELETE FROM {db_prefix}moderator_groups
@@ -1111,10 +1111,10 @@ function EditMembergroup()
 		if ($max_boards == 1)
 			$max_boards = 2;
 	}
-	
+
 	// Get a list of all the image formats we can select.
 	$imageExts = array('png', 'jpg', 'jpeg', 'bmp', 'gif');
-	
+
 	// Scan the directory.
 	$context['possible_icons'] = array();
 	if ($files = scandir($settings['default_theme_dir'] . '/images/membericons'))
@@ -1124,24 +1124,24 @@ function EditMembergroup()
 		{
 			// Grab the image extension.
 			$ext = pathinfo($settings['default_theme_dir'] . '/images/membericons/' . $value, PATHINFO_EXTENSION);
-			
-			// If the extension is not empty, and it is valid, 
+
+			// If the extension is not empty, and it is valid
 			if (!empty($ext) && in_array($ext, $imageExts))
 			{
 				// Get the size of the image.
 				$image_info = getimagesize($settings['default_theme_dir'] . '/images/membericons/' . $value);
-				
+
 				// If this is bigger than 128 in width or 32 in height, skip this one.
 				if ($image_info == false || $image_info[0] > 128 || $image_info[1] > 32)
 					continue;
-					
+
 				// Else it's valid. Add it in.
 				else
 					$context['possible_icons'][] = $value;
 			}
 		}
 	}
-	
+
 	// Insert our JS, if we have possible icons.
 	if (!empty($context['possible_icons']))
 		loadJavascriptFile('icondropdown.js', array('validate' => true));

+ 1 - 1
Sources/MessageIndex.php

@@ -124,7 +124,7 @@ function MessageIndex()
 		foreach ($board_info['moderator_groups'] as $mod_group)
 			$context['link_moderators'][] = '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $mod_group['id'] . '" title="' . $txt['board_moderator'] . '">' . $mod_group['name'] . '</a>';
 	}
-	
+
 	// Now we tack the info onto the end of the linktree
 	if (!empty($context['link_moderators']))
 	{

+ 1 - 1
Sources/Post.php

@@ -1077,7 +1077,7 @@ function Post($post_errors = array())
 	// Are we starting a poll? if set the poll icon as selected if its available
 	if (isset($_REQUEST['poll']))
 	{
-	    foreach ($context['icons'] as $icons)
+		foreach ($context['icons'] as $icons)
 		{
 			if (isset($icons['value']) && $icons['value'] == 'poll')
 			{

+ 1 - 1
Sources/PostModeration.php

@@ -213,7 +213,7 @@ function UnapprovedPosts()
 	);
 	list ($context['total_unapproved_topics']) = $smcFunc['db_fetch_row']($request);
 	$smcFunc['db_free_result']($request);
-	
+
 	// Limit to how many? (obey the user setting)
 	$limit = !empty($options['messages_per_page']) ? $options['messages_per_page'] : $modSettings['defaultMaxMessages'];
 

+ 6 - 6
Sources/Printpage.php

@@ -278,7 +278,7 @@ function PrintTopic()
 		$messages = array();
 		foreach ($context['posts'] as $temp)
 			$messages[] = $temp['id_msg'];
-		
+
 		// build the request
 		$request = $smcFunc['db_query']('', '
 			SELECT
@@ -305,11 +305,11 @@ function PrintTopic()
 		// load them into $context so the template can use them
 		foreach ($temp as $row)
 		{
-			if (!empty($row['width']) && !empty($row['height'])) 
+			if (!empty($row['width']) && !empty($row['height']))
 			{
 				if (!empty($modSettings['max_image_width']) && (empty($modSettings['max_image_height']) || $row['height'] * ($modSettings['max_image_width'] / $row['width']) <= $modSettings['max_image_height']))
 				{
-					if ($row['width'] > $modSettings['max_image_width']) 
+					if ($row['width'] > $modSettings['max_image_width'])
 					{
 						$row['height'] = floor($row['height'] * ($modSettings['max_image_width'] / $row['width']));
 						$row['width'] = $modSettings['max_image_width'];
@@ -317,13 +317,13 @@ function PrintTopic()
 				}
 				elseif (!empty($modSettings['max_image_width']))
 				{
-					if ($row['height'] > $modSettings['max_image_height']) 
+					if ($row['height'] > $modSettings['max_image_height'])
 					{
 						$row['width'] = floor($row['width'] * $modSettings['max_image_height'] / $row['height']);
 						$row['height'] = $modSettings['max_image_height'];
 					}
 				}
-				
+
 				$row['filename'] = getAttachmentFilename($row['filename'], $row['id_attach'], $row['id_folder'], false, $row['file_hash']);
 
 				// save for the template
@@ -331,7 +331,7 @@ function PrintTopic()
 			}
 		}
 	}
-	
+
 	// Set a canonical URL for this page.
 	$context['canonical_url'] = $scripturl . '?topic=' . $topic . '.0';
 }

+ 1 - 1
Sources/QueryString.php

@@ -371,7 +371,7 @@ function expandIPv6($addr, $strict_check = true)
 
 	unset($p);
 
-    // Join segments.
+	// Join segments.
 	$result = implode(':', $part);
 
 	// Save this incase of repeated use.

+ 3 - 3
Sources/Reports.php

@@ -329,7 +329,7 @@ function BoardPermissionsReport()
 		$profiles[] = $row['id_profile'];
 	}
 	$smcFunc['db_free_result']($request);
-	
+
 	// Get the ids of any groups allowed to moderate this board
 	// Limit it to any boards and/or groups we're looking at
 	$request = $smcFunc['db_query']('', '
@@ -746,14 +746,14 @@ function StaffReport()
 		array(
 		)
 	);
-	
+
 	// Add each board/member to the arrays, but only if they aren't already there
 	while ($row = $smcFunc['db_fetch_assoc']($request))
 	{
 		// Either we don't have them as a moderator at all or at least not as a moderator of this board
 		if (!array_key_exists($row['id_member'], $moderators) || !in_array($row['id_board'], $moderators[$row['id_member']]))
 			$moderators[$row['id_member']][] = $row['id_board'];
-		
+
 		// We don't have them listed as a moderator yet
 		if (!array_key_exists($row['id_member'], $local_mods))
 			$local_mods[$row['id_member']] = $row['id_member'];

+ 3 - 3
Sources/SendTopic.php

@@ -572,7 +572,7 @@ function ReportToModerator2()
 	while ($row = $smcFunc['db_fetch_assoc']($request2))
 		$real_mods[] = $row['id_member'];
 	$smcFunc['db_free_result']($request2);
-	
+
 	// Get any additional members who are in groups assigned to moderate this board
 	$request3 = $smcFunc['db_query']('', '
 		SELECT mem.id_member
@@ -590,10 +590,10 @@ function ReportToModerator2()
 	while ($row = $smcFunc['db_fetch_assoc']($request3))
 		$real_mods[] = $row['id_member'];
 	$smcFunc['db_free_result']($request3);
-	
+
 	// Make sure we don't have any duplicates
 	$real_mods = array_unique($real_mods);
-	
+
 	// Send every moderator an email.
 	while ($row = $smcFunc['db_fetch_assoc']($request))
 	{

+ 2 - 2
Sources/Subs-Auth.php

@@ -736,7 +736,7 @@ function rebuildModCache()
 		while ($row = $smcFunc['db_fetch_assoc']($request))
 			$boards_mod[] = $row['id_board'];
 		$smcFunc['db_free_result']($request);
-		
+
 		// Can any of the groups they're in moderate any of the boards?
 		$request = $smcFunc['db_query']('', '
 			SELECT id_board
@@ -749,7 +749,7 @@ function rebuildModCache()
 		while ($row = $smcFunc['db_fetch_assoc']($request))
 			$boards_mod[] = $row['id_board'];
 		$smcFunc['db_free_result']($request);
-		
+
 		// Just in case we've got duplicates here...
 		$boards_mod = array_unique($boards_mod);
 	}

+ 1 - 1
Sources/Subs-BoardIndex.php

@@ -176,7 +176,7 @@ function getBoardIndex($boardIndexOptions)
 				);
 				$this_category[$row_board['id_board']]['link_moderator_groups'][] = '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $row_board['id_moderator_group'] . '" title="' . $txt['board_moderator'] . '">' . $row_board['mod_group_name'] . '</a>';
 			}
-			
+
 			// Merge the two lists of moderators
 			if (!empty($this_category[$row_board['id_board']]['link_moderator_groups']))
 			{

+ 1 - 1
Sources/Subs-Db-mysqli.php

@@ -304,7 +304,7 @@ function smf_db_query($identifier, $db_string, $db_values = array(), $connection
 	$connection = $connection === null ? $db_connection : $connection;
 
 	// Get a connection if we are shutting down, sometimes the link is closed before sessions are written
-        if (!is_object($connection))
+	if (!is_object($connection))
 	{
 		global $db_server, $db_user, $db_passwd, $db_name, $db_show_debug, $ssi_db_user, $ssi_db_passwd;
 

+ 4 - 4
Sources/Subs-Members.php

@@ -1055,10 +1055,10 @@ function groupsAllowedTo($permission, $board_id = null)
 				$moderator_groups[] = $row['id_group'];
 			}
 
-			$smcFunc['db_free_result']($request);			
+			$smcFunc['db_free_result']($request);
 		}
 
-		// "Inherit" any additional permissions from the "Moderators" group		
+		// "Inherit" any additional permissions from the "Moderators" group
 		foreach ($moderator_groups as $mod_group)
 		{
 			// If they're not specifically allowed, but the moderator group is, then allow it
@@ -1066,7 +1066,7 @@ function groupsAllowedTo($permission, $board_id = null)
 			{
 				$member_groups['allowed'][] = $mod_group;
 			}
-			
+
 			// They're not denied, but the moderator group is, so deny it
 			if (in_array(3, $member_groups['denied']) && !in_array($mod_group, $member_groups['denied']))
 			{
@@ -1097,7 +1097,7 @@ function membersAllowedTo($permission, $board_id = null)
 	global $smcFunc;
 
 	$member_groups = groupsAllowedTo($permission, $board_id);
-	
+
 	$all_groups = array_merge($member_groups['allowed'], $member_groups['denied']);
 
 	$include_moderators = in_array(3, $member_groups['allowed']) && $board_id !== null;

+ 2 - 2
Sources/Who.php

@@ -535,7 +535,7 @@ function Credits($in_admin = false)
 			'description' => '',
 		);
 	}
-	
+
 	$context['credits'] = array(
 		array(
 			'pretext' => $txt['credits_intro'],
@@ -732,7 +732,7 @@ function Credits($in_admin = false)
 			'<a href="http://openfontlibrary.org/en/font/anonymous-pro"> Anonymous Pro</a> |&copy; 2009 | This font is licensed under the SIL Open Font License, Version 1.1',
 			'<a href="http://openfontlibrary.org/en/font/consolamono"> ConsolaMono</a> |&copy; 2012 | This font is licensed under the SIL Open Font License, Version 1.1',
 			'<a href="http://openfontlibrary.org/en/font/phennig"> Phennig</a> |&copy; 2009-2012 | This font is licensed under the SIL Open Font License, Version 1.1',
-		),						
+		),
 	);
 
 	// Support for mods that use the <credits> tag via the package manager

+ 1 - 2
Themes/default/BoardIndex.template.php

@@ -50,14 +50,13 @@ function template_newsfader()
 			</div>
 			<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/fader.js"></script>
 			<script type="text/javascript"><!-- // --><![CDATA[
-		
 				// Create a news fader object.
 				var oNewsFader = new smc_NewsFader({
 					sFaderControlId: \'smfFadeScroller\',
 					sItemTemplate: ', JavaScriptEscape('%1$s'), ',
 					iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
 				});
-		
+
 				// Create the news fader toggle.
 				var smfNewsFadeToggle = new smc_Toggle({
 					bToggleEnabled: true,

+ 6 - 6
Themes/default/Display.template.php

@@ -576,7 +576,7 @@ function template_main()
 						<ul class="floatright smalltext">
 							<li class="report_link"><a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['report_to_mod'], '</a></li>
 						</ul>';
-								
+
 		// Show the quickbuttons, for various operations on posts.
 		if ($message['can_approve'] || $message['can_unapprove'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'] || $context['can_quote'])
 		{
@@ -596,13 +596,13 @@ function template_main()
 			// Can the user modify the contents of this post?  Show the modify inline image.
 			if ($message['can_modify'])
 				echo '
-							<li class="quick_edit"><img src="', $settings['images_url'], '/icons/modify_inline.png" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: pointer; margin: 0;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />', $txt['quick_edit'], '</li>';				
-			
+							<li class="quick_edit"><img src="', $settings['images_url'], '/icons/modify_inline.png" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: pointer; margin: 0;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />', $txt['quick_edit'], '</li>';
+
 			if ($message['can_approve'] || $message['can_unapprove'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
-			echo '
+				echo '
 							<li class="post_options">', $txt['post_options'];
-			
-				echo '			
+
+			echo '
 								<ul>';
 
 					// Can the user modify the contents of this post?

+ 2 - 2
Themes/default/ManageBoards.template.php

@@ -602,7 +602,7 @@ function template_modify_board()
 	echo '
 		]
 	});
-	
+
 	var oModeratorGroupSuggest = new smc_AutoSuggest({
 		sSelf: \'oModeratorGroupSuggest\',
 		sSessionId: smf_session_id,
@@ -616,7 +616,7 @@ function template_modify_board()
 		sTextDeleteItem: \'', $txt['autosuggest_delete_item'], '\',
 		sItemListContainerId: \'moderator_group_container\',
 		aListItems: [';
-		
+
 	foreach ($context['board']['moderator_groups'] as $id_group => $group_name)
 		echo '
 					{

+ 11 - 11
Themes/default/ManageMembergroups.template.php

@@ -271,11 +271,11 @@ function template_edit_group()
 						<dd>
 							<input type="text" name="icon_count" id="icon_count_input" value="', $context['group']['icon_count'], '" size="4" class="input_text" />
 						</dd>';
-        
-        // Do we have any possible icons to select from?
-       	if (!empty($context['possible_icons']))
-       	{
-       		echo '
+
+	// Do we have any possible icons to select from?
+	if (!empty($context['possible_icons']))
+	{
+	echo '
 						<dt>
 							<label for="icon_image_input"><strong>', $txt['membergroups_icon_image'], ':</strong></label><br />
 							<span class="smalltext">', $txt['membergroups_icon_image_note'], '</span>
@@ -290,18 +290,18 @@ function template_edit_group()
 			echo '
 								<option value="', $icon, '"', $context['group']['icon_image'] == $icon ? ' selected="selected"' : '', '>', $icon, '</option>';
 		}
-	
+
 		echo '
 							</select>
 							<img id="icon_preview" src="" alt="*" />
 						</dd>';
 	}
-	
+
 	// No? Hide the entire control.
 	else
 		echo '
 						<input type="hidden" name="icon_image" value="" />';
-						
+
 	echo '
 						<dt>
 							<label for="max_messages_input"><strong>', $txt['membergroups_max_messages'], ':</strong></label><br />
@@ -371,7 +371,7 @@ function template_edit_group()
 				var group_desc_text = document.getElementById(\'group_desc_text\');
 				var group_hidden_text = document.getElementById(\'group_hidden_text\');
 				var group_moderators_text = document.getElementById(\'group_moderators_text\');
-				
+
 				// If it\'s a moderator group, warn of possible problems... and remember the group type
 				if (isChecked && is_moderator_group && !confirm(\'', $txt['membergroups_swap_mod'], '\'))
 				{
@@ -396,7 +396,7 @@ function template_edit_group()
 							break;
 					}
 				}
-				
+
 				document.forms.groupForm.min_posts.disabled = !isChecked;
 				min_posts_text.style.color = isChecked ? "" : "#888888";
 				document.forms.groupForm.group_desc_input.disabled = isChecked;
@@ -406,7 +406,7 @@ function template_edit_group()
 				document.forms.groupForm.group_moderators.disabled = isChecked;
 				group_moderators_text.style.color = !isChecked ? "" : "#888888";
 			}
-				
+
 			swapPostGroup(', $context['group']['is_post_group'] ? 'true' : 'false', ');
 		// ]]></script>';
 }

+ 6 - 6
Themes/default/Printpage.template.php

@@ -13,7 +13,7 @@
 function template_print_above()
 {
 	global $context, $txt, $topic, $scripturl;
-	
+
 	$url_text = $scripturl . '?action=printpage;topic=' . $topic . '.0';
 	$url_images = $url_text . ';images';
 
@@ -149,18 +149,18 @@ function template_main()
 			</div>
 			<div class="postbody">
 				', $post['body'];
-				
+
 		// Show attachment images
 		if (isset($_GET['images']) && !empty($context['printattach'][$post['id_msg']]))
 		{
 			echo '
 				<hr />';
-			
+
 			foreach ($context['printattach'][$post['id_msg']] as $attach)
 				echo '
 					<img width="' . $attach['width'] . '" height="' . $attach['height'] . '" src="', $scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attach['id_attach'] . '" alt="" />';
 		}
-			
+
 		echo '
 			</div>';
 	}
@@ -169,10 +169,10 @@ function template_main()
 function template_print_below()
 {
 	global $topic, $txt, $scripturl;
-	
+
 	$url_text = $scripturl . '?action=printpage;topic=' . $topic . '.0';
 	$url_images = $url_text . ';images';
-	
+
 	echo '
 		</div>
 		<div class="print_options">';

+ 5 - 5
Themes/default/Settings.template.php

@@ -134,11 +134,11 @@ function template_options()
 			),
 			'default' => true,
 		),
-        array(
-            'id' => 'use_editor_quick_reply',
-            'label' => $txt['use_editor_quick_reply'],
-            'default' => true,
-        ),
+		array(
+			'id' => 'use_editor_quick_reply',
+			'label' => $txt['use_editor_quick_reply'],
+			'default' => true,
+		),
 		array(
 			'id' => 'display_quick_mod',
 			'label' => $txt['display_quick_mod'],

+ 10 - 10
Themes/default/Who.template.php

@@ -25,14 +25,14 @@ function template_main()
 			<div class="topic_table" id="mlist">
 				<div class="pagesection">
 					<div class="pagelinks floatleft">', $context['page_index'], '</div>';
-		echo '
+	echo '
 					<div class="selectbox floatright" id="upper_show">', $txt['who_show1'], '
 						<select name="show_top" onchange="document.forms.whoFilter.show.value = this.value; document.forms.whoFilter.submit();">';
 
-		foreach ($context['show_methods'] as $value => $label)
-			echo '
-							<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
+	foreach ($context['show_methods'] as $value => $label)
 		echo '
+							<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
+	echo '
 						</select>
 						<noscript>
 							<input type="submit" name="submit_top" value="', $txt['go'], '" class="button_submit" />
@@ -104,15 +104,15 @@ function template_main()
 				</table>
 				<div class="pagesection" id="lower_pagesection">
 					<div class="pagelinks floatleft" id="lower_pagelinks">', $context['page_index'], '</div>';
-	
-		echo '
+
+	echo '
 					<div class="selectbox floatright">', $txt['who_show1'], '
 						<select name="show" onchange="document.forms.whoFilter.submit();">';
-	
-		foreach ($context['show_methods'] as $value => $label)
-			echo '
-							<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
+
+	foreach ($context['show_methods'] as $value => $label)
 		echo '
+							<option value="', $value, '" ', $value == $context['show_by'] ? ' selected="selected"' : '', '>', $label, '</option>';
+	echo '
 						</select>
 						<noscript>
 							<input type="submit" value="', $txt['go'], '" class="button_submit" />

+ 38 - 38
Themes/default/css/admin.css

@@ -27,10 +27,10 @@ body.action_admin .navigate_section ul {
 	border-radius: 5px;
 	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 body.action_admin .navigate_section ul li.unread_links {
 	display: none;
@@ -100,10 +100,10 @@ body.action_admin .navigate_section ul li a {
 	border-radius: 2px;
 	box-shadow: 0 2px 2px rgba(0,0,0,0.1);
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 .action_admin .generic_list_wrapper .information div {
 	background: none;
@@ -186,10 +186,10 @@ div.quick_tasks {
 	border-radius: 2px 2px 0 0;
 	margin: 0;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 .action_admin .generic_list_wrapper .title_bar {
 	background: none;
@@ -254,10 +254,10 @@ div.quick_tasks {
 	border-radius: 2px;
 	box-shadow: 0 2px 2px rgba(0,0,0,0.1);
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 #advanced_panel_header {
 	margin-bottom: 8px;
@@ -266,10 +266,10 @@ div.quick_tasks {
 	border: 1px solid #ccc;
 	border-radius: 2px;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 #advanced_panel_header a {
 	color: #444;
@@ -344,10 +344,10 @@ h3.catbg #quick_search form .button_submit {
 
 	padding: 3px 6px 2px 6px;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 h3.catbg #quick_search form .button_submit:hover {
 	background: #fff;
@@ -441,10 +441,10 @@ body#chrome  #quick_search .button_submit {
 	height: 12em;
 	overflow: auto;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 #live_news div.content, #supportVersionsTable  div.content {
 	padding: 0;
@@ -458,7 +458,7 @@ body#chrome  #quick_search .button_submit {
 	color: #111;
 }
 #smfAnnouncements dt {
-	padding: 4px 6px 2px 6px; 
+	padding: 4px 6px 2px 6px;
 	border-top: 1px solid #bf6900;
 }
 #smfAnnouncements dt a {
@@ -827,10 +827,10 @@ pre.file_content {
 	color: #222;
 	font-size: 1em;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 #manage_boards span.modify_boards a:hover {
 
@@ -838,10 +838,10 @@ pre.file_content {
 	color: #444;
 	box-shadow: -1px -1px 1px rgba(0,0,0,0.1);
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 #manage_boards .button_submit {
 	box-shadow: 1px 1px 2px rgba(0,0,0,0.1), 0 -1px 3px rgba(0,0,0,0.1) inset;
@@ -1153,7 +1153,7 @@ h3.grid_header {
 	padding: 8px;
 }
 
-/* Styles for the Report generation 
+/* Styles for the Report generation
 ------------------------------------------------- */
 #report_buttons {
 	min-height: 2.4em;

+ 111 - 111
Themes/default/css/index.css

@@ -140,10 +140,10 @@ input:focus, textarea:focus, button:focus, select:focus, textarea.editor:focus {
 	border-radius: 1px;
 	box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .button_submit:hover, .button_reset:hover, .button_link:hover {
 	color: #af6700;
@@ -152,10 +152,10 @@ input:focus, textarea:focus, button:focus, select:focus, textarea.editor:focus {
 	border-top: 1px solid #aaa;
 	box-shadow: -1px -1px 2px rgba(0,0,0,0.07), -1px -2px 4px rgba(255,255,255,0.33) inset;
 	background: linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
 }
 a.button_link {
 	color: #000;
@@ -470,20 +470,20 @@ a img {
 	font-size: /*1.1em*/1em;
 	font-weight: bold;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 .catbg, .catbg2, tr.catbg td, tr.catbg2 td, tr.catbg th, tr.catbg2 th {
 	color: #fff;
 	font-size: 1.1em;
 	font-weight: bold;
 	background: linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
 }
 
 /* adjust the table versions of headers */
@@ -577,10 +577,10 @@ div.pagesection div.floatright input, div.pagesection div.floatright select {
 	margin: 5px 8px 0 0;
 	color: #222;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .topbottom:hover {
 	text-decoration: none;
@@ -591,10 +591,10 @@ div.pagesection div.floatright input, div.pagesection div.floatright select {
 	border-top: 1px solid #aaa;
 	box-shadow: -1px -1px 2px rgba(0,0,0,0.07), -1px -2px 4px rgba(255,255,255,0.33) inset;
 	background: linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
 }
 
 /* Sticky topics get a different background */
@@ -827,7 +827,7 @@ h4.catbg, h4.catbg2, h3.catbg, h3.catbg2, .table_list tbody.header td.catbg {
 h4.titlebg, h3.titlebg {
 	background: #557EA0;
 	border-bottom: 1px solid #777;
-    border-radius: 6px 6px 0 0;
+	border-radius: 6px 6px 0 0;
 	box-shadow: 0 16px 20px rgba(255,255,255,0.15) inset;
 	text-shadow: -1px -1px 1px rgba(0,0,0,0.2)
 }
@@ -1093,10 +1093,10 @@ img.sort {
 	border-radius: 2px 7px 0 4px;
 	box-shadow: 3px 3px 4px rgba(0,0,0,0.3);
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 /* Level 2 link background. */
 .dropmenu li li {
@@ -1155,10 +1155,10 @@ img.sort {
 	border-top: 1px solid #d4dee6;
 	border-bottom: 1px solid #cbdae6;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .dropmenu li li:hover>a, .dropmenu li li.sfhover a:focus, .dropmenu li li a:hover, .dropmenu li li a:focus {
 	color: #333;
@@ -1166,10 +1166,10 @@ img.sort {
 	border: 1px solid #cfcfcf;
 	border-top: 1px solid #d4dee6;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 /* Reposition Level 2 submenu as visible on hover. */
 .dropmenu li:hover ul, .dropmenu li.sfhover ul {
@@ -1246,10 +1246,10 @@ img.sort {
 .adm_section .dropmenu {
 	padding: 4px 1px 9px 1px;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 	float: none;
 }
 .adm_section .dropmenu li {
@@ -1295,10 +1295,10 @@ img.sort {
 .adm_section .dropmenu li li a:hover {
 	color: #333;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 /* Note: The next declarations are for keyboard access with js disabled. */
 .adm_section .dropmenu ul a:focus {
@@ -1340,10 +1340,10 @@ img.sort {
 	color: #444;
 	font-size: 0.8em;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 /* Keep a consistent size when wrapped in pagesection. */
 .pagesection .buttonlist ul li a {
@@ -1357,10 +1357,10 @@ img.sort {
 	border-top: 1px solid #aaa;
 	box-shadow: -1px -1px 2px rgba(0,0,0,0.07), -1px -2px 4px rgba(255,255,255,0.33) inset;
 	background: linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
 }
 .buttonlist ul li a span {
 	display: block;
@@ -1414,10 +1414,10 @@ img.sort {
 	border-bottom: 1px solid #bbb;
 	box-shadow: 0 1px 4px rgba(0,0,0,0.16);
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 #top_section .frame{
 	clear: both;
@@ -1464,10 +1464,10 @@ img.sort {
 	border-radius: 3px;
 	color: #333;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 /* @todo In practice it may be better to set a different value for Firefox and Opera only, */
 /*	just to save a little bit of code. Will wait for Opera detection on body tag. */
@@ -1479,10 +1479,10 @@ img.sort {
 	color: #a85400;
 	text-decoration: none;
 	background: linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
 }
 /* The logo and slogan. */
 #header {
@@ -1532,10 +1532,10 @@ img#smflogo {
 	padding: 12px 10px 2px 10px;
 	border-radius: 6px 6px 0 0;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 98%);
 }
 #inner_section:after {
 	content:"";
@@ -1614,10 +1614,10 @@ ul li.greeting {
 	box-shadow: 0 -2px 2px rgba(0,0,0,0.08);
 	-moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-sizing: border-box;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 .navigate_section ul li {
 	float: left;
@@ -1793,10 +1793,10 @@ ul li.greeting {
 .table_list .icon, .table_list .info, .table_list .stats, .table_list .lastpost {
 	border-top: double #ddd;
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 /* Hiding unwanted border repeats. */
 .table_list .content tr:first-child .icon, .table_list .content tr:first-child .info,
@@ -2207,10 +2207,10 @@ div#pollmoderation {
 .dropmenu  li ul li:hover {
 	border: none;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .poster .dropmenu  li ul li.im_icons, .poster .dropmenu   ul ol li {
 	padding: 3px;
@@ -2416,10 +2416,10 @@ ul.quickbuttons li.inline_mod_check {
 	margin: 3px 19px;
 	overflow: visible;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .quickbuttons li:first-child {
 	border-radius: 4px 1px 1px 4px;
@@ -2432,10 +2432,10 @@ ul.quickbuttons li.inline_mod_check {
 	border-radius: 1px;
 	box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
 	background: linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #E2E9F3 70%);
 }
 .quickbuttons li.quick_edit, .quickbuttons li.post_options {
 	padding: 0 6px 0 22px;
@@ -2463,8 +2463,8 @@ ul.quickbuttons li.inline_mod_check {
 	color: #222;
 }
 .quickbuttons li.post_options {
-    padding: 0 4px 0 4px;
-    border-radius: 1px 4px 4px 1px;
+	padding: 0 4px 0 4px;
+	border-radius: 1px 4px 4px 1px;
 }
 .quickbuttons li.post_options>a {
 	padding: 0 4px 0 4px;
@@ -2483,10 +2483,10 @@ ul.quickbuttons li.inline_mod_check {
 	border-radius: 4px 2px 4px 0;
 	box-shadow: 2px 3px 3px rgba(0,0,0,0.2);
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .quickbuttons li:hover ul, .quickbuttons li.sfhover ul {
 	left: auto;
@@ -2506,10 +2506,10 @@ ul.quickbuttons li.inline_mod_check {
 	border-top: 1px solid #d4dee6;
 	border-bottom: 1px solid #cbdae6;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .quickbuttons ul li a, .quickbuttons ul li a:focus {
 	padding: 0 6px 0 26px;
@@ -2522,10 +2522,10 @@ ul.quickbuttons li.inline_mod_check {
 .quickbuttons ul li a:focus {
 	margin: 0 -9910px 0 9910px;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 /* Cancel for hover and/or js access. */
 .quickbuttons ul li:hover a:focus, .quickbuttons ul li.sfhover a:focus {
@@ -4019,10 +4019,10 @@ span.hidelink {
 	max-height: none!important; /* Is this declaration necessary? None is the default anyway. */
 	overflow: visible!important;
 	background: linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
-    background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -o-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -moz-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -webkit-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
+	background: -ms-linear-gradient(bottom, #E2E9F3 1%, #FFFFFF 70%);
 }
 .popup_heading
 {
@@ -4047,10 +4047,10 @@ span.hidelink {
 	border-radius: 6px 6px 2px 2px;
 	box-shadow: 0 -2px 3px rgba(0,0,0,0.15), 0 1px 1px rgba(255,255,255,0.2);
 	background: linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-    background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -o-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -moz-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
+	background: -ms-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
 }
 .popup_heading .hide_popup
 {

+ 2 - 2
Themes/default/css/rtl.css

@@ -521,7 +521,7 @@ ul.post_options li {
 ---------------------------------------------------- */
 
 #edit_poll fieldset input {
-	margin-right: 7em;	
+	margin-right: 7em;
 }
 #edit_poll ul.poll_main li {
 	padding-right: 1em;
@@ -539,7 +539,7 @@ ul.post_options li {
 	padding: 0 1em 0 0;
 }
 #edit_poll dl.poll_options dd input {
-	margin-right: 0; 
+	margin-right: 0;
 }
 
 /* Styles for the personal messages section.

+ 1 - 1
Themes/default/scripts/admin.js

@@ -496,7 +496,7 @@ function toggleBreakdown(id_group, forcedisplayType)
 		$(aContainer).fadeOut();
 	else
 		$(aContainer).show();
-		
+
 	// remove or add the separators
 	document.getElementById("group_hr_div_" + id_group).style.display = displayType
 

+ 8 - 8
Themes/default/scripts/drafts.js

@@ -30,12 +30,12 @@ smf_DraftAutoSave.prototype.init = function ()
 		this.oDraftHandle.instanceRef = this;
 		this.oDraftHandle.onblur = function (oEvent) {return this.instanceRef.draftBlur(oEvent, true);};
 		this.oDraftHandle.onfocus = function (oEvent) {return this.instanceRef.draftFocus(oEvent, true);};
-		
+
 		// If we found the iframe window, set body focus/blur events for it
-		if (oIframeWindow.document) 
+		if (oIframeWindow.document)
 		{
 			var oIframeDoc = oIframeWindow.document;
-			// @todo oDraftAutoSave should use the this.opt.sSelf name not hardcoded 
+			// @todo oDraftAutoSave should use the this.opt.sSelf name not hardcoded
 			oIframeDoc.body.onblur = function (oEvent) {return parent.oDraftAutoSave.draftBlur(oEvent, false);};
 			oIframeDoc.body.onfocus = function (oEvent) {return parent.oDraftAutoSave.draftFocus(oEvent, false);};
 		};
@@ -52,7 +52,7 @@ smf_DraftAutoSave.prototype.draftBlur = function(oEvent, source)
 			this.draftPMSave();
 		else
 			this.draftSave();
-		
+
 		if (this.interval_id != "")
 			window.clearInterval(this.interval_id);
 		this.interval_id = "";
@@ -79,7 +79,7 @@ smf_DraftAutoSave.prototype.draftSave = function ()
 	// nothing to save or already posting or nothing changed?
 	if (isEmptyText(sPostdata) || smf_formSubmitted || this.sCheckDraft == sPostdata)
 		return false;
-	
+
 	// Still saving the last one or other?
 	if (this.bInDraftMode)
 		this.draftCancel();
@@ -113,7 +113,7 @@ smf_DraftAutoSave.prototype.draftSave = function ()
 
 	// Send in document for saving and hope for the best
 	sendXMLDocument.call(this, smf_prepareScriptUrl(smf_scripturl) + "action=post2;board=" + this.opt.iBoard + ";xml", aSections.join("&"), this.onDraftDone);
-	
+
 	// Save the latest for compare
 	this.sCheckDraft = sPostdata;
 }
@@ -122,7 +122,7 @@ smf_DraftAutoSave.prototype.draftSave = function ()
 smf_DraftAutoSave.prototype.draftPMSave = function ()
 {
 	var sPostdata = $('#' + this.opt.sSceditorID).data("sceditor").getText();
-	
+
 	// nothing to save or already posting or nothing changed?
 	if (isEmptyText(sPostdata) || smf_formSubmitted || this.sCheckDraft == sPostdata)
 		return false;
@@ -161,7 +161,7 @@ smf_DraftAutoSave.prototype.draftPMSave = function ()
 
 	// Send in (post) the document for saving
 	sendXMLDocument.call(this, smf_prepareScriptUrl(smf_scripturl) + "action=pm;sa=send2;xml", aSections.join("&"), this.onDraftDone);
-	
+
 	// Save the latest for compare
 	this.sCheckDraft = sPostdata;
 }

+ 3 - 3
Themes/default/scripts/icondropdown.js

@@ -1,16 +1,16 @@
 $(document).ready(function()
-{	
+{
 	$('#icon_count_input').change(function ()
 	{
 		var select_box = $('select#icon_image_input option:selected').val();
 		var icon_count = $('#icon_count_input');
 		if (icon_count.val() == 0 && select_box != 'blank.png')
 			icon_count.val(1);
-			
+
 		if (icon_count.val().length > 2)
 			icon_count.val(99);
 	});
-	
+
 	$('#icon_image_input').change(function ()
 	{
 		refreshIconPreview();

+ 1 - 2
Themes/default/scripts/profile.js

@@ -55,12 +55,11 @@ function calcCharLeft()
 		if (is_opera)
 			currentChars = currentSignature.replace(/\r/g, "").length;
 
-		
 		if (currentChars > maxLength)
 			document.getElementById("signatureLeft").className = "error";
 		else
 			document.getElementById("signatureLeft").className = "";
-		
+
 		if (currentChars > maxLength && !$("#profile_error").is(":visible"))
 			ajax_getSignaturePreview(false);
 		else if (currentChars <= maxLength && $("#profile_error").is(":visible"))

+ 7 - 7
Themes/default/scripts/script.js

@@ -28,7 +28,7 @@ if (!('XMLHttpRequest' in window) && 'ActiveXObject' in window)
 // Some older versions of Mozilla don't have this, for some reason.
 if (!('forms' in document))
 	document.forms = document.getElementsByTagName('form');
-	
+
 // Versions of ie < 9 do not have this built in
 if (!('getElementsByClassName' in document))
 {
@@ -314,7 +314,7 @@ function reqOverlayDiv(desktopURL, sHeader, sIcon)
 	var sAjax_indicator = '<div class="centertext"><img src="' + smf_images_url + '/loading.gif" ></div>';
 	var sIcon = smf_images_url + '/' + (typeof(sIcon) == 'string' ? sIcon : 'helptopics.png');
 	var sHeader = typeof(sHeader) == 'string' ? sHeader : help_popup_heading_text;
-	
+
 	// Create the div that we are going to load
 	var oContainer = new smc_Popup({heading: sHeader, content: sAjax_indicator, icon: sIcon});
 	var oPopup_body = $('#' + oContainer.popup_id).find('.popup_content');
@@ -322,8 +322,8 @@ function reqOverlayDiv(desktopURL, sHeader, sIcon)
 	// Load the help page content (we just want the text to show)
 	$.ajax({
 		url: desktopURL,
-        type: "GET",
-        dataType: "html",
+		type: "GET",
+		dataType: "html",
 		beforeSend: function () {
 		},
 		success: function (data, textStatus, xhr) {
@@ -367,14 +367,14 @@ smc_Popup.prototype.show = function ()
 			popup_instance.hide();
 	});
 	$('#' + this.popup_id).find('.hide_popup').click(function (){ return popup_instance.hide(); });
-	
+
 	return false;
 }
 
 smc_Popup.prototype.hide = function ()
 {
 	$('#' + this.popup_id).fadeOut(300, function(){ $(this).remove(); });
-	
+
 	return false;
 }
 
@@ -638,7 +638,7 @@ function smf_avatarResize()
 		// Image.prototype.avatar = possibleAvatars[i];
 		tempAvatars[j] = new Image();
 		tempAvatars[j].avatar = possibleAvatars[i];
-		
+
 		tempAvatars[j].onload = function()
 		{
 			this.avatar.width = this.width;

+ 3 - 3
Themes/default/scripts/theme.js

@@ -1,7 +1,7 @@
 $(document).ready(function() {
 	// menu drop downs
-	$('ul.dropmenu, ul.quickbuttons').superfish({delay : 600, speed: 200, sensitivity : 8, interval : 50, timeout : 1}); 
-	
+	$('ul.dropmenu, ul.quickbuttons').superfish({delay : 600, speed: 200, sensitivity : 8, interval : 50, timeout : 1});
+
 	// tooltips
 	$('.preview').SMFtooltip();
 
@@ -26,7 +26,7 @@ function smf_codeBoxFix()
 			'currentStyle' in $(tag) && $(tag)[0].currentStyle.overflow == 'auto'
 			&& ($(tag).innerHeight() == '' || $(tag).innerHeight() == 'auto')
 			&& ($(tag)[0].scrollWidth > $(tag).innerWidth() || $(tag).innerWidth == 0)
-			&& ($(tag).outerHeight() != 0)			
+			&& ($(tag).outerHeight() != 0)
 		)
 			$(tag).css({height: ($(tag).height + 24) + 'px'});
 	});

+ 10 - 10
Themes/default/scripts/topic.js

@@ -66,7 +66,7 @@ QuickModifyTopic.prototype.modify_topic = function (topic_id, first_msg_id)
 	this.bMouseOnDiv = true;
 	this.iCurTopicId = topic_id;
 
-	// Get the topics current subject 
+	// Get the topics current subject
 	ajax_indicator(true);
 	sendXMLDocument.call(this, smf_prepareScriptUrl(smf_scripturl) + "action=quotefast;quote=" + first_msg_id + ";modify;xml", '', this.onDocReceived_modify_topic);
 }
@@ -80,7 +80,7 @@ QuickModifyTopic.prototype.onDocReceived_modify_topic = function (XMLDoc)
 		this.modify_topic_cancel();
 		return true;
 	}
-	
+
 	this.sCurMessageId = XMLDoc.getElementsByTagName("message")[0].getAttribute("id");
 	this.oCurSubjectDiv = document.getElementById('msg_' + this.sCurMessageId.substr(4));
 	this.sBuffSubject = getInnerHTML(this.oCurSubjectDiv);
@@ -99,7 +99,7 @@ QuickModifyTopic.prototype.modify_topic_cancel = function ()
 	setInnerHTML(this.oCurSubjectDiv, this.sBuffSubject);
 	this.set_hidden_topic_areas('');
 	this.bInEditMode = false;
-	
+
 	return false;
 }
 
@@ -118,7 +118,7 @@ QuickModifyTopic.prototype.modify_topic_show_edit = function (subject)
 {
 	// Just template the subject.
 	setInnerHTML(this.oCurSubjectDiv, '<input type="text" name="subject" value="' + subject + '" size="60" style="width: 95%;" maxlength="80" class="input_text" /><input type="hidden" name="topic" value="' + this.iCurTopicId + '" /><input type="hidden" name="msg" value="' + this.sCurMessageId.substr(4) + '" />');
-	
+
 	// attach mouse over and out events to this new div
 	this.oCurSubjectDiv.instanceRef = this;
 	this.oCurSubjectDiv.onmouseout = function (oEvent) {return this.instanceRef.modify_topic_mouseout(oEvent);};
@@ -151,7 +151,7 @@ QuickModifyTopic.prototype.modify_topic_save = function (cur_session_id, cur_ses
 QuickModifyTopic.prototype.modify_topic_done = function (XMLDoc)
 {
 	ajax_indicator(false);
-	
+
 	// If it is not valid then clean up
 	if (!XMLDoc || !XMLDoc.getElementsByTagName('subject'))
 	{
@@ -175,7 +175,7 @@ QuickModifyTopic.prototype.modify_topic_done = function (XMLDoc)
 	// redo tips if they are on since we just pulled the rug out on this one 
 	if ($.isFunction($.fn.SMFtooltip));
 		$('.preview').SMFtooltip().smf_tooltip_off;
-	
+
 	return false;
 }
 
@@ -708,22 +708,22 @@ function expandThumb(thumbID)
 {
 	var img = document.getElementById('thumb_' + thumbID);
 	var link = document.getElementById('link_' + thumbID);
-	
+
 	// save the currently displayed image attributes
 	var tmp_src = img.src;
 	var tmp_height = img.style.height;
 	var tmp_width = img.style.width;
-	
+
 	// set the displayed image attributes to the link attributes, this will expand in place
 	img.src = link.href;
 	img.style.width = link.style.width;
 	img.style.height = link.style.height;
-	
+
 	// place the image attributes back
 	link.href = tmp_src;
 	link.style.width = tmp_width;
 	link.style.height = tmp_height;
-	
+
 	return false;
 }
 

+ 1 - 1
other/install_2-1_mysql.sql

@@ -1410,7 +1410,7 @@ CREATE TABLE {$db_prefix}moderators (
 CREATE TABLE {$db_prefix}moderator_groups (
   id_board smallint(5) unsigned NOT NULL default '0',
   id_group smallint(5) unsigned NOT NULL default '0',
-  PRIMARY KEY (id_board, id_group) 
+  PRIMARY KEY (id_board, id_group)
 ) ENGINE=MyISAM;
 
 #

+ 14 - 14
other/install_2-1_postgresql.sql

@@ -34,8 +34,8 @@ CREATE OR REPLACE FUNCTION IFNULL (int, boolean) RETURNS int AS
   'SELECT COALESCE($1, CAST($2 AS int)) AS result'
 LANGUAGE 'sql';
 
-CREATE OR REPLACE FUNCTION INET_ATON(text) RETURNS bigint AS
-  'SELECT
+CREATE OR REPLACE FUNCTION INET_ATON(text) RETURNS bigint AS '
+	SELECT
 	CASE WHEN
 		$1 !~ ''^[0-9]?[0-9]?[0-9]?\.[0-9]?[0-9]?[0-9]?\.[0-9]?[0-9]?[0-9]?\.[0-9]?[0-9]?[0-9]?$'' THEN 0
 	ELSE
@@ -46,12 +46,12 @@ CREATE OR REPLACE FUNCTION INET_ATON(text) RETURNS bigint AS
 	END AS result'
 LANGUAGE 'sql';
 
-CREATE OR REPLACE FUNCTION INET_NTOA(bigint) RETURNS text AS
-  'SELECT
-    (($1 >> 24) & 255::int8) || ''.'' ||
-    (($1 >> 16) & 255::int8) || ''.'' ||
-    (($1 >> 8) & 255::int8) || ''.'' ||
-    ($1 & 255::int8) AS result'
+CREATE OR REPLACE FUNCTION INET_NTOA(bigint) RETURNS text AS '
+	SELECT
+		(($1 >> 24) & 255::int8) || ''.'' ||
+		(($1 >> 16) & 255::int8) || ''.'' ||
+		(($1 >> 8) & 255::int8) || ''.'' ||
+		($1 & 255::int8) AS result'
 LANGUAGE 'sql';
 
 CREATE OR REPLACE FUNCTION FIND_IN_SET(needle text, haystack text) RETURNS integer AS '
@@ -109,11 +109,11 @@ CREATE OR REPLACE FUNCTION HOUR (timestamp) RETURNS integer AS
   'SELECT CAST (EXTRACT(HOUR FROM $1) AS integer) AS result'
 LANGUAGE 'sql';
 
-CREATE OR REPLACE FUNCTION DATE_FORMAT (timestamp, text) RETURNS text AS
-  'SELECT
-    REPLACE(
-        REPLACE($2, ''%m'', to_char($1, ''MM'')),
-    ''%d'', to_char($1, ''DD'')) AS result'
+CREATE OR REPLACE FUNCTION DATE_FORMAT (timestamp, text) RETURNS text AS '
+	SELECT
+	REPLACE(
+		REPLACE($2, ''%m'', to_char($1, ''MM'')),
+		''%d'', to_char($1, ''DD'')) AS result'
 LANGUAGE 'sql';
 
 CREATE OR REPLACE FUNCTION TO_DAYS (timestamp) RETURNS integer AS
@@ -1844,7 +1844,7 @@ CREATE TABLE {$db_prefix}moderators (
 CREATE TABLE {$db_prefix}moderator_groups (
   id_board smallint NOT NULL default '0',
   id_group smallint NOT NULL default '0',
-  PRIMARY KEY (id_board, id_group) 
+  PRIMARY KEY (id_board, id_group)
 );
 
 #

+ 1 - 1
other/install_2-1_sqlite.sql

@@ -1530,7 +1530,7 @@ CREATE TABLE {$db_prefix}moderators (
 CREATE TABLE {$db_prefix}moderator_groups (
   id_board smallint NOT NULL default '0',
   id_group smallint NOT NULL default '0',
-  PRIMARY KEY (id_board, id_group) 
+  PRIMARY KEY (id_board, id_group)
 );
 
 #

+ 0 - 1
other/upgrade.php

@@ -3562,7 +3562,6 @@ function template_upgrade_above()
 
 	if (isset($upcontext['step_progress']))
 		echo '
-				
 				<br />
 				<br />
 				<div id="progress">

+ 10 - 10
other/upgrade_2-0_postgresql.sql

@@ -1172,11 +1172,11 @@ LANGUAGE 'sql';
 ---#
 
 ---# Adding date_format()
-CREATE OR REPLACE FUNCTION DATE_FORMAT (timestamp, text) RETURNS text AS
-  'SELECT
-    REPLACE(
-        REPLACE($2, ''%m'', to_char($1, ''MM'')),
-    ''%d'', to_char($1, ''DD'')) AS result'
+CREATE OR REPLACE FUNCTION DATE_FORMAT (timestamp, text) RETURNS text AS '
+	SELECT
+		REPLACE(
+			REPLACE($2, ''%m'', to_char($1, ''MM'')),
+			''%d'', to_char($1, ''DD'')) AS result'
 LANGUAGE 'sql';
 ---#
 
@@ -1262,11 +1262,11 @@ CREATE OR REPLACE FUNCTION FIND_IN_SET(needle integer, haystack text) RETURNS in
 LANGUAGE 'sql';
 ---#
 
-CREATE OR REPLACE FUNCTION DATE_FORMAT (timestamp, text) RETURNS text AS
-  'SELECT
-    REPLACE(
-        REPLACE($2, ''%m'', to_char($1, ''MM'')),
-    ''%d'', to_char($1, ''DD'')) AS result'
+CREATE OR REPLACE FUNCTION DATE_FORMAT (timestamp, text) RETURNS text AS '
+	SELECT
+		REPLACE(
+			REPLACE($2, ''%m'', to_char($1, ''MM'')),
+		''%d'', to_char($1, ''DD'')) AS result'
 LANGUAGE 'sql';
 
 ---# Updating TO_DAYS()