PageRenderTime 48ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/include/geshi/proftpd.php

https://gitlab.com/jeremystevens/php-bin
PHP | 374 lines | 241 code | 45 blank | 88 comment | 0 complexity | f561cbb85830a3682042c81dad5a692c MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /*************************************************************************************
  3. * proftpd.php
  4. * ----------
  5. * Author: Benny Baumann (BenBE@geshi.org)
  6. * Copyright: (c) 2010 Benny Baumann (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2011/01/25
  9. *
  10. * ProFTPd language file for GeSHi.
  11. * Words are scraped from their documentation
  12. *
  13. * CHANGES
  14. * -------
  15. * 2004/08/05 (1.0.8.10)
  16. * - First Release
  17. *
  18. * TODO (updated 2011/01/25)
  19. * -------------------------
  20. *
  21. *************************************************************************************
  22. *
  23. * This file is part of GeSHi.
  24. *
  25. * GeSHi is free software; you can redistribute it and/or modify
  26. * it under the terms of the GNU General Public License as published by
  27. * the Free Software Foundation; either version 2 of the License, or
  28. * (at your option) any later version.
  29. *
  30. * GeSHi is distributed in the hope that it will be useful,
  31. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. * GNU General Public License for more details.
  34. *
  35. * You should have received a copy of the GNU General Public License
  36. * along with GeSHi; if not, write to the Free Software
  37. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  38. *
  39. ************************************************************************************/
  40. $language_data = array(
  41. 'LANG_NAME' => 'ProFTPd configuration',
  42. 'COMMENT_SINGLE' => array(1 => '#'),
  43. 'COMMENT_MULTI' => array(),
  44. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  45. 'QUOTEMARKS' => array("'", '"'),
  46. 'ESCAPE_CHAR' => '\\',
  47. 'KEYWORDS' => array(
  48. /*keywords*/
  49. 1 => array(
  50. //mod_auth
  51. 'AccessDenyMsg', 'AccessGrantMsg', 'AnonRejectePasswords',
  52. 'AnonRequirePassword', 'AuthAliasOnly', 'AuthUsingAlias',
  53. 'CreateHome', 'DefaultChdir', 'DefaultRoot', 'GroupPassword',
  54. 'LoginPasswordPrompt', 'MaxClients', 'MaxClientsPerClass',
  55. 'MaxClientsPerHost', 'MaxClientsPerUser', 'MaxConnectionsPerHost',
  56. 'MaxHostsPerUser', 'MaxLoginAttempts', 'RequireValidShell',
  57. 'RootLogin', 'RootRevoke', 'TimeoutLogin', 'TimeoutSession',
  58. 'UseFtpUsers', 'UserAlias', 'UserDirRoot', 'UserPassword',
  59. //mod_auth_file
  60. 'AuthGroupFile', 'AuthUserFile',
  61. //mod_auth_pam
  62. 'AuthPAM', 'AuthPAMConfig',
  63. //mod_auth_unix
  64. 'PersistentPasswd',
  65. //mod_ban
  66. 'BanControlsACLs', 'BanEngine', 'BanLog', 'BanMessage', 'BanOnEvent',
  67. 'BanTable',
  68. //mod_cap
  69. 'CapabilitiesEngine', 'CapabilitiesSet',
  70. //mod_core
  71. 'Allow', 'AllowAll', 'AllowClass', 'AllowFilter',
  72. 'AllowForeignAddress', 'AllowGroup', 'AllowOverride',
  73. 'AllowRetrieveRestart', 'AllowStoreRestart', 'AllowUser',
  74. 'AnonymousGroup', 'AuthOrder', 'Bind', 'CDPath', 'Class', 'Classes',
  75. 'CommandBufferSize', 'DebugLevel', 'DefaultAddress',
  76. 'DefaultServer', 'DefaultTransferMode', 'DeferWelcome', 'Define',
  77. 'Deny', 'DenyAll', 'DenyClass', 'DenyFilter', 'DenyGroup',
  78. 'DenyUser', 'DisplayChdir', 'DisplayConnect', 'DisplayFirstChdir',
  79. 'DisplayGoAway', 'DisplayLogin', 'DisplayQuit', 'From', 'Group',
  80. 'GroupOwner', 'HideFiles', 'HideGroup', 'HideNoAccess', 'HideUser',
  81. 'IdentLookups', 'IgnoreHidden', 'Include', 'MasqueradeAddress',
  82. 'MaxConnectionRate', 'MaxInstances', 'MultilineRFC2228', 'Order',
  83. 'PassivePorts', 'PathAllowFilter', 'PathDenyFilter', 'PidFile',
  84. 'Port', 'RLimitCPU', 'RLimitMemory', 'RLimitOpenFiles', 'Satisfy',
  85. 'ScoreboardFile', 'ServerAdmin', 'ServerIdent', 'ServerName',
  86. 'ServerType', 'SetEnv', 'SocketBindTight', 'SocketOptions',
  87. 'SyslogFacility', 'SyslogLevel', 'tcpBackLog', 'tcpNoDelay',
  88. 'TimeoutIdle', 'TimeoutLinger', 'TimesGMT', 'TransferLog', 'Umask',
  89. 'UnsetEnv', 'UseIPv6', 'User', 'UseReverseDNS', 'UserOwner',
  90. 'UseUTF8', 'WtmpLog',
  91. //mod_ctrls_admin
  92. 'AdminControlsACLs', 'AdminControlsEngine',
  93. //mod_delay
  94. 'DelayEngine', 'DelayTable',
  95. //mod_dynmasq
  96. 'DynMasqRefresh',
  97. //mod_exec
  98. 'ExecBeforeCommand', 'ExecEngine', 'ExecEnviron', 'ExecLog',
  99. 'ExecOnCommand', 'ExecOnConnect', 'ExecOnError', 'ExecOnEvent',
  100. 'ExecOnExit', 'ExecOnRestart', 'ExecOptions', 'ExecTimeout',
  101. //mod_ldap
  102. 'LDAPAliasDereference', 'LDAPAttr', 'LDAPAuthBinds',
  103. 'LDAPDefaultAuthScheme', 'LDAPDefaultGID', 'LDAPDefaultUID',
  104. 'LDAPDNInfo', 'LDAPDoAuth', 'LDAPDoGIDLookups',
  105. 'LDAPDoQuotaLookups', 'LDAPDoUIDLookups',
  106. 'LDAPForceGeneratedHomedir', 'LDAPForceHomedirOnDemand',
  107. 'LDAPGenerateHomedir', 'LDAPGenerateHomedirPrefix',
  108. 'LDAPGenerateHomedirPrefixNoUsername', 'LDAPHomedirOnDemand',
  109. 'LDAPHomedirOnDemandPrefix', 'LDAPHomedirOnDemandPrefixNoUsername',
  110. 'LDAPHomedirOnDemandSuffix', 'LDAPNegativeCache',
  111. 'LDAPProtocolVersion', 'LDAPQueryTimeout', 'LDAPSearchScope',
  112. 'LDAPServer',
  113. //mod_load
  114. 'MaxLoad',
  115. //mod_log
  116. 'AllowLogSymlinks', 'ExtendedLog', 'LogFormat', 'ServerLog',
  117. 'SystemLog',
  118. //mod_ls'
  119. 'DirFakeGroup', 'DirFakeMode', 'DirFakeUser', 'ListOptions',
  120. 'ShowSymlinks', 'UseGlobbing',
  121. //mod_quotatab
  122. 'QuotaDirectoryTally', 'QuotaDisplayUnits', 'QuotaEngine',
  123. 'QuotaExcludeFilter', 'QuotaLimitTable', 'QuotaLock', 'QuotaLog',
  124. 'QuotaOptions', 'QuotaShowQuotas', 'QuotaTallyTable',
  125. //mod_quotatab_file
  126. //mod_quotatab_ldap
  127. //mod_quotatab_sql
  128. //mod_radius
  129. 'RadiusAcctServer', 'RadiusAuthServer', 'RadiusEngine',
  130. 'RadiusGroupInfo', 'RadiusLog', 'RadiusNASIdentifier',
  131. 'RadiusQuotaInfo', 'RadiusRealm', 'RadiusUserInfo', 'RadiusVendor',
  132. //mod_ratio
  133. 'AnonRatio', 'ByteRatioErrMsg', 'CwdRatioMsg', 'FileRatioErrMsg',
  134. 'GroupRatio', 'HostRatio', 'LeechRatioMsg', 'RatioFile', 'Ratios',
  135. 'RatioTempFile', 'SaveRatios', 'UserRatio',
  136. //mod_readme
  137. 'DisplayReadme',
  138. //mod_rewrite
  139. 'RewriteCondition', 'RewriteEngine', 'RewriteLock', 'RewriteLog',
  140. 'RewriteMap', 'RewriteRule',
  141. //mod_sftp
  142. 'SFTPAcceptEnv', 'SFTPAuthMethods', 'SFTPAuthorizedHostKeys',
  143. 'SFTPAuthorizedUserKeys', 'SFTPCiphers', 'SFTPClientMatch',
  144. 'SFTPCompression', 'SFTPCryptoDevice', 'SFTPDHParamFile',
  145. 'SFTPDigests', 'SFTPDisplayBanner', 'SFTPEngine', 'SFTPExtensions',
  146. 'SFTPHostKey', 'SFTPKeyBlacklist', 'SFTPKeyExchanges', 'SFTPLog',
  147. 'SFTPMaxChannels', 'SFTPOptions', 'SFTPPassPhraseProvider',
  148. 'SFTPRekey', 'SFTPTrafficPolicy',
  149. //mod_sftp_pam
  150. 'SFTPPAMEngine', 'SFTPPAMOptions', 'SFTPPAMServiceName',
  151. //mod_sftp_sql
  152. //mod_shaper
  153. 'ShaperAll', 'ShaperControlsACLs', 'ShaperEngine', 'ShaperLog',
  154. 'ShaperSession', 'ShaperTable',
  155. //mod_sql
  156. 'SQLAuthenticate', 'SQLAuthTypes', 'SQLBackend', 'SQLConnectInfo',
  157. 'SQLDefaultGID', 'SQLDefaultHomedir', 'SQLDefaultUID', 'SQLEngine',
  158. 'SQLGroupInfo', 'SQLGroupWhereClause', 'SQLHomedirOnDemand',
  159. 'SQLLog', 'SQLLogFile', 'SQLMinID', 'SQLMinUserGID',
  160. 'SQLMinUserUID', 'SQLNamedQuery', 'SQLNegativeCache', 'SQLOptions',
  161. 'SQLRatios', 'SQLRatioStats', 'SQLShowInfo', 'SQLUserInfo',
  162. 'SQLUserWhereClause',
  163. //mod_sql_passwd
  164. 'SQLPasswordEncoding', 'SQLPasswordEngine', 'SQLPasswordSaltFile',
  165. 'SQLPasswordUserSalt',
  166. //mod_tls
  167. 'TLSCACertificateFile', 'TLSCACertificatePath',
  168. 'TLSCARevocationFile', 'TLSCARevocationPath',
  169. 'TLSCertificateChainFile', 'TLSCipherSuite', 'TLSControlsACLs',
  170. 'TLSCryptoDevice', 'TLSDHParamFile', 'TLSDSACertificateFile',
  171. 'TLSDSACertificateKeyFile', 'TLSEngine', 'TLSLog', 'TLSOptions',
  172. 'TLSPKCS12File', 'TLSPassPhraseProvider', 'TLSProtocol',
  173. 'TLSRandomSeed', 'TLSRenegotiate', 'TLSRequired',
  174. 'TLSRSACertificateFile', 'TLSRSACertificateKeyFile',
  175. 'TLSSessionCache', 'TLSTimeoutHandshake', 'TLSVerifyClient',
  176. 'TLSVerifyDepth', 'TLSVerifyOrder',
  177. //mod_tls_shmcache
  178. //mod_unique_id
  179. 'UniqueIDEngine',
  180. //mod_wrap
  181. 'TCPAccessFiles', 'TCPAccessSyslogLevels', 'TCPGroupAccessFiles',
  182. 'TCPServiceName', 'TCPUserAccessFiles',
  183. //mod_wrap2
  184. 'WrapAllowMsg', 'WrapDenyMsg', 'WrapEngine', 'WrapGroupTables',
  185. 'WrapLog', 'WrapServiceName', 'WrapTables', 'WrapUserTables',
  186. //mod_wrap2_file
  187. //mod_wrap2_sql
  188. //mod_xfer
  189. 'AllowOverwrite', 'DeleteAbortedStores', 'DisplayFileTransfer',
  190. 'HiddenStor', 'HiddenStores', 'MaxRetrieveFileSize',
  191. 'MaxStoreFileSize', 'StoreUniquePrefix', 'TimeoutNoTransfer',
  192. 'TimeoutStalled', 'TransferRate', 'UseSendfile',
  193. //unknown
  194. 'ScoreboardPath', 'ScoreboardScrub'
  195. ),
  196. /*keywords 3*/
  197. 3 => array(
  198. //mod_core
  199. 'Anonymous',
  200. 'Class',
  201. 'Directory',
  202. 'IfDefine',
  203. 'IfModule',
  204. 'Limit',
  205. 'VirtualHost',
  206. //mod_ifsession
  207. 'IfClass', 'IfGroup', 'IfUser',
  208. //mod_version
  209. 'IfVersion'
  210. ),
  211. /*permissions*/
  212. 4 => array(
  213. //mod_core
  214. 'ALL',
  215. 'CDUP',
  216. 'CMD',
  217. 'CWD',
  218. 'DELE',
  219. 'DIRS',
  220. 'LOGIN',
  221. 'MKD',
  222. 'READ',
  223. 'RETR',
  224. 'RMD',
  225. 'RNFR',
  226. 'RNTO',
  227. 'STOR',
  228. 'WRITE',
  229. 'XCWD',
  230. 'XMKD',
  231. 'XRMD',
  232. //mod_copy
  233. 'SITE_CPFR', 'SITE_CPTO',
  234. //mod_quotatab
  235. 'SITE_QUOTA',
  236. //mod_site
  237. 'SITE_HELP', 'SITE_CHMOD', 'SITE_CHGRP',
  238. //mod_site_misc
  239. 'SITE_MKDIR', 'SITE_RMDIR', 'SITE_SYMLINK', 'SITE_UTIME',
  240. ),
  241. /*keywords 2*/
  242. 2 => array(
  243. 'all', 'on', 'off', 'yes', 'no',
  244. 'standalone', 'inetd',
  245. 'default', 'auth', 'write',
  246. 'internet', 'local', 'limit', 'ip',
  247. 'from'
  248. ),
  249. ),
  250. 'SYMBOLS' => array(
  251. '+', '-'
  252. ),
  253. 'CASE_SENSITIVE' => array(
  254. GESHI_COMMENTS => false,
  255. 1 => false,
  256. 2 => false,
  257. 3 => false,
  258. 4 => false,
  259. ),
  260. 'STYLES' => array(
  261. 'KEYWORDS' => array(
  262. 1 => 'color: #00007f;',
  263. 2 => 'color: #0000ff;',
  264. 3 => 'color: #000000; font-weight:bold;',
  265. 4 => 'color: #000080; font-weight:bold;',
  266. ),
  267. 'COMMENTS' => array(
  268. 1 => 'color: #adadad; font-style: italic;',
  269. ),
  270. 'ESCAPE_CHAR' => array(
  271. 0 => 'color: #000099; font-weight: bold;'
  272. ),
  273. 'BRACKETS' => array(
  274. 0 => 'color: #339933;'
  275. ),
  276. 'STRINGS' => array(
  277. 0 => 'color: #7f007f;'
  278. ),
  279. 'NUMBERS' => array(
  280. 0 => 'color: #ff0000;'
  281. ),
  282. 'METHODS' => array(
  283. ),
  284. 'SYMBOLS' => array(
  285. 0 => 'color: #008000;'
  286. ),
  287. 'REGEXPS' => array(
  288. ),
  289. 'SCRIPT' => array(
  290. )
  291. ),
  292. 'URLS' => array(
  293. 1 => 'http://www.google.com/search?hl=en&amp;q={FNAMEL}+site:www.proftpd.org+inurl:docs&amp;btnI=I%27m%20Feeling%20Lucky',
  294. 2 => '',
  295. 3 => 'http://www.google.com/search?hl=en&amp;q={FNAMEL}+site:www.proftpd.org+inurl:docs&amp;btnI=I%27m%20Feeling%20Lucky',
  296. 4 => ''
  297. ),
  298. 'OOLANG' => false,
  299. 'OBJECT_SPLITTERS' => array(
  300. ),
  301. 'REGEXPS' => array(
  302. ),
  303. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  304. 'SCRIPT_DELIMITERS' => array(
  305. ),
  306. 'HIGHLIGHT_STRICT_BLOCK' => array(
  307. ),
  308. 'PARSER_CONTROL' => array(
  309. 'ENABLE_FLAGS' => array(
  310. 'BRACKETS' => GESHI_NEVER,
  311. 'SYMBOLS' => GESHI_NEVER
  312. ),
  313. 'KEYWORDS' => array(
  314. 2 => array(
  315. 'DISALLOWED_BEFORE' => '(?<=\s)(?<!=)',
  316. 'DISALLOWED_AFTER' => '(?!\+)(?!\w)',
  317. ),
  318. 3 => array(
  319. 'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
  320. 'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
  321. ),
  322. 4 => array(
  323. 'DISALLOWED_BEFORE' => '(?<=\s)(?<!=)',
  324. 'DISALLOWED_AFTER' => '(?!\+)(?=\/|(?:\s+\w+)*\s*&gt;)',
  325. )
  326. )
  327. )
  328. );
  329. ?>