Subversion Repositories vgwhois

Rev

Rev 68 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68 Rev 149
Line 18... Line 18...
18
# TODO: der encoding anzeigen
18
# TODO: der encoding anzeigen
19
# TODO ALVESTRAND_NO fertig machen (404 erkennung, formatierung usw)
19
# TODO ALVESTRAND_NO fertig machen (404 erkennung, formatierung usw)
20
 
20
 
21
require_once __DIR__ . '/../../shared/php_includes/common_functions.inc.php';
21
require_once __DIR__ . '/../../shared/php_includes/common_functions.inc.php';
22
 
22
 
-
 
23
ini_set('default_charset', 'UTF-8');
-
 
24
 
23
define('WALK_UP',            true);
25
define('WALK_UP',            true);
24
define('ASK_FRANCE_TELECOM', true);
26
define('ASK_FRANCE_TELECOM', true);
25
define('ASK_ALVESTRAND_NO',  false);
27
define('ASK_ALVESTRAND_NO',  false);
26
 
28
 
27
$domain = isset($argv[1]) ? $argv[1] : '';
29
$domain = isset($argv[1]) ? $argv[1] : '';
Line 67... Line 69...
67
 
69
 
68
$x = ob_get_contents();
70
$x = ob_get_contents();
69
ob_end_clean();
71
ob_end_clean();
70
 
72
 
71
$x = wordwrap($x, 75, "\n", false);
73
$x = wordwrap($x, 75, "\n", false);
72
echo html_entity_decode($x, ENT_QUOTES, 'utf-8');
74
echo html_entity_decode($x);
73
#echo $x;
75
#echo $x;
74
 
76
 
75
# ----------------- FRANCE TELECOM OID REPOSITORY
77
# ----------------- FRANCE TELECOM OID REPOSITORY
76
 
78
 
77
# Callback for Link-Replacing
79
# Callback for Link-Replacing
Line 244... Line 246...
244
		'First Registration Authority:',
246
		'First Registration Authority:',
245
		'Current Registration Authority:'
247
		'Current Registration Authority:'
246
	);
248
	);
247
 
249
 
248
	foreach ($special_words as $s) {
250
	foreach ($special_words as $s) {
249
		$x = str_replace("\n$s\n", "\n\n".strtoupper($s)."\n\n", $x);
251
		$x = str_replace("\n$s\n", "\n\n".mb_strtoupper($s)."\n\n", $x);
250
	}
252
	}
251
 
253
 
252
	$x = preg_replace("/To contact the (first|current) Registration Authority, replace \"&\" by \"@\" in the email address\n/ismU", '', $x);
254
	$x = preg_replace("/To contact the (first|current) Registration Authority, replace \"&\" by \"@\" in the email address\n/ismU", '', $x);
253
	$x = preg_replace("/Short URL for this page:\n/ismU", '', $x);
255
	$x = preg_replace("/Short URL for this page:\n/ismU", '', $x);
254
 
256