Zeile 187 | Zeile 187 |
---|
}
// Has the user tried to use their email address or username as a password?
|
}
// Has the user tried to use their email address or username as a password?
|
if($user['email'] === $user['password'] || $user['username'] === $user['password'])
| if(!empty($user['email']) && !empty($user['username']))
|
{
|
{
|
$this->set_error('bad_password_security'); return false;
| if($user['email'] === $user['password'] || $user['username'] === $user['password'] || strpos($user['password'], $user['email']) !== false || strpos($user['password'], $user['username']) !== false || strpos($user['email'], $user['password']) !== false || strpos($user['username'], $user['password']) !== false) { $this->set_error('bad_password_security'); return false; }
|
}
// See if the board has "require complex passwords" enabled.
| }
// See if the board has "require complex passwords" enabled.
|
Zeile 203 | Zeile 208 |
---|
$this->set_error('no_complex_characters', array($mybb->settings['minpasswordlength'])); return false; }
|
$this->set_error('no_complex_characters', array($mybb->settings['minpasswordlength'])); return false; }
|
}
| }
|
// If we have a "password2" check if they both match if(isset($user['password2']) && $user['password'] !== $user['password2'])
| // If we have a "password2" check if they both match if(isset($user['password2']) && $user['password'] !== $user['password2'])
|
Zeile 211 | Zeile 216 |
---|
$this->set_error("passwords_dont_match"); return false; }
|
$this->set_error("passwords_dont_match"); return false; }
|
// MD5 the password $user['md5password'] = md5($user['password']);
// Generate our salt $user['salt'] = generate_salt();
// Combine the password and salt $user['saltedpw'] = salt_password($user['md5password'], $user['salt']);
| |
// Generate the user login key $user['loginkey'] = generate_loginkey();
|
// Generate the user login key $user['loginkey'] = generate_loginkey();
|
| // Combine the password and salt $password_fields = create_password($user['password'], false, $user); $user = array_merge($user, $password_fields);
|
return true; }
| return true; }
|
Zeile 381 | Zeile 381 |
---|
$this->set_error("invalid_birthday"); return false; }
|
$this->set_error("invalid_birthday"); return false; }
|
else if($birthday['year'] == date("Y"))
| elseif($birthday['year'] == date("Y"))
|
{ // Error if birth date is in future if($birthday['month'] > date("m") || ($birthday['month'] == date("m") && $birthday['day'] > date("d")))
| { // Error if birth date is in future if($birthday['month'] > date("m") || ($birthday['month'] == date("m") && $birthday['day'] > date("d")))
|
Zeile 577 | Zeile 577 |
---|
$this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength'])); }
|
$this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength'])); }
|
if(!empty($profilefield['regex']) && !preg_match("#".$profilefield['regex']."#i", $profile_fields[$field]))
| if(!empty($profilefield['regex']) && !empty($profile_fields[$field]) && !preg_match("#".$profilefield['regex']."#i", $profile_fields[$field]))
|
{ $this->set_error('bad_profile_field_value', array($profilefield['name'])); }
| { $this->set_error('bad_profile_field_value', array($profilefield['name'])); }
|
Zeile 593 | Zeile 593 |
---|
/** * Verifies if an optionally entered referrer exists or not.
|
/** * Verifies if an optionally entered referrer exists or not.
|
*
| *
|
* @return boolean True when valid, false when invalid. */ function verify_referrer()
| * @return boolean True when valid, false when invalid. */ function verify_referrer()
|
Zeile 654 | Zeile 654 |
---|
$this->verify_yesno_option($options, 'buddyrequestsauto', 0);
if($mybb->settings['postlayout'] == 'classic')
|
$this->verify_yesno_option($options, 'buddyrequestsauto', 0);
if($mybb->settings['postlayout'] == 'classic')
|
{
| {
|
$this->verify_yesno_option($options, 'classicpostbit', 1); } else
| $this->verify_yesno_option($options, 'classicpostbit', 1); } else
|
Zeile 686 | Zeile 686 |
---|
{ $options['dst'] = 1; }
|
{ $options['dst'] = 1; }
|
else if($options['dstcorrection'] == 0)
| elseif($options['dstcorrection'] == 0)
|
{ $options['dst'] = 0; }
|
{ $options['dst'] = 0; }
|
if($this->method == "insert" || (isset($options['threadmode']) && $options['threadmode'] != "linear" && $options['threadmode'] != "threaded"))
| if($this->method == "insert" || (isset($options['threadmode']) && $options['threadmode'] != "linear" && $options['threadmode'] != "threaded" && $options['threadmode'] != ''))
|
{
|
{
|
if($mybb->settings['threadusenetstyle']) { $options['threadmode'] = 'threaded'; } else { $options['threadmode'] = 'linear'; }
| $options['threadmode'] = '';
|
}
// Verify the "threads per page" option.
| }
// Verify the "threads per page" option.
|
Zeile 834 | Zeile 827 |
---|
$user['away']['awayreason'] = ''; return true; }
|
$user['away']['awayreason'] = ''; return true; }
|
else if($user['away']['returndate'])
| elseif($user['away']['returndate'])
|
{
|
{
|
| // Validate the awayreason length, since the db holds 200 chars for this field $reasonlength = my_strlen($user['away']['awayreason']); if($reasonlength > 200) { $this->set_error("away_too_long", array($reasonlength - 200)); return false; }
|
list($returnday, $returnmonth, $returnyear) = explode('-', $user['away']['returndate']); if(!$returnday || !$returnmonth || !$returnyear) {
| list($returnday, $returnmonth, $returnyear) = explode('-', $user['away']['returndate']); if(!$returnday || !$returnmonth || !$returnyear) {
|
Zeile 855 | Zeile 856 |
---|
* @return boolean True when valid, false when invalid. */ function verify_language()
|
* @return boolean True when valid, false when invalid. */ function verify_language()
|
{ global $lang;
| { global $lang;
|
$language = &$this->data['language'];
| $language = &$this->data['language'];
|
Zeile 896 | Zeile 897 |
---|
/** * Verifies if this is coming from a spam bot or not
|
/** * Verifies if this is coming from a spam bot or not
|
*
| *
|
* @return boolean True when valid, false when invalid. */ function verify_checkfields()
| * @return boolean True when valid, false when invalid. */ function verify_checkfields()
|
Zeile 920 | Zeile 921 |
---|
*/ function verify_timezone() {
|
*/ function verify_timezone() {
|
| global $mybb;
|
$user = &$this->data;
$timezones = get_supported_timezones();
| $user = &$this->data;
$timezones = get_supported_timezones();
|
Zeile 976 | Zeile 979 |
---|
$this->verify_usergroup(); } if($this->method == "insert" || array_key_exists('email', $user))
|
$this->verify_usergroup(); } if($this->method == "insert" || array_key_exists('email', $user))
|
{
| {
|
$this->verify_email(); } if($this->method == "insert" || array_key_exists('website', $user))
| $this->verify_email(); } if($this->method == "insert" || array_key_exists('website', $user))
|
Zeile 984 | Zeile 987 |
---|
$this->verify_website(); } if($this->method == "insert" || array_key_exists('icq', $user))
|
$this->verify_website(); } if($this->method == "insert" || array_key_exists('icq', $user))
|
{
| {
|
$this->verify_icq();
|
$this->verify_icq();
|
}
| }
|
if($this->method == "insert" || (isset($user['birthday']) && is_array($user['birthday']))) { $this->verify_birthday();
| if($this->method == "insert" || (isset($user['birthday']) && is_array($user['birthday']))) { $this->verify_birthday();
|
Zeile 996 | Zeile 999 |
---|
$this->verify_postnum(); } if($this->method == "insert" || array_key_exists('threadnum', $user))
|
$this->verify_postnum(); } if($this->method == "insert" || array_key_exists('threadnum', $user))
|
{
| {
|
$this->verify_threadnum(); } if($this->method == "insert" || array_key_exists('profile_fields', $user)) { $this->verify_profile_fields();
|
$this->verify_threadnum(); } if($this->method == "insert" || array_key_exists('profile_fields', $user)) { $this->verify_profile_fields();
|
}
| }
|
if($this->method == "insert" || array_key_exists('referrer', $user)) { $this->verify_referrer(); } if($this->method == "insert" || array_key_exists('options', $user))
|
if($this->method == "insert" || array_key_exists('referrer', $user)) { $this->verify_referrer(); } if($this->method == "insert" || array_key_exists('options', $user))
|
{
| {
|
$this->verify_options(); } if($this->method == "insert" || array_key_exists('regdate', $user)) { $this->verify_regdate();
|
$this->verify_options(); } if($this->method == "insert" || array_key_exists('regdate', $user)) { $this->verify_regdate();
|
}
| }
|
if($this->method == "insert" || array_key_exists('lastvisit', $user)) { $this->verify_lastvisit(); } if($this->method == "insert" || array_key_exists('lastactive', $user))
|
if($this->method == "insert" || array_key_exists('lastvisit', $user)) { $this->verify_lastvisit(); } if($this->method == "insert" || array_key_exists('lastactive', $user))
|
{
| {
|
$this->verify_lastactive(); } if($this->method == "insert" || array_key_exists('away', $user))
| $this->verify_lastactive(); } if($this->method == "insert" || array_key_exists('away', $user))
|
Zeile 1087 | Zeile 1090 |
---|
$user = &$this->data;
|
$user = &$this->data;
|
$array = array('postnum', 'threadnum', 'avatar', 'avatartype', 'additionalgroups', 'displaygroup', 'icq', 'aim', 'yahoo', 'skype', 'google', 'bday', 'signature', 'style', 'dateformat', 'timeformat', 'notepad');
| $array = array('postnum', 'threadnum', 'avatar', 'avatartype', 'additionalgroups', 'displaygroup', 'icq', 'skype', 'google', 'bday', 'signature', 'style', 'dateformat', 'timeformat', 'notepad');
|
foreach($array as $value) { if(!isset($user[$value])) { $user[$value] = '';
|
foreach($array as $value) { if(!isset($user[$value])) { $user[$value] = '';
|
}
| } } // If user is being created from ACP, there is no last visit or last active if(defined('IN_ADMINCP')) { $user['lastvisit'] = $user['lastactive'] = 0;
|
}
$this->user_insert_data = array( "username" => $db->escape_string($user['username']),
|
}
$this->user_insert_data = array( "username" => $db->escape_string($user['username']),
|
"password" => $user['saltedpw'],
| "password" => $user['password'],
|
"salt" => $user['salt'], "loginkey" => $user['loginkey'], "email" => $db->escape_string($user['email']),
| "salt" => $user['salt'], "loginkey" => $user['loginkey'], "email" => $db->escape_string($user['email']),
|
Zeile 1115 | Zeile 1124 |
---|
"lastvisit" => (int)$user['lastvisit'], "website" => $db->escape_string($user['website']), "icq" => (int)$user['icq'],
|
"lastvisit" => (int)$user['lastvisit'], "website" => $db->escape_string($user['website']), "icq" => (int)$user['icq'],
|
"aim" => $db->escape_string($user['aim']), "yahoo" => $db->escape_string($user['yahoo']),
| |
"skype" => $db->escape_string($user['skype']), "google" => $db->escape_string($user['google']), "birthday" => $user['bday'],
| "skype" => $db->escape_string($user['skype']), "google" => $db->escape_string($user['google']), "birthday" => $user['bday'],
|
Zeile 1159 | Zeile 1166 |
---|
"referrals" => 0, "buddylist" => '', "ignorelist" => '',
|
"referrals" => 0, "buddylist" => '', "ignorelist" => '',
|
"pmfolders" => '',
| "pmfolders" => "0**$%%$1**$%%$2**$%%$3**$%%$4**",
|
"notepad" => '', "warningpoints" => 0, "moderateposts" => 0,
| "notepad" => '', "warningpoints" => 0, "moderateposts" => 0,
|
Zeile 1175 | Zeile 1182 |
---|
{ $this->user_insert_data['dst'] = 1; }
|
{ $this->user_insert_data['dst'] = 1; }
|
else if($user['options']['dstcorrection'] == 0)
| elseif($user['options']['dstcorrection'] == 0)
|
{ $this->user_insert_data['dst'] = 0; }
| { $this->user_insert_data['dst'] = 0; }
|
Zeile 1197 | Zeile 1204 |
---|
continue; } $user['user_fields']["fid{$profile_field['fid']}"] = '';
|
continue; } $user['user_fields']["fid{$profile_field['fid']}"] = '';
|
} }
$db->insert_query("userfields", $user['user_fields'], false);
| } }
$db->insert_query("userfields", $user['user_fields'], false);
|
if($this->user_insert_data['referrer'] != 0) { $db->write_query("
| if($this->user_insert_data['referrer'] != 0) { $db->write_query("
|
Zeile 1250 | Zeile 1257 |
---|
if(count($this->get_errors()) > 0) { die("The user is not valid.");
|
if(count($this->get_errors()) > 0) { die("The user is not valid.");
|
}
| }
|
$user = &$this->data; $user['uid'] = (int)$user['uid']; $this->uid = $user['uid'];
// Set up the update data. if(isset($user['username']))
|
$user = &$this->data; $user['uid'] = (int)$user['uid']; $this->uid = $user['uid'];
// Set up the update data. if(isset($user['username']))
|
{
| {
|
$this->user_update_data['username'] = $db->escape_string($user['username']); }
|
$this->user_update_data['username'] = $db->escape_string($user['username']); }
|
if(isset($user['saltedpw']))
| if(isset($user['password'])) { $this->user_update_data['password'] = $user['password']; } if(isset($user['salt'])) { $this->user_update_data['salt'] = $user['salt']; } if(isset($user['loginkey']))
|
{
|
{
|
$this->user_update_data['password'] = $user['saltedpw']; $this->user_update_data['salt'] = $user['salt'];
| |
$this->user_update_data['loginkey'] = $user['loginkey']; } if(isset($user['email'])) {
|
$this->user_update_data['loginkey'] = $user['loginkey']; } if(isset($user['email'])) {
|
$this->user_update_data['email'] = $user['email'];
| $this->user_update_data['email'] = $db->escape_string($user['email']);
|
} if(isset($user['postnum'])) {
| } if(isset($user['postnum'])) {
|
Zeile 1303 | Zeile 1316 |
---|
if(isset($user['regdate'])) { $this->user_update_data['regdate'] = (int)$user['regdate'];
|
if(isset($user['regdate'])) { $this->user_update_data['regdate'] = (int)$user['regdate'];
|
}
| }
|
if(isset($user['lastactive']))
|
if(isset($user['lastactive']))
|
{
| {
|
$this->user_update_data['lastactive'] = (int)$user['lastactive'];
|
$this->user_update_data['lastactive'] = (int)$user['lastactive'];
|
}
| }
|
if(isset($user['lastvisit'])) { $this->user_update_data['lastvisit'] = (int)$user['lastvisit'];
| if(isset($user['lastvisit'])) { $this->user_update_data['lastvisit'] = (int)$user['lastvisit'];
|
Zeile 1315 | Zeile 1328 |
---|
if(isset($user['signature'])) { $this->user_update_data['signature'] = $db->escape_string($user['signature']);
|
if(isset($user['signature'])) { $this->user_update_data['signature'] = $db->escape_string($user['signature']);
|
}
| }
|
if(isset($user['website']))
|
if(isset($user['website']))
|
{
| {
|
$this->user_update_data['website'] = $db->escape_string($user['website']); } if(isset($user['icq'])) { $this->user_update_data['icq'] = (int)$user['icq'];
|
$this->user_update_data['website'] = $db->escape_string($user['website']); } if(isset($user['icq'])) { $this->user_update_data['icq'] = (int)$user['icq'];
|
} if(isset($user['aim'])) { $this->user_update_data['aim'] = $db->escape_string($user['aim']); } if(isset($user['yahoo'])) { $this->user_update_data['yahoo'] = $db->escape_string($user['yahoo']);
| |
} if(isset($user['skype'])) {
| } if(isset($user['skype'])) {
|
Zeile 1357 | Zeile 1362 |
---|
$this->user_update_data['timezone'] = $db->escape_string($user['timezone']); } if(isset($user['dateformat']))
|
$this->user_update_data['timezone'] = $db->escape_string($user['timezone']); } if(isset($user['dateformat']))
|
{
| {
|
$this->user_update_data['dateformat'] = $db->escape_string($user['dateformat']); } if(isset($user['timeformat']))
|
$this->user_update_data['dateformat'] = $db->escape_string($user['dateformat']); } if(isset($user['timeformat']))
|
{
| {
|
$this->user_update_data['timeformat'] = $db->escape_string($user['timeformat']); } if(isset($user['regip'])) { $this->user_update_data['regip'] = $db->escape_string($user['regip']);
|
$this->user_update_data['timeformat'] = $db->escape_string($user['timeformat']); } if(isset($user['regip'])) { $this->user_update_data['regip'] = $db->escape_string($user['regip']);
|
}
| }
|
if(isset($user['language'])) { $this->user_update_data['language'] = $db->escape_string($user['language']); } if(isset($user['away']))
|
if(isset($user['language'])) { $this->user_update_data['language'] = $db->escape_string($user['language']); } if(isset($user['away']))
|
{
| {
|
$this->user_update_data['away'] = (int)$user['away']['away']; $this->user_update_data['awaydate'] = $db->escape_string($user['away']['date']); $this->user_update_data['returndate'] = $db->escape_string($user['away']['returndate']);
| $this->user_update_data['away'] = (int)$user['away']['away']; $this->user_update_data['awaydate'] = $db->escape_string($user['away']['date']); $this->user_update_data['returndate'] = $db->escape_string($user['away']['returndate']);
|
Zeile 1382 | Zeile 1387 |
---|
if(isset($user['notepad'])) { $this->user_update_data['notepad'] = $db->escape_string($user['notepad']);
|
if(isset($user['notepad'])) { $this->user_update_data['notepad'] = $db->escape_string($user['notepad']);
|
}
| }
|
if(isset($user['usernotes']))
|
if(isset($user['usernotes']))
|
{
| {
|
$this->user_update_data['usernotes'] = $db->escape_string($user['usernotes']); } if(isset($user['options']) && is_array($user['options']))
| $this->user_update_data['usernotes'] = $db->escape_string($user['usernotes']); } if(isset($user['options']) && is_array($user['options']))
|
Zeile 1393 | Zeile 1398 |
---|
{ $this->user_update_data[$option] = $value; }
|
{ $this->user_update_data[$option] = $value; }
|
}
| }
|
if(array_key_exists('coppa_user', $user)) { $this->user_update_data['coppauser'] = (int)$user['coppa_user'];
| if(array_key_exists('coppa_user', $user)) { $this->user_update_data['coppauser'] = (int)$user['coppa_user'];
|
Zeile 1405 | Zeile 1410 |
---|
if($old_user['pmnotice'] == "2" && $this->user_update_data['pmnotice'] == 1) { unset($this->user_update_data['pmnotice']);
|
if($old_user['pmnotice'] == "2" && $this->user_update_data['pmnotice'] == 1) { unset($this->user_update_data['pmnotice']);
|
}
| }
|
$plugins->run_hooks("datahandler_user_update", $this);
if(count($this->user_update_data) < 1 && empty($user['user_fields']))
| $plugins->run_hooks("datahandler_user_update", $this);
if(count($this->user_update_data) < 1 && empty($user['user_fields']))
|
Zeile 1452 | Zeile 1457 |
---|
$user_fields[$field['Field']] = ''; } $db->insert_query("userfields", $user_fields);
|
$user_fields[$field['Field']] = ''; } $db->insert_query("userfields", $user_fields);
|
}
| }
|
$db->update_query("userfields", $user['user_fields'], "ufid='{$user['uid']}'", false); }
| $db->update_query("userfields", $user['user_fields'], "ufid='{$user['uid']}'", false); }
|
Zeile 1476 | Zeile 1481 |
---|
{ // User was latest to register, update stats update_stats(array("numusers" => "+0"));
|
{ // User was latest to register, update stats update_stats(array("numusers" => "+0"));
|
} }
| } }
|
return true; }
|
return true; }
|
|
|
/** * Provides a method to completely delete a user. *
| /** * Provides a method to completely delete a user. *
|
Zeile 1497 | Zeile 1502 |
---|
if(count($this->get_errors()) > 0) { die('The user is not valid.');
|
if(count($this->get_errors()) > 0) { die('The user is not valid.');
|
}
$this->delete_uids = array_map('intval', (array)$delete_uids);
| }
$this->delete_uids = array_map('intval', (array)$delete_uids);
|
foreach($this->delete_uids as $key => $uid)
|
foreach($this->delete_uids as $key => $uid)
|
{
| {
|
if(!$uid || is_super_admin($uid) || $uid == $mybb->user['uid']) { // Remove super admins
| if(!$uid || is_super_admin($uid) || $uid == $mybb->user['uid']) { // Remove super admins
|
Zeile 1511 | Zeile 1516 |
---|
}
$plugins->run_hooks('datahandler_user_delete_start', $this);
|
}
$plugins->run_hooks('datahandler_user_delete_start', $this);
|
|
|
$this->delete_uids = implode(',', $this->delete_uids);
if(empty($this->delete_uids))
| $this->delete_uids = implode(',', $this->delete_uids);
if(empty($this->delete_uids))
|
Zeile 1522 | Zeile 1527 |
---|
);
return $this->return_values;
|
);
return $this->return_values;
|
}
| }
|
$this->delete_content();
// Delete the user
| $this->delete_content();
// Delete the user
|
Zeile 1581 | Zeile 1586 |
---|
$plugins->run_hooks("datahandler_user_delete_end", $this);
// Update cache
|
$plugins->run_hooks("datahandler_user_delete_end", $this);
// Update cache
|
$cache->update_banned();
| |
$cache->update_moderators(); $cache->update_forumsdisplay(); $cache->update_reportedcontent(); $cache->update_awaitingactivation();
|
$cache->update_moderators(); $cache->update_forumsdisplay(); $cache->update_reportedcontent(); $cache->update_awaitingactivation();
|
| $cache->update_birthdays();
|
return $this->return_values; }
| return $this->return_values; }
|
Zeile 1596 | Zeile 1601 |
---|
* @param array|bool $delete_uids Array of user ids, false if they're already set (eg when using the delete_user function) */ function delete_content($delete_uids=false)
|
* @param array|bool $delete_uids Array of user ids, false if they're already set (eg when using the delete_user function) */ function delete_content($delete_uids=false)
|
{ global $db, $plugins, $mybb;
if($delete_uids != false) { $this->delete_uids = array_map('intval', (array)$delete_uids);
foreach($this->delete_uids as $key => $uid) { if(!$uid || is_super_admin($uid) || $uid == $mybb->user['uid']) {
| { global $db, $plugins, $mybb;
if($delete_uids != false) { $this->delete_uids = array_map('intval', (array)$delete_uids);
foreach($this->delete_uids as $key => $uid) { if(!$uid || is_super_admin($uid) || $uid == $mybb->user['uid']) {
|
// Remove super admins unset($this->delete_uids[$key]); }
| // Remove super admins unset($this->delete_uids[$key]); }
|
Zeile 1650 | Zeile 1655 |
---|
// Update the reports made by the deleted users by setting the uid to 0 $db->update_query('reportedcontent', array('uid' => 0), "uid IN({$this->delete_uids})");
|
// Update the reports made by the deleted users by setting the uid to 0 $db->update_query('reportedcontent', array('uid' => 0), "uid IN({$this->delete_uids})");
|
// Remove any of the user(s) uploaded avatars require_once MYBB_ROOT.'inc/functions_upload.php'; foreach(explode(',', $this->delete_uids) as $uid) { remove_avatars($uid); }
| // Remove any of the user(s) uploaded avatars require_once MYBB_ROOT.'inc/functions_upload.php'; foreach(explode(',', $this->delete_uids) as $uid) { remove_avatars($uid); }
|
}
/**
| }
/**
|
Zeile 1665 | Zeile 1670 |
---|
* @param array|bool $delete_uids Array of user ids, false if they're already set (eg when using the delete_user function) */ function delete_posts($delete_uids=false)
|
* @param array|bool $delete_uids Array of user ids, false if they're already set (eg when using the delete_user function) */ function delete_posts($delete_uids=false)
|
{ global $db, $plugins, $mybb;
if($delete_uids != false) { $this->delete_uids = array_map('intval', (array)$delete_uids);
foreach($this->delete_uids as $key => $uid) { if(!$uid || is_super_admin($uid) || $uid == $mybb->user['uid']) { // Remove super admins unset($this->delete_uids[$key]); } }
$this->delete_uids = implode(',', $this->delete_uids);
| { global $db, $plugins, $mybb;
if($delete_uids != false) { $this->delete_uids = array_map('intval', (array)$delete_uids);
foreach($this->delete_uids as $key => $uid) { if(!$uid || is_super_admin($uid) || $uid == $mybb->user['uid']) { // Remove super admins unset($this->delete_uids[$key]); } }
$this->delete_uids = implode(',', $this->delete_uids);
|
}
require_once MYBB_ROOT.'inc/class_moderation.php';
| }
require_once MYBB_ROOT.'inc/class_moderation.php';
|
Zeile 1740 | Zeile 1745 |
---|
"website" => "", "birthday" => "", "icq" => "",
|
"website" => "", "birthday" => "", "icq" => "",
|
"aim" => "", "yahoo" => "",
| |
"skype" => "", "google" => "", "usertitle" => "",
| "skype" => "", "google" => "", "usertitle" => "",
|
Zeile 1792 | Zeile 1795 |
---|
$parser_options = array( 'allow_html' => $mybb->settings['sightml'],
|
$parser_options = array( 'allow_html' => $mybb->settings['sightml'],
|
'filter_badwords' => 1,
| |
'allow_mycode' => $mybb->settings['sigmycode'], 'allow_smilies' => $mybb->settings['sigsmilies'], 'allow_imgcode' => $mybb->settings['sigimgcode'],
| 'allow_mycode' => $mybb->settings['sigmycode'], 'allow_smilies' => $mybb->settings['sigsmilies'], 'allow_imgcode' => $mybb->settings['sigimgcode'],
|
Zeile 1808 | Zeile 1810 |
---|
) { $imgsallowed = 0;
|
) { $imgsallowed = 0;
|
|
|
if($mybb->settings['sigimgcode'] == 1) { $imgsallowed = $mybb->settings['maxsigimages'];
| if($mybb->settings['sigimgcode'] == 1) { $imgsallowed = $mybb->settings['maxsigimages'];
|
Zeile 1819 | Zeile 1821 |
---|
if($mybb->settings['sigcountmycode'] == 0) {
|
if($mybb->settings['sigcountmycode'] == 0) {
|
$parsed_sig = $parser->text_parse_message($this->data['signature']);
| $parsed_sig = $parser->text_parse_message($this->data['signature'], array('signature_parse' => '1'));
|
} else {
| } else {
|