Changeset 19781


Ignore:
Timestamp:
2010/12/28 21:42:15 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101228115319-2blxs8wgrc37l5bi
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/install.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Finstall.php
html/install/index.php 16809@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Findex.php
html/install/sql/create_table_mysql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_mysql.sql
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20101228123954-ri804k336mc6ox8o
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101228124212-jsjmsyydc29b0i8c
bzr:revno:
2510
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

html/install/index.php ohkouchi@loop-az.jp-20101228123954-ri804k336mc6ox8o
bzr:timestamp:
2010-12-28 21:42:12.411999941 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2010-12-28T12:42:12.412000Z
Message:

#564(PEAR::DB から PEAR::MDB2 への変更)

  • MySQL でインストール時に dtb_member が文字化けしていたのを修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/install/index.php

    r19767 r19781  
    273273    $login_pass = sha1($objWebParam->getValue('login_pass') . ":" . AUTH_MAGIC); 
    274274 
    275     $sql = "DELETE FROM dtb_member WHERE login_id = ?"; 
    276     $objQuery->query($sql, array($login_id)); 
    277  
    278     $sql = "INSERT INTO dtb_member (member_id, name, login_id, password, creator_id, authority, work, del_flg, rank, create_date, update_date) 
    279             VALUES (?,'管理者',?,?,0,0,1,0,1, now(), now());"; 
     275    $objQuery->delete("dtb_member", "login_id = ?", array($login_id)); 
     276 
    280277    $member_id = $objQuery->nextVal("dtb_member_member_id"); 
    281     $objQuery->query($sql, array($member_id, $login_id, $login_pass)); 
     278    $objQuery->insert("dtb_member", array("member_id" => $member_id, 
     279                                          "name" => "管理者", 
     280                                          "login_id" => $login_id, 
     281                                          "password" => $login_pass, 
     282                                          "creator_id" => 0, 
     283                                          "authority" => 0, 
     284                                          "work" => 1, 
     285                                          "del_flg" => 0, 
     286                                          "rank" => 1, 
     287                                          "create_date" => "now()", 
     288                                          "update_date" => "now()")); 
    282289 
    283290    $GLOBAL_ERR = ""; 
Note: See TracChangeset for help on using the changeset viewer.