Subversion Repositories vgwhois

Rev

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

Rev 3 Rev 5
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
#
3
#
4
#  generic Whois - Maintenance Framework Common Functions
4
#  VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois)
-
 
5
#  Common functions in PHP
5
#
6
#
6
#  (c) 2013-2015 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de]
7
#  (c) 2013-2015 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
7
#
8
#
8
#  Distribution, usage etc. pp. regulated by the current version of GPL.
9
#  License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
9
#
-
 
10
#
-
 
11
#  Version 2015-05-06
-
 
12
#
10
#
13
 
11
 
14
function getpatternfiles() {
12
function getpatternfiles() {
15
        $out = array();
13
        $out = array();
16
 
14
 
17
        # NEW FILES
-
 
18
        $files = glob(__DIR__ . '/../../main/pattern/'.'*');
15
        $files = glob(__DIR__ . '/../../main/pattern/'.'*');
19
        foreach ($files as &$file) {
16
        foreach ($files as &$file) {
20
                # see /usr/bin/gwhois
17
                # see /usr/bin/gwhois
21
                if (preg_match('@\.dpkg-@', $file)) continue;
18
                if (preg_match('@\.dpkg-@', $file)) continue;
22
                if (preg_match('@\.orig$@', $file)) continue;
19
                if (preg_match('@\.orig$@', $file)) continue;