Esempio n. 1
0
         $sm->CommuneMemberAction($user_id, $action, $comm);
         header("Location: /commune/?id={$id}&site=Admin");
         exit;
     }
     break;
 case 'do.Kill.member':
 case 'do.Accept.member':
 case 'do.Unaccept.member':
     $commune_output = 'members.php';
     $member_id = __paramInit('int', 'm', NULL);
     $alert = NULL;
     if (!$member_id) {
         header("Location: /commune/?id={$id}&site=Admin.members");
         exit;
     }
     if (!($user_id = commune::AcceptMember($member_id, $action == 'do.Accept.member' ? 0 : 1))) {
         $alert = 'Ошибка!';
     } else {
         $sm = new smail();
         $sm->CommuneMemberAction($user_id, $action, $comm);
         header("Location: /commune/?id={$id}&site=Admin.members" . ($action == 'do.Kill.member' ? '' : '&mode=Asked'));
         exit;
     }
     break;
 case 'Create.post':
 case 'Edit.post':
     break;
 case 'do.Create.post':
 case 'do.Edit.post':
     $alert = NULL;
     $cur_user = new users();