ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2878


Ignore:
Timestamp:
May 13, 2007, 11:22:22 PM (12 years ago)
Author:
ogawa
Message:

#682:「アカウント管理」にて管理者権限を持ったユーザーが管理・変更できる範囲

Location:
OpenPNE/branches/2.8.x/webapp/modules/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp/modules/admin/init.inc

    r2657 r2878  
    2727$action = $hash_tbl->action($action, $type);
    2828
     29// ホワイトリスト
    2930$GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'] = array(
     31// SNS設定のみ
    3032'normal_type' => array(
    31     'page_delete_c_image_confirm',
    32     'page_delete_c_member_confirm',
    33     'page_delete_kakikomi',
    34     'page_edit_c_image',
    35     'page_insert_c_admin_user',
    36     'page_list_c_admin_user',
    37     'page_list_c_image',
    38     'page_list_c_member',
    39     'page_manage_c_commu',
    40     'page_passwd',
    41     'page_send_invites_confirm',
    42     'page_send_invites',
    43     'page_send_messages_all',
    44     'page_send_messages',
    45     'page_send_messages_history_detail',
    46     'page_send_messages_history_list',
    47     'do_delete_c_admin_user',
    48     'do_delete_c_image',
    49     'do_delete_c_image4c_image_id',
    50     'do_delete_c_member',
    51     'do_delete_kakikomi_c_commu_topic',
    52     'do_delete_kakikomi_c_commu',
    53     'do_delete_kakikomi_c_diary',
    54     'do_insert_c_admin_user',
    55     'do_insert_c_image',
    56     'do_passwd',
    57     'do_send_invites',
    58     'do_send_messages_all',
    59     'do_send_messages',
    60     'do_update_c_commu_is_regist_join',
    61     'do_update_is_login_rejected',
     33
     34'page_delete_c_banner_confirm',
     35'page_delete_c_cmd_confirm',
     36'page_delete_c_free_page_confirm',
     37'page_delete_c_profile',
     38'page_delete_c_rank_confirm',
     39'page_edit_admin_password',
     40'page_edit_c_admin_config',
     41'page_edit_c_admin_info',
     42'page_edit_c_banner',
     43'page_edit_c_holiday',
     44'page_edit_c_navi',
     45'page_edit_c_profile',
     46'page_edit_c_sns_config',
     47'page_edit_category',
     48'page_edit_entry_point',
     49'page_edit_mail_send',
     50'page_edit_mail',
     51'page_edit_skin_image',
     52'page_insert_c_banner',
     53'page_insert_c_free_page',
     54'page_insert_c_profile',
     55'page_insert_html',
     56'page_limit_domain',
     57'page_list_c_api',
     58'page_list_c_cmd',
     59'page_list_c_free_page',
     60'page_list_c_rank',
     61'page_login',
     62'page_manage_c_commu',
     63'page_top',
     64'page_update_c_banner',
     65'page_update_c_free_page',
     66'page_update_c_profile',
     67'page_update_c_rank',
     68'do_delete_c_banner',
     69'do_delete_c_cmd',
     70'do_delete_c_commu_category_parent',
     71'do_delete_c_commu_category',
     72'do_delete_c_free_page',
     73'do_delete_c_holiday',
     74'do_delete_c_navi',
     75'do_delete_c_profile_option',
     76'do_delete_c_profile',
     77'do_delete_c_rank',
     78'do_delete_mail',
     79'do_delete_skin_image',
     80'do_edit_c_admin_info',
     81'do_insert_c_banner',
     82'do_insert_c_commu_category_parent',
     83'do_insert_c_commu_category',
     84'do_insert_c_free_page',
     85'do_insert_c_holiday',
     86'do_insert_c_profile_option',
     87'do_insert_c_profile',
     88'do_insert_c_rank',
     89'do_insert_html',
     90'do_login',
     91'do_logout',
     92'do_update_c_action',
     93'do_update_c_admin_config',
     94'do_update_c_admin_user_password',
     95'do_update_c_api',
     96'do_update_c_banner',
     97'do_update_c_cmd',
     98'do_update_c_commu_category_parent',
     99'do_update_c_commu_category',
     100'do_update_c_commu_is_regist_join',
     101'do_update_c_free_page',
     102'do_update_c_holiday',
     103'do_update_c_navi',
     104'do_update_c_profile_option',
     105'do_update_c_profile',
     106'do_update_c_rank',
     107'do_update_c_siteadmin_css',
     108'do_update_c_sns_config',
     109'do_update_entry_point',
     110'do_update_limit_domain',
     111'do_update_mail_send',
     112'do_update_mail',
     113'do_update_profile_sort_order',
     114'do_update_side_banner_html',
     115'do_update_skin_image',
     116'do_update_skin_version',
     117'do_update_top_banner_html',
    62118),
     119
     120// メンバーリスト以外
    63121'_type' => array(
    64     'page_csv_download',
    65     'page_delete_c_member_confirm',
    66     'page_insert_c_admin_user',
    67     'page_list_c_admin_user',
    68     'page_list_c_member',
    69     'page_passwd',
    70     'page_send_messages_all',
    71     'page_send_messages',
    72     'do_csv_member',
    73     'do_delete_c_admin_user',
    74     'do_delete_c_member',
    75     'do_insert_c_admin_user',
    76     'do_passwd',
    77     'do_send_messages_all',
    78     'do_send_messages',
    79     'do_update_is_login_rejected',
     122
     123'page_access_analysis_day',
     124'page_access_analysis_member',
     125'page_access_analysis_month',
     126'page_access_analysis_page',
     127'page_access_analysis_target_commu',
     128'page_access_analysis_target_diary',
     129'page_access_analysis_target_member',
     130'page_access_analysis_target_topic',
     131'page_delete_c_banner_confirm',
     132'page_delete_c_cmd_confirm',
     133'page_delete_c_file_confirm',
     134'page_delete_c_free_page_confirm',
     135'page_delete_c_image_confirm',
     136'page_delete_c_profile',
     137'page_delete_c_rank_confirm',
     138'page_delete_kakikomi',
     139'page_diary_comment_list',
     140'page_diary_list',
     141'page_edit_admin_password',
     142'page_edit_c_admin_config',
     143'page_edit_c_admin_info',
     144'page_edit_c_banner',
     145'page_edit_c_holiday',
     146'page_edit_c_image',
     147'page_edit_c_navi',
     148'page_edit_c_profile',
     149'page_edit_c_sns_config',
     150'page_edit_category',
     151'page_edit_entry_point',
     152'page_edit_mail_send',
     153'page_edit_mail',
     154'page_edit_skin_image',
     155'page_import_c_member',
     156'page_insert_c_banner',
     157'page_insert_c_free_page',
     158'page_insert_c_profile',
     159'page_insert_html',
     160'page_limit_domain',
     161'page_list_c_api',
     162'page_list_c_cmd',
     163'page_list_c_file',
     164'page_list_c_free_page',
     165'page_list_c_image',
     166'page_list_c_rank',
     167'page_login',
     168'page_manage_c_commu',
     169'page_review_list',
     170'page_send_invites_confirm',
     171'page_send_invites',
     172'page_top',
     173'page_topic_comment_list',
     174'page_topic_list',
     175'page_update_c_banner',
     176'page_update_c_free_page',
     177'page_update_c_profile',
     178'page_update_c_rank',
     179'page_user_analysis_date_day',
     180'page_user_analysis_date_month',
     181'page_user_analysis_generation',
     182'do_delete_c_banner',
     183'do_delete_c_cmd',
     184'do_delete_c_commu_category_parent',
     185'do_delete_c_commu_category',
     186'do_delete_c_file4c_file_id',
     187'do_delete_c_free_page',
     188'do_delete_c_holiday',
     189'do_delete_c_image',
     190'do_delete_c_image4c_image_id',
     191'do_delete_c_navi',
     192'do_delete_c_profile_option',
     193'do_delete_c_profile',
     194'do_delete_c_rank',
     195'do_delete_kakikomi_c_commu_topic_comment',
     196'do_delete_kakikomi_c_commu_topic',
     197'do_delete_kakikomi_c_commu',
     198'do_delete_kakikomi_c_diary_comment',
     199'do_delete_kakikomi_c_diary',
     200'do_delete_kakikomi_c_review',
     201'do_delete_mail',
     202'do_delete_skin_image',
     203'do_edit_c_admin_info',
     204'do_import_c_member',
     205'do_insert_c_banner',
     206'do_insert_c_commu_category_parent',
     207'do_insert_c_commu_category',
     208'do_insert_c_free_page',
     209'do_insert_c_holiday',
     210'do_insert_c_image',
     211'do_insert_c_profile_option',
     212'do_insert_c_profile',
     213'do_insert_c_rank',
     214'do_insert_html',
     215'do_login',
     216'do_logout',
     217'do_send_invites',
     218'do_update_c_action',
     219'do_update_c_admin_config',
     220'do_update_c_admin_user_password',
     221'do_update_c_api',
     222'do_update_c_banner',
     223'do_update_c_cmd',
     224'do_update_c_commu_category_parent',
     225'do_update_c_commu_category',
     226'do_update_c_commu_is_regist_join',
     227'do_update_c_free_page',
     228'do_update_c_holiday',
     229'do_update_c_navi',
     230'do_update_c_profile_option',
     231'do_update_c_profile',
     232'do_update_c_rank',
     233'do_update_c_siteadmin_css',
     234'do_update_c_sns_config',
     235'do_update_entry_point',
     236'do_update_limit_domain',
     237'do_update_mail_send',
     238'do_update_mail',
     239'do_update_profile_sort_order',
     240'do_update_side_banner_html',
     241'do_update_skin_image',
     242'do_update_skin_version',
     243'do_update_top_banner_html',
    80244),
    81245);
     
    97261        $smarty->assign('auth_type', $auth_type);
    98262        $act = sprintf('page_%s', $GLOBALS['__Framework']['current_action']);
    99         if ($auth_type != 'all' && in_array($act, $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'][$auth_type.'_type'])) {
     263        if ($auth_type != 'all' && !in_array($act, $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'][$auth_type.'_type'])) {
    100264            admin_client_redirect('top', '指定されたページにはアクセスできません');
    101265        }
     
    114278        $auth_type = admin_get_auth_type();
    115279        $act = sprintf('do_%s', $GLOBALS['__Framework']['current_action']);
    116         if ($auth_type != 'all' && in_array($act, $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'][$auth_type.'_type'])) {
     280        if ($auth_type != 'all' && !in_array($act, $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'][$auth_type.'_type'])) {
    117281            admin_client_redirect('top', '指定されたページにはアクセスできません');
    118282        }
  • OpenPNE/branches/2.8.x/webapp/modules/admin/templates/inc_header.tpl

    r2839 r2878  
    3333({****************})
    3434
     35({if $auth_type == 'all' || $auth_type == ''})
    3536<ul class="admin">
    36 
    37 ({if $auth_type == 'all' || $auth_type == ''})
    3837
    3938<li id="adminSiteMember" onmouseover="menu('adminSiteMember','adminSiteMemberCont')" onmouseout="menu('adminSiteMember','adminSiteMemberCont')"><a class="tab" href="({if $auth_type == 'all'})?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})({elseif $auth_type == 'all' || $auth_type == ''})?m=({$module_name})&amp;a=page_({$hash_tbl->hash('send_invites')})({else})?m=({$module_name})&amp;a=page_({$hash_tbl->hash('csv_download')})({/if})">メンバー管理</a>
     
    5049</ul>
    5150</li>
    52 ({/if})
    5351
    5452({****})
     53
    5554<li id="adminImageKakikomi" onmouseover="menu('adminImageKakikomi','adminImageKakikomiCont')" onmouseout="menu('adminImageKakikomi','adminImageKakikomiCont')">
    5655<a class="tab" href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_image')})">画像・書き込み管理</a>
     
    8685
    8786</ul>
     87({/if})
    8888
    8989({****************})
     
    152152({/if})
    153153<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('edit_admin_password')})">パスワード変更</a></li>
     154({if $auth_type == 'all'})
    154155<li><a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('update_hash_table')})">ページ名ランダム生成</a></li>
     156({/if})
    155157</ul>
    156158</li>
    157 
    158159
    159160</ul>
  • OpenPNE/branches/2.8.x/webapp/modules/admin/templates/inc_subnavi_adminAdminConfig.tpl

    r2708 r2878  
    55({/if})
    66<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('edit_admin_password')})">パスワード変更</a>&nbsp;|&nbsp;
     7({if $auth_type == 'all'})
    78<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('update_hash_table')})">ページ名ランダム生成</a>&nbsp;|&nbsp;
     9({/if})
    810({/strip})
    911</div>
Note: See TracChangeset for help on using the changeset viewer.