0){ if($_POST['passwordone']!=$_POST['passwordtwo']) $errors['passwordone']="The two passwords don't match."; elseif(strlen($_POST['passwordone']) < 4) $errors['passwordone']="You can think of something longer than that I hope."; elseif(strlen($_POST['passwordone']) > 72) $errors['passwordone']="That password's a bit long, try something less that 72 characters."; else{ //hash password $hash = $hasher->HashPassword($_POST['passwordone']); if (strlen($hash) < 20) $errors['general']="There was an error saving your details, try submitting again."; else $user->properties['password']=$hash; } } //upload image $image=""; if(isset($_FILES['profilepic']) && $_FILES['profilepic']['name']!=""){ $uploadsDirectory=$_SERVER['DOCUMENT_ROOT']."/img/profileimages/"; //check it's an image @getimagesize($_FILES['profilepic']['tmp_name']) or $errors['profilepic']="File is not an image."; $now = 0; while(file_exists($uploadFilename = $uploadsDirectory.$now.'-'.$_FILES['profilepic']['name'])) { $now++; } @move_uploaded_file($_FILES['profilepic']['tmp_name'], $uploadFilename) or $errors['profilepic']="There was a problem uploading the file"; if($errors==null) $user->properties['image']=str_replace($uploadsDirectory,"", $uploadFilename); }//end if(isset($_FILES['postimage'])) //set values - ensure posted info shows in form //only saved if there are currently no errors $user->properties['name']=$_POST['fullname']; $user->properties['url']=$_POST['url']; $user->properties['profile']=$_POST['profile']; $user->properties['emailaddress']=$_POST['emailaddress']; //if($_POST['facebookAP']==1 || $_POST['facebookAPquick']==1) $user->properties['fbap']==1; $user->properties['fbap']=$_POST['facebookAP']; //if($_POST['twitterAP']==1 || $_POST['twitterAPquick']==1) $user->properties['twitterap']==1; $user->properties['twitterap']=$_POST['twitterAP']; $user->properties['showtwitter']=$_POST['showTwitter']; $user->properties['mailinglist']=$_POST['mailinglist']; if(isset($_POST['authCode']) && $_POST['authCode']==$user->properties['authenticationCode']) $user->properties['authenticated']=1; if($errors==null){ $user->save(); }//end if errors==null }//end if(isset($_POST['savePost']) && $_POST['savePost']==1){ ?>

Update your profile

Oh dear there were some problems, have a quick look at the form below again.

'); else echo('

'.$errors['general'].'

'); } ?> properties['authenticated']==0){ ?>

You haven't verified your account!

propeties['authenticated']==0){ ?>

Username:

To change your username please email us - try emailing Dave he knows what he's doing.

".$errors['fullname'].""); ?>

".$errors['profilepic'].""); ?> properties['image']) && file_exists($_SERVER['DOCUMENT_ROOT']."/img/profileimages/".$user->properties['image'])) echo("properties['image']."\" />"); ?>

".$errors['profile'].""); ?>

".$errors['passwordone'].""); ?>
".$errors['passwordtwo'].""); ?>

".$errors['emailaddress'].""); ?>
properties['mailinglist']==1) echo("checked");?> />

You but on other sites

If you want to link to your other online profiles pop the links in here. You can also connect Mumubl to your profiles and automatically repost your tracks and use the other networks to login to this site.

".$errors['url'].""); ?>

Twitter

@ properties['twitterid']>0){ ?> properties['showtwitter']==1) echo("checked");?> /> properties['twitterap']==1) echo("checked");?> /> ".$errors['twitter'].""); ?>

Facebook

Facebook connection is unfortunately no longer supported. properties['fbid']>0){ $access_token = $user->properties['fbcred']; $facebook->setAccessToken($access_token); $user_id = $facebook->getUser(); $reauth=0; if($user_id){ $permissions = $facebook->api("/me/permissions"); $exists = 0; foreach($permissions['data'] as $permissions_arr){ if(!array_key_exists('publish_actions', $permissions_arr)) $exists=1; } if($exists == 0 ) $reauth=1; }else $reauth=1; if($reauth==1){ $login_url = $facebook->getLoginUrl( array( 'scope' => 'publish_actions' ) ); echo("You need to reauthorize your facebook access. Click the facebook connect button to reconnect, you will not be able to auto post until you correct this.
"); $altText='Reconnect to facebook'; $altImage='facebook_connect.png'; include("api/facebook/connect.php"); } ?> properties['fbap']==1) echo("checked");?> /> ".$errors['url'].""); */ ?>