Esempio n. 1
0
    squot(0, $user['homepagename']);
    sbr(1, $user['bio']);
    sbr(1, $user['signature']);
    sbr(1, $user['postheader']);
    print "\r\n\t\t<br>\r\n\t\t\t{$tblstart}\r\n\t\t\t<FORM ACTION=edituser.php NAME=REPLIER METHOD=POST autocomplete=\"off\">\r\n\r\n\t\t\t\t{$hlft} Login information {$hrgt}\r\n\t\t\t\t{$lft} User name\t\t{$rgt}{$inpt}=username VALUE=\"{$user['name']}\" SIZE=25 MAXLENGTH=25 autocomplete=\"off\">\r\n\t\t\t\t{$lft} Also known as\t\t{$rgt}{$inpt}=aka VALUE=\"{$user['aka']}\" SIZE=25 MAXLENGTH=25 autocomplete=\"off\">\r\n\r\n\t\t\t\t<!-- Hack around autocomplete, fake inputs (don't use these in the file) \r\n\t\t\t\tWeb browsers think they're smarter than the web designer, so they ignore demands to not use autocomplete.\r\n\t\t\t\tThis is STUPID AS F**K when you're working on another user, and not YOURSELF. -->\r\n\t\t\t\t<input style=\"display:none;\" type=\"text\"     name=\"__f__usernm__\">\r\n\t\t\t\t<input style=\"display:none;\" type=\"password\" name=\"__f__passwd__\">\r\n\r\n\t\t\t\t{$lft} Password\t\t{$rgt}{$inpp}=password VALUE=\"\" SIZE=13 MAXLENGTH=64 autocomplete=\"new-password\">\r\n\r\n\t\t\t\t{$hlft} Administrative bells and whistles {$hrgt}\r\n\t\t\t\t{$lft} Power level\t\t{$rgt}{$levellist}\r\n\t\t\t\t{$lft} Custom title\t\t{$rgt}{$inpt}=usertitle VALUE=\"{$user['title']}\" SIZE=60 MAXLENGTH=255>\r\n\t\t\t\t{$lft} Rank set\t\t{$rgt}{$rsetlist}\r\n\t\t\t\t{$lft} Number of posts\t{$rgt}{$inpt}=numposts SIZE=5 MAXLENGTH=10 VALUE={$user['posts']}>\r\n\t\t\t\t{$lft} Registration time:</b>{$smallfont}<br>(seconds since " . date($dateformat, $tzoff) . ")</td>{$tccell2l}>{$inpt}=regtime SIZE=10 MAXLENGTH=15 VALUE={$user['regdate']}><tr>\r\n\t\t\t\t{$lft} Lock Profile {$rgt}{$plocking}\r\n\t\t\t\t{$lft} Restrict Editing {$rgt}{$elocking}\r\n\t\t\t\t{$lft} Custom Title Privileges {$rgt}{$ctpriv}\r\n\r\n\t\t\t\t{$hlft} Appearance\t\t{$hrgt}\r\n\t\t\t\t{$lft} Mini picture\t\t{$rgt}{$inpt}=minipic VALUE=\"{$user['minipic']}\" SIZE=60 MAXLENGTH=100>\r\n\t\t\t\t{$lft} User picture\t\t{$rgt}{$inpt}=picture VALUE=\"{$user['picture']}\" SIZE=60 MAXLENGTH=100>\r\n\t\t\t\t{$lft} Mood avatar\t\t{$rgt}{$inpt}=moodurl VALUE=\"{$user['moodurl']}\" SIZE=60 MAXLENGTH=100>\r\n\t\t\t\t{$lft} Post background\t{$rgt}{$inpt}=postbg VALUE=\"{$user['postbg']}\" SIZE=60 MAXLENGTH=100>\r\n\t\t\t\t{$lft} Post header\t\t{$rgt}{$txta}=postheader ROWS=5 COLS=60>" . htmlspecialchars($user[postheader]) . "</TEXTAREA>\r\n\t\t\t\t{$lft} Signature\t\t{$rgt}{$txta}=signature ROWS=5 COLS=60>" . htmlspecialchars($user[signature]) . "</TEXTAREA>\r\n\r\n\t\t\t\t{$hlft} Personal information {$hrgt}\r\n\t\t\t\t{$lft} Sex\t\t\t{$rgt}{$sexlist}\r\n\t\t\t\t{$lft} Real name\t\t{$rgt}{$inpt}=realname VALUE=\"{$user['realname']}\" SIZE=40 MAXLENGTH=60>\r\n\t\t\t\t{$lft} Location\t\t{$rgt}{$inpt}=location VALUE=\"{$user['location']}\" SIZE=40 MAXLENGTH=60>\r\n\t\t\t\t{$lft} Birthday\t\t{$rgt} Month: {$inpt}=bmonth SIZE=2 MAXLENGTH=2 VALUE={$month}> Day: {$inpt}=bday SIZE=2 MAXLENGTH=2 VALUE={$day}> Year: {$inpt}=byear SIZE=4 MAXLENGTH=4 VALUE={$year}>\r\n\t\t\t\t{$lft} Bio\t\t\t{$rgt}{$txta}=bio ROWS=5 COLS=60>" . htmlspecialchars($user[bio]) . "</TEXTAREA>\r\n\r\n\t\t\t\t{$hlft} Online services\t{$hrgt}\r\n\t\t\t\t{$lft} Email address    {$rgt} {$inpt}=email VALUE=\"{$user['email']}\" SIZE=60 MAXLENGTH=60>\r\n\t\t\t\t{$lft} AIM screen name  {$rgt} {$inpt}=aim VALUE=\"{$user['aim']}\" SIZE=30 MAXLENGTH=30>\r\n\t\t\t\t{$lft} ICQ number       {$rgt} {$inpt}=icq SIZE=10 MAXLENGTH=10 VALUE={$user['icq']}>\r\n\t\t\t\t{$lft} Homepage title   {$rgt} {$inpt}=pagename VALUE=\"{$user['homepagename']}\" SIZE=60 MAXLENGTH=80>\r\n\t\t\t\t{$lft} Homepage URL     {$rgt} {$inpt}=homepage VALUE=\"{$user['homepageurl']}\" SIZE=60 MAXLENGTH=80>\r\n\r\n\t\t\t\t{$hlft} Options\t\t{$hrgt}\r\n\t\t\t\t{$lft} Custom date format               {$rgt} {$inpt}=eddateformat value=\"{$user['dateformat']}\" size=16 maxlength=32>\r\n\t\t\t\t{$lft} Custom short date format         {$rgt} {$inpt}=eddateshort value=\"{$user['dateshort']}\" size=8 maxlength=32>\r\n\t\t\t\t{$lft} Timezone offset                  {$rgt} {$inpt}=timezone SIZE=5 MAXLENGTH=5 VALUE={$user['timezone']}>\r\n\t\t\t\t{$lft} Posts per page                   {$rgt} {$inpt}=postsperpage SIZE=5 MAXLENGTH=5 VALUE={$user['postsperpage']}>\r\n\t\t\t\t{$lft} Threads per page                 {$rgt} {$inpt}=threadsperpage SIZE=4 MAXLENGTH=4 VALUE={$user['threadsperpage']}>\r\n\t\t\t\t{$lft} View signatures and post headers {$rgt} {$vsig}\r\n\t\t\t\t{$lft} Thread layout                    {$rgt} {$laylist}\r\n\t\t\t\t{$lft} Color scheme / layout            {$rgt} {$schlist}\r\n\r\n\t\t\t\t{$lft} &nbsp</td>{$tccell2l}>\r\n\t\t\t\t{$inph}=action VALUE=saveprofile>\r\n\t\t\t\t{$inph}=userid VALUE={$id}>\r\n\t\t\t\t{$inps}=submit VALUE=\"Edit profile\"></td></FORM>\r\n\t\t\t{$tblend}\r\n\t";
}
if ($_POST['action'] == 'saveprofile') {
    if ($eddateformat == $defaultdateformat) {
        $eddateformat = '';
    }
    if ($eddateshort == $defaultdateshort) {
        $eddateshort = '';
    }
    sbr(0, $signature);
    sbr(0, $bio);
    sbr(0, $postheader);
    $minipic = htmlspecialchars($minipic);
    $avatar = htmlspecialchars($avatar);
    $birthday = @mktime(0, 0, 0, $bmonth, $bday, $byear);
    if (!$bmonth && !$bday && !$byear) {
        $birthday = 0;
    }
    //$sql->query("INSERT logs SET useraction ='Edit User ".$user[nick]."(".$user[id]."'");
    if ($password) {
        $passedit = "`password` = '" . getpwhash($password, $userid) . "', ";
    }
    if ($sex == -378) {
        $sex = $sexn;
    }
    if ($userid == 1 && $loguserid != 1) {
        xk_ircsend("1|" . xk(7) . "Someone (*cough{$loguserid}cough*) is trying to be funny...");
Esempio n. 2
0
print "{$fonttag}<a href=index.php>{$boardname}</a> - " . ($forum['minpower'] <= $loguser['powerlevel'] ? "<a href=forum.php?id={$forum['id']}>" . $forum['title'] . "</a> - <a href='thread.php?pid={$id}#{$id}'>{$thread['title']}</a> - Edit post" : "Restricted thread") . "\n\t\t{$tblstart}\n\t\t<FORM ACTION=editpost.php NAME=REPLIER METHOD=POST>";
if (!$action && $log && ($ismod || $loguserid == $post['user'] && $loguser['powerlevel'] > -1 && !$thread['closed']) && (!$forum['minpower'] or $power >= $forum['minpower'])) {
    $message = $post['text'];
    if (!$post['headid']) {
        $head = $post['headtext'];
    } else {
        $head = $sql->resultq("SELECT text FROM postlayouts WHERE id={$post['headid']}", 0, 0);
    }
    if (!$post['signid']) {
        $sign = $post['signtext'];
    } else {
        $sign = $sql->resultq("SELECT text FROM postlayouts WHERE id={$post['signid']}", 0, 0);
    }
    sbr(1, $message);
    sbr(1, $head);
    sbr(1, $sign);
    $chks = array();
    if ($options[0]) {
        $chks[0] = "checked";
    }
    if ($options[1]) {
        $chks[1] = "checked";
    }
    $user = $sql->fetchq("SELECT name FROM users WHERE id={$post['user']}");
    print "\n\t\t\t{$tccellh} width=150>&nbsp</td>{$tccellh} colspan=2>&nbsp<tr>\n\t\t\t{$tccell1}><b>Header:</td>\t {$tccell2l} width=800px valign=top>{$txta}=head ROWS=8 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($head) . "</textarea>\n\t\t\t{$tccell2l} width=* rowspan=3>" . moodlist($post['moodid']) . "</td><tr>\n\t\t\t{$tccell1}><b>Post:</td>\t\t {$tccell2l} width=800px valign=top>{$txta}=message ROWS=12 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($message) . "</textarea><tr>\n\t\t\t{$tccell1}><b>Signature:</td>\t {$tccell2l} width=800px valign=top>{$txta}=sign ROWS=8 COLS={$numcols} style=\"width: 100%; max-width: 800px; resize:vertical;\">" . htmlspecialchars($sign) . "</textarea><tr>\n\t\t\t{$tccell1}>&nbsp</td>{$tccell2l} colspan=2>\n\t\t\t{$inph}=action VALUE=editpost>\n\t\t\t{$inph}=id VALUE={$id}>\n\t\t\t{$inps}=submit VALUE=\"Edit post\">\n\t\t\t{$inps}=preview VALUE=\"Preview post\"></td>\n\t\t\t<tr>{$tccell1}><b>Options:</b></td>{$tccell2l} colspan=2>\n\t\t\t{$inpc}=\"nosmilies\" id=\"nosmilies\" value=\"1\" {$chks['0']}><label for=\"nosmilies\">Disable Smilies</label> -\n\t\t\t{$inpc}=\"nohtml\" id=\"nohtml\" value=\"1\" {$chks['1']}><label for=\"nohtml\">Disable HTML</label></td></tr>\n\t\t\t</FORM>\n\t\t{$tblend}{$fonttag}<a href=index.php>{$boardname}</a> - <a href=forum.php?id={$forum['id']}>" . $forum[title] . "</a> - {$thread['title']}\n\t\t";
} elseif (!$action) {
    print "\n\t\t{$tccell1}>You are not allowed to edit this post.<br>\n\t\t" . redirect("thread.php?id={$threadid}", "the thread", 0);
}
if ($_POST['action'] == 'editpost') {
    $poptions = intval($nosmilies) . "|" . intval($nohtml);
    print $tblstart;
Esempio n. 3
0
function doreplace2($msg, $options = '0|0')
{
    // options will contain smiliesoff|htmloff
    $options = explode("|", $options);
    $smiliesoff = $options[0];
    $htmloff = $options[1];
    $list = array("<", "\\\"", "\\\\", "\\'", "[", ":", ")", "_");
    $list2 = array("&lt;", "\"", "\\", "\\'", "&#91;", "&#58;", "&#41;", "&#95;");
    $msg = preg_replace_callback("'\\[code\\](.*?)\\[/code\\]'si", 'escape_codeblock', $msg);
    if ($htmloff) {
        $msg = str_replace("<", "&lt;", $msg);
        $msg = str_replace(">", "&gt;", $msg);
    }
    if (!$smiliesoff) {
        global $smilies;
        if (!$smilies) {
            $smilies = readsmilies();
        }
        for ($s = 0; $smilies[$s][0]; $s++) {
            $smilie = $smilies[$s];
            $msg = str_replace($smilie[0], "<img src={$smilie['1']} align=absmiddle>", $msg);
        }
    }
    $msg = str_replace('[red]', '<font color=FFC0C0>', $msg);
    $msg = str_replace('[green]', '<font color=C0FFC0>', $msg);
    $msg = str_replace('[blue]', '<font color=C0C0FF>', $msg);
    $msg = str_replace('[orange]', '<font color=FFC080>', $msg);
    $msg = str_replace('[yellow]', '<font color=FFEE20>', $msg);
    $msg = str_replace('[pink]', '<font color=FFC0FF>', $msg);
    $msg = str_replace('[white]', '<font color=white>', $msg);
    $msg = str_replace('[black]', '<font color=0>', $msg);
    $msg = str_replace('[/color]', '</font>', $msg);
    $msg = preg_replace("'\\[quote=(.*?)\\]'si", '<blockquote><font class=fonts><i>Originally posted by \\1</i></font><hr>', $msg);
    $msg = str_replace('[quote]', '<blockquote><hr>', $msg);
    $msg = str_replace('[/quote]', '<hr></blockquote>', $msg);
    $msg = preg_replace("'\\[sp=(.*?)\\](.*?)\\[/sp\\]'si", '<span style="border-bottom: 1px dotted #f00;" title="did you mean: \\1">\\2</span>', $msg);
    $msg = preg_replace("'\\[abbr=(.*?)\\](.*?)\\[/abbr\\]'si", '<span style="border-bottom: 1px dotted;" title="\\1">\\2</span>', $msg);
    $msg = str_replace('[spoiler]', '<div class="fonts pstspl2"><b>Spoiler:</b><div class="pstspl1">', $msg);
    $msg = str_replace('[/spoiler]', '</div></div>', $msg);
    $msg = preg_replace("'\\[(b|i|u|s)\\]'si", '<\\1>', $msg);
    $msg = preg_replace("'\\[/(b|i|u|s)\\]'si", '</\\1>', $msg);
    $msg = preg_replace("'\\[img\\](.*?)\\[/img\\]'si", '<img src=\\1>', $msg);
    $msg = preg_replace("'\\[url\\](.*?)\\[/url\\]'si", '<a href=\\1>\\1</a>', $msg);
    $msg = preg_replace("'\\[url=(.*?)\\](.*?)\\[/url\\]'si", '<a href=\\1>\\2</a>', $msg);
    $msg = str_replace('http://nightkev.110mb.com/justus_layout.css', 'about:blank', $msg);
    do {
        $msg = preg_replace("/<(\\/?)t(able|h|r|d)(.*?)>(\\s+?)<(\\/?)t(able|h|r|d)(.*?)>/si", "<\\1t\\2\\3><\\5t\\6\\7>", $msg, -1, $replaced);
    } while ($replaced >= 1);
    sbr(0, $msg);
    return $msg;
}
Esempio n. 4
0
        $sel = $set['id'] == $loguser['useranks'] ? ' selected' : '';
        $rsetlist .= "<option value={$set['id']}{$sel}>{$set['name']} ({$set['used']})";
    }
    $rsetlist = "<select name=useranks>{$rsetlist}</select>";
    print "\r\n\t{$header}<br>{$tblstart}\r\n\t <FORM ACTION=editprofile.php NAME=REPLIER METHOD=POST autocomplete=off>\r\n\t {$tccellh}>Login information</td>{$tccellh}>&nbsp<tr>\r\n\t {$tccell1}><b>User name:</td>{$tccell2l}>{$loguser['name']}<tr>\r\n\t {$tccell1}><b>Password:</b>{$descbr} You can change your password by entering a new one here.</td>\r\n\t {$tccell2l}>{$inpp}=password SIZE=13 MAXLENGTH=64 autocomplete=off><tr>\r\n\r\n\t {$tccellh}> Appearance</td>{$tccellh}>&nbsp<tr>\r\n\t {$titleoption}\r\n\t {$tccell1}><b>User rank:</b>{$descbr} You can hide your rank, or choose from different sets.</td>\r\n\t {$tccell2l}>{$rsetlist}<tr>\r\n\t {$tccell1}><b>User picture:{$descbr} The full URL of the image showing up below your username in posts. Leave it blank if you don't want to use a picture. The limits are 200x200 pixels, and about 100KB; anything over this will be removed.</td>\r\n\t {$tccell2l}>{$inpt}=picture VALUE=\"{$loguser['picture']}\" SIZE=60 MAXLENGTH=100><tr>\r\n\t {$tccell1}><b>Mood avatar:{$descbr} The URL of a mood avatar set. '\$' in the URL will be replaced with the mood, e.g. <b>http://your.page/here/\$.png</b>!</td>\r\n\t {$tccell2l}>{$inpt}=moodurl VALUE=\"{$loguser['moodurl']}\" SIZE=60 MAXLENGTH=100><tr>\r\n\t {$tccell1}><b>Minipic:{$descbr} The full URL of a small picture showing up next to your username on some pages. Leave it blank if you don't want to use a picture. The picture is resized to 16x16.</td>\r\n\t {$tccell2l}>{$inpt}=minipic VALUE=\"{$loguser['minipic']}\" SIZE=60 MAXLENGTH=100><tr>\r\n\t {$tccell1}><b>Post background:{$descbr} The full URL of a picture showing up in the background of your posts. Leave it blank for no background. Please make sure your text is readable on the background!</td>\r\n\t {$tccell2l}>{$inpt}=postbg VALUE=\"{$loguser['postbg']}\" SIZE=60 MAXLENGTH=250><tr>\r\n\t {$tccell1}><b>Post header:{$descbr} This will get added before the start of each post you make. This can be used to give a default font color and face to your posts (by putting a <<z>font> tag). This should preferably be kept small, and not contain too much text or images.</td>\r\n\t {$tccell2l}>{$txta}=postheader ROWS=8 COLS=60>" . htmlspecialchars($loguser[postheader]) . "</TEXTAREA><tr>\r\n\t {$tccell1}><b>Signature:{$descbr} This will get added at the end of each post you make, below an horizontal line. This should preferably be kept to a small enough size.</td>\r\n\t {$tccell2l}>{$txta}=signature ROWS=8 COLS=60>" . htmlspecialchars($loguser[signature]) . "</TEXTAREA><tr>\r\n\r\n\t {$tccellh}>Personal information</td>{$tccellh}>&nbsp<tr>\r\n\t {$tccell1}><b>Sex:{$descbr} Male or female. (or N/A if you don't want to tell it)</td>\r\n\t {$tccell2l}>{$sexlist}<tr>\r\n<!--\t {$tccell1}><b>Also known as:{$descbr} If you go by an alternate alias (or are constantly subjected to name changes), enter it here.  It will be displayed in your profile if it doesn't match your current username.</td>\r\n\t {$tccell2l}>{$inpt}=aka VALUE=\"{$loguser['aka']}\" SIZE=25 MAXLENGTH=25><tr> -->\r\n\t {$tccell1}><b>Real name:{$descbr} Your real name (you can leave this blank).</td>\r\n\t {$tccell2l}>{$inpt}=realname VALUE=\"{$loguser['realname']}\" SIZE=40 MAXLENGTH=60><tr>\r\n\t {$tccell1}><b>Location:{$descbr} Where you live (city, country, etc.).</td>\r\n\t {$tccell2l}>{$inpt}=location VALUE=\"{$loguser['location']}\" SIZE=40 MAXLENGTH=60><tr>\r\n\t {$tccell1}><b>Birthday:{$descbr} Your date of birth.</td>\r\n\t {$tccell2l}>Month: {$inpt}=bmonth SIZE=2 MAXLENGTH=2 VALUE={$month}> Day: {$inpt}=bday SIZE=2 MAXLENGTH=2 VALUE={$day}> Year: {$inpt}=byear SIZE=4 MAXLENGTH=4 VALUE={$year}><tr>\r\n\t {$tccell1}><b>Bio:{$descbr} Some information about yourself, showing up in your profile.</td>\r\n\t {$tccell2l}>{$txta}=bio ROWS=8 COLS=60>" . htmlspecialchars($loguser[bio]) . "</TEXTAREA><tr>\r\n\r\n\t {$tccellh}>Online services</td>{$tccellh}>&nbsp<tr>\r\n\t {$tccell1}><b>Email address:{$descbr} This is only shown in your profile; you don't have to enter it if you don't want to.</td>\r\n\t {$tccell2l}>{$inpt}=email VALUE=\"{$loguser['email']}\" SIZE=60 MAXLENGTH=60><tr>\r\n\t {$tccell1}><b>AIM screen name:{$descbr} Your AIM screen name, if you have one.</td>\r\n\t {$tccell2l}>{$inpt}=aim VALUE=\"{$loguser['aim']}\" SIZE=30 MAXLENGTH=30><tr>\r\n\t {$tccell1}><b>ICQ number:{$descbr} Your ICQ number, if you have one.</td>\r\n\t {$tccell2l}>{$inpt}=icq VALUE={$loguser['icq']} SIZE=10 MAXLENGTH=10><tr>\r\n\t {$tccell1}><b>imood:{$descbr} If you have a imood account, you can enter the account name (email) for it here.</td>\r\n\t {$tccell2l}>{$inpt}=imood VALUE=\"{$loguser['imood']}\" SIZE=60 MAXLENGTH=100><tr>\r\n\t {$tccell1}><b>Homepage URL:{$descbr} Your homepage URL (must start with the \"http://\"), if you have one.</td>\r\n\t {$tccell2l}>{$inpt}=homepage VALUE=\"{$loguser['homepageurl']}\" SIZE=60 MAXLENGTH=80><tr>\r\n\t {$tccell1}><b>Homepage name:{$descbr} Your homepage name, if you have a homepage.</td>\r\n\t {$tccell2l}>{$inpt}=pagename VALUE=\"{$loguser['homepagename']}\" SIZE=60 MAXLENGTH=100><tr>\r\n\r\n\t {$tccellh}> Options</td>{$tccellh}>&nbsp<tr>\r\n\t {$tccell1}><b>Custom date format:{$descbr} Edit the date format here to affect how dates are displayed.  Leave it blank to return to the default format (<b>{$defaultdateformat}</b>)<br>See the <a href='http://php.net/manual/en/function.date.php'>date() function in the PHP manual</a> for more information.</td>\r\n\t {$tccell2l}>{$inpt}=eddateformat value=\"{$dateformat}\" size=16 maxlength=32><tr>\r\n\t {$tccell1}><b>Custom short date format:{$descbr} A shorter date format displayed on certain areas of the board.  Leave it blank to return to the default format (<b>{$defaultdateshort}</b>).</td>\r\n\t {$tccell2l}>{$inpt}=eddateshort value=\"{$dateshort}\" size=8 maxlength=16><tr>\r\n\t {$tccell1}><b>Timezone offset:{$descbr} How many hours you're offset from the time on the board (" . date($dateformat, ctime()) . ").</td>\r\n\t {$tccell2l}>{$inpt}=timezone VALUE={$loguser['timezone']} SIZE=5 MAXLENGTH=5><tr>\r\n\t {$tccell1}><b>Posts per page:{$descbr} The maximum number of posts you want to be shown in a page in threads.</td>\r\n\t {$tccell2l}>{$inpt}=postsperpage SIZE=4 MAXLENGTH=4 VALUE={$loguser['postsperpage']}><tr>\r\n\t {$tccell1}><b>Threads per page:{$descbr} The maximum number of threads you want to be shown in a page in forums.</td>\r\n\t {$tccell2l}>{$inpt}=threadsperpage SIZE=4 MAXLENGTH=4 VALUE={$loguser['threadsperpage']}><tr>" . "{$tccell1}><b>Signatures and post headers:{$descbr} You can disable them here, which can make thread pages smaller and load faster.</td>\r\n\t {$tccell2l}>{$vsig}<tr>\r\n\r\n\t {$tccell1}><b>Forum page list style:{$descbr} Inline (Title - Pages ...) or Seperate Line (shows more pages)</td>\r\n\t {$tccell2l}>{$pagestyle}<tr>\r\n\t {$tccell1}><b>Poll vote system:{$descbr} Normal (based on users) or Influence (based on levels)</td>\r\n\t {$tccell2l}>{$pollstyle}<tr>\r\n\t \r\n\t {$tccell1}><b>Thread layout:{$descbr} You can choose from a few thread layouts here.</td>\r\n\t {$tccell2l}>{$laylist}<tr>\r\n\t {$tccell1}><b>Signature separator:{$descbr} You can choose from a few signature separators here.</td>\r\n\t {$tccell2l}>{$seplist}<tr>\r\n\t {$tccell1}><b>Color scheme / layout:{$descbr} You can select from a few color schemes here.</td>\r\n\t {$tccell2l}>{$schlist}<tr>\r\n\r\n\t {$tccellh}>&nbsp</td>{$tccellh}>&nbsp<tr>\r\n\t {$tccell1}>&nbsp</td>{$tccell2l}>\r\n\t {$inph}=action VALUE=saveprofile>\r\n\t {$inph}=userid VALUE={$userid}>\r\n\t {$inps}=submit VALUE=\"Edit profile\"></td></FORM>\r\n\t{$tblend}\r\n    ";
}
if ($action == 'saveprofile') {
    if ($eddateformat == $defaultdateformat) {
        $eddateformat = '';
    }
    if ($eddateshort == $defaultdateshort) {
        $eddateshort = '';
    }
    sbr(0, $postheader);
    sbr(0, $signature);
    sbr(0, $bio);
    if (!isset($title) or !$titleopt) {
        $title = $loguser[title];
    }
    if ($sex > 2 && $sex != $loguser['sex'] && $sex != $loguser['oldsex']) {
        $sex = 2;
    }
    $oldtitle = "";
    while ($oldtitle != $title) {
        $oldtitle = $title;
        $title = preg_replace("'<(b|i|u|s|small|br)>'si", '[\\1]', $title);
        $title = preg_replace("'</(b|i|u|s|small|font)>'si", '[/\\1]', $title);
        $title = preg_replace("'<img ([^>].*?)>'si", '[img \\1]', $title);
        $title = preg_replace("'<font ([^>].*?)>'si", '[font \\1]', $title);
        /*    $title=preg_replace("'<[\/\!]*?[^<>]*?>'si", '&lt;\\1&gt;', $title); */
        $title = strip_tags($title);