Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pouvoir choisir d'avoir les accès aux interfaces web de mailman en https #35

Open
quenenni opened this issue May 30, 2019 · 0 comments

Comments

@quenenni
Copy link

A la page des listes, pour avoir les liens en https vers l'admin & les messages en attente:

  • Ajouter la variable alternc
INSERT INTO `variable` (`name`, `value`, `comment`, `type`) VALUES ( 'mailman_https_access', 0, '0 to have a Http link to mailman admin pages, 1 to have a https link in the mailman section', NULL);
  • admin/mman_list.php
    reset($r);
    $col=1;

    $protocol="http";
    if(isset($conf['mailman_https_access']) && $conf['mailman_https_access'] == 1)
        $protocol="https";

    while (list($key,$val)=each($r)) {
        $col=3-$col;

....

            <td><div class="ina"><a target=_blank href="<?php echo $protocol; ?>://<?php echo $val["url"]; ?>/cgi-bin/mailman/admin/<?php echo $val["name"] ?>"><?php __("List admin"); ?></a></div></td>
            <td><div class="ina"><a target=_blank href="<?php echo $protocol; ?>://<?php echo $val["url"]; ?>/cgi-bin/mailman/admindb/<?php echo $val["name"] ?>"><?php __("Pending messages"); ?></a></div></td>

Y a l'initialisation de la variable $protocol et son utilisation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant