Skip to content
Permalink
Browse files

* Spacinazi, more precisely, double spaces before new sentences. Ther…

…e were still a lot of these... (18 files, not listing them, doesn't matter if you don't update them.)
  • Loading branch information...
Nao committed Apr 10, 2014
1 parent b3effe6 commit 9bf4a224b64c8633eaa6dc99ac1c06d69117bbc3
@@ -229,7 +229,7 @@ function Dlattach()
}
fclose($fp);
}
// On some of the less-bright hosts, readfile() is disabled. It's just a faster, more byte safe, version of what's in the if.
// On some of the less-bright hosts, readfile() is disabled. It's just a faster, more byte safe, version of what's in the if.
elseif (isset($callback) || @readfile($filename) == null)
echo isset($callback) ? $callback(file_get_contents($filename)) : file_get_contents($filename);
@@ -12,7 +12,7 @@
die('Hacking attempt...');
/* This file is here to make it easier for installed mods to have settings
and options. It uses the following functions:
and options. It uses the following functions:
void ModifySignatureSettings()
// !!!
@@ -1075,7 +1075,7 @@ function setPermissionLevel($level, $group, $profile = 'null')
'send_topic',
);
// Standard - ie. members. They can do anything Restrictive can.
// Standard - ie. members. They can do anything Restrictive can.
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_mlist',
'pm_read',
@@ -1126,7 +1126,7 @@ function setPermissionLevel($level, $group, $profile = 'null')
'approve_posts',
));
// Maintenance - wannabe admins. They can do almost everything.
// Maintenance - wannabe admins. They can do almost everything.
$groupLevels['global']['maintenance'] = array_merge($groupLevels['global']['moderator'], array(
'manage_attachments',
'manage_smileys',
@@ -282,7 +282,7 @@ function EditSearchMethod()
// Format the data and index length in kilobytes.
foreach ($context['table_info'] as $type => $size)
{
// If it's not numeric then just break. This database engine doesn't support size.
// If it's not numeric then just break. This database engine doesn't support size.
if (!is_numeric($size))
break;
@@ -12,7 +12,7 @@
die('Hacking attempt...');
/* This file contains the functions for displaying and searching in the
members list. It does so with these functions:
members list. It does so with these functions:
void MemberList()
- shows a list of registered members.
@@ -439,7 +439,7 @@ function MLSearch()
$context['old_search'] = $_REQUEST['search'];
$context['old_search_value'] = urlencode($_REQUEST['search']);
// No fields? Use default...
// No fields? Use default...
if (empty($_POST['fields']))
$_POST['fields'] = array('name');
@@ -611,7 +611,7 @@ function MergeExecute($topics = array())
// Grab the response prefix (like 'Re: ') in the default forum language.
getRePrefix();
// Change the topic IDs of all messages that will be merged. Also adjust subjects if 'enforce subject' was checked.
// Change the topic IDs of all messages that will be merged. Also adjust subjects if 'enforce subject' was checked.
wesql::query('
UPDATE {db_prefix}messages
SET
@@ -24,7 +24,7 @@
array list_getModLogEntries($start, $items_per_page, $sort, $query_string = '', $query_params = array(), $log_type = 1)
- Gets the moderation log entries that match the specified paramaters
- limit can be an array with two values
- search_param and order should be proper SQL strings or blank. If blank they are not used.
- search_param and order should be proper SQL strings or blank. If blank they are not used.
*/
// Show the moderation log
@@ -258,7 +258,7 @@ function setPassword2()
// Just in case, flood control.
validatePasswordFlood($_POST['u'], $flood_value, true);
// User validated. Update the database!
// User validated. Update the database!
updateMemberData($_POST['u'], array('validation_code' => '', 'passwd' => sha1(strtolower($username) . $_POST['passwrd1'])));
call_hook('reset_pass', array($username, $username, $_POST['passwrd1']));
@@ -11,8 +11,8 @@
if (!defined('WEDGE'))
die('Hacking attempt...');
/* This is here for the "repair any errors" feature in the admin center. It
uses just two simple functions:
/* This is here for the "repair any errors" feature in the admin center.
It uses just two simple functions:
void RepairBoards()
- finds or repairs errors in the database to fix possible problems.
@@ -121,7 +121,7 @@ function pauseRepairProcess($to_fix, $current_step_description, $max_substep = 0
if (function_exists('apache_reset_timeout'))
@apache_reset_timeout();
// Errr, wait. How much time has this taken already?
// Errr, wait. How much time has this taken already?
if (!$force && microtime(true) - $time_start < 3)
return;
@@ -443,7 +443,7 @@ function scheduled_daily_maintenance()
if (!empty($settings['pruneErrorLog']))
{
// Figure out when our cutoff time is. 1 day = 86400 seconds.
// Figure out when our cutoff time is. 1 day = 86400 seconds.
$t = time() - $settings['pruneErrorLog'] * 86400;
wesql::query('
@@ -1288,7 +1288,7 @@ function scheduled_weekly_maintenance()
if (!empty($settings['pruneModLog']))
{
// Figure out when our cutoff time is. 1 day = 86400 seconds.
// Figure out when our cutoff time is. 1 day = 86400 seconds.
$t = time() - $settings['pruneModLog'] * 86400;
wesql::query('
@@ -1304,10 +1304,10 @@ function scheduled_weekly_maintenance()
if (!empty($settings['pruneReportLog']))
{
// Figure out when our cutoff time is. 1 day = 86400 seconds.
// Figure out when our cutoff time is. 1 day = 86400 seconds.
$t = time() - $settings['pruneReportLog'] * 86400;
// This one is more complex then the other logs. First we need to figure out which reports are too old.
// This one is more complex then the other logs. First we need to figure out which reports are too old.
$reports = array();
$result = wesql::query('
SELECT id_report
@@ -1350,7 +1350,7 @@ function scheduled_weekly_maintenance()
if (!empty($settings['pruneScheduledTaskLog']))
{
// Figure out when our cutoff time is. 1 day = 86400 seconds.
// Figure out when our cutoff time is. 1 day = 86400 seconds.
$t = time() - $settings['pruneScheduledTaskLog'] * 86400;
wesql::query('
@@ -1364,7 +1364,7 @@ function scheduled_weekly_maintenance()
if (!empty($settings['pruneSpiderHitLog']))
{
// Figure out when our cutoff time is. 1 day = 86400 seconds.
// Figure out when our cutoff time is. 1 day = 86400 seconds.
$t = time() - $settings['pruneSpiderHitLog'] * 86400;
wesql::query('
@@ -63,7 +63,7 @@ function Search2()
$weight_total += $weight[$weight_factor];
}
// Zero weight. Weightless :P.
// Zero weight. Weightless. :P
if (empty($weight_total))
fatal_lang_error('search_invalid_weights');
@@ -604,7 +604,7 @@ function Search2()
unset($suggestions[$i]);
}
// Anything found? If so, correct it!
// Anything found? If so, correct it!
if (!empty($suggestions))
{
$suggestions = array_values($suggestions);
@@ -1480,7 +1480,7 @@ function prepareSearchContext($reset = false)
global $memberContext, $messages_request;
global $boards_can, $participants;
// Remember which message this is. (ie. reply #83)
// Remember which message this is, e.g. reply #83.
static $counter = null;
if ($counter == null || $reset)
$counter = $_REQUEST['start'] + 1;
@@ -253,7 +253,7 @@ function adminLogin()
$context['get_data'] = '?' . construct_query_string($_GET);
$context['post_data'] = '';
// Now go through $_POST. Make sure the session hash is sent.
// Now go through $_POST. Make sure the session hash is sent.
$_POST[$context['session_var']] = $context['session_id'];
foreach ($_POST as $k => $v)
$context['post_data'] .= adminLogin_outputPostVars($k, $v);
@@ -454,7 +454,7 @@ function validateUsername($memID, $username)
{
global $txt;
// No name?! How can you register with no name?
// No name?! How can you register with no name?
if ($username == '')
fatal_lang_error('need_username', false);
@@ -34,7 +34,7 @@ function getBoardIndex($boardIndexOptions)
'ref' => 0,
);
// Find all boards and categories, as well as related information. This will be sorted by the natural order of boards and categories, which we control.
// Find all boards and categories, as well as related information. This will be sorted by the natural order of boards and categories, which we control.
$result_boards = wesql::query('
SELECT' . ($boardIndexOptions['include_categories'] ? '
c.id_cat, c.name AS cat_name, c.cat_order,' : '') . '
@@ -118,7 +118,7 @@ function getBoardIndex($boardIndexOptions)
else
$categories[$row_board['id_cat']]['is_collapsed'] = false;
// Let's save some typing. Climbing the array might be slower, anyhow.
// Let's save some typing. Climbing the array might be slower, anyhow.
$this_category =& $categories[$row_board['id_cat']]['boards'];
}
@@ -12,8 +12,8 @@
die('Hacking attempt...');
/* This file is mainly concerned with minor tasks relating to boards, such as
marking them read, collapsing categories, or quick moderation. It defines
the following list of functions:
marking them read, collapsing categories, or quick moderation.
It defines the following list of functions:
void markBoardsRead(array boards)
// !!!
@@ -14,9 +14,9 @@
die('Hacking attempt...');
/* This whole file deals almost exclusively with handling avatars,
specifically uploaded ones. It uses, for gifs at least, Gif Util... for
more information on that, please see its website, shown above. The other
functions are as follows:
specifically uploaded ones. It uses, for gifs at least, Gif Util... for
more information on that, please see its website, shown above.
The other functions are as follows:
bool downloadAvatar(string url, int id_member, int max_width,
int max_height)
@@ -422,7 +422,7 @@ function imagecreatefrombmp($filename)
{
$color = imagecolorallocate($dst_img, $r, $g, $b);
// Gah! Out of colors? Stupid GD 1... try anyhow.
// Gah! Out of colors? Stupid GD 1... try anyhow.
if ($color == -1)
$color = imagecolorclosest($dst_img, $r, $g, $b);
}
@@ -444,7 +444,7 @@ function imagecreatefrombmp($filename)
{
$color = imagecolorallocate($dst_img, $r, $g, $b);
// Gah! Out of colors? Stupid GD 1... try anyhow.
// Gah! Out of colors? Stupid GD 1... try anyhow.
if ($color == -1)
$color = imagecolorclosest($dst_img, $r, $g, $b);
}
@@ -472,7 +472,7 @@ function imagecreatefrombmp($filename)
{
$color = imagecolorallocate($dst_img, $r, $g, $b);
// Gah! Out of colors? Stupid GD 1... try anyhow.
// Gah! Out of colors? Stupid GD 1... try anyhow.
if ($color == -1)
$color = imagecolorclosest($dst_img, $r, $g, $b);
}
@@ -106,7 +106,7 @@ function deleteMembers($users, $check_not_admin = false, $merge_to = false)
foreach ($users as $k => $v)
$users[$k] = (int) $v;
// Deleting more than one? You can't have more than one account...
// Deleting more than one? You can't have more than one account...
isAllowedTo('profile_remove_any');
}
@@ -134,7 +134,7 @@ function deleteMembers($users, $check_not_admin = false, $merge_to = false)
if (empty($user_log_details))
return;
// Make sure they aren't trying to delete administrators if they aren't one. But don't bother checking if it's just themself.
// Make sure they aren't trying to delete administrators if they aren't one. But don't bother checking if it's just themself.
if (!empty($admins) && ($check_not_admin || (!allowedTo('admin_forum') && (count($users) != 1 || $users[0] != MID))))
{
$users = array_diff($users, $admins);
@@ -482,7 +482,7 @@ function registerMember(&$regOptions, $return_errors = false)
fatal_lang_error('register_only_once', false);
}
// No name?! How can you register with no name?
// No name?! How can you register with no name?
if (empty($regOptions['username']))
$reg_errors[] = array('lang', 'need_username');
@@ -626,7 +626,7 @@ function registerMember(&$regOptions, $return_errors = false)
if ($regOptions['require'] == 'coppa')
{
$regOptions['register_vars']['is_activated'] = 5;
// !!! This should be changed. To what should be it be changed??
// !!! This should be changed. To what should be it be changed??
$regOptions['register_vars']['validation_code'] = '';
}
// Maybe it can be activated right away?
@@ -33,7 +33,7 @@
<div class="bbc_code"><header>Code: <a href="#" onclick="return weSelectText(this);" class="codeoperation">[Select]</a></header><code>&lt;?php require(&quot;<?php echo htmlspecialchars(we::$is_admin ? realpath(ROOT_DIR . '/core/SSI.php') : 'core/SSI.php'); ?>&quot;); ?&gt;</code></div>

<h2>Some notes on usage</h2>
<p>All the functions have an output method parameter. This can either be &quot;echo&quot; (the default) or &quot;array&quot;.</p>
<p>All the functions have an output method parameter. This can either be &quot;echo&quot; (the default) or &quot;array&quot;.</p>
<p>If it is &quot;echo&quot;, the function will act normally - otherwise, it will return an array containing information about the requested task. For example, it might return a list of topics for ssi_recentTopics.</p>
<p>This functionality can be used to allow you to present the information in any way you wish.</p>

@@ -117,7 +117,7 @@ modification, are permitted provided that the following conditions are met:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS

0 comments on commit 9bf4a22

Please sign in to comment.
You can’t perform that action at this time.