예제 #1
0
                            if (isset($_POST['ps-default-group-save']) && !empty($_POST['ps-default-group-save'])) {
                                $iId = !empty($_POST['ps-default-group-ids']) ? (int) $_POST['ps-default-group-ids'] : 0;
                                $oPrivacyView->setDefaultGroup($iId);
                            } else {
                                if (isset($_POST['ps-default-values-save']) && !empty($_POST['ps-default-values-save'])) {
                                    $oPrivacyView->setDefaultValues($_POST);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
if (!BxDolPrivacy::isPrivacyPage()) {
    $GLOBALS['oSysTemplate']->displayPageNotFound();
}
// --------------- page components
$iIndex = 82;
$_page['css_name'] = 'privacy_settings.css';
$_page['header'] = _t("_ps_pcpt_privacy_settings");
$_page['header_text'] = "";
$_page['name_index'] = $iIndex;
$sBlockAddMembers = $sBlockDeleteMembers = $sBlockMyGroups = $sBlockCreateGroup = "";
if (getParam('sys_ps_enable_create_group') == 'on') {
    $sBlockAddMembers = $oPrivacyView->getBlockCode_AddMembers();
    $sBlockDeleteMembers = $oPrivacyView->getBlockCode_DeleteMembers();
    $sBlockMyGroups = $oPrivacyView->getBlockCode_MyGroups();
    $sBlockCreateGroup = $oPrivacyView->getBlockCode_CreateGroup();
}