Changeset 3975


Ignore:
Timestamp:
Oct 4, 2009, 4:31:44 PM (11 years ago)
Author:
LucMorizur
Message:

[Event Cats] Logout if not guest when "autolog" detected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/main.inc.php

    r3971 r3975  
    104104
    105105  if (isset($_GET['autolog']) and (read_ec_conf('activated') == 1)) {
    106     // if (!is_a_guest()) logout_user();
     106    if (!is_a_guest()) {
     107      $url = '';
     108      foreach ($_GET as $item => $value) {
     109        $url.= '&'.$item.'='.$value;
     110      }
     111      logout_user();
     112      redirect(make_index_url().$url);
     113    }
    107114    build_ec_lists();
    108115    foreach ($ec_lists['ec_table'] as $ec_entry) {
Note: See TracChangeset for help on using the changeset viewer.