MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Revised BSD License for more details.
- Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
- Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
+ Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
+ Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
- $FileInfo: profilemain.php - Last Update: 11/20/2007 SVN 129 - Author: cooldude2k $
+ $FileInfo: profilemain.php - Last Update: 12/12/2008 SVN 215 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); }
if(!isset($_POST['update'])) { $_POST['update'] = null; }
?>
+<div class="NavLinks"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Profile Editor</a></div>
+<div class="DivNavLinks"> </div>
<table class="Table3">
<tr style="width: 100%; vertical-align: top;">
<td style="width: 15%; vertical-align: top;">
- <table id="ProfileLinks" class="Table1" style="width: 100%; float: left; vertical-align: top;">
-<tr class="TableRow1">
-<td class="TableRow1"><?php echo $ThemeSet['TitleIcon'] ?>Profile Settings</td>
-</tr><tr class="TableRow2">
-<td class="TableRow2"> </td>
-</tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit NotePad</a></td>
-</tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=profile",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit Profile</a></td>
-</tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=signature",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit Signature</a></td>
-</tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=avatar",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit Avatar</a></td>
-</tr><tr class="TableRow4">
-<td class="TableRow4"> </td>
-</tr></table><div> </div>
-<table class="Table1" style="width: 100%; float: left; vertical-align: top;">
-<tr class="TableRow1">
-<td class="TableRow1"><?php echo $ThemeSet['TitleIcon'] ?>Board Settings</td>
-</tr><tr class="TableRow2">
-<td class="TableRow2"> </td>
-</tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=settings",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Board Settings</a></td>
-</tr><tr class="TableRow3">
-<td class="TableRow3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=userinfo",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Change User Info</a></td>
-</tr><tr class="TableRow4">
-<td class="TableRow4"> </td>
-</tr></table>
+ <div class="TableSMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableSMenuRow1">
+<?php echo $ThemeSet['TitleIcon']; ?>Profile Settings</div>
+<?php } ?>
+<table id="ProfileLinks" class="TableSMenu" style="width: 100%; text-align: left; vertical-align: top;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableSMenuRow1">
+<td class="TableSMenuColumn1"><?php echo $ThemeSet['TitleIcon']; ?>Profile Settings</td>
+</tr><?php } ?>
+<tr class="TableSMenuRow2">
+<td class="TableSMenuColumn2"> </td>
+</tr><tr class="TableSMenuRow3">
+<td class="TableSMenuColumn3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit NotePad</a></td>
+</tr><tr class="TableSMenuRow3">
+<td class="TableSMenuColumn3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=profile",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit Profile</a></td>
+</tr><tr class="TableSMenuRow3">
+<td class="TableSMenuColumn3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=signature",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit Signature</a></td>
+</tr><tr class="TableSMenuRow3">
+<td class="TableSMenuColumn3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=avatar",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Edit Avatar</a></td>
+</tr><tr class="TableSMenuRow4">
+<td class="TableSMenuColumn4"> </td>
+</tr></table></div>
+<div class="DivSMenu"> </div>
+<div class="TableSMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableSMenuRow1">
+<?php echo $ThemeSet['TitleIcon']; ?>Board Settings</div>
+<?php } ?>
+<table class="TableSMenu" style="width: 100%; text-align: left; vertical-align: top;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableSMenuRow1">
+<td class="TableSMenuColumn1"><?php echo $ThemeSet['TitleIcon']; ?>Board Settings</td>
+</tr><?php } ?>
+<tr class="TableSMenuRow2">
+<td class="TableSMenuColumn2"> </td>
+</tr><tr class="TableSMenuRow3">
+<td class="TableSMenuColumn3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=settings",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Board Settings</a></td>
+</tr><tr class="TableSMenuRow3">
+<td class="TableSMenuColumn3"><a href="<?php echo url_maker($exfile['profile'],$Settings['file_ext'],"act=userinfo",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']); ?>">Change User Info</a></td>
+</tr><tr class="TableSMenuRow4">
+<td class="TableSMenuColumn4"> </td>
+</tr></table></div>
</td>
<td style="width: 85%; vertical-align: top;">
<?php if($_POST['update']=="now"&&$_GET['act']!=null) {
$noteact = url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
$profiletitle = " ".$ThemeSet['TitleDivider']." NotePad";
?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $updateact; ?>">Updating Settings</a>
-</span><span style="float: right;"> </span></td>
-</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">Updating Settings</th>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $updateact; ?>">Updating Settings</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $updateact; ?>">Updating Settings</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">Updating Settings</th>
</tr>
-<tr class="TableRow3" id="ProfileUpdate">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="ProfileUpdate">
+<td class="TableMenuColumn3">
<div style="text-align: center;">
<br />Profile updated <a href="<?php echo $updateact; ?>">click here</a> to go back. ^_^<br /> </div>
<?php } if($_GET['act']=="view") {
if($_POST['update']!="now") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
$noteact = url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
$notepadact = $noteact; $profiletitle = " ".$ThemeSet['TitleDivider']." NotePad";
?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $noteact; ?>">NotePad</a>
-</span><span style="float: right;"> </span></td>
-</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">NotePad</th>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $noteact; ?>">NotePad</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $noteact; ?>">NotePad</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">NotePad</th>
</tr>
-<tr class="TableRow3" id="NotePadRow">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="NotePadRow">
+<td class="TableMenuColumn3">
<form style="display: inline;" method="post" action="<?php echo $notepadact; ?>"><div style="text-align: center;">
<label class="TextBoxLabel" for="NotePad">Your NotePad</label><br />
<textarea class="TextBox" name="NotePad" id="NotePad" style="width: 75%; height: 128px;" rows="10" cols="84"><?php echo $Notes; ?></textarea>
<br /><input type="submit" class="Button" value="Save" /> <input class="Button" type="reset" />
</div></form></td>
</tr>
-<tr id="ProfileEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
$_SESSION['UserGroup']!=$Settings['GuestGroup']) {
$_POST['NotePad'] = htmlspecialchars($_POST['NotePad'], ENT_QUOTES, $Settings['charset']);
$_POST['NotePad'] = remove_bad_entities($_POST['NotePad']);
+ //$_POST['Signature'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Signature']);
+ //$_POST['Signature'] = @remove_spaces($_POST['Signature']);
+ //$_POST['Signature'] = remove_bad_entities($_POST['Signature']);
+ /* <_< iWordFilter >_>
+ by Kazuki Przyborowski - Cool Dude 2k */
+ $katarzynaqy=query("SELECT * FROM `".$Settings['sqltable']."wordfilter`", array(null));
+ $katarzynart=mysql_query($katarzynaqy);
+ $katarzynanm=mysql_num_rows($katarzynart);
+ $katarzynas=0;
+ while ($katarzynas < $katarzynanm) {
+ $Filter=mysql_result($katarzynart,$katarzynas,"Filter");
+ $Replace=mysql_result($katarzynart,$katarzynas,"Replace");
+ $CaseInsensitive=mysql_result($katarzynart,$katarzynas,"CaseInsensitive");
+ if($CaseInsensitive=="on") { $CaseInsensitive = "yes"; }
+ if($CaseInsensitive=="off") { $CaseInsensitive = "no"; }
+ if($CaseInsensitive!="yes"||$CaseInsensitive!="no") { $CaseInsensitive = "no"; }
+ $WholeWord=mysql_result($katarzynart,$katarzynas,"WholeWord");
+ if($WholeWord=="on") { $WholeWord = "yes"; }
+ if($WholeWord=="off") { $WholeWord = "no"; }
+ if($WholeWord!="yes"&&$WholeWord!="no") { $WholeWord = "no"; }
+ $Filter = preg_quote($Filter, "/");
+ if($CaseInsensitive!="yes"&&$WholeWord=="yes") {
+ $_POST['NotePad'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['NotePad']); }
+ if($CaseInsensitive=="yes"&&$WholeWord=="yes") {
+ $_POST['NotePad'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['NotePad']); }
+ if($CaseInsensitive!="yes"&&$WholeWord!="yes") {
+ $_POST['NotePad'] = preg_replace("/".$Filter."/", $Replace, $_POST['NotePad']); }
+ if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
+ $_POST['NotePad'] = preg_replace("/".$Filter."/i", $Replace, $_POST['NotePad']); }
+ ++$katarzynas; } @mysql_free_result($katarzynart);
$NewDay=GMTimeStamp();
$NewIP=$_SERVER['REMOTE_ADDR'];
$querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `Notes`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['NotePad'],$NewDay,$NewIP,$_SESSION['UserID']));
mysql_query($querynewskin); } } }
if($_GET['act']=="signature") {
if($_POST['update']!="now") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
$signatureact = url_maker($exfile['profile'],$Settings['file_ext'],"act=signature",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
$profiletitle = " ".$ThemeSet['TitleDivider']." Signature Editor";
?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $signatureact; ?>">Signature Editer</a>
-</span><span style="float: right;"> </span></td>
-</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">Signature Editor</th>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $signatureact; ?>">Signature Editer</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $signatureact; ?>">Signature Editer</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">Signature Editor</th>
</tr>
-<tr class="TableRow3" id="SignatureRow">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="SignatureRow">
+<td class="TableMenuColumn3">
<form style="display: inline;" method="post" action="<?php echo $signatureact; ?>"><div style="text-align: center;">
<label class="TextBoxLabel" for="Signature">Your Signature</label><br />
<textarea class="TextBox" name="Signature" id="Signature" style="width: 75%; height: 128px;" rows="10" cols="84"><?php echo $Signature; ?></textarea>
<br /><input type="submit" class="Button" value="Save" /> <input class="Button" type="reset" />
</div></form></td>
</tr>
-<tr id="ProfileEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
//$_POST['Signature'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Signature']);
//$_POST['Signature'] = @remove_spaces($_POST['Signature']);
$_POST['Signature'] = remove_bad_entities($_POST['Signature']);
+ /* <_< iWordFilter >_>
+ by Kazuki Przyborowski - Cool Dude 2k */
+ $katarzynaqy=query("SELECT * FROM `".$Settings['sqltable']."wordfilter`", array(null));
+ $katarzynart=mysql_query($katarzynaqy);
+ $katarzynanm=mysql_num_rows($katarzynart);
+ $katarzynas=0;
+ while ($katarzynas < $katarzynanm) {
+ $Filter=mysql_result($katarzynart,$katarzynas,"Filter");
+ $Replace=mysql_result($katarzynart,$katarzynas,"Replace");
+ $CaseInsensitive=mysql_result($katarzynart,$katarzynas,"CaseInsensitive");
+ if($CaseInsensitive=="on") { $CaseInsensitive = "yes"; }
+ if($CaseInsensitive=="off") { $CaseInsensitive = "no"; }
+ if($CaseInsensitive!="yes"||$CaseInsensitive!="no") { $CaseInsensitive = "no"; }
+ $WholeWord=mysql_result($katarzynart,$katarzynas,"WholeWord");
+ if($WholeWord=="on") { $WholeWord = "yes"; }
+ if($WholeWord=="off") { $WholeWord = "no"; }
+ if($WholeWord!="yes"&&$WholeWord!="no") { $WholeWord = "no"; }
+ $Filter = preg_quote($Filter, "/");
+ if($CaseInsensitive!="yes"&&$WholeWord=="yes") {
+ $_POST['Signature'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['Signature']); }
+ if($CaseInsensitive=="yes"&&$WholeWord=="yes") {
+ $_POST['Signature'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['Signature']); }
+ if($CaseInsensitive!="yes"&&$WholeWord!="yes") {
+ $_POST['Signature'] = preg_replace("/".$Filter."/", $Replace, $_POST['Signature']); }
+ if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
+ $_POST['Signature'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Signature']); }
+ ++$katarzynas; } @mysql_free_result($katarzynart);
$NewDay=GMTimeStamp();
$NewIP=$_SERVER['REMOTE_ADDR'];
$querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `Signature`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Signature'],$NewDay,$NewIP,$_SESSION['UserID']));
mysql_query($querynewskin); } } }
if($_GET['act']=="avatar") {
if($_POST['update']!="now") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
$profiletitle = " ".$ThemeSet['TitleDivider']." Avatar Editor";
$Pre1Avatar = $User1Avatar;
if ($User1Avatar==null) { $User1Avatar="http://"; }
-if ($Pre1Avatar=="http://"||$Pre1Avatar==null) {
+if ($Pre1Avatar=="http://"||$Pre1Avatar==null||
+ strtolower($Pre1Avatar)=="noavatar") {
$Pre1Avatar=$ThemeSet['NoAvatar'];
$User1AvatarSize=$ThemeSet['NoAvatarSize']; }
$AvatarSize1=explode("x", $User1AvatarSize);
$AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $avataract; ?>">Avatar Editer</a>
-</span><span style="float: right;"> </span></td>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $avataract; ?>">Avatar Editer</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $avataract; ?>">Avatar Editer</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">Avatar Editor</th>
</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">Avatar Editor</th>
-</tr>
-<tr class="TableRow3" id="AvatarEditor">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="AvatarEditor">
+<td class="TableMenuColumn3">
<form style="display: inline;" method="post" action="<?php echo $avataract; ?>">
<?php /* Avatar Table Thanks For SeanJ's Help at http://seanj.jcink.com/ */ ?>
<table class="AvatarTable" style="width: 100px; height: 100px; text-align: center;">
</td></tr></table>
</form></td>
</tr>
-<tr id="ProfileEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
if($_POST['update']=="now") {
if($_POST['Avatar']!=null&&$_POST['AvatarSizeW']!=null&&$_POST['AvatarSizeH']!=null&&
$_SESSION['UserGroup']!=$Settings['GuestGroup']) {
+ if(!is_numeric($_POST['AvatarSizeW'])) { $_POST['AvatarSizeW'] = 100; }
if($_POST['AvatarSizeW']>=100) { $_POST['AvatarSizeW']=100; }
+ if(!is_numeric($_POST['AvatarSizeH'])) { $_POST['AvatarSizeH'] = 100; }
if($_POST['AvatarSizeH']>=100) { $_POST['AvatarSizeH']=100; }
$fullavatarsize = $_POST['AvatarSizeW']."x".$_POST['AvatarSizeH'];
$_POST['Avatar'] = htmlentities($_POST['Avatar'], ENT_QUOTES, $Settings['charset']);
mysql_query($querynewskin); } } }
if($_GET['act']=="settings") {
if($_POST['update']!="now") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
$User1DST=mysql_result($result,$i,"DST");
$settingsact = url_maker($exfile['profile'],$Settings['file_ext'],"act=settings",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
$profiletitle = " ".$ThemeSet['TitleDivider']." Board Settings"; ?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $settingsact; ?>">Board Settings</a>
-</span><span style="float: right;"> </span></td>
-</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">Board Settings</th>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $settingsact; ?>">Board Settings</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $settingsact; ?>">Board Settings</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">Board Settings</th>
</tr>
-<tr class="TableRow3" id="BoardSettings">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="BoardSettings">
+<td class="TableMenuColumn3">
<form style="display: inline;" method="post" action="<?php echo $settingsact; ?>">
<table style="text-align: left;">
<tr style="text-align: left;">
++$themei; }
} ?></select></td>
</tr><tr style="text-align: left;">
+ <td style="width: 40%;"><label class="TextBoxLabel" for="RepliesPerPage">Replies Per Page:</label></td>
+ <td style="width: 60%;"><select id="RepliesPerPage" name="RepliesPerPage" class="TextBox">
+<option selected="selected" value="<?php echo $Settings['max_posts']; ?>">Old Value (<?php echo $Settings['max_posts']; ?>)</option>
+<option value="5">5</option>
+<option value="10">10</option>
+<option value="15">15</option>
+<option value="20">20</option>
+<option value="25">25</option>
+<option value="30">30</option>
+</select></td>
+</tr><tr style="text-align: left;">
+ <td style="width: 40%;"><label class="TextBoxLabel" for="TopicsPerPage">Topics Per Page:</label></td>
+ <td style="width: 60%;"><select id="TopicsPerPage" name="TopicsPerPage" class="TextBox">
+<option selected="selected" value="<?php echo $Settings['max_topics']; ?>">Old Value (<?php echo $Settings['max_topics']; ?>)</option>
+<option value="5">5</option>
+<option value="10">10</option>
+<option value="15">15</option>
+<option value="20">20</option>
+<option value="25">25</option>
+<option value="30">30</option>
+</select></td>
+</tr><tr style="text-align: left;">
+ <td style="width: 40%;"><label class="TextBoxLabel" for="MessagesPerPage">Messages/Members Per Page:</label></td>
+ <td style="width: 60%;"><select id="MessagesPerPage" name="MessagesPerPage" class="TextBox">
+<option selected="selected" value="<?php echo $Settings['max_pmlist']; ?>">Old Value (<?php echo $Settings['max_pmlist']; ?>)</option>
+<option value="5">5</option>
+<option value="10">10</option>
+<option value="15">15</option>
+<option value="20">20</option>
+<option value="25">25</option>
+<option value="30">30</option>
+</select></td>
+</tr><tr style="text-align: left;">
<td style="width: 40%;"><label class="TextBoxLabel" for="DST">Is <span title="Daylight Savings Time">DST</span> / <span title="Summer Time">ST</span> on or off:</label></td>
<td style="width: 60%;"><select id="DST" name="DST" class="TextBox"><?php echo "\n" ?>
<?php if($User1DST=="off"||$User1DST!="on") { ?>
</td></tr></table>
</form></td>
</tr>
-<tr id="ProfileEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
$_POST['YourOffSet'] = $_POST['YourOffSet'].":".$_POST['MinOffSet'];
$_SESSION['UserTimeZone'] = $_POST['YourOffSet'];
$_SESSION['UserDST'] = $_POST['DST'];
- $querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `UseTheme`='%s',`TimeZone`='%s',`DST`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['skin'],$_POST['YourOffSet'],$_POST['DST'],$NewDay,$NewIP,$_SESSION['UserID']));
+ if(!is_numeric($_POST['RepliesPerPage'])) { $_POST['RepliesPerPage'] = "10"; }
+ if(!is_numeric($_POST['TopicsPerPage'])) { $_POST['TopicsPerPage'] = "10"; }
+ if(!is_numeric($_POST['MessagesPerPage'])) { $_POST['MessagesPerPage'] = "10"; }
+ $querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `UseTheme`='%s',`TimeZone`='%s',`DST`='%s',`LastActive`=%i,RepliesPerPage=%i,TopicsPerPage=%i,MessagesPerPage=%i,`IP`='%s' WHERE `id`=%i", array($_POST['skin'],$_POST['YourOffSet'],$_POST['DST'],$NewDay,$_POST['RepliesPerPage'],$_POST['TopicsPerPage'],$_POST['MessagesPerPage'],$NewIP,$_SESSION['UserID']));
mysql_query($querynewskin); } } }
if($_GET['act']=="profile") {
if($_POST['update']!="now") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
if($BirthMonth=="0") { $BirthMonth = "MM"; }
if(pre_strlen($BirthMonth)=="1") { $BirthMonth = "0".$BirthMonth; }
if(pre_strlen($BirthDay)=="1") { $BirthDay = "0".$BirthDay; }
+ if($BirthYear!="MM"&&$BirthYear!="DD"&&$BirthYear!="YYYY"&&
+ checkdate($BirthMonth,$BirthDay,$BirthYear)===false) {
+ $BirthMonth = "MM"; $BirthDay = "DD"; $BirthYear = "YYYY"; }
$User1Birthday = $BirthMonth."/".$BirthDay."/".$BirthYear; }
$tsa_mem = explode(":",$User1TimeZone);
$TimeZoneArray = array("offset" => $User1TimeZone, "hour" => $tsa_mem[0], "minute" => $tsa_mem[1]);
$profileact = url_maker($exfile['profile'],$Settings['file_ext'],"act=profile",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
$profiletitle = " ".$ThemeSet['TitleDivider']." Profile Editor";
?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $profileact; ?>">Profile Editer</a>
-</span><span style="float: right;"> </span></td>
-</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">Profile Editor</th>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $profileact; ?>">Profile Editer</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $profileact; ?>">Profile Editer</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">Profile Editor</th>
</tr>
-<tr class="TableRow3" id="ProfileEditor">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="ProfileEditor">
+<td class="TableMenuColumn3">
<form style="display: inline;" method="post" action="<?php echo $profileact; ?>">
<table style="text-align: left;">
<tr style="text-align: left;">
<option value="Unknow">Unknow</option>
</select></td>
</tr><tr style="text-align: left;">
+ <td style="width: 40%;"><label class="TextBoxLabel" for="RepliesPerPage">Replies Per Page:</label></td>
+ <td style="width: 60%;"><select id="RepliesPerPage" name="RepliesPerPage" class="TextBox">
+<option selected="selected" value="<?php echo $Settings['max_posts']; ?>">Old Value (<?php echo $Settings['max_posts']; ?>)</option>
+<option value="5">5</option>
+<option value="10">10</option>
+<option value="15">15</option>
+<option value="20">20</option>
+<option value="25">25</option>
+<option value="30">30</option>
+</select></td>
+</tr><tr style="text-align: left;">
+ <td style="width: 40%;"><label class="TextBoxLabel" for="TopicsPerPage">Topics Per Page:</label></td>
+ <td style="width: 60%;"><select id="TopicsPerPage" name="TopicsPerPage" class="TextBox">
+<option selected="selected" value="<?php echo $Settings['max_topics']; ?>">Old Value (<?php echo $Settings['max_topics']; ?>)</option>
+<option value="5">5</option>
+<option value="10">10</option>
+<option value="15">15</option>
+<option value="20">20</option>
+<option value="25">25</option>
+<option value="30">30</option>
+</select></td>
+</tr><tr style="text-align: left;">
+ <td style="width: 40%;"><label class="TextBoxLabel" for="MessagesPerPage">Messages/Members Per Page:</label></td>
+ <td style="width: 60%;"><select id="MessagesPerPage" name="MessagesPerPage" class="TextBox">
+<option selected="selected" value="<?php echo $Settings['max_pmlist']; ?>">Old Value (<?php echo $Settings['max_pmlist']; ?>)</option>
+<option value="5">5</option>
+<option value="10">10</option>
+<option value="15">15</option>
+<option value="20">20</option>
+<option value="25">25</option>
+<option value="30">30</option>
+</select></td>
+</tr><tr style="text-align: left;">
<td style="width: 40%;"><label class="TextBoxLabel" for="DST">Is <span title="Daylight Savings Time">DST</span> / <span title="Summer Time">ST</span> on or off:</label></td>
<td style="width: 60%;"><select id="DST" name="DST" class="TextBox"><?php echo "\n" ?>
<?php if($User1DST=="off"||$User1DST!="on") { ?>
</td></tr></table>
</form></td>
</tr>
-<tr id="ProfileEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
$_POST['Title'] = @remove_spaces($_POST['Title']);
$_POST['Website'] = htmlentities($_POST['Website'], ENT_QUOTES, $Settings['charset']);
$_POST['Website'] = @remove_spaces($_POST['Website']);
+ //$_POST['Signature'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Signature']);
+ //$_POST['Signature'] = @remove_spaces($_POST['Signature']);
+ //$_POST['Signature'] = remove_bad_entities($_POST['Signature']);
+ /* <_< iWordFilter >_>
+ by Kazuki Przyborowski - Cool Dude 2k */
+ $katarzynaqy=query("SELECT * FROM `".$Settings['sqltable']."wordfilter`", array(null));
+ $katarzynart=mysql_query($katarzynaqy);
+ $katarzynanm=mysql_num_rows($katarzynart);
+ $katarzynas=0;
+ while ($katarzynas < $katarzynanm) {
+ $Filter=mysql_result($katarzynart,$katarzynas,"Filter");
+ $Replace=mysql_result($katarzynart,$katarzynas,"Replace");
+ $CaseInsensitive=mysql_result($katarzynart,$katarzynas,"CaseInsensitive");
+ if($CaseInsensitive=="on") { $CaseInsensitive = "yes"; }
+ if($CaseInsensitive=="off") { $CaseInsensitive = "no"; }
+ if($CaseInsensitive!="yes"||$CaseInsensitive!="no") { $CaseInsensitive = "no"; }
+ $WholeWord=mysql_result($katarzynart,$katarzynas,"WholeWord");
+ if($WholeWord=="on") { $WholeWord = "yes"; }
+ if($WholeWord=="off") { $WholeWord = "no"; }
+ if($WholeWord!="yes"&&$WholeWord!="no") { $WholeWord = "no"; }
+ $Filter = preg_quote($Filter, "/");
+ if($CaseInsensitive!="yes"&&$WholeWord=="yes") {
+ $_POST['Interests'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['Interests']);
+ $_POST['Title'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['Title']); }
+ if($CaseInsensitive=="yes"&&$WholeWord=="yes") {
+ $_POST['Interests'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['Interests']);
+ $_POST['Title'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['Title']); }
+ if($CaseInsensitive!="yes"&&$WholeWord!="yes") {
+ $_POST['Interests'] = preg_replace("/".$Filter."/", $Replace, $_POST['Interests']);
+ $_POST['Title'] = preg_replace("/".$Filter."/", $Replace, $_POST['Title']); }
+ if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
+ $_POST['Interests'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Interests']);
+ $_POST['Title'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Title']); }
+ ++$katarzynas; } @mysql_free_result($katarzynart);
+ if(!is_numeric($_POST['RepliesPerPage'])) { $_POST['RepliesPerPage'] = "10"; }
+ if(!is_numeric($_POST['TopicsPerPage'])) { $_POST['TopicsPerPage'] = "10"; }
+ if(!is_numeric($_POST['MessagesPerPage'])) { $_POST['MessagesPerPage'] = "10"; }
if(!isset($_POST['EventDay'])) { $_POST['EventDay'] = null; }
if($_POST['EventDay']!=null) {
$BirthExpl = explode("/",$_POST['EventDay']);
- if(count($BirthExpl)=="3") {
+ if(count($BirthExpl)!="3") {
+ $BirthExpl[0] = "0"; $BirthExpl[1] = "0"; $BirthExpl[2] = "0"; }
+ if(!is_numeric($BirthExpl[0])) { $BirthExpl[0] = "0"; }
+ if(!is_numeric($BirthExpl[1])) { $BirthExpl[1] = "0"; }
+ if(!is_numeric($BirthExpl[2])) { $BirthExpl[2] = "0"; }
+ if(count($BirthExpl)=="3"&&checkdate($BirthExpl[0],$BirthExpl[1],$BirthExpl[2])===true) {
if(is_numeric($BirthExpl[0])&&is_numeric($BirthExpl[1])&&is_numeric($BirthExpl[2])) {
if(pre_strlen($BirthExpl[0])=="1") { $BirthExpl[0] = "0".$BirthExpl[0]; }
if(pre_strlen($BirthExpl[1])=="1") { $BirthExpl[1] = "0".$BirthExpl[1]; }
$BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; } }
if (!is_numeric($BirthExpl[0])||!is_numeric($BirthExpl[1])||!is_numeric($BirthExpl[2])) {
$BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; } }
+ if(count($BirthExpl)=="3"&&
+ checkdate($BirthExpl[0],$BirthExpl[1],$BirthExpl[2])===false) {
+ $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; }
if(count($BirthExpl)!="3") { $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; } }
if($_POST['EventDay']==null) { $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; }
if(!is_numeric($_POST['YourOffSet'])) { $_POST['YourOffSet'] = "0"; }
$_SESSION['UserDST'] = $_POST['DST'];
$NewDay=GMTimeStamp();
$NewIP=$_SERVER['REMOTE_ADDR'];
- $querynewprofile = query("UPDATE `".$Settings['sqltable']."members` SET `Interests`='%s',`Title`='%s',`Website`='%s',`TimeZone`='%s',`Gender`='%s',`DST`='%s',`LastActive`=%i,`BirthMonth`=%i,`BirthDay`=%i,`BirthYear`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Interests'],$_POST['Title'],$_POST['Website'],$_POST['YourOffSet'],$_POST['YourGender'],$_POST['DST'],$NewDay,$BirthMonth,$BirthDay,$BirthYear,$NewIP,$_SESSION['UserID']));
+ $querynewprofile = query("UPDATE `".$Settings['sqltable']."members` SET `Interests`='%s',`Title`='%s',`Website`='%s',`TimeZone`='%s',`Gender`='%s',`DST`='%s',`LastActive`=%i,`BirthMonth`=%i,`BirthDay`=%i,`BirthYear`=%i,RepliesPerPage=%i,TopicsPerPage=%i,MessagesPerPage=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Interests'],$_POST['Title'],$_POST['Website'],$_POST['YourOffSet'],$_POST['YourGender'],$_POST['DST'],$NewDay,$BirthMonth,$BirthDay,$BirthYear,$_POST['RepliesPerPage'],$_POST['TopicsPerPage'],$_POST['MessagesPerPage'],$NewIP,$_SESSION['UserID']));
mysql_query($querynewprofile); } } }
if($_GET['act']=="userinfo") {
if($_POST['update']!="now") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+$query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
$userinfoact = url_maker($exfile['profile'],$Settings['file_ext'],"act=userinfo",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
$profiletitle = " ".$ThemeSet['TitleDivider']." User Info Editer";
?>
-<div class="Table1Border">
-<table class="Table1" style="width: 100%;">
-<tr class="TableRow1">
-<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo $userinfoact; ?>">User Info Editer</a>
-</span><span style="float: right;"> </span></td>
-</tr>
-<tr id="ProfileTitle" class="TableRow2">
-<th class="TableRow2">User Info Editer</th>
+<div class="TableMenuBorder">
+<?php if($ThemeSet['TableStyle']=="div") { ?>
+<div class="TableMenuRow1">
+<span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $userinfoact; ?>">User Info Editer</a>
+</span></div>
+<?php } ?>
+<table class="TableMenu" style="width: 100%;">
+<?php if($ThemeSet['TableStyle']=="table") { ?>
+<tr class="TableMenuRow1">
+<td class="TableMenuColumn1"><span style="text-align: left;">
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo $userinfoact; ?>">User Info Editer</a>
+</span></td>
+</tr><?php } ?>
+<tr id="ProfileTitle" class="TableMenuRow2">
+<th class="TableMenuColumn2">User Info Editer</th>
</tr>
-<tr class="TableRow3" id="UserInfoEditor">
-<td class="TableRow3">
+<tr class="TableMenuRow3" id="UserInfoEditor">
+<td class="TableMenuColumn3">
<form style="display: inline;" method="post" action="<?php echo $userinfoact; ?>">
<table style="text-align: left;">
<tr style="text-align: left;">
</td></tr></table>
</form></td>
</tr>
-<tr id="ProfileEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
if($_POST['update']=="now") {
if($_POST['act']=="userinfo"&&
$_SESSION['UserGroup']!=$Settings['GuestGroup']) {
- $query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
+ $query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_SESSION['UserID']));
$result=mysql_query($query);
$num=mysql_num_rows($result);
$i=0;
if($OldHashType=="DF4H") {
$YourPassword = b64e_hmac($_POST['OldPass'],$OldJoined,$OldSalt,"sha1");
$NewPassword = b64e_hmac($_POST['Password'],$OldJoined,$NewSalt,"sha1"); }
-if($OldHashType=="iDBH"&&$UpdateHash!=true) {
+if($OldHashType=="iDBH"&&$UpdateHash!==true) {
$YourPassword = b64e_hmac($_POST['OldPass'],$OldJoined,$OldSalt,"sha1");
$NewPassword = b64e_hmac($_POST['Password'],$OldJoined,$NewSalt,"sha1"); }
if($YourPassword!=$OldPassword) { $Error="Yes"; ?>
if($cookieDomain==null) {
@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
if($cookieDomain!=null) {
- if($cookieSecure==true) {
+ if($cookieSecure===true) {
@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
- if($cookieSecure==false) {
+ if($cookieSecure===false) {
@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } }
$_POST['Email'] = @remove_spaces($_POST['Email']);
$querynewuserinfo = query("UPDATE `".$Settings['sqltable']."members` SET `Password`='%s',`HashType`='iDBH',`Email`='%s',`LastActive`=%i,`IP`='%s',`Salt`='%s' WHERE `id`=%i", array($NewPassword,$_POST['Email'],$NewDay,$NewIP,$NewSalt,$_SESSION['UserID']));
<?php if($_POST['update']=="now"&&$_GET['act']!=null) {
$profiletitle = " ".$ThemeSet['TitleDivider']." Updating Settings"; ?>
</td></tr>
-<tr id="ProfileTitleEnd" class="TableRow4">
-<td class="TableRow4"> </td>
+<tr id="ProfileTitleEnd" class="TableMenuRow4">
+<td class="TableMenuColumn4"> </td>
</tr></table></div><?php } ?>
</td></tr>
</table>
-<div> </div>
\ No newline at end of file
+<div class="DivProfile"> </div>
\ No newline at end of file