dependabot-linguist 0.212.0 → 0.217.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +38 -2
  3. data/Gemfile.lock +100 -108
  4. data/Makefile +4 -2
  5. data/README.md +32 -4
  6. data/SECURITY.md +3 -2
  7. data/dependabot-linguist.gemspec +9 -7
  8. data/exe/dependabot-linguist +1 -1
  9. data/lib/dependabot/linguist/dependabot_file_validator.rb +43 -7
  10. data/lib/dependabot/linguist/dependabot_patch.rb +14 -2
  11. data/lib/dependabot/linguist/file_fetchers/bundler.rb +54 -0
  12. data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +9 -7
  13. data/lib/dependabot/linguist/file_fetchers/go_modules.rb +2 -2
  14. data/lib/dependabot/linguist/language.rb +18 -14
  15. data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +22 -21
  16. data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +172 -21
  17. data/lib/dependabot/linguist/languages_to_ecosystems/manager_ecosystem_maps.rb +17 -17
  18. data/lib/dependabot/linguist/linguist_patch.rb +1 -1
  19. data/lib/dependabot/linguist/repository.rb +7 -2
  20. data/lib/dependabot/linguist/version.rb +1 -1
  21. metadata +17 -210
  22. data/lib/dependabot/linguist/file_fetchers/base.rb +0 -48
  23. data/smoke-test/README.md +0 -58
  24. data/smoke-test/bundler/Gemfile +0 -9
  25. data/smoke-test/bundler/Gemfile.lock +0 -47
  26. data/smoke-test/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  27. data/smoke-test/cargo/Cargo.lock +0 -90
  28. data/smoke-test/cargo/Cargo.toml +0 -8
  29. data/smoke-test/composer/composer.json +0 -5
  30. data/smoke-test/composer/composer.lock +0 -72
  31. data/smoke-test/composer/vendor/autoload.php +0 -7
  32. data/smoke-test/composer/vendor/composer/ClassLoader.php +0 -445
  33. data/smoke-test/composer/vendor/composer/LICENSE +0 -21
  34. data/smoke-test/composer/vendor/composer/autoload_classmap.php +0 -13
  35. data/smoke-test/composer/vendor/composer/autoload_namespaces.php +0 -9
  36. data/smoke-test/composer/vendor/composer/autoload_psr4.php +0 -9
  37. data/smoke-test/composer/vendor/composer/autoload_real.php +0 -55
  38. data/smoke-test/composer/vendor/composer/autoload_static.php +0 -23
  39. data/smoke-test/composer/vendor/composer/installed.json +0 -57
  40. data/smoke-test/composer/vendor/phpmailer/phpmailer/.gitignore +0 -3
  41. data/smoke-test/composer/vendor/phpmailer/phpmailer/LICENSE +0 -504
  42. data/smoke-test/composer/vendor/phpmailer/phpmailer/README.md +0 -112
  43. data/smoke-test/composer/vendor/phpmailer/phpmailer/changelog.md +0 -530
  44. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.phpmailer.php +0 -2758
  45. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.pop3.php +0 -417
  46. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.smtp.php +0 -1075
  47. data/smoke-test/composer/vendor/phpmailer/phpmailer/composer.json +0 -32
  48. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Callback_function_notes.txt +0 -17
  49. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/DomainKeys_notes.txt +0 -55
  50. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Note_for_SMTP_debugging.txt +0 -23
  51. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/extending.html +0 -148
  52. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/faq.html +0 -67
  53. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/generatedocs.sh +0 -4
  54. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/pop3_article.txt +0 -39
  55. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/use_gmail.txt +0 -44
  56. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/contents.html +0 -20
  57. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer.gif +0 -0
  58. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.gif +0 -0
  59. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/index.html +0 -50
  60. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_db_smtp_basic.php +0 -58
  61. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_advanced.php +0 -30
  62. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_basic.php +0 -41
  63. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_advanced.php +0 -39
  64. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_basic.php +0 -49
  65. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_advanced.php +0 -33
  66. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_basic.php +0 -43
  67. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced.php +0 -42
  68. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced_no_auth.php +0 -36
  69. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic.php +0 -58
  70. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic_no_auth.php +0 -53
  71. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_advanced.php +0 -42
  72. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_basic.php +0 -59
  73. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/class.html2text.inc +0 -489
  74. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/htmlfilter.php +0 -861
  75. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/ntlm_sasl_client.php +0 -185
  76. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -26
  77. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-br.php +0 -25
  78. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -25
  79. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php +0 -25
  80. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-cz.php +0 -24
  81. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -24
  82. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-dk.php +0 -25
  83. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -25
  84. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -25
  85. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -26
  86. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -26
  87. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -24
  88. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -24
  89. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -26
  90. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -25
  91. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -24
  92. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-no.php +0 -24
  93. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -24
  94. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -26
  95. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -24
  96. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-se.php +0 -25
  97. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -25
  98. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -26
  99. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -25
  100. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -25
  101. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/contents.html +0 -10
  102. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/phpmailerTest.php +0 -1084
  103. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test.png +0 -0
  104. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test_callback.php +0 -84
  105. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/testemail.php +0 -48
  106. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/LGPLv3.txt +0 -165
  107. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/contents.html +0 -14
  108. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/aikido.gif +0 -0
  109. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/bkgrnd.gif +0 -0
  110. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/phpmailer.gif +0 -0
  111. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/index.php +0 -427
  112. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/clipboard.swf +0 -0
  113. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushBash.js +0 -59
  114. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCSharp.js +0 -64
  115. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCpp.js +0 -99
  116. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCss.js +0 -93
  117. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDelphi.js +0 -57
  118. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDiff.js +0 -43
  119. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushGroovy.js +0 -69
  120. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJScript.js +0 -51
  121. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJava.js +0 -55
  122. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPerl.js +0 -74
  123. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPhp.js +0 -91
  124. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPlain.js +0 -35
  125. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPython.js +0 -56
  126. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushRuby.js +0 -57
  127. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushScala.js +0 -53
  128. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushSql.js +0 -68
  129. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushVb.js +0 -58
  130. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushXml.js +0 -71
  131. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shCore.js +0 -30
  132. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shLegacy.js +0 -30
  133. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shCore.js +0 -1949
  134. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shLegacy.js +0 -172
  135. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/help.png +0 -0
  136. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/magnifier.png +0 -0
  137. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_code.png +0 -0
  138. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_copy.png +0 -0
  139. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/printer.png +0 -0
  140. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shCore.css +0 -321
  141. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDefault.css +0 -191
  142. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDjango.css +0 -193
  143. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeEmacs.css +0 -192
  144. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeFadeToGrey.css +0 -193
  145. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeMidnight.css +0 -192
  146. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeRDark.css +0 -192
  147. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/wrapping.png +0 -0
  148. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/test.html +0 -46
  149. data/smoke-test/dependabot-file/no-config/.github/TARGET.yaml +0 -14
  150. data/smoke-test/dependabot-file/no-config/bundler/Gemfile +0 -9
  151. data/smoke-test/dependabot-file/no-config/bundler/Gemfile.lock +0 -47
  152. data/smoke-test/dependabot-file/no-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  153. data/smoke-test/dependabot-file/no-config/cargo/Cargo.lock +0 -90
  154. data/smoke-test/dependabot-file/no-config/cargo/Cargo.toml +0 -8
  155. data/smoke-test/dependabot-file/no-config/composer/composer.json +0 -5
  156. data/smoke-test/dependabot-file/no-config/composer/composer.lock +0 -72
  157. data/smoke-test/dependabot-file/over-config/.github/TARGET.yaml +0 -17
  158. data/smoke-test/dependabot-file/over-config/.github/dependabot.yaml +0 -12
  159. data/smoke-test/dependabot-file/over-config/bundler/Gemfile +0 -9
  160. data/smoke-test/dependabot-file/over-config/bundler/Gemfile.lock +0 -47
  161. data/smoke-test/dependabot-file/over-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  162. data/smoke-test/dependabot-file/over-config/cargo/Cargo.lock +0 -90
  163. data/smoke-test/dependabot-file/over-config/cargo/Cargo.toml +0 -8
  164. data/smoke-test/dependabot-file/over-config/composer/composer.json +0 -5
  165. data/smoke-test/dependabot-file/over-config/composer/composer.lock +0 -72
  166. data/smoke-test/dependabot-file/overer-config/.github/TARGET.yaml +0 -19
  167. data/smoke-test/dependabot-file/overer-config/.github/dependabot.yaml +0 -12
  168. data/smoke-test/dependabot-file/overer-config/bundler/Gemfile +0 -9
  169. data/smoke-test/dependabot-file/overer-config/bundler/Gemfile.lock +0 -47
  170. data/smoke-test/dependabot-file/overer-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  171. data/smoke-test/dependabot-file/overer-config/cargo/Cargo.lock +0 -90
  172. data/smoke-test/dependabot-file/overer-config/cargo/Cargo.toml +0 -8
  173. data/smoke-test/dependabot-file/overer-config/composer/composer.json +0 -5
  174. data/smoke-test/dependabot-file/overer-config/composer/composer.lock +0 -72
  175. data/smoke-test/dependabot-file/partial-config/.github/TARGET.yaml +0 -17
  176. data/smoke-test/dependabot-file/partial-config/.github/dependabot.yaml +0 -7
  177. data/smoke-test/dependabot-file/partial-config/bundler/Gemfile +0 -9
  178. data/smoke-test/dependabot-file/partial-config/bundler/Gemfile.lock +0 -47
  179. data/smoke-test/dependabot-file/partial-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  180. data/smoke-test/dependabot-file/partial-config/cargo/Cargo.lock +0 -90
  181. data/smoke-test/dependabot-file/partial-config/cargo/Cargo.toml +0 -8
  182. data/smoke-test/dependabot-file/partial-config/composer/composer.json +0 -5
  183. data/smoke-test/dependabot-file/partial-config/composer/composer.lock +0 -72
  184. data/smoke-test/docker/Dockerfile +0 -19
  185. data/smoke-test/elm/elm-package.json +0 -15
  186. data/smoke-test/elm/elm.json +0 -31
  187. data/smoke-test/github-actions/both/.github/workflows/this.yaml +0 -11
  188. data/smoke-test/github-actions/both/yaml/action.yml +0 -13
  189. data/smoke-test/github-actions/invalid/invalid_file.yaml +0 -0
  190. data/smoke-test/github-actions/workflow/.github/workflows/this.yaml +0 -11
  191. data/smoke-test/github-actions/yaml/action.yml +0 -13
  192. data/smoke-test/gitsubmodule/.gitmodules +0 -4
  193. data/smoke-test/gomod/go.mod +0 -16
  194. data/smoke-test/gomod/go.sum +0 -18
  195. data/smoke-test/gomod/gomain.go +0 -14
  196. data/smoke-test/gradle/.gitignore +0 -1
  197. data/smoke-test/gradle/build.gradle +0 -65
  198. data/smoke-test/maven/pom.xml +0 -65
  199. data/smoke-test/mix/mix.exs +0 -24
  200. data/smoke-test/mix/mix.lock +0 -5
  201. data/smoke-test/npm/package-lock.json +0 -166
  202. data/smoke-test/npm/package.json +0 -22
  203. data/smoke-test/npm/removed/package-lock.json +0 -44
  204. data/smoke-test/npm/removed/package.json +0 -15
  205. data/smoke-test/nuget/project.csproj +0 -14
  206. data/smoke-test/pip/pip/requirements.txt +0 -5
  207. data/smoke-test/pip/pip-compile/requirements.in +0 -2
  208. data/smoke-test/pip/pip-compile/requirements.txt +0 -16
  209. data/smoke-test/pip/pipenv/Pipfile +0 -13
  210. data/smoke-test/pip/pipenv/Pipfile.lock +0 -86
  211. data/smoke-test/pip/poetry/poetry.lock +0 -33
  212. data/smoke-test/pip/poetry/pyproject.toml +0 -18
  213. data/smoke-test/pub/pubspec.lock +0 -40
  214. data/smoke-test/pub/pubspec.yaml +0 -10
  215. data/smoke-test/terraform/main.tf +0 -143
