'); if($banned) errorpage('Sorry, but banned users aren\'t allowed to edit their profile.'); if($loguser['profile_locked'] == 1) { errorpage("You are not allowed to edit your profile."); } if($loguser['posts']>=500 or ($loguser[posts]>=250 && (ctime()-$loguser[regdate])>=100*86400)) $postreq=1; if($loguser['titleoption']==0 || $banned) $titleopt=0; if($loguser['titleoption']==1 && ($postreq or $power>0 or $loguser[title])) $titleopt=1; if($loguser['titleoption']==2) $titleopt=1; if(!$action){ $birthday=getdate($loguser['birthday']); if($loguser['birthday']){ $month=$birthday['mon']; $day=$birthday['mday']; $year=$birthday['year']; } if ($loguser['sex'] == 255) $loguser['sex'] = $loguser['oldsex']; $descbr="$smallfont
 "; $checked1[$loguser['sex']]='checked=1'; $checked2[$loguser['viewsig']]='checked=1'; // $checked3[$loguser['posttool']]='checked=1'; $checked4[$loguser['useranks']]='checked=1'; $checked5[$loguser['pagestyle']]='checked=1'; $checked6[$loguser['pollstyle']]='checked=1'; $sexlist=" $radio=sex value=0 $checked1[0]> Male    $radio=sex value=1 $checked1[1]> Female    $radio=sex value=2 $checked1[2]> N/A"; if ($loguser['sex'] > 2) $sexlist .= "$radio=sex value=$loguser[sex] checked style=\"display:none;\">"; $vsig=" $radio=viewsig value=0 $checked2[0]> Disabled    $radio=viewsig value=1 $checked2[1]> Enabled    $radio=viewsig value=2 $checked2[2]> Auto-updating"; // $vtool=" // $radio=posttool value=0 $checked3[0]> Disabled    // $radio=posttool value=1 $checked3[1]> Enabled"; $pagestyle=" $radio=pagestyle value=0 $checked5[0]> Inline    $radio=pagestyle value=1 $checked5[1]> Seperate line"; $pollstyle=" $radio=pollstyle value=0 $checked6[0]> Normal    $radio=pollstyle value=1 $checked6[1]> Influence"; if($titleopt){ // this went after this block, which makes it COMPLETELY USELESS squot(0,$loguser[title]); $titleoption=" $tccell1>Custom title:$descbr This title will be shown below your rank. $tccell2l>$inpt=title VALUE=\"$loguser[title]\" SIZE=60 MAXLENGTH=255> "; } $loguser['minipic'] = htmlspecialchars($loguser['minipic'], ENT_QUOTES); $loguser['picture'] = htmlspecialchars($loguser['picture'], ENT_QUOTES); $loguser['moodurl'] = htmlspecialchars($loguser['moodurl'], ENT_QUOTES); squot(0,$loguser['realname']); // squot(0,$loguser['aka']); squot(0,$loguser['location']); // squot(1,$loguser['aim']); // squot(1,$loguser['imood']); squot(0,$loguser['email']); // squot(1,$loguser['homepageurl']); squot(0,$loguser['homepagename']); sbr(1,$loguser['postheader']); sbr(1,$loguser['signature']); sbr(1,$loguser['bio']); $schemes=$sql->query('SELECT s.id as id, s.name, COUNT(u.scheme) as used FROM schemes s LEFT JOIN users u ON (u.scheme = s.id) WHERE ord > 0 GROUP BY u.scheme ORDER BY s.ord'); while($sch=$sql->fetch($schemes)){ $sel=($sch['id']==$loguser['scheme']?' selected':''); $schlist.="