"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/datahandlers/user.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

user.php  (mybb_1821):user.php  (mybb_1822)
skipping to change at line 1098 skipping to change at line 1098
{ {
die("The user needs to be validated before inserting it i nto the DB."); die("The user needs to be validated before inserting it i nto the DB.");
} }
if(count($this->get_errors()) > 0) if(count($this->get_errors()) > 0)
{ {
die("The user is not valid."); die("The user is not valid.");
} }
$user = &$this->data; $user = &$this->data;
$array = array('postnum', 'threadnum', 'avatar', 'avatartype', 'a dditionalgroups', 'displaygroup', 'icq', 'yahoo', 'skype', 'google', 'bday', 'si gnature', 'style', 'dateformat', 'timeformat', 'notepad'); $array = array('postnum', 'threadnum', 'avatar', 'avatartype', 'a dditionalgroups', 'displaygroup', 'icq', 'skype', 'google', 'bday', 'signature', 'style', 'dateformat', 'timeformat', 'notepad');
foreach($array as $value) foreach($array as $value)
{ {
if(!isset($user[$value])) if(!isset($user[$value]))
{ {
$user[$value] = ''; $user[$value] = '';
} }
} }
// If user is being created from ACP, there is no last visit or l
ast active
if(defined('IN_ADMINCP'))
{
$user['lastvisit'] = $user['lastactive'] = 0;
}
$this->user_insert_data = array( $this->user_insert_data = array(
"username" => $db->escape_string($user['username']), "username" => $db->escape_string($user['username']),
"password" => $user['password'], "password" => $user['password'],
"salt" => $user['salt'], "salt" => $user['salt'],
"loginkey" => $user['loginkey'], "loginkey" => $user['loginkey'],
"email" => $db->escape_string($user['email']), "email" => $db->escape_string($user['email']),
"postnum" => (int)$user['postnum'], "postnum" => (int)$user['postnum'],
"threadnum" => (int)$user['threadnum'], "threadnum" => (int)$user['threadnum'],
"avatar" => $db->escape_string($user['avatar']), "avatar" => $db->escape_string($user['avatar']),
"avatartype" => $db->escape_string($user['avatartype']), "avatartype" => $db->escape_string($user['avatartype']),
"usergroup" => (int)$user['usergroup'], "usergroup" => (int)$user['usergroup'],
"additionalgroups" => $db->escape_string($user['additiona lgroups']), "additionalgroups" => $db->escape_string($user['additiona lgroups']),
"displaygroup" => (int)$user['displaygroup'], "displaygroup" => (int)$user['displaygroup'],
"usertitle" => $db->escape_string(htmlspecialchars_uni($u ser['usertitle'])), "usertitle" => $db->escape_string(htmlspecialchars_uni($u ser['usertitle'])),
"regdate" => (int)$user['regdate'], "regdate" => (int)$user['regdate'],
"lastactive" => (int)$user['lastactive'], "lastactive" => (int)$user['lastactive'],
"lastvisit" => (int)$user['lastvisit'], "lastvisit" => (int)$user['lastvisit'],
"website" => $db->escape_string($user['website']), "website" => $db->escape_string($user['website']),
"icq" => (int)$user['icq'], "icq" => (int)$user['icq'],
"yahoo" => $db->escape_string($user['yahoo']),
"skype" => $db->escape_string($user['skype']), "skype" => $db->escape_string($user['skype']),
"google" => $db->escape_string($user['google']), "google" => $db->escape_string($user['google']),
"birthday" => $user['bday'], "birthday" => $user['bday'],
"signature" => $db->escape_string($user['signature']), "signature" => $db->escape_string($user['signature']),
"allownotices" => (int)$user['options']['allownotices'], "allownotices" => (int)$user['options']['allownotices'],
"hideemail" => (int)$user['options']['hideemail'], "hideemail" => (int)$user['options']['hideemail'],
"subscriptionmethod" => (int)$user['options']['subscripti onmethod'], "subscriptionmethod" => (int)$user['options']['subscripti onmethod'],
"receivepms" => (int)$user['options']['receivepms'], "receivepms" => (int)$user['options']['receivepms'],
"receivefrombuddy" => (int)$user['options']['receivefromb uddy'], "receivefrombuddy" => (int)$user['options']['receivefromb uddy'],
"pmnotice" => (int)$user['options']['pmnotice'], "pmnotice" => (int)$user['options']['pmnotice'],
skipping to change at line 1340 skipping to change at line 1345
$this->user_update_data['signature'] = $db->escape_string ($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']); $this->user_update_data['website'] = $db->escape_string($ user['website']);
} }
if(isset($user['icq'])) if(isset($user['icq']))
{ {
$this->user_update_data['icq'] = (int)$user['icq']; $this->user_update_data['icq'] = (int)$user['icq'];
} }
if(isset($user['yahoo']))
{
$this->user_update_data['yahoo'] = $db->escape_string($us
er['yahoo']);
}
if(isset($user['skype'])) if(isset($user['skype']))
{ {
$this->user_update_data['skype'] = $db->escape_string($us er['skype']); $this->user_update_data['skype'] = $db->escape_string($us er['skype']);
} }
if(isset($user['google'])) if(isset($user['google']))
{ {
$this->user_update_data['google'] = $db->escape_string($u ser['google']); $this->user_update_data['google'] = $db->escape_string($u ser['google']);
} }
if(isset($user['bday'])) if(isset($user['bday']))
{ {
skipping to change at line 1753 skipping to change at line 1754
} }
} }
$this->delete_uids = implode(',', $this->delete_uids); $this->delete_uids = implode(',', $this->delete_uids);
} }
$update = array( $update = array(
"website" => "", "website" => "",
"birthday" => "", "birthday" => "",
"icq" => "", "icq" => "",
"yahoo" => "",
"skype" => "", "skype" => "",
"google" => "", "google" => "",
"usertitle" => "", "usertitle" => "",
"away" => 0, "away" => 0,
"awaydate" => 0, "awaydate" => 0,
"returndate" => "", "returndate" => "",
"awayreason" => "", "awayreason" => "",
"additionalgroups" => "", "additionalgroups" => "",
"displaygroup" => 0, "displaygroup" => 0,
"signature" => "", "signature" => "",
 End of changes. 5 change blocks. 
8 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)