@@ -1,427 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
- <title>PHPMailer Test Page</title>
6
- <script type="text/javascript" src="scripts/shCore.js"></script>
7
- <script type="text/javascript" src="scripts/shBrushPhp.js"></script>
8
- <link type="text/css" rel="stylesheet" href="styles/shCore.css"/>
9
- <link type="text/css" rel="stylesheet" href="styles/shThemeDefault.css"/>
10
- <script type="text/javascript">
11
- SyntaxHighlighter.config.clipboardSwf = 'scripts/clipboard.swf';
12
- SyntaxHighlighter.all();
13
- </script>
14
- </head>
15
- <body >
16
- <?php
17
-
18
- echo 'Current PHP version: ' . phpversion() . "<br />";
19
-
20
- if ( substr(phpversion(),0,1) < 5 ) { echo exit("ERROR: Wrong PHP version"); }
21
-
22
- $CFG['smtp_debug'] = 1;
23
- $CFG['smtp_server'] = 'mail.yourserver.com';
24
- $CFG['smtp_port'] = '25';
25
- $CFG['smtp_authenticate'] = 'true';
26
- $CFG['smtp_username'] = 'name@yourserver.com';
27
- $CFG['smtp_password'] = 'yourpassword';
28
-
29
- if ( $_POST['submit'] == "Submit" ) {
30
-
31
- class phpmailerAppException extends Exception {
32
- public function errorMessage() {
33
- $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />";
34
- return $errorMsg;
35
- }
36
- }
37
-
38
- try {
39
- $to = $_POST['To_Email'];
40
- if(filter_var($to, FILTER_VALIDATE_EMAIL) === FALSE) {
41
- throw new phpmailerAppException("Email address " . $to . " is invalid -- aborting!<br />");
42
- }
43
- } catch (phpmailerAppException $e) {
44
- echo $e->errorMessage();
45
- return false;
46
- }
47
-
48
- require_once("../class.phpmailer.php");
49
-
50
- $mail = new PHPMailer();
51
-
52
- if ( $_POST['Message'] == '' ) {
53
- $body = file_get_contents('contents.html');
54
- } else {
55
- $body = $_POST['Message'];
56
- }
57
-
58
- if ( $_POST['test_type'] == "smtp" ) {
59
- $mail->IsSMTP(); // telling the class to use SMTP
60
- $mail->SMTPDebug = $_POST['smtp_debug'];
61
- $mail->SMTPAuth = $_POST['smtp_authenticate']; // enable SMTP authentication
62
- $mail->Port = $_POST['smtp_port']; // set the SMTP port
63
- $mail->Host = $_POST['smtp_server']; // SMTP server
64
- $mail->Username = $_POST['authenticate_username']; // SMTP account username
65
- $mail->Password = $_POST['authenticate_password']; // SMTP account password
66
- } elseif ( $_POST['test_type'] == "mail" ) {
67
- $mail->IsMail(); // telling the class to use PHP's Mail()
68
- } elseif ( $_POST['test_type'] == "sendmail" ) {
69
- $mail->IsSendmail(); // telling the class to use Sendmail
70
- } elseif ( $_POST['test_type'] == "qmail" ) {
71
- $mail->IsQmail(); // telling the class to use Qmail
72
- }
73
-
74
- if ( $_POST['From_Name'] != '' ) {
75
- $mail->AddReplyTo($_POST['From_Email'],$_POST['From_Name']);
76
- $mail->From = $_POST['From_Email'];
77
- $mail->FromName = $_POST['From_Name'];
78
- } else {
79
- $mail->AddReplyTo($_POST['From_Email']);
80
- $mail->From = $_POST['From_Email'];
81
- $mail->FromName = $_POST['From_Email'];
82
- }
83
-
84
- if ( $_POST['To_Name'] != '' ) {
85
- $mail->AddAddress($to,$_POST['To_Name']);
86
- } else {
87
- $mail->AddAddress($to);
88
- }
89
-
90
- if ( $_POST['bcc_Email'] != '' ) {
91
- $indiBCC = explode(" ", $_POST['bcc_Email']);
92
- foreach ($indiBCC as $key => $value) {
93
- $mail->AddBCC($value);
94
- }
95
- }
96
-
97
- if ( $_POST['cc_Email'] != '' ) {
98
- $indiCC = explode(" ", $_POST['cc_Email']);
99
- foreach ($indiCC as $key => $value) {
100
- $mail->AddCC($value);
101
- }
102
- }
103
-
104
- $mail->Subject = $_POST['Subject'] . ' (PHPMailer test using ' . strtoupper($_POST['test_type']) . ')';
105
-
106
- // below can be found at http://www.chuggnutt.com/html2text
107
- // bundled in ./extras/
108
- require_once('../class.html2text.inc');
109
- $h2t =& new html2text($body);
110
- $mail->AltBody = $h2t->get_text();
111
- //$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
112
- $mail->WordWrap = 80; // set word wrap
113
-
114
- $mail->MsgHTML($body);
115
-
116
- // $mail->IsHTML(true); // send as HTML
117
-
118
- $mail->AddAttachment("images/aikido.gif", "aikido.gif"); // optional name
119
- $mail->AddAttachment("images/phpmailer.gif", "phpmailer.gif"); // optional name
120
-
121
- try {
122
- if ( !$mail->Send() ) {
123
- $error = "Unable to send to: " . $to . "<br />";
124
- throw new phpmailerAppException($error);
125
- } else {
126
- echo 'Message has been sent using ' . strtoupper($_POST['test_type']) . "<br /><br />";
127
- }
128
- }
129
- catch (phpmailerAppException $e) {
130
- $errorMsg[] = $e->errorMessage();
131
- }
132
-
133
- if ( count($errorMsg) > 0 ) {
134
- foreach ($errorMsg as $key => $value) {
135
- $thisError = $key + 1;
136
- echo $thisError . ': ' . $value;
137
- }
138
- }
139
- ?>
140
- <form method="POST" enctype="multipart/form-data">
141
- <?php $value = ( $_POST['From_Name'] != '' ) ? $_POST['From_Name'] : ''; ?>
142
- <input type="hidden" name="From_Name" value="<?php echo $value; ?>">
143
- <?php $value = ( $_POST['From_Email'] != '' ) ? $_POST['From_Email'] : ''; ?>
144
- <input type="hidden" name="From_Email" value="<?php echo $value; ?>">
145
- <?php $value = ( $_POST['To_Name'] != '' ) ? $_POST['To_Name'] : ''; ?>
146
- <input type="hidden" name="To_Name" value="<?php echo $value; ?>">
147
- <?php $value = ( $_POST['To_Email'] != '' ) ? $_POST['To_Email'] : ''; ?>
148
- <input type="hidden" name="To_Email" value="<?php echo $value; ?>">
149
- <?php $value = ( $_POST['cc_Email'] != '' ) ? $_POST['cc_Email'] : ''; ?>
150
- <input type="hidden" name="cc_Email" value="<?php echo $value; ?>">
151
- <?php $value = ( $_POST['bcc_Email'] != '' ) ? $_POST['bcc_Email'] : ''; ?>
152
- <input type="hidden" name="bcc_Email" value="<?php echo $value; ?>">
153
- <?php $value = ( $_POST['Subject'] != '' ) ? $_POST['Subject'] : ''; ?>
154
- <input type="hidden" name="Subject" value="<?php echo $value; ?>">
155
- <?php $value = ( $_POST['Message'] != '' ) ? $_POST['Message'] : ''; ?>
156
- <input type="hidden" name="Message" value="<?php echo $value; ?>">
157
- <?php $value = ( $_POST['test_type'] != '' ) ? $_POST['test_type'] : 'mail'; ?>
158
- <input type="hidden" name="test_type" value="<?php echo $value; ?>">
159
- <?php $value = ( $_POST['smtp_debug'] != '' ) ? $_POST['smtp_debug'] : $CFG['smtp_debug']; ?>
160
- <input type="hidden" name="smtp_debug" value="<?php echo $value; ?>">
161
- <?php $value = ( $_POST['smtp_server'] != '' ) ? $_POST['smtp_server'] : $CFG['smtp_server']; ?>
162
- <input type="hidden" name="smtp_server" value="<?php echo $value; ?>">
163
- <?php $value = ( $_POST['smtp_port'] != '' ) ? $_POST['smtp_port'] : $CFG['smtp_port']; ?>
164
- <input type="hidden" name="smtp_port" value="<?php echo $value; ?>">
165
- <?php $value = ( $_POST['smtp_authenticate'] != '' ) ? $_POST['smtp_authenticate'] : $CFG['smtp_authenticate']; ?>
166
- <input type="hidden" name="smtp_authenticate" value="<?php echo $value; ?>">
167
- <?php $value = ( $_POST['authenticate_username'] != '' ) ? $_POST['authenticate_username'] : $CFG['smtp_username']; ?>
168
- <input type="hidden" name="authenticate_username" value="<?php echo $value; ?>">
169
- <?php $value = ( $_POST['authenticate_password'] != '' ) ? $_POST['authenticate_password'] : $CFG['smtp_password']; ?>
170
- <input type="hidden" name="authenticate_password" value="<?php echo $value; ?>">
171
- <input type="submit" value="Start Over" name="submit">
172
- </form><br />
173
- <br />
174
- Script:<br />
175
- <pre class="brush: php;">
176
- class phpmailerAppException extends Exception {
177
- public function errorMessage() {
178
- $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />";
179
- return $errorMsg;
180
- }
181
- }
182
-
183
- try {
184
- $to = <?php echo $_POST['To_Email']; ?>;
185
- if(filter_var($to, FILTER_VALIDATE_EMAIL) === FALSE) {
186
- throw new phpmailerAppException("Email address " . $to . " is invalid -- aborting!<br />");
187
- }
188
- } catch (phpmailerAppException $e) {
189
- echo $e->errorMessage();
190
- return false;
191
- }
192
-
193
- require_once("../class.phpmailer.php");
194
-
195
- $mail = new PHPMailer();
196
-
197
- <?php
198
- if ( $_POST['Message'] == '' ) {
199
- echo '$body = file_get_contents(\'contents.html\');' . "\n";
200
- } else {
201
- echo '$body = ' . $_POST['Message'] . "\n";
202
- }
203
-
204
- echo "\n";
205
-
206
- if ( $_POST['test_type'] == "smtp" ) {
207
- echo '$mail->IsSMTP(); // telling the class to use SMTP' . "\n";
208
- echo '$mail->SMTPDebug = ' . $_POST['smtp_debug'] . "\n";
209
- echo '$mail->SMTPAuth = ' . $_POST['smtp_authenticate']; // enable SMTP authentication' . "\n";
210
- echo '$mail->Port = ' . $_POST['smtp_port']; // set the SMTP port' . "\n";
211
- echo '$mail->Host = ' . $_POST['smtp_server']; // SMTP server' . "\n";
212
- echo '$mail->Username = ' . $_POST['authenticate_username']; // SMTP account username' . "\n";
213
- echo '$mail->Password = ' . $_POST['authenticate_password']; // SMTP account password' . "\n";
214
- } elseif ( $_POST['test_type'] == "mail" ) {
215
- echo '$mail->IsMail(); // telling the class to use PHP\'s Mail()' . "\n";
216
- } elseif ( $_POST['test_type'] == "sendmail" ) {
217
- echo '$mail->IsSendmail(); // telling the class to use Sendmail' . "\n";
218
- } elseif ( $_POST['test_type'] == "qmail" ) {
219
- echo '$mail->IsQmail(); // telling the class to use Qmail' . "\n";
220
- }
221
- ?>
222
-
223
- $mail->AddReplyTo('<?php echo $_POST['From_Email']; ?>','<?php echo $_POST['From_Name']; ?>');
224
-
225
- $mail->From = '<?php echo $_POST['From_Email']; ?>';
226
- $mail->FromName = '<?php echo $_POST['From_Name']; ?>';
227
-
228
- <?php
229
- if ( $_POST['To_Name'] != '' ) {
230
- ?>
231
- $mail->AddAddress('<?php echo $to; ?>','<?php echo $_POST['To_Name']; ?>');
232
- <?php
233
- } else {
234
- ?>
235
- $mail->AddAddress('<?php echo $to; ?>');
236
- <?php
237
- }
238
- if ( $_POST['bcc_Email'] != '' ) {
239
- $indiBCC = explode(" ", $_POST['bcc_Email']);
240
- foreach ($indiBCC as $key => $value) {
241
- echo '$mail->AddBCC(\'' . $value . '\');<br />';
242
- }
243
- }
244
-
245
- if ( $_POST['cc_Email'] != '' ) {
246
- $indiCC = explode(" ", $_POST['cc_Email']);
247
- foreach ($indiCC as $key => $value) {
248
- echo '$mail->AddCC(\'' . $value . '\');<br />';
249
- }
250
- }
251
- ?>
252
-
253
- $mail->Subject = <?php echo $_POST['Subject']; ?> (PHPMailer test using <?php echo strtoupper($_POST['test_type']); ?>)
254
-
255
- require_once('../class.html2text.inc');
256
- $h2t =& new html2text($body);
257
- $mail->AltBody = $h2t->get_text();
258
- $mail->WordWrap = 80; // set word wrap
259
-
260
- $mail->MsgHTML($body);
261
-
262
- $mail->AddAttachment("images/aikido.gif", "aikido.gif"); // optional name
263
- $mail->AddAttachment("images/phpmailer.gif", "phpmailer.gif"); // optional name
264
-
265
- try {
266
- if ( !$mail->Send() ) {
267
- $error = "Unable to send to: " . $to . "<br />";
268
- throw new phpmailerAppException($error);
269
- } else {
270
- echo 'Message has been sent using <?php echo strtoupper($_POST['test_type']); ?><br /><br />';
271
- }
272
- } catch (phpmailerAppException $e) {
273
- $errorMsg[] = $e->errorMessage();
274
- }
275
-
276
- if ( count($errorMsg) > 0 ) {
277
- foreach ($errorMsg as $key => $value) {
278
- $thisError = $key + 1;
279
- echo $thisError . ': ' . $value;
280
- }
281
- }
282
- </pre>
283
-
284
-
285
-
286
- <?php
287
- } else {
288
- ?>
289
- <style>
290
- body {
291
- font-family: Arial, Helvetica, Sans-Serif;
292
- font-size: 11px;
293
- }
294
- td {
295
- font-size: 11px;
296
- }
297
- td.colleft {
298
- align: right;
299
- text-align: right;
300
- width: 30%;
301
- }
302
- td.colrite {
303
- text-align: left;
304
- width: 70%;
305
- }
306
- </style>
307
- <form method="POST" enctype="multipart/form-data">
308
- <table border="1" width="900" cellspacing="0" cellpadding="5" style="border-collapse: collapse" bgcolor="#C0C0C0">
309
- <tr>
310
- <td valign="top";><strong>Message</strong><br /><br />
311
- <table border="1" width="450" cellspacing="0" cellpadding="5" style="border-collapse: collapse;" bgcolor="#FFFFFF">
312
- <tr>
313
- <td class="colleft">From Name</td>
314
- <?php $value = ( $_POST['From_Name'] != '' ) ? $_POST['From_Name'] : ''; ?>
315
- <td class="colrite"><input type="text" name="From_Name" value="<?php echo $value; ?>" style="width:99%;"></td>
316
- </tr>
317
- <tr>
318
- <td class="colleft">From Email Address</td>
319
- <?php $value = ( $_POST['From_Email'] != '' ) ? $_POST['From_Email'] : ''; ?>
320
- <td class="colrite"><input type="text" name="From_Email" value="<?php echo $value; ?>" style="width:99%;"></td>
321
- </tr>
322
- <tr>
323
- <td class="colleft">To Name</td>
324
- <?php $value = ( $_POST['To_Name'] != '' ) ? $_POST['To_Name'] : ''; ?>
325
- <td class="colrite"><input type="text" name="To_Name" value="<?php echo $value; ?>" style="width:99%;"></td>
326
- </tr>
327
- <tr>
328
- <td class="colleft">To Email Address</td>
329
- <?php $value = ( $_POST['To_Email'] != '' ) ? $_POST['To_Email'] : ''; ?>
330
- <td class="colrite"><input type="text" name="To_Email" value="<?php echo $value; ?>" style="width:99%;"></td>
331
- </tr>
332
- <tr>
333
- <td class="colleft">cc Email Addresses <small>(separate with commas)</small></td>
334
- <?php $value = ( $_POST['cc_Email'] != '' ) ? $_POST['cc_Email'] : ''; ?>
335
- <td class="colrite"><input type="text" name="cc_Email" value="<?php echo $value; ?>" style="width:99%;"></td>
336
- </tr>
337
- <tr>
338
- <td class="colleft">bcc Email Addresses <small>(separate with commas)</small></td>
339
- <?php $value = ( $_POST['bcc_Email'] != '' ) ? $_POST['bcc_Email'] : ''; ?>
340
- <td class="colrite"><input type="text" name="bcc_Email" value="<?php echo $value; ?>" style="width:99%;"></td>
341
- </tr>
342
- <tr>
343
- <td class="colleft">Subject</td>
344
- <?php $value = ( $_POST['Subject'] != '' ) ? $_POST['Subject'] : ''; ?>
345
- <td class="colrite"><input type="text" name="Subject" value="<?php echo $value; ?>" style="width:99%;"></td>
346
- </tr>
347
- <tr>
348
- <td class="colleft">Message<br /><small>If blank, will use content.html</small></td>
349
- <?php $value = ( $_POST['Message'] != '' ) ? $_POST['Message'] : ''; ?>
350
- <td class="colrite"><textarea name="Message" style="width:99%;height:50px;"><?php echo $value; ?></textarea></td>
351
- </tr>
352
- </table>
353
- </td>
354
- <td valign="top"><strong>Mail Test Specs</strong><br /><br />
355
- <table border="1" width="450" cellspacing="0" cellpadding="5" style="border-collapse: collapse;" bgcolor="#FFFFFF">
356
- <tr>
357
- <td class="colleft">Test Type</td>
358
- <td class="colrite"><table>
359
- <tr>
360
- <td><input type="radio" name="test_type" value="mail" <?php echo ( $_POST['test_type'] == 'mail') ? 'checked' : ''; ?>></td>
361
- <td>Mail()</td>
362
- </tr>
363
- <tr>
364
- <td><input type="radio" name="test_type" value="sendmail" <?php echo ( $_POST['test_type'] == 'sendmail') ? 'checked' : ''; ?>></td>
365
- <td>Sendmail</td>
366
- </tr>
367
- <tr>
368
- <td><input type="radio" name="test_type" value="qmail" <?php echo ( $_POST['test_type'] == 'qmail') ? 'checked' : ''; ?>></td>
369
- <td>Qmail</td>
370
- </tr>
371
- <tr>
372
- <td><input type="radio" name="test_type" value="smtp" <?php echo ( $_POST['test_type'] == 'smtp') ? 'checked' : ''; ?>></td>
373
- <td>SMTP</td>
374
- </tr>
375
- </table>
376
- </td>
377
- </tr>
378
- </table>
379
- If SMTP test:<br />
380
- <table border="1" width="450" cellspacing="0" cellpadding="5" style="border-collapse: collapse;" bgcolor="#FFFFFF">
381
- <tr>
382
- <td class="colleft">SMTP Debug ?</td>
383
- <?php $value = ( $_POST['smtp_debug'] != '' ) ? $_POST['smtp_debug'] : $CFG['smtp_debug']; ?>
384
- <td class="colrite"><select size="1" name="smtp_debug">
385
- <option <?php echo ( $value == '0') ? 'selected' : ''; ?> value="0">0 - Disabled</option>
386
- <option <?php echo ( $value == '1') ? 'selected' : ''; ?> value="1">1 - Errors and Messages</option>
387
- <option <?php echo ( $value == '2') ? 'selected' : ''; ?> value="2">2 - Messages only</option>
388
- </select></td>
389
- </tr>
390
- <tr>
391
- <td class="colleft">SMTP Server</td>
392
- <?php $value = ( $_POST['smtp_server'] != '' ) ? $_POST['smtp_server'] : $CFG['smtp_server']; ?>
393
- <td class="colrite"><input type="text" name="smtp_server" value="<?php echo $value; ?>" style="width:99%;"></td>
394
- </tr>
395
- <tr>
396
- <td class="colleft">SMTP Port</td>
397
- <?php $value = ( $_POST['smtp_port'] != '' ) ? $_POST['smtp_port'] : $CFG['smtp_port']; ?>
398
- <td class="colrite"><input type="text" name="smtp_port" value="<?php echo $value; ?>" style="width:99%;"></td>
399
- </tr>
400
- <tr>
401
- <td class="colleft">SMTP Authenticate ?</td>
402
- <?php $value = ( $_POST['smtp_authenticate'] != '' ) ? $_POST['smtp_authenticate'] : $CFG['smtp_authenticate']; ?>
403
- <td class="colrite"><input type="checkbox" name="smtp_authenticate" <?php if ($value!=''){ echo "checked";} ?> value="<?php echo $value; ?>"></td>
404
- </tr>
405
- <tr>
406
- <td class="colleft">Authenticate Username</td>
407
- <?php $value = ( $_POST['authenticate_username'] != '' ) ? $_POST['authenticate_username'] : $CFG['smtp_username']; ?>
408
- <td class="colrite"><input type="text" name="authenticate_username" value="<?php echo $value; ?>" style="width:99%;"></td>
409
- </tr>
410
- <tr>
411
- <td class="colleft">Authenticate Password</td>
412
- <?php $value = ( $_POST['authenticate_password'] != '' ) ? $_POST['authenticate_password'] : $CFG['smtp_password']; ?>
413
- <td class="colrite"><input type="password" name="authenticate_password" value="<?php echo $value; ?>" style="width:99%;"></td>
414
- </tr>
415
- </table>
416
- </td>
417
- </tr>
418
- </table>
419
- <br />
420
- Test will include two attachments, plus one of the attachments is used as an inline graphic in the message body.<br />
421
- <br />
422
- <input type="submit" value="Submit" name="submit">
423
- </form>
424
- <?php
425
- }
426
-
427
- ?>
@@ -1,59 +0,0 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
- *
8
- * @version
9
- * 2.0.296 (March 01 2009)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2009 Alex Gorbatchev.
13
- *
14
- * @license
15
- * This file is part of SyntaxHighlighter.
16
- *
17
- * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
- * it under the terms of the GNU General Public License as published by
19
- * the Free Software Foundation, either version 3 of the License, or
20
- * (at your option) any later version.
21
- *
22
- * SyntaxHighlighter is distributed in the hope that it will be useful,
23
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
- * GNU General Public License for more details.
26
- *
27
- * You should have received a copy of the GNU General Public License
28
- * along with SyntaxHighlighter. If not, see <http://www.gnu.org/licenses/>.
29
- */
30
- SyntaxHighlighter.brushes.Bash = function()
31
- {
32
- var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
33
- var commands = 'alias apropos awk bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
34
- 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
35
- 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
36
- 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
37
- 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
38
- 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
39
- 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
40
- 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
41
- 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
42
- 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
43
- 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
44
- 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
45
- 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
46
- 'vi watch wc whereis which who whoami Wget xargs yes'
47
- ;
48
-
49
- this.regexList = [
50
- { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
51
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
52
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
53
- { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
54
- ];
55
- }
56
-
57
- SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
58
- SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
59
-
@@ -1,64 +0,0 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
- *
8
- * @version
9
- * 2.0.296 (March 01 2009)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2009 Alex Gorbatchev.
13
- *
14
- * @license
15
- * This file is part of SyntaxHighlighter.
16
- *
17
- * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
- * it under the terms of the GNU General Public License as published by
19
- * the Free Software Foundation, either version 3 of the License, or
20
- * (at your option) any later version.
21
- *
22
- * SyntaxHighlighter is distributed in the hope that it will be useful,
23
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
- * GNU General Public License for more details.
26
- *
27
- * You should have received a copy of the GNU General Public License
28
- * along with SyntaxHighlighter. If not, see <http://www.gnu.org/licenses/>.
29
- */
30
- SyntaxHighlighter.brushes.CSharp = function()
31
- {
32
- var keywords = 'abstract as base bool break byte case catch char checked class const ' +
33
- 'continue decimal default delegate do double else enum event explicit ' +
34
- 'extern false finally fixed float for foreach get goto if implicit in int ' +
35
- 'interface internal is lock long namespace new null object operator out ' +
36
- 'override params private protected public readonly ref return sbyte sealed set ' +
37
- 'short sizeof stackalloc static string struct switch this throw true try ' +
38
- 'typeof uint ulong unchecked unsafe ushort using virtual void while';
39
-
40
- function fixComments(match, regexInfo)
41
- {
42
- var css = (match[0].indexOf("///") == 0)
43
- ? 'color1'
44
- : 'comments'
45
- ;
46
-
47
- return [new SyntaxHighlighter.Match(match[0], match.index, css)];
48
- }
49
-
50
- this.regexList = [
51
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
52
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
53
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
54
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
55
- { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
56
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
57
- ];
58
-
59
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
60
- };
61
-
62
- SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
63
- SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
64
-
@@ -1,99 +0,0 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
- *
8
- * @version
9
- * 2.0.296 (March 01 2009)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2009 Alex Gorbatchev.
13
- *
14
- * @license
15
- * This file is part of SyntaxHighlighter.
16
- *
17
- * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
- * it under the terms of the GNU General Public License as published by
19
- * the Free Software Foundation, either version 3 of the License, or
20
- * (at your option) any later version.
21
- *
22
- * SyntaxHighlighter is distributed in the hope that it will be useful,
23
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
- * GNU General Public License for more details.
26
- *
27
- * You should have received a copy of the GNU General Public License
28
- * along with SyntaxHighlighter. If not, see <http://www.gnu.org/licenses/>.
29
- */
30
- SyntaxHighlighter.brushes.Cpp = function()
31
- {
32
- // Copyright 2006 Shin, YoungJin
33
-
34
- var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
35
- 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
36
- 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
37
- 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
38
- 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
39
- 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
40
- 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
41
- 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
42
- 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
43
- 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
44
- 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
45
- 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
46
- 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
47
- 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
48
- 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
49
- 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
50
- 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
51
- 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
52
- 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
53
- '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
54
- 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
55
- 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
56
- 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
57
- 'va_list wchar_t wctrans_t wctype_t wint_t signed';
58
-
59
- var keywords = 'break case catch class const __finally __exception __try ' +
60
- 'const_cast continue private public protected __declspec ' +
61
- 'default delete deprecated dllexport dllimport do dynamic_cast ' +
62
- 'else enum explicit extern if for friend goto inline ' +
63
- 'mutable naked namespace new noinline noreturn nothrow ' +
64
- 'register reinterpret_cast return selectany ' +
65
- 'sizeof static static_cast struct switch template this ' +
66
- 'thread throw true false try typedef typeid typename union ' +
67
- 'using uuid virtual void volatile whcar_t while';
68
-
69
- var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
70
- 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
71
- 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
72
- 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
73
- 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
74
- 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
75
- 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
76
- 'fwrite getc getchar gets perror printf putc putchar puts remove ' +
77
- 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
78
- 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
79
- 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
80
- 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
81
- 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
82
- 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
83
- 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
84
- 'clock ctime difftime gmtime localtime mktime strftime time';
85
-
86
- this.regexList = [
87
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
88
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
89
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
90
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
91
- { regex: /^ *#.*/gm, css: 'preprocessor' },
92
- { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
93
- { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
94
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
95
- ];
96
- };
97
-
98
- SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter();
99
- SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c'];