[xoops-cvslog 3692] CVS update: xoops2jp/html/include

Back to archive index

onokazu onoka****@users*****
2006年 7月 27日 (木) 09:09:34 JST


Index: xoops2jp/html/include/checklogin.php
diff -u xoops2jp/html/include/checklogin.php:1.5.2.1 xoops2jp/html/include/checklogin.php:1.5.2.2
--- xoops2jp/html/include/checklogin.php:1.5.2.1	Thu Jul 27 08:49:42 2006
+++ xoops2jp/html/include/checklogin.php	Thu Jul 27 09:09:34 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: checklogin.php,v 1.5.2.1 2006/07/26 23:49:42 onokazu Exp $
+// $Id: checklogin.php,v 1.5.2.2 2006/07/27 00:09:34 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -63,8 +63,6 @@
     $user->setVar('last_login', time());
     if (!$member_handler->insertUser($user)) {
     }
-    require_once XOOPS_ROOT_PATH . '/include/session.php';
-    xoops_session_regenerate();
     $_SESSION = array();
     $_SESSION['xoopsUserId'] = $user->getVar('uid');
     $_SESSION['xoopsUserGroups'] = $user->getGroups();
Index: xoops2jp/html/include/version.php
diff -u xoops2jp/html/include/version.php:1.13.2.2 xoops2jp/html/include/version.php:1.13.2.3
--- xoops2jp/html/include/version.php:1.13.2.2	Thu Jul 27 08:53:12 2006
+++ xoops2jp/html/include/version.php	Thu Jul 27 09:09:34 2006
@@ -1,4 +1,4 @@
 <?php
-// $Id: version.php,v 1.13.2.2 2006/07/26 23:53:12 onokazu Exp $
-define("XOOPS_VERSION","XOOPS 2.0.16 JP");
+// $Id: version.php,v 1.13.2.3 2006/07/27 00:09:34 onokazu Exp $
+define("XOOPS_VERSION","XOOPS 2.0.15 JP");
 ?>
\ No newline at end of file
Index: xoops2jp/html/include/session.php
diff -u xoops2jp/html/include/session.php:1.1.2.1 xoops2jp/html/include/session.php:removed
--- xoops2jp/html/include/session.php:1.1.2.1	Thu Jul 27 08:49:42 2006
+++ xoops2jp/html/include/session.php	Thu Jul 27 09:09:34 2006
@@ -1,36 +0,0 @@
-<?php
-if (!defined('XOOPS_ROOT_PATH')) {
-    exit();
-}
-
-if (!function_exists('session_regenerate_id')) {
-    if (!defined('XOOPS_SALT')) {
-        define('XOOPS_SALT', substr(md5(XOOPS_DB_PREFIX . XOOPS_DB_USER . XOOPS_ROOT_PATH), 5, 8));
-    }
-    // session_regenerate_id compatible function for PHP Version< PHP4.3.2
-    function session_regenerate_id() {
-        srand(microtime() * 100000);
-        $random = md5(XOOPS_SALT . uniqid(rand(), true));
-        if (session_id($random)) {
-           return true;
-        } else {
-           return false;
-        }
-    }
-}
-
-// Regenerate New Session ID & Delete OLD Session
-function xoops_session_regenerate() {
-    $old_sessid = session_id();
-    session_regenerate_id();
-    $new_sessid = session_id();
-    session_id($old_sessid);
-    session_destroy();
-    $old_session = $_SESSION;
-    session_id($new_sessid);
-    $sess_handler =& xoops_gethandler('session');
-    session_set_save_handler(array(&$sess_handler, 'open'), array(&$sess_handler, 'close'), array(&$sess_handler, 'read'), array(&$sess_handler, 'write'), array(&$sess_handler, 'destroy'), array(&$sess_handler, 'gc'));
-    session_start();
-    $_SESSION = $old_session;
-}
-?>
\ No newline at end of file


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