/trunk/shared/php_includes/common_functions.inc.php |
---|
1,20 → 1,13 |
<?php |
# |
# generic Whois - Maintenance Framework Common Functions |
# VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
# Common functions in PHP |
# |
# (c) 2013 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de] |
# (c) 2011-2013 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
# |
# Distribution, usage etc. pp. regulated by the current version of GPL. |
# License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
# |
# |
# Version 2013-09-24 |
# |
# History: |
# 2011-06-07 mar Initial release |
# 2012-04-13 mar Added uc_latin1() |
# 2012-11-19 mar Added tab2space(), trim_each_line() |
# |
include_once __DIR__ . '/ipv4_functions.inc.php'; |
include_once __DIR__ . '/ipv6_functions.inc.php'; |
/trunk/shared/php_includes/config_functions.inc.php |
---|
1,15 → 1,13 |
<?php |
# |
# generic Whois - Automatic Pattern Generator configuration |
# VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
# Common functions in PHP |
# |
# (c) 2012-2018 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de] |
# (c) 2012-2018 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
# |
# Distribution, usage etc. pp. regulated by the current version of GPL. |
# License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
# |
# |
# Version 2018-10-26 |
# |
function parse_config($file) { |
if (!file_exists($file)) return false; |
/trunk/shared/php_includes/grep_functions.inc.php |
---|
1,15 → 1,22 |
<?php |
# |
# Grep Functions for PHP |
# |
# (c) 2012-2013 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de] |
# |
# Distribution, usage etc. pp. regulated by the current version of GPL. |
# |
# |
# Version 2013-03-08 |
# |
/* |
* Grep functions for PHP |
* Copyright 2012-2013 Daniel Marschall, ViaThinkSoft |
* Version 2013-03-08 |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
*/ |
# TODO: if console available, use it |
/trunk/shared/php_includes/gwi_functions.inc.php |
---|
1,20 → 1,17 |
<?php |
# |
# generic Whois - Maintenance Framework Common Functions |
# VWhois (ViaThinkSoft WHOIS, a fork of generic Whois / gwhois) |
# Common functions in PHP |
# |
# (c) 2013-2015 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de] |
# (c) 2013-2015 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de> |
# |
# Distribution, usage etc. pp. regulated by the current version of GPL. |
# License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2) |
# |
# |
# Version 2015-05-06 |
# |
function getpatternfiles() { |
$out = array(); |
# NEW FILES |
$files = glob(__DIR__ . '/../../main/pattern/'.'*'); |
foreach ($files as &$file) { |
# see /usr/bin/gwhois |
/trunk/shared/php_includes/ipv4_functions.inc.php |
---|
1,15 → 1,22 |
<?php |
# |
# IPv4 Functions for PHP |
# |
# (c) 2012-2019 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de] |
# |
# Distribution, usage etc. pp. regulated by the current version of GPL. |
# |
# |
# Version 2019-03-11 |
# |
/* |
* IPv4 functions for PHP |
* Copyright 2012-2019 Daniel Marschall, ViaThinkSoft |
* Version 2019-03-11 |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
*/ |
// TODO: oop, exceptions? |
/trunk/shared/php_includes/ipv6_functions.inc.php |
---|
1,15 → 1,22 |
<?php |
# |
# IPv6 Functions for PHP |
# |
# (c) 2012-2014 Daniel Marschall, ViaThinkSoft [www.viathinksoft.de] |
# |
# Distribution, usage etc. pp. regulated by the current version of GPL. |
# |
# |
# Version 2014-12-22 |
# |
/* |
* IPv6 functions for PHP |
* Copyright 2012-2014 Daniel Marschall, ViaThinkSoft |
* Version 2014-12-12 |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an "AS IS" BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
*/ |
# This library needs gmp! aptitude install php5-gmp |