Rev 5 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 11 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/usr/bin/php |
1 | #!/usr/bin/php |
2 | <?php |
2 | <?php |
3 | 3 | ||
4 | # |
4 | # |
5 | # VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
5 | # VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois) |
6 | # Maintenance / Developer utilities |
6 | # Maintenance / Developer utilities |
7 | # |
7 | # |
8 | # (c) 2012-2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
8 | # (c) 2012-2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
9 | # |
9 | # |
10 | # License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
10 | # License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
Line 45... | Line 45... | ||
45 | 45 | ||
46 | array_shift($argv); |
46 | array_shift($argv); |
47 | # $i = 0; |
47 | # $i = 0; |
48 | foreach ($argv as $x) { |
48 | foreach ($argv as $x) { |
49 | # TODO: problem: $x darf nicht quoted werden, darf aber auch nicht @ enthalten -> dynamisch rausfinden welcher delimiter nicht vorkommt |
49 | # TODO: problem: $x darf nicht quoted werden, darf aber auch nicht @ enthalten -> dynamisch rausfinden welcher delimiter nicht vorkommt |
50 | # TODO: there are several problems using this mechanism. It is very hard to highlight everything which is queryable through gwhois. |
50 | # TODO: there are several problems using this mechanism. It is very hard to highlight everything which is queryable through vgwhois. |
51 | # for example: (1) it is not possible to use \S+ in the pattern files, because it would match everything in the gwhois output, even though it was only meant to match everything in the query |
51 | # for example: (1) it is not possible to use \S+ in the pattern files, because it would match everything in the vgwhois output, even though it was only meant to match everything in the query |
52 | # (2) if the rule .com.xx is applied after .xx , the .com.xx will not match, since .xx is already wrapped with $pre and $post |
52 | # (2) if the rule .com.xx is applied after .xx , the .com.xx will not match, since .xx is already wrapped with $pre and $post |
53 | 53 | ||
54 | # $i++; |
54 | # $i++; |
55 | # $pre = "[start$i]"; |
55 | # $pre = "[start$i]"; |
56 | # $post = "[end$i]"; |
56 | # $post = "[end$i]"; |