|
From: Lo?c C. <lo...@us...> - 2001-04-13 11:21:49
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv1707/chat
Modified Files:
profile_reg.php3 profile_edit.php3 profile_del.php3
Log Message:
The latest command has been updated (profile) :))
Index: profile_reg.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_reg.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** profile_reg.php3 2001/04/12 23:45:34 1.5
--- profile_reg.php3 2001/04/13 11:21:45 1.6
***************
*** 161,165 ****
else
{
! $latin1 = (L_CHARSET == 'iso-8859-1');
$showEmail = (isset($showEmail) && $showEmail) ? 1 : 0;
if (!isset($gender))
--- 161,165 ----
else
{
! $latin1 = (L_CHARSET == 'iso-8859-1') ? 1 : 0;
$showEmail = (isset($showEmail) && $showEmail) ? 1 : 0;
if (!isset($gender))
***************
*** 202,206 ****
if (empty($error))
{
! $dbLink->query("INSERT INTO " . C_REG_TBL . " VALUES ('$slashedNick', $latin1, '$pwdHash', '" . pmcSlashSingleQuotes($firstName) . "', '" . pmcSlashSingleQuotes($lastName) . "', '" . pmcSlashSingleQuotes($spokenLang) . "', '$webSite', '$email', $showEmail, 'user', '', " . time() . ", '$ip', '$gender')");
$message = L_REG_9;
$isRegDone = true;
--- 202,206 ----
if (empty($error))
{
! $dbLink->query("INSERT INTO " . C_REG_TBL . " VALUES ('$slashedNick', '$latin1', '$pwdHash', '" . pmcSlashSingleQuotes($firstName) . "', '" . pmcSlashSingleQuotes($lastName) . "', '" . pmcSlashSingleQuotes($spokenLang) . "', '$webSite', '$email', $showEmail, 'user', '', " . time() . ", '$ip', '$gender')");
$message = L_REG_9;
$isRegDone = true;
Index: profile_edit.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_edit.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** profile_edit.php3 2001/04/12 23:45:34 1.5
--- profile_edit.php3 2001/04/13 11:21:45 1.6
***************
*** 172,176 ****
if (!isset($error))
{
! $latin1 = (L_CHARSET == 'iso-8859-1');
$showEmail = (isset($showEmail) && $showEmail) ? 1 : 0;
if (!isset($gender))
--- 172,176 ----
if (!isset($error))
{
! $latin1 = (L_CHARSET == 'iso-8859-1') ? 1 : 0;
$showEmail = (isset($showEmail) && $showEmail) ? 1 : 0;
if (!isset($gender))
***************
*** 184,188 ****
// Updates the profile
! $dbLink->query("UPDATE " . C_REG_TBL . " SET username = '$slashedNick', latin1 = $latin1, password = '$pwdHash', firstname='" . pmcSlashSingleQuotes($firstName) . "', lastname = '" . pmcSlashSingleQuotes($lastName) . "', country = '" . pmcSlashSingleQuotes($spokenLang) . "', website = '$webSite', email = '$email', showemail = $showEmail, reg_time = " . time() . ", ip = '$ip', gender = '$gender' WHERE username = '" . pmcSlashSingleQuotes($dbSessionVars['authUsername']) . "'");
$message = L_REG_17;
$isRegDone = true;
--- 184,190 ----
// Updates the profile
! $dbLink->query("UPDATE " . C_REG_TBL . " SET username = '$slashedNick', latin1 = '$latin1', password = '$pwdHash', firstname='" . pmcSlashSingleQuotes($firstName) . "', lastname = '" . pmcSlashSingleQuotes($lastName) . "', country = '" . pmcSlashSingleQuotes($spokenLang) . "', website = '$webSite', email = '$email', showemail = $showEmail, reg_time = " . time() . ", ip = '$ip', gender = '$gender' WHERE username = '" . pmcSlashSingleQuotes($dbSessionVars['authUsername']) . "'");
! if ($dbSessionVars['authPassword'] != $password)
! $dbSessionVars['authPassword'] = $password;
$message = L_REG_17;
$isRegDone = true;
***************
*** 296,319 ****
<td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td>
<td valign="top">
! <?php
! // Do not allow modification of the password if this popup is launched by the
! // profile command
! if (dbSessionIsRegistered('conservative'))
! {
! echo("\t\t\t\t" . $password . "\n");
! ?>
! <input type="hidden" name="password" value="<?php echo(htmlspecialchars($dbSessionVars['authPassword'])); ?>" />
! <?php
! }
! else
! {
! ?>
! <input type="password" name="password" size="11" maxlength="16" value="<?php echo(htmlspecialchars($dbSessionVars['authPassword'])); ?>"<?php if ($isRegDone) echo(' readonly="readonly"'); ?> />
! <?php
! if (!$isRegDone)
! echo("\t\t\t" . '<span class="error">*</span>' . "\n");
! }
! echo("\n");
! ?>
</td>
</tr>
--- 298,303 ----
<td align="right" valign="top" nowrap="nowrap"><?php echo(L_REG_7); ?> :</td>
<td valign="top">
! <input type="text" name="password" size="11" maxlength="16" value="<?php echo(htmlspecialchars($dbSessionVars['authPassword'])); ?>" />
! <?php if (!$isRegDone) echo('<span class="error">*</span>'); ?>
</td>
</tr>
Index: profile_del.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/profile_del.php3,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
|