[xoops-cvslog 212] CVS update: xoops2jp/html/modules/system/admin/users

Back to archive index

onokazu onoka****@users*****
2005年 6月 28日 (火) 16:45:07 JST


Index: xoops2jp/html/modules/system/admin/users/main.php
diff -u xoops2jp/html/modules/system/admin/users/main.php:1.3 xoops2jp/html/modules/system/admin/users/main.php:1.4
--- xoops2jp/html/modules/system/admin/users/main.php:1.3	Sat Jun 11 11:32:53 2005
+++ xoops2jp/html/modules/system/admin/users/main.php	Tue Jun 28 16:45:07 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: main.php,v 1.3 2005/06/11 02:32:53 onokazu Exp $
+// $Id: main.php,v 1.4 2005/06/28 07:45:07 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -229,7 +229,7 @@
     $myts =& MyTextSanitizer::getInstance();
     $username = !empty($_POST['username']) ? $myts->stripSlashesGPC(trim($_POST['username'])) : '';
     $email = !empty($_POST['email']) ? $myts->stripSlashesGPC(trim($_POST['email'])) : '';
-    $password = !empty($_POST['password']) ? $myts->stripSlashesGPC(trim($_POST['password'])) : '';
+    $password = !empty($_POST['pass']) ? $myts->stripSlashesGPC(trim($_POST['pass'])) : '';
     if ($username == '' || $email == '' || $password == '') {
         $adduser_errormsg = _AM_YMCACF;
     } else {
@@ -257,14 +257,14 @@
             $newuser->setVar("user_yim", $_POST['user_yim']);
             $newuser->setVar("user_msnm", $_POST['user_msnm']);
             if ($_POST['pass2'] != "") {
-                if ( $_POST['password'] != $_POST['pass2'] ) {
+                if ( $_POST['pass'] != $_POST['pass2'] ) {
                     xoops_cp_header();
                     echo "
                     <b>"._AM_STNPDNM."</b>";
                     xoops_cp_footer();
                     exit();
                 }
-                $newuser->setVar("pass", md5($_POST['password']));
+                $newuser->setVar("pass", md5($_POST['pass']));
             }
             $newuser->setVar("timezone_offset", $_POST['timezone_offset']);
             $newuser->setVar("uorder", $_POST['uorder']);


xoops-cvslog メーリングリストの案内
Back to archive index