Subversion Repositories oidplus

Rev

Rev 511 | Rev 596 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 511 Rev 595
Line 1... Line 1...
1
<?php
1
<<?php
2
 
2
 
3
/*
3
/*
4
 * OIDplus 2.0
4
 * OIDplus 2.0
5
 * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
5
 * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
6
 *
6
 *
Line 47... Line 47...
47
                }
47
                }
48
 
48
 
49
                return $out;
49
                return $out;
50
        }
50
        }
51
 
51
 
52
        public static function link($goto, $new_window=false) {
52
        public static function link($goto, $new_window=false): string {
53
                if ($new_window) {
53
                if ($new_window) {
54
                        return 'href="?goto='.urlencode($goto).'" target="_blank"';
54
                        return 'href="?goto='.urlencode($goto).'" target="_blank"';
55
                } else {
55
                } else {
56
                        if (strpos($goto, '#') !== false) {
56
                        if (strpos($goto, '#') !== false) {
57
                                list($goto, $anchor) = explode('#', $goto, 2);
57
                                list($goto, $anchor) = explode('#', $goto, 2);