Subversion Repositories vgwhois

Rev

Rev 5 | Rev 77 | 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 53... Line 53...
53
		fwrite(STDERR, "Configuration error: USE_RIR_STAT_DATA and USE_IANA_DATA cannot be both false.\n");
53
		fwrite(STDERR, "Configuration error: USE_RIR_STAT_DATA and USE_IANA_DATA cannot be both false.\n");
54
		exit(1);
54
		exit(1);
55
	}
55
	}
56
 
56
 
57
	$out .= "# ".strtoupper($rir)." IPv6\n";
57
	$out .= "# ".strtoupper($rir)." IPv6\n";
58
	$out .= "# Automatically generated by ".__DIR__."/gwhois-pattern-update\n";
58
	$out .= "# Automatically generated by ".__DIR__."/vgwhois-pattern-update\n";
59
	$out .= "# Generation timestamp: ".date('Y-m-d H:i:s \G\M\TO')."\n";
59
	$out .= "# Generation timestamp: ".date('Y-m-d H:i:s \G\M\TO')."\n";
60
	if (USE_IANA_DATA)     $out .= "# Source: ($iana_root_ver) ".IANA_IPV6_ASSIGNMENTS."\n";
60
	if (USE_IANA_DATA)     $out .= "# Source: ($iana_root_ver) ".IANA_IPV6_ASSIGNMENTS."\n";
61
	if (USE_RIR_STAT_DATA) $out .= "# Source: ($rirstat_ver) $rirstat_url\n";
61
	if (USE_RIR_STAT_DATA) $out .= "# Source: ($rirstat_ver) $rirstat_url\n";
62
	$out .= "\n";
62
	$out .= "\n";
63
 
63