From: Kazuki Przyborowski Date: Thu, 17 Dec 2009 21:26:46 +0000 (+0000) Subject: Small updates and changes. :P X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=53ce827a111bce4951919607e7d90b00b2247b78;p=idb%2FiDB.git.git Small updates and changes. :P git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@418 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- diff --git a/inc/profilemain.php b/inc/profilemain.php index 5f37675..620d6c1 100644 --- a/inc/profilemain.php +++ b/inc/profilemain.php @@ -11,7 +11,7 @@ Copyright 2004-2009 iDB Support - http://idb.berlios.de/ Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: profilemain.php - Last Update: 12/10/2009 SVN 389 - Author: cooldude2k $ + $FileInfo: profilemain.php - Last Update: 12/17/2009 SVN 418 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") { @@ -887,7 +887,8 @@ if($YourPassword!=$OldPassword) { $Error="Yes"; ?>
Your passwords did not match.
 
if($cookieSecure===true) { setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); } if($cookieSecure===false) { - setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } } + setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } } } $_POST['Email'] = remove_spaces($_POST['Email']); + if($_POST['Password']!="") { $querynewuserinfo = sql_pre_query("UPDATE \"".$Settings['sqltable']."members\" SET \"UserPassword\"='%s',\"HashType\"='iDBH',\"Email\"='%s',\"LastActive\"=%i,\"IP\"='%s',\"Salt\"='%s' WHERE \"id\"=%i", array($NewPassword,$_POST['Email'],$NewDay,$NewIP,$NewSalt,$_SESSION['UserID'])); - sql_query($querynewuserinfo,$SQLStat); } } } } + sql_query($querynewuserinfo,$SQLStat); } + if($_POST['Password']=="") { + echo $querynewuserinfo = sql_pre_query("UPDATE \"".$Settings['sqltable']."members\" SET \"Email\"='%s',\"LastActive\"=%i,\"IP\"='%s' WHERE \"id\"=%i", array($_POST['Email'],$NewDay,$NewIP,$_SESSION['UserID'])); + sql_query($querynewuserinfo,$SQLStat); } } } } } ?> diff --git a/inc/topics.php b/inc/topics.php index f17d50b..40c7142 100644 --- a/inc/topics.php +++ b/inc/topics.php @@ -11,7 +11,7 @@ Copyright 2004-2009 iDB Support - http://idb.berlios.de/ Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: topics.php - Last Update: 12/17/2009 SVN 416 - Author: cooldude2k $ + $FileInfo: topics.php - Last Update: 12/17/2009 SVN 418 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="topics.php"||$File3Name=="/topics.php") { @@ -490,7 +490,7 @@ redirect("refresh",$basedir.url_maker($exfile['forum'],$Settings['file_ext'],"ac
You have to wait before making another topic.
- Click ">here to view your reply.
  + Click ">here to go back to forum.
 

@@ -601,6 +601,10 @@ sql_free_result($renee_result);