Exemple #1
0
 private static function casLoginURL($maillist = false)
 {
     $url = CASOptions::LoginURL() . '?service=' . urlencode(self::getReturnURL());
     // Is maillist specified?
     if ($maillist !== false) {
         // Yes; is it a list of maillists?
         if (strpos($maillist, ',')) {
             // Yes; add the list as a requirement
             $url .= '&allow=!' . str_replace(',', ',!', $maillist);
         } else {
             // No; add a single maillist as the requirement
             $url .= '&allow=!' . $maillist;
         }
     }
     return $url;
 }