<? /** * member list for admins * * @author Magnus Rosenbaum <*****@*****.**> * @package Basisentscheid */ require "inc/common_http.php"; Login::access("admin"); $d = new DbTableAdmin("Member"); $d->columns = array( array("id", _("No."), "right", "", false, 'type'=>"integer"), array("invite", _("Invite code")), array("created", _("Created"), "", "timestamp", 'nosearch'=>true), array("invite_expiry", _("Invite expiry"), "", "timestamp", 'nosearch'=>true), array("activated", _("Activated"), "", "timestamp", 'nosearch'=>true), array("username", _("Username")), array("mail", _("Email")), array("mail_unconfirmed", _("Email unconfirmed")), array("eligible", _("Eligible"), "center", "boolean", 'nosearch'=>true), array("verified", _("Verified"), "center", "boolean", 'nosearch'=>true), array("", _("Groups"), "", "ngroups", 'noorder'=>true) ); $d->enable_filter = true; $d->filter->filters = array( 'activated' => array(
<? /** * encryption settings * * @author Magnus Rosenbaum <*****@*****.**> * @package Basisentscheid */ require "inc/common_http.php"; Login::access("member"); if (!GNUPG_SIGN_KEY) error(_("Signing and encryption of emails is not enabled.")); if ($action) { switch ($action) { case "save": action_required_parameters('fingerprint', 'key'); // save fingerprint $fingerprint = trim($_POST['fingerprint']); if ( $fingerprint != Login::$member->fingerprint ) { Login::$member->set_fingerprint($fingerprint); if ( Login::$member->update(['fingerprint']) ) { success(_("The PGP public key fingerprint has been saved.")); } } // import PGP public key if ($_POST['key']) { $gnupg = new_gnupg();
* vote * * @author Magnus Rosenbaum <*****@*****.**> * @package Basisentscheid */ require "inc/common_http.php"; $issue = new Issue(@$_GET['issue']); if (!$issue->id) { error(_("The requested issue does not exist.")); } $_SESSION['ngroup'] = $issue->area()->ngroup; Login::access("entitled", $_SESSION['ngroup']); if ($issue->state == 'finished') { error(_("The voting on this issue is already closed.")); } elseif ($issue->state != 'voting') { error(_("The issue is not in voting state.")); } $token = $issue->vote_token(); if (!$token) { error(_("You can not vote in this voting period, because you were not yet entitled when the voting started.")); } if ($action) { switch ($action) { case "submit":