Changeset 5410

Show
Ignore:
Timestamp:
02/26/08 12:44:22 (11 months ago)
Author:
inureyes
Message:

#843

  • 제어판/사용자에서 임시 암호를 출력하도록 함.
    • 인증 주소 기능을 넣으려고 했는데, 사용자만 추가하고 속한 블로그가 없으면 인증 주소를 만들 수가 없더라는;
  • 이후 보완이 필요함.
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/components/Textcube.Function.Setting.php

    r5401 r5410  
    212212    } 
    213213 
    214     function getUserSettingGlobal($name, $default = null, $userid = null) { 
     214    function getUserSettingGlobal($name, $default = null, $userid = null, $directAccess = false) { 
    215215        global $database, $userSetting; 
     216        if($directAccess !== false) { 
     217            return POD::queryCell("SELECT value FROM {$database['prefix']}UserSettings 
     218                    WHERE userid = $userid"); 
     219        } 
    216220        if( empty($userSetting) || !isset($userSetting[$userid])) { 
    217221            $userid = is_null($userid) ? getUserId() :  $userid; 
  • trunk/interface/owner/control/user/index.php

    r5342 r5410  
    2828                    <dt><?php echo _t('이름'); ?></dt> 
    2929                    <dd><input type="text" class="input-text" id="ui-name" name="ui-name" /></dd> 
    30                     <dt><?php echo _t('이메일'); ?></dt> 
     30                    <dt><?php echo _t('이메일').' ('._t('로그인 ID').')';?></dt> 
    3131                    <dd><input type="text" class="input-text" id="ui-email" name="ui-email" /></dd> 
    3232                </dl> 
     
    4848                        <th><?php echo _t('로그인 ID');?></th> 
    4949                        <th><?php echo _t('이름');?></th> 
    50                         <th><?php echo _t('마지막 로그인');?></th> 
     50                        <th><?php echo _t('최근 로그인');?></th> 
     51                        <th><?php echo _t('임시 암호');?></th> 
    5152                    </tr> 
    5253                </thead> 
     
    6364    foreach($userlist as $row) { 
    6465?> 
    65                     <tr id="table-user-list_<?php echo $row['userid']?>"> 
     66                    <tr id="table-user-list_<?php echo $row['userid'];?>"> 
    6667                        <td><?php echo $row['userid']?></td> 
    67                         <td><a href="<?php echo $blogURL?>/owner/control/user/detail/<?php echo $row['userid']?>"><?php echo $row['loginid']?></a></td> 
     68                        <td><a href="<?php echo $blogURL;?>/owner/control/user/detail/<?php echo $row['userid']?>"><?php echo $row['loginid'];?></a></td> 
    6869                        <td><?php echo $row['name']?></td> 
    69                         <td><?php echo ($row['lastLogin']?date("Y/m/d H:i:s T",$row['lastLogin']):"")?></td> 
     70                        <td><?php echo ($row['lastLogin']?date("Y/m/d H:i:s T",$row['lastLogin']):'<span class="warning">'._t('아직 로그인하지 않았습니다.').'</span>');?></td> 
     71                        <td><?php if(empty($row['lastLogin'])) echo setting::getUserSettingGlobal('AuthToken',null,$row['userid'],true);?></td> 
    7072                    </tr> 
    7173<?php 
  • trunk/style/admin/whitedream/control.css

    r5331 r5410  
    3333} 
    3434 
     35.warning 
     36{ 
     37    color                            : #FF3333; 
     38} 
    3539/* Blog ******************************************************************************************/ 
    3640