Files
web-discuz/template/bygsjw_sj/touch/home/spacecp_privacy.php
2025-06-27 21:04:18 +08:00

359 lines
16 KiB
PHP

<?php echo 'Discuz!应用中心开发者-简约设计';exit;?>
<!--{template common/header}-->
<!-- header start -->
<header class="header_xin">
<div class="hdc_xin cl" id="byg_header">
<div class="header_z cl">
<a href="javascript:;" class="shouye">
<img src="<!--{avatar($_G['uid'], 'middle', true)}-->" alt="头像"/>
<!--{if $_G[member][newpm] || $post_notice_new}-->
<img src="{$_G['style']['styleimgdir']}/new_pm.png" alt="提醒" class="new_pm"/>
<!--{/if}-->
</a>
<em>&rsaquo;</em>
<a href="home.php?mod=space&uid=$_G[uid]&do=profile&mycenter=1" title="个人中心">个人中心</a>
<em>&rsaquo;</em>
<span>{lang memcp_privacy}</span>
</div>
<a href="javascript:history.back();" title="返回上一页" class="header_y">
<img src="{$_G['style']['styleimgdir']}/houtui.png" alt="返回"/></a>
</div>
</header>
<!--{hook/global_header_mobile}-->
<!-- header end -->
<!--{subtemplate home/spacecp_header}-->
<!--{hook/spacecp_privacy_top}-->
<style type="text/css">
.dhnavs_box{ width: 100%; height: .4rem; padding: .05rem 0; border-bottom: 1px solid #eee; background: #fff; overflow: hidden;}
#dhnavs_li{ width: 100%; height: .4rem; text-align: center; white-space: nowrap;}
#dhnavs_li li{ float: left; width: auto; text-align: center; overflow: hidden; position: relative;}
#dhnavs_li li a{ display: inline-block; font-size: .14rem; height: .24rem; line-height: .24rem; margin: .08rem .1rem; padding: 0 .06rem; color: #666; border-radius: .04rem; border: 1px solid #eee;}
#dhnavs_li li.mon a{ background-color: $_G['style']['zhuti']; color: #fff;}
.byg_privacy{ padding: .1rem; background: #fff;}
.byg_privacy .tbmu{ font-size: .14rem;}
.byg_privacy .tfm{ table-layout: fixed; width: 100%; margin: .1rem 0 0; border: 1px solid #eee; font-size: .15rem; background: #fff;}
.byg_privacy .tfm tr{ width: 100%; line-height: .2rem; border: 1px solid #eee;}
.byg_privacy .tfm th{ width: .9rem; padding: .1rem 0 .1rem .1rem; background: #fafafa; border: 1px solid #eee;}
.byg_privacy .tfm td{ padding: .05rem 0 .05rem .05rem;}
.byg_privacy .tfm td label{ display: block; margin: .05rem;}
.byg_privacy .tfm td input{ vertical-align: top; margin: .04rem; font-size: .14rem;}
.byg_privacy .tfm td select{ padding: .01rem 0 .02rem; font-size: .14rem; border: .01rem solid #ddd;}
.byg_privacy .tfm td p{ font-size: .125rem; line-height: .18rem; margin-top: .03rem; color: #888;}
.byg_privacy .tfm td a{ color: #06c;}
.byg_privacy .tfm button{ margin: .05rem; padding: .08rem 0; width: 96%;}
.byg_privacy .tfm .xg1{ font-size: .14rem; margin-bottom: .05rem;}
</style>
<div class="dhnavs_box">
<div id="dhnavs">
<div id="dhnavs_li">
<ul class="swiper-wrapper">
<li class="swiper-slide{if $opactives[base]} mon{/if}"><a href="home.php?mod=spacecp&ac=privacy&op=base">{lang personal_privacy_settings}</a></li>
<!--{if helper_access::check_module('feed')}-->
<li class="swiper-slide{if $opactives[feed]} mon{/if}"><a href="home.php?mod=spacecp&ac=privacy&op=feed">{lang personal_feed_settings}</a></li>
<li class="swiper-slide{if $opactives[filter]} mon{/if}"><a href="home.php?mod=spacecp&ac=privacy&op=filter">{lang feed_filter}</a></li>
<!--{/if}-->
<!--{if isset($_G['setting']['mobile']['forum'])}-->
<!--{if helper_access::check_module('friend') || helper_access::check_module('follow')}-->
<li class="swiper-slide{if $opactives[other]} mon{/if}"><a href="home.php?mod=spacecp&ac=privacy&op=other">{lang personal_other_settings}</a></li>
<!--{/if}-->
<!--{/if}-->
</ul>
</div>
</div>
</div>
<link rel="stylesheet" type="text/css" href="{$_G['style']['styleimgdir']}/swiper.min.css">
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/swiper.jquery.min.js"></script>
<script>
if($("#dhnavs_li .mon").length>0){
var discuz_nav=$("#dhnavs_li .mon").offset().left+$("#dhnavs_li .mon").width()>=$(window).width()?$("#dhnavs_li .mon").index():0;
}else{
var discuz_nav=0;
}
new Swiper('#dhnavs_li',{freeMode:true,slidesPerView:'auto',initialSlide:discuz_nav,onTouchMove:function(swiper){Discuz_Touch_on=0},onTouchEnd:function(swiper){Discuz_Touch_on=1},});
</script>
<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=privacy&op=$operation" class="byg_privacy">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{if $operation == 'base'}-->
<p class="tbmu">{lang you_control_see_content}</p>
<table cellspacing="0" cellpadding="0" class="tfm">
<!--{if helper_access::check_module('friend')}-->
<tr>
<th>{lang friend_list}</th>
<td>
<select name="privacy[view][friend]">
<option value="0"$sels[view][friend][0]>{lang open_privacy}</option>
<option value="1"$sels[view][friend][1]>{lang friend_privacy}</option>
<option value="2"$sels[view][friend][2]>{lang secrecy}</option>
<option value="3"$sels[view][friend][3]>{lang privacy_register}</option>
</select>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('wall')}-->
<tr>
<th>{lang message_board}</th>
<td>
<select name="privacy[view][wall]">
<option value="0"$sels[view][wall][0]>{lang open_privacy}</option>
<option value="1"$sels[view][wall][1]>{lang friend_privacy}</option>
<option value="2"$sels[view][wall][2]>{lang secrecy}</option>
<option value="3"$sels[view][wall][3]>{lang privacy_register}</option>
</select>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('feed')}-->
<tr>
<th>{lang personal_feed}</th>
<td>
<select name="privacy[view][home]">
<option value="0"$sels[view][home][0]>{lang open_privacy}</option>
<option value="1"$sels[view][home][1]>{lang friend_privacy}</option>
<option value="3"$sels[view][home][3]>{lang privacy_register}</option>
</select>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('doing')}-->
<tr>
<th>{lang doing}</th>
<td>
<select name="privacy[view][doing]">
<option value="0"$sels[view][doing][0]>{lang open_privacy}</option>
<option value="1"$sels[view][doing][1]>{lang friend_privacy}</option>
<option value="3"$sels[view][doing][3]>{lang privacy_register}</option>
</select>
<p class="d">{lang privacy_setting_message}<br />{lang site_might_your_log}</p>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('blog')}-->
<tr>
<th>{lang blog}</th>
<td>
<select name="privacy[view][blog]">
<option value="0"$sels[view][blog][0]>{lang open_privacy}</option>
<option value="1"$sels[view][blog][1]>{lang friend_privacy}</option>
<option value="3"$sels[view][blog][3]>{lang privacy_register}</option>
</select>
<p class="d">{lang privacy_setting_message}<br />{lang view_right_setting_effective}</p>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('album')}-->
<tr>
<th>{lang album}</th>
<td>
<select name="privacy[view][album]">
<option value="0"$sels[view][album][0]>{lang open_privacy}</option>
<option value="1"$sels[view][album][1]>{lang friend_privacy}</option>
<option value="3"$sels[view][album][3]>{lang privacy_register}</option>
</select>
<p class="d">{lang privacy_setting_message}<br />{lang view_right_setting_effective}</p>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('share')}-->
<tr>
<th>{lang share}</th>
<td>
<select name="privacy[view][share]">
<option value="0"$sels[view][share][0]>{lang open_privacy}</option>
<option value="1"$sels[view][share][1]>{lang friend_privacy}</option>
<option value="3"$sels[view][share][3]>{lang privacy_register}</option>
</select>
<p class="d">{lang privacy_setting_message}<br />{lang view_right_setting_effective}</p>
</td>
</tr>
<!--{/if}-->
<!--{hook/spacecp_privacy_base_extra}-->
<tr>
<td colspan="2"><button type="submit" name="privacysubmit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
</tr>
</table>
<!--{elseif $operation == 'feed'}-->
<p class="tbmu">{lang system_depend_action_message}</p>
<table cellspacing="0" cellpadding="0" id="feed" class="tfm">
<tr>
<th>&nbsp;</th>
<td class="pcl">
<label><input type="checkbox" class="pc" name="privacy[feed][doing]" value="1"$sels[feed][doing] />{lang doing}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][blog]" value="1"$sels[feed][blog] />{lang write_blog}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][upload]" value="1"$sels[feed][upload] />{lang upload_pic}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][share]" value="1"$sels[feed][share] />{lang add_share}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][friend]" value="1"$sels[feed][friend] />{lang friend_add}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][comment]" value="1"$sels[feed][comment] />{lang publish_comment_reply}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][show]" value="1"$sels[feed][show] />{lang bidding_rank}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][credit]" value="1"$sels[feed][credit] />{lang credit_consumption}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][invite]" value="1"$sels[feed][invite] />{lang invite_friend}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][task]" value="1"$sels[feed][task] />{lang complete_task}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][profile]" value="1"$sels[feed][profile] />{lang update_presonal_profile}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][click]" value="1"$sels[feed][click] />{lang pic_blog_position}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][newthread]" value="1"$sels[feed][newthread] />{lang forum_post}</label>
<label><input type="checkbox" class="pc" name="privacy[feed][newreply]" value="1"$sels[feed][newreply] />{lang forum_reply}</label>
</td>
</tr>
<!--{hook/spacecp_privacy_feed_extra}-->
<tr>
<td colspan="2"><button type="submit" name="privacysubmit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
</tr>
</table>
<!--{elseif $operation == 'other'}-->
<p class="tbmu">{lang you_control_other_operation}</p>
<table cellspacing="0" cellpadding="0" class="tfm">
<!--{if helper_access::check_module('friend')}-->
<tr>
<th>{lang add_friends}</th>
<td>
<select name="allowasfriend">
<option value="0"$arr['allowasfriend'][0]>{lang no}</option>
<option value="1"$arr['allowasfriend'][1]>{lang yes}</option>
</select>
</td>
</tr>
<!--{/if}-->
<!--{if helper_access::check_module('follow')}-->
<tr>
<th>{lang add_follow}</th>
<td>
<select name="allowasfollow">
<option value="0"$arr['allowasfollow'][0]>{lang no}</option>
<option value="1"$arr['allowasfollow'][1]>{lang yes}</option>
</select>
</td>
</tr>
<!--{/if}-->
<!--{hook/spacecp_privacy_other_extra}-->
<tr>
<td colspan="2"><button type="submit" name="privacy3submit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
</tr>
</table>
<!--{else}-->
{eval
$iconnames['wall'] = '{lang message}';
$iconnames['piccomment'] = '{lang pic_comment}';
$iconnames['blogcomment'] = '{lang blog_comment}';
$iconnames['sharecomment'] = '{lang share_comment}';
$iconnames['magic'] = '{lang magics_title}';
$iconnames['sharenotice'] = '{lang share_notification}';
$iconnames['clickblog'] = '{lang blog_position}';
$iconnames['clickpic'] = '{lang pic_position}';
$iconnames['credit'] = '{lang credits}';
$iconnames['doing'] = '{lang doing}';
$iconnames['pcomment'] = '{lang topic_comment}';
$iconnames['post'] = '{lang topic_reply}';
$iconnames['show'] = '{lang friend_top}';
$iconnames['task'] = '{lang task}';
$iconnames['goods'] = '{lang trade}';
$iconnames['group'] = $_G['setting']['navs'][3]['navname'];
$iconnames['thread'] = '{lang theme}';
$iconnames['system'] = '{lang system}';
$iconnames['friend'] = '{lang friends}';
$iconnames['debate'] = '{lang debate}';
$iconnames['album'] = '{lang album}';
$iconnames['blog'] = '{lang blog}';
$iconnames['poll'] = '{lang poll}';
$iconnames['activity'] = '{lang activity}';
$iconnames['reward'] = '{lang reward}';
$iconnames['share'] = '{lang share}';
$iconnames['profile'] = '{lang update_presonal_profile}';
$iconnames['pusearticle'] = '{lang article_push}';
}
<table cellspacing="0" cellpadding="0" class="tfm b_b" style="margin: 0;">
<caption>
<h2 class="">{lang filtering_rules_title_1}</h2>
<p class="xg1">{lang filtering_rules_message_1}</p>
</caption>
<tr>
<th>&nbsp;</th>
<td class="pcl">
<!--{loop $groups $key $value}-->
<label><input type="checkbox" class="pc" name="privacy[filter_gid][$key]" value="$key"{if isset($space['privacy']['filter_gid'][$key])} checked="checked"{/if} />$value</label>
<!--{/loop}-->
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" name="privacy2submit" value="true" class="pn pnc" /><strong>{lang save}</strong></button>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" class="tfm b_b">
<caption>
<h2 class="">{lang filtering_rules_title_2}</h2>
<p class="xg1">{lang filtering_rules_message_2}</p>
</caption>
<!--{if $icons}-->
<tr>
<th>&nbsp;</th>
<td class="pcl">
<!--{loop $icons $key $icon}-->
<!--{eval $uid = $uids[$key];$icon_uid="$icon|$uid";}-->
<label>
<!--{if is_numeric($icon)}-->
<img src="{STATICURL}image/feed/{$icon}.gif" alt="" class="vm" />
<!--{/if}-->
<input type="checkbox" class="pc" name="privacy[filter_icon][$icon_uid]" value="1" checked="checked" />
<!--{if isset($iconnames[$icon])}-->$iconnames[$icon]<!--{else}-->$icon<!--{/if}--> (<!--{if $users[$uid]}--><a href="home.php?mod=space&uid=$uid" target="_blank">$users[$uid]</a><!--{else}-->{lang all_friends}<!--{/if}-->)
</label>
<!--{/loop}-->
</td>
</tr>
<tr>
<td colspan="2"><button type="submit" name="privacy2submit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
</tr>
<!--{else}-->
<tr>
<th>&nbsp;</th>
<td class="d">{lang no_shield_feed_cat}</td>
</tr>
<!--{/if}-->
</table>
<table cellspacing="0" cellpadding="0" class="tfm">
<caption>
<h2 class="">{lang filtering_rules_title_3}</h2>
<p class="xg1">{lang filtering_rules_message_3}</p>
</caption>
<!--{if $types}-->
<tr>
<th>&nbsp;</th>
<td>
<!--{loop $types $key $type}-->
<!--{eval $uid = $uids[$key];$type_uid="$type|$uid";}-->
<label>
<input type="checkbox" class="pc" name="privacy[filter_note][$type_uid]" value="1" checked="checked" />
<!--{if isset($iconnames[$type])}-->$iconnames[$type]<!--{else}-->$type<!--{/if}--> (<!--{if $users[$uid]}--><a href="home.php?mod=space&uid=$uid" target="_blank">$users[$uid]</a><!--{else}-->{lang all_friends}<!--{/if}-->)
</label>
<!--{/loop}-->
</td>
</tr>
<tr>
<td colspan="2"><button type="submit" name="privacy2submit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
</tr>
<!--{else}-->
<tr>
<th>&nbsp;</th>
<td class="d">{lang no_shield_feed_cat}</td>
</tr>
<!--{/if}-->
</table>
<!--{/if}-->
</form>
<!--{hook/spacecp_privacy_bottom}-->
<!--{template common/footer}-->