A tumblelog CMS built on AJAX, PHP and MySQL.

mysql.php 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?php
  2. /*************************************************************************************
  3. * mysql.php
  4. * ---------
  5. * Author: Carl F�rstenberg (azatoth@gmail.com)
  6. * Copyright: (c) 2005 Carl F�rstenberg, Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2004/06/04
  9. *
  10. * MySQL language file for GeSHi.
  11. *
  12. *
  13. *************************************************************************************
  14. *
  15. * This file is part of GeSHi.
  16. *
  17. * GeSHi 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 2 of the License, or
  20. * (at your option) any later version.
  21. *
  22. * GeSHi 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 GeSHi; if not, write to the Free Software
  29. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  30. *
  31. ************************************************************************************/
  32. $language_data = array (
  33. 'LANG_NAME' => 'MySQL',
  34. 'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'),
  35. 'COMMENT_MULTI' => array('/*' => '*/'),
  36. 'CASE_KEYWORDS' => 1,
  37. 'QUOTEMARKS' => array("'", '"', ''),
  38. 'ESCAPE_CHAR' => '\\',
  39. 'KEYWORDS' => array(
  40. 1 => array(
  41. /* Mix */
  42. 'ALTER DATABASE', 'ALTER TABLE', 'CREATE DATABASE', 'CREATE INDEX', 'CREATE TABLE', 'DROP DATABASE',
  43. 'DROP INDEX', 'DROP TABLE', 'RENAME TABLE', 'DELETE', 'DO', 'HANDLER', 'INSERT', 'LOAD DATA INFILE',
  44. 'REPLACE', 'SELECT', 'TRUNCATE', 'UPDATE', 'DESCRIBE', 'USE', 'START TRANSACTION', 'COMMIT', 'ROLLBACK',
  45. 'SAVEPOINT', 'ROLLBACK TO SAVEPOINT', 'LOCK TABLES', 'UNLOCK_TABLES', 'SET TRANACTIONS', 'SET', 'SHOW',
  46. 'CREATE PROCEDURE', 'CREATE FUNCTION', 'ALTER PROCEDURE', 'ALTER FUNCTION', 'DROP PROCEDURE', 'DROP FUNCTION',
  47. 'SHOW CREATE PROCEDURE', 'SHOW CREATE FUNCTION', 'SHOW PROCEDURE STATUS', 'SHOW FUNCTION STATUS',
  48. 'CALL', 'BEGIN', 'END', 'DECLARE', 'CREATE ROUTINE', 'ALTER ROUTINE', 'CREATE', 'ALTER', 'DROP',
  49. 'PRIMARY KEY', 'VALUES', 'INTO', 'FROM',
  50. 'ANALYZE', 'BDB', 'BERKELEYDB', 'BTREE', 'BY', 'CASCADE', 'CHECK', 'COLUMN', 'COLUMNS', 'CONSTRAINT',
  51. 'CROSS', 'DATABASES', 'DELAYED', 'DISTINCT', 'DISTINCTROW', 'ENCLOSED', 'ERRORS', 'ESCAPED', 'EXISTS',
  52. 'EXPLAIN', 'FALSE', 'FIELDS', 'FORCE', 'FOREIGN', 'FULLTEXT', 'GEOMETRY', 'GRANT', 'GROUP', 'HASH',
  53. 'HAVING', 'HELP', 'HIGH_PRIORITY', 'IGNORE', 'INNER', 'INNODB', 'INTERVAL', 'JOIN', 'KEYS', 'KILL',
  54. 'LINES', 'LOW_PRIORITY', 'MASTER_SERVER_ID', 'MATCH', 'MIDDLEINT', 'MRG_MYISAM', 'NATURAL', 'OPTIMIZE',
  55. 'OPTION', 'OPTIONALLY', 'ORDER', 'OUTER', 'OUTFILE', 'PRIVILEGES', 'PURGE', 'READ', 'REFERENCES',
  56. 'REQUIRE', 'RESTRICT', 'RETURNS', 'REVOKE', 'RLIKE', 'RTREE', 'SOME', 'SONAME', 'SPATIAL', 'SQL_BIG_RESULT',
  57. 'SQL_CALC_FOUND_ROWS', 'SQL_SMALL_RESULT', 'SSL', 'STARTING', 'STRAIGHT_JOIN', 'STRIPED', 'TERMINATED',
  58. 'TRUE', 'TYPES', 'UNION', 'USAGE', 'USER_RESOURCES', 'USING', 'VARCHARACTER', 'WARNINGS', 'WHERE', 'WRITE',
  59. /* Control Flow Functions */
  60. 'CASE', 'WHEN', 'THEN', 'ELSE', 'END',
  61. /* String Functions */
  62. 'UNHEX', 'BIN', 'BIT_LENGTH', 'CHAR_LENGTH', 'CHARACTER_LENGTH', 'COMPRESS', 'CONCAT',
  63. 'CONCAT_WS', 'CONV', 'ELT', 'EXPORT_SET', 'FIELD', 'FIND_IN_SET', 'FORMAT', 'HEX',
  64. 'INSERT', 'INSTR', 'LCASE', 'LEFT', 'LENGTH', 'LOAD_FILE', 'LOCATE', 'LOWER', 'LPAD',
  65. 'LTRIM', 'MAKE_SET', 'MID', 'OCT', 'OCTET_LENGTH', 'ORD', 'POSITION', 'QUOTE', 'REPEAT',
  66. 'REPLACE', 'REVERSE', 'RIGHT', 'RPAD', 'RTRIM', 'SOUNDEX', 'SPACE', 'SUBSTRING',
  67. 'SUBSTRING_INDEX', 'TRIM', 'UCASE', 'UPPER', 'UNCOMPRESS', 'UNCOMPRESSD_LENGTH',
  68. 'MD5', 'SHA1',
  69. /* Numeric Functions */
  70. 'ABS', 'ACOS', 'ASIN', 'ATAN', 'ATAN2', 'CEILING', 'CEIL', 'COS', 'COT', 'CRC32', 'DEGREES',
  71. 'EXP', 'FLOOR', 'LN', 'LOG', 'LOG2', 'LOG10', 'MOD', 'PI', 'POW', 'POWER', 'RADIANS', 'RAND',
  72. 'ROUND', 'SIGN', 'SIN', 'SQRT', 'TAN', 'TRUNCATE',
  73. /* Date and Time Functions */
  74. 'ADDDATE', 'ADDTIME', 'CONVERT_TZ', 'CURDATE', 'CURRENT_DATE', 'CURTIME', 'CURRENT_TIME',
  75. 'CURRENT_TIMESTAMP', 'DATEDIFF', 'DATE_ADD', 'DATE_SUB', 'DATE_FORMAT', 'DAY',
  76. 'DAYNAME', 'DAYOFMONTH', 'DAYOFWEEK', 'DAYOFYEAR', 'EXTRACT', 'FROM_DAYS', 'FROM_UNIXTIME',
  77. 'GET_FORMAT', 'LAST_DAY', 'LOCALTIME', 'LOCALTIMESTAMP', 'MAKEDATE', 'MAKETIME',
  78. 'MICROSECOND', 'MONTHNAME', 'NOW', 'PERIOD_ADD', 'PERIOD_DIFF', 'QUARTER',
  79. 'SECOND', 'SEC_TO_TIME', 'STR_TO_DATE', 'SUBDATE', 'SUBTIME', 'SYSDATE', 'TIME', 'TIMEDIFF',
  80. 'TIMESTAMP', 'TIMESTAMPADD', 'TIMESTAMPDIFF', 'TIME_FORMAT', 'TIME_TO_SEC', 'TO_DAYS',
  81. 'UNIX_TIMESTAMP', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', 'WEEKDAY', 'WEEKOFYEAR',
  82. 'YEARWEEK',
  83. ),
  84. 2 => array(
  85. 'INTEGER', 'SMALLINT', 'DECIMAL', 'NUMERIC', 'FLOAT', 'REAL', 'DOUBLE PRECISION',
  86. 'DOUBLE', 'INT', 'DEC', 'BIT' ,'TINYINT', 'SMALLINT', 'MEDIUMINT', 'BIGINT',
  87. 'DATETIME', 'DATE', 'TIMESTAMP', 'TIME', 'YEAR',
  88. 'CHAR', 'VARCHAR', 'BINARY', 'CHARACTER VARYING', 'VARBINARY', 'TINYBLOB', 'TINYTEXT',
  89. 'BLOB', 'TEXT','MEDIUMBLOB', 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'ENUM', 'SET',
  90. 'SERIAL DEFAULT VALUE', 'SERIAL', 'FIXED'
  91. ),
  92. 3 => array(
  93. 'ZEROFILL', 'NOT NULL', 'UNSIGNED', 'AUTO_INCREMENT', 'UNIQUE', 'NOT', 'NULL', 'CHARACTER SET', 'CHARSET',
  94. 'ASCII', 'UNICODE', 'NATIONAL', 'BOTH', 'LEADING', 'TRAILING','DEFAULT'
  95. ),
  96. 4 => array(
  97. 'MICROSECOND', 'SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR', 'SECOND_MICROSECOND',
  98. 'MINUTE_MICROSECOND', 'MINUTE_SECOND', 'HOUR_MICROSECOND', 'HOUR_SECOND', 'HOUR_MINUTE', 'DAY_MICROSECOND',
  99. 'DAY_SECOND', 'DAY_MINUTE', 'DAY_HOUR', 'YEAR_MONTH'
  100. ),
  101. 5 => array(
  102. 'OR', 'XOR', 'AND', 'NOT', 'BETWEEN', 'IS', 'LIKE', 'REGEXP', 'IN', 'DIV',
  103. 'MOD', 'BINARY', 'COLLATE', 'LIMIT', 'OFFSET'
  104. ),
  105. ),
  106. 'SYMBOLS' => array(
  107. ':=',
  108. '||', 'OR', 'XOR',
  109. '&&', 'AND',
  110. 'NOT',
  111. 'BETWEEN', 'CASE', 'WHEN', 'THEN', 'ELSE',
  112. '=', '<=>', '>=', '>', '<=', '<', '<>', '!=', 'IS', 'LIKE', 'REGEXP', 'IN',
  113. '|',
  114. '&',
  115. '<<', '>>',
  116. '-', '+',
  117. '*', '/', 'DIV', '%', 'MOD',
  118. '^',
  119. '-', '~',
  120. '!',
  121. 'BINARY', 'COLLATE',
  122. '(', ')',
  123. ),
  124. 'CASE_SENSITIVE' => array(
  125. GESHI_COMMENTS => false,
  126. 1 => false,
  127. 2 => false,
  128. 3 => false,
  129. 4 => false,
  130. 5 => false
  131. ),
  132. 'STYLES' => array(
  133. 'KEYWORDS' => array(
  134. 1 => 'color: #993333; font-weight: bold;',
  135. 2 => 'color: #aa9933; font-weight: bold;',
  136. 3 => 'color: #aa3399; font-weight: bold;',
  137. 4 => 'color: #33aa99; font-weight: bold;',
  138. 5 => 'color: #993333; font-weight: bold;'
  139. ),
  140. 'COMMENTS' => array(
  141. 'MULTI' => 'color: #808080; font-style: italic;',
  142. 1 => 'color: #808080; font-style: italic;',
  143. 2 => 'color: #808080; font-style: italic;'
  144. ),
  145. 'ESCAPE_CHAR' => array(
  146. 0 => 'color: #000099; font-weight: bold;'
  147. ),
  148. 'BRACKETS' => array(
  149. 0 => 'color: #66cc66;'
  150. ),
  151. 'STRINGS' => array(
  152. 0 => 'color: #ff0000;'
  153. ),
  154. 'NUMBERS' => array(
  155. 0 => 'color: #cc66cc;'
  156. ),
  157. 'METHODS' => array(
  158. ),
  159. 'SYMBOLS' => array(
  160. 0 => 'color: #66cc66;'
  161. ),
  162. 'SCRIPT' => array(
  163. ),
  164. 'REGEXPS' => array(
  165. )
  166. ),
  167. 'OOLANG' => false,
  168. 'OBJECT_SPLITTERS' => array(
  169. ),
  170. 'REGEXPS' => array(
  171. ),
  172. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  173. 'SCRIPT_DELIMITERS' => array(
  174. ),
  175. 'HIGHLIGHT_STRICT_BLOCK' => array(
  176. )
  177. );
  178. ?>