/usr/share/php-geshi/geshi/whois.php is in php-geshi 1.0.8.11-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | <?php
/*************************************************************************************
* whois.php
* --------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2008/09/14
*
* Whois response (RPSL format) language file for GeSHi.
*
* CHANGES
* -------
* 2008/09/14 (1.0.0)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Whois (RPSL format)',
'COMMENT_SINGLE' => array(1 => '% ', 2 => '%ERROR:'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(
//Description
3 => '/(?:(?<=^remarks:)|(?<=^descr:))(.|\n\s)*$/mi',
//Contact Details
4 => '/(?<=^address:)(.|\n\s)*$/mi',
5 => '/\+\d+(?:(?:\s\(\d+(\s\d+)*\))?(?:\s\d+)+|-\d+-\d+)/',
6 => '/\b(?!-|\.)[\w\-\.]+(?!-|\.)@((?!-)[\w\-]+\.)+\w+\b/',
//IP, Networks and AS information\links
7 => '/\b(?<!\.|\-)(?:[\da-f:]+(?!\.)|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?:\/1?\d\d?)?(?<!\.|\-)\b/',
8 => '/\bAS\d+\b/'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array( //Object Types
'as-block','as-set','aut-num','domain','filter-set','inet-rtr',
'inet6num','inetnum','irt','key-cert','limerick','mntner',
'organisation','peering-set','person','poem','role','route-set',
'route','route6','rtr-set'
),
2 => array( //Field Types
'abuse-mailbox','address','admin-c','aggr-bndry','aggr-mtd','alias',
'as-block','as-name','as-set','aut-num','auth','author','certif',
'changed','components','country','default','descr','dom-net',
'domain','ds-rdata','e-mail','encryption','export','export-comps',
'fax-no','filter','filter-set','fingerpr','form','holes','ifaddr',
'import','inet-rtr','inet6num','inetnum','inject','interface','irt',
'irt-nfy','key-cert','limerick','local-as','mbrs-by-ref',
'member-of','members','method','mnt-by','mnt-domains','mnt-irt',
'mnt-lower','mnt-nfy','mnt-ref','mnt-routes','mntner','mp-default',
'mp-export','mp-filter','mp-import','mp-members','mp-peer',
'mp-peering','netname','nic-hdl','notify','nserver','org',
'org-name','org-type','organisation','origin','owner','peer',
'peering','peering-set','person','phone','poem','ref-nfy','refer',
'referral-by','remarks','rev-srv','role','route','route-set',
'route6','rtr-set','signature','source','status','sub-dom','tech-c',
'text','upd-to','zone-c'
),
3 => array( //RPSL reserved
'accept','action','and','announce','any','as-any','at','atomic',
'except','from','inbound','into','networks','not','or','outbound',
'peeras','refine','rs-any','to'
)
),
'SYMBOLS' => array(
':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF; font-weight: bold;',
2 => 'color: #000080; font-weight: bold;',
3 => 'color: #990000; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #666666; font-style: italic;',
3 => 'color: #404080;',
4 => 'color: #408040;',
5 => 'color: #408040;',
6 => 'color: #408040;',
7 => 'color: #804040;',
8 => 'color: #804040;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
'HARD' => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => '',
),
'NUMBERS' => array(
0 => 'color: #000080;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0000FF;'
),
'REGEXPS' => array(
0 => 'color: #000088;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.irr.net/docs/rpsl.html'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//Variables
0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*"
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
1 => array(
'DISALLOWED_BEFORE' => '(?<=\A |\A \n(?m:^)|\n\n(?m:^))'
),
2 => array(
'DISALLOWED_BEFORE' => '(?m:^)'
)
),
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER,
'SYMBOLS' => GESHI_NEVER,
'BRACKETS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
'ESCAPE_CHAR' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER,
'METHODS' => GESHI_NEVER,
'SCRIPT' => GESHI_NEVER
)
),
);
?>
|