Browse Source

! General cleanup, spelling, spacing, extra lines, etc ....

Spuds 13 years ago
parent
commit
e284242990

+ 2 - 2
Sources/Calendar.php

@@ -360,7 +360,7 @@ function iCalDownload()
 	$datestamp = date('Ymd\THis\Z', time());
 	$datestart = $event['year'] . ($event['month'] < 10 ? '0' . $event['month'] : $event['month']) . ($event['day'] < 10 ? '0' . $event['day'] : $event['day']);
 
-	// Do we have a mutli day event?
+	// Do we have a event that spans several days?
 	if ($event['span'] > 1)
 	{
 		$dateend = strtotime($event['year'] . '-' . ($event['month'] < 10 ? '0' . $event['month'] : $event['month']) . '-' . ($event['day'] < 10 ? '0' . $event['day'] : $event['day']));
@@ -408,7 +408,7 @@ function iCalDownload()
 	header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . 'GMT');
 	header('Accept-Ranges: bytes');
 	header('Connection: close');
-	header('Content-Disposition: attachment; filename=' . $event['title'] . '.ics');
+	header('Content-Disposition: attachment; filename="' . $event['title'] . '.ics"');
 	if (empty($modSettings['enableCompressedOutput']))
 		header('Content-Length: ' . $smcFunc['strlen']($filecontents));
 	

+ 0 - 2
Sources/Subs-Auth.php

@@ -105,8 +105,6 @@ function setLoginCookie($cookie_length, $id, $password = '')
 	}
 }
 
-
-
 /**
  * Get the domain and path for the cookie
  * - normally, local and global should be the localCookies and globalCookies settings, respectively.

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

@@ -404,7 +404,7 @@ function template_modify_board()
 
 	if (empty($modSettings['deny_boards_access']))
 		echo '
-							<em>', $txt['check_all'], '</em> <input type="checkbox" class="input_check" onclick="invertAll(this, this.form, \'groups[]\');" /><br />
+							<em>', $txt['check_all'], '</em> <input type="checkbox" class="input_check" onclick="invertAll(this, this.form, \'groups[\');" /><br />
 							<br />
 						</dd>';
 	else

+ 6 - 2
Themes/default/css/index.css

@@ -1985,8 +1985,8 @@ p#whoisviewing
 /* poster and postarea + moderation area underneath */
 .post_wrapper
 {
-	float:left;
-	width:100%;
+	float: left;
+	width: 100%;
 }
 .poster
 {
@@ -2001,6 +2001,10 @@ p#whoisviewing
 {
 	width: 100%;
 }
+.poster img
+{
+	vertical-align: middle;
+}
 
 .moderatorbar
 {

+ 1 - 4
Themes/default/index.template.php

@@ -201,10 +201,7 @@ function template_html_above()
 </head>
 <body id="', $context['browser_body_id'], '" class="action_', !empty($context['current_action']) ? htmlspecialchars($context['current_action']) : (!empty($context['current_board']) ? 'messageindex' : (!empty($context['current_topic']) ? 'display' : 'home')),
 	!empty($context['current_board']) ? ' board_' . htmlspecialchars($context['current_board']) : '',
-	'"',
-	// Style per page.
-	!empty($context['body_id']) ? ' id="' . $context['body_id'] . '"' : '', '>';
-
+	'">';
 }
 
 function template_body_above()

+ 1 - 0
Themes/default/languages/Help.english.php

@@ -416,6 +416,7 @@ $helptxt['queryless_urls'] = 'This changes the format of URLs a little so search
 $helptxt['countChildPosts'] = 'Checking this option will mean that posts and topics in a board\'s child board will count toward its totals on the index page.<br /><br />This will make things notably slower, but means that a parent with no posts in it won\'t show \'0\'.';
 $helptxt['fixLongWords'] = 'This option breaks words longer than a certain length into pieces so they don\'t disturb the forum\'s layout. (as much...)  This option should not be set to a value under 40. This option will not work with forums using UTF-8. This ' .  (empty($GLOBALS['context']['utf8']) ? 'WILL' : 'WILL NOT') . ' work on your server';
 $helptxt['allow_ignore_boards'] = 'Checking this option will allow users to select boards they wish to ignore.';
+$helptxt['deny_boards_access'] = 'Checking this option will allow you to deny access to certain boards based on membergroup access';
 
 $helptxt['who_enabled'] = 'This option allows you to turn on or off the ability for users to see who is browsing the forum and what they are doing.';
 

+ 1 - 1
Themes/default/languages/ManageMaintenance.english.php

@@ -221,6 +221,6 @@ $txt['use_external_tool'] = 'Please consider using an external tool to backup yo
 $txt['zipped_file'] = 'If you want you can create a compressed (zipped) backup.';
 $txt['plain_text'] = 'The best method to backup your database is to create a plain text file, a compressed package may not be completely reliable.';
 $txt['enable_maintenance1'] = 'Due to the size of your forum, it is recommended to place your forum in "maintenance mode" before you start the backup.';
-$txt['enable_maintenance2'] = 'To proceed, due to the size of your forum, please place your fourm in "maintenance mode".';
+$txt['enable_maintenance2'] = 'To proceed, due to the size of your forum, please place your forum in "maintenance mode".';
 
 ?>

+ 5 - 2
other/upgrade_2-1_postgresql.sql

@@ -225,7 +225,10 @@ VALUES
 --- Adding support for deny boards access
 /******************************************************************************/
 ---# Adding new columns to boards...
-ALTER TABLE {$db_prefix}boards
-ADD COLUMN deny_member_groups varchar(255) NOT NULL DEFAULT '';
+---{
+upgrade_query("
+	ALTER TABLE {$db_prefix}boards
+	ADD COLUMN deny_member_groups varchar(255) NOT NULL DEFAULT ''");
+---}
 ---#
 

+ 14 - 2
other/upgrade_2-1_sqlite.sql

@@ -192,6 +192,18 @@ VALUES
 --- Adding support for deny boards access
 /******************************************************************************/
 ---# Adding new columns to boards...
-ALTER TABLE {$db_prefix}boards
-ADD COLUMN deny_member_groups varchar(255) NOT NULL DEFAULT '';
+---{
+$smcFunc['db_alter_table']('{db_prefix}boards', array(
+	'add' => array(
+		'deny_member_groups' => array(
+			'name' => 'deny_member_groups',
+			'null' => false,
+			'default' => '',
+			'type' => varchar,
+			'size' => 255,
+			'auto' => false,
+		),
+	)
+));
+---}
 ---#