header('HTTP/1.0 403 Forbidden'); exit; } require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/commune.php'; $commune = new commune(); $uid = get_uid(); if (!($communes_my = commune::GetCommunes(NULL, $uid, NULL, commune::OM_CM_MY))) { $communes_my = array(); } if (!($communes = commune::GetCommunes(NULL, NULL, $uid, commune::OM_CM_JOINED, $uid))) { $communes = array(); } foreach ($communes_my as $cm) { $communes[] = $cm; } $c_signed = $commune->getSubscribedCommunes($uid); ?> <form action="." method="post" id="subscr_form"> <div class="b-layout b-layout_padtop_20"> <h2 class="b-layout__title">Настройки уведомлений</h2> <?php echo view_info2($info_msg); ?> <p class="b-layout__txt b-layout__txt_padbot_10">Присылать по электронной почте следующие уведомления:</p> <input type="hidden" name="action" value="update_subscr" /> <ul class="settings-subscribe"> <li><label><input type="checkbox" id="ch13" name="spm" value="1" <?php if ($user->subscr[12]) { print " checked='checked'"; }