Subversion Repositories vgwhois

Compare Revisions

Regard whitespace Rev 87 → Rev 88

/trunk/maintenance/pattern-generator/generate_ipv4
5,7 → 5,7
# VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois)
# Maintenance / Developer utilities
#
# (c) 2012-2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
# (c) 2012-2022 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
#
# License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
#
29,10 → 29,12
if (USE_IANA_DATA) {
echo "IPv4 Preparation: Get IANA delegation file\n";
 
$iana_root_data = explode("\n", cached_file(IANA_IPV4_ASSIGNMENTS, CACHE_FILE_DIR));
$iana_root_data = explode("\n", $cont = cached_file(IANA_IPV4_ASSIGNMENTS, CACHE_FILE_DIR));
$iana_root_data = array_map('trim', $iana_root_data);
 
$iana_root_ver = trim(str_replace('-', '', $iana_root_data[3]));
preg_match('@(20\\d\\d\\-\\d\\d\\-\\d\\d)@ismU', $cont, $m);
 
$iana_root_ver = trim(str_replace('-', '', $m[1]));
$iana_root_data = grep($iana_root_data, 'whois.');
}
 
/trunk/maintenance/pattern-generator/generate_ipv6
5,7 → 5,7
# VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois)
# Maintenance / Developer utilities
#
# (c) 2012-2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
# (c) 2012-2022 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
#
# License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
#
29,10 → 29,12
if (USE_IANA_DATA) {
echo "IPv6 Preparation: Get IANA delegation file\n";
 
$iana_root_data = explode("\n", cached_file(IANA_IPV6_ASSIGNMENTS, CACHE_FILE_DIR));
$iana_root_data = explode("\n", $cont = cached_file(IANA_IPV6_ASSIGNMENTS, CACHE_FILE_DIR));
$iana_root_data = array_map('trim', $iana_root_data);
 
$iana_root_ver = trim(str_replace('-', '', $iana_root_data[3]));
preg_match('@(20\\d\\d\\-\\d\\d\\-\\d\\d)@ismU', $cont, $m);
 
$iana_root_ver = trim(str_replace('-', '', $m[1]));
$iana_root_data = grep($iana_root_data, 'whois.');
}