| 77 |
$u->MSN = POST::GetEString('txtMSN',true); |
$u->MSN = POST::GetEString('txtMSN',true); |
| 78 |
$u->Skype = POST::GetEString('txtSkype',true); |
$u->Skype = POST::GetEString('txtSkype',true); |
| 79 |
$u->SteamID = POST::GetEString('txtSteamID',true); |
$u->SteamID = POST::GetEString('txtSteamID',true); |
| 80 |
|
|
| 81 |
|
$u->Avatar = POST::GetEString('txtAvatar',true); |
| 82 |
|
|
| 83 |
|
$imgsize=getimagesize($u->Avatar); |
| 84 |
|
|
| 85 |
|
echo $imgsize['mime']; |
| 86 |
|
|
| 87 |
|
if($imgsize[0]>150 || $imgsize[0]>150) |
| 88 |
|
Output::HardError('Image specified for your avatar must be, at most, 200px by 200px.'); |
| 89 |
|
|
| 90 |
|
|
| 91 |
|
if( |
| 92 |
|
$imgsize['mime'] == 'image/jpeg' || |
| 93 |
|
$imgsize['mime'] == 'image/png' || |
| 94 |
|
$imgsize['mime'] == 'image/gif' || |
| 95 |
|
strlen($u->Avatar)>0 |
| 96 |
|
) |
| 97 |
|
{ |
| 98 |
|
|
| 99 |
$pass = ''; |
$pass = ''; |
| 100 |
|
|
| 101 |
if($sex!='M' AND $sex=='F') |
if($sex!='M' AND $sex=='F') |
| 103 |
$sex=User::$Gender; |
$sex=User::$Gender; |
| 104 |
Output::AddError('Please use the radiobutton control on your profile to set your gender. Gender change reverted.'); |
Output::AddError('Please use the radiobutton control on your profile to set your gender. Gender change reverted.'); |
| 105 |
} |
} |
| 106 |
//echo 'dongs'; |
|
| 107 |
$p=POST::FetchIndex('txtOldPass'); |
$p=POST::FetchIndex('txtOldPass'); |
| 108 |
$pass=''; |
$pass=''; |
| 109 |
if(User::HashPass($u->ID,$p)==$u->Passhash) |
if(User::HashPass($u->ID,$p)==$u->Passhash) |
| 121 |
|
|
| 122 |
$u->RealName=$realname; |
$u->RealName=$realname; |
| 123 |
$u->Gender=$sex; |
$u->Gender=$sex; |
| 124 |
$u->DOB=POST::GetDate('datDOB'); |
//$u->DOB=POST::GetDate('datDOB'); |
| 125 |
//echo $u->DOB; |
|
| 126 |
if($pass!='') |
if($pass!='') |
| 127 |
$u->ChangePassword($pass); |
$u->ChangePassword($pass); |
| 128 |
|
|
| 129 |
if(!Input::CheckEmail($email)) |
if(!Input::CheckEmail($email)) |
| 130 |
{ |
{ |
| 131 |
Output::HardError('Email entered is invalid.'); |
Output::HardError('Email entered is invalid.'); |
| 135 |
|
|
| 136 |
Output::$cpage='user/profile'; |
Output::$cpage='user/profile'; |
| 137 |
Output::Redirect(THISURL.'user.php/profile'); |
Output::Redirect(THISURL.'user.php/profile'); |
| 138 |
|
} |
| 139 |
} |
} |
| 140 |
Output::$cpage='user/profile'; |
Output::$cpage='user/profile'; |
| 141 |
Output::Flush(); |
Output::Flush(); |