2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"brown",
"blue",
"purple");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array();
28 $this->unindent = array();
32 $this->stringchars = array();
33 $this->delimiters = array();
38 $this->linecommenton = array(
"--");
39 $this->blockcommenton = array(
"/*");
40 $this->blockcommentoff = array(
"*/");
44 $this->keywords = array(
51 "AUTHORIZATION" =>
"1",
59 "CHARACTER_LENGTH" =>
"1",
66 "CORRESPONDING" =>
"1",
108 "OCTET_LENGTH" =>
"1",
130 "TIMEZONE_HOUR" =>
"1",
131 "TIMEZONE_MINUTE" =>
"1",
134 "TRANSLATION" =>
"1",
176 "CURRENT_DATE" =>
"2",
177 "CURRENT_TIME" =>
"2",
178 "CURRENT_TIMESTAMP" =>
"2",
179 "CURRENT_USER" =>
"2",
215 "IDENTITY_INSERT" =>
"2",
216 "IDENTITYCOL" =>
"2",
220 "INSENSITIVE" =>
"2",
236 "NONCLUSTERED" =>
"2",
261 "PROCESSEXIT" =>
"2",
265 "RECONFIGURE" =>
"2",
268 "REPLICATION" =>
"2",
277 "SERIALIZABLE" =>
"2",
278 "SESSION_USER" =>
"2",
285 "SYSTEM_USER" =>
"2",
294 "TRANSACTION" =>
"2",
298 "UNCOMMITTED" =>
"2",
314 "sp_column_privileges" =>
"3",
315 "sp_special_columns" =>
"3",
317 "sp_sproc_columns" =>
"3",
318 "sp_databases" =>
"3",
319 "sp_statistics" =>
"3",
320 "sp_datatype_info" =>
"3",
321 "sp_stored_procedures" =>
"3",
323 "sp_table_privileges" =>
"3",
326 "sp_server_info" =>
"3",
327 "sp_addpublisher" =>
"3",
328 "sp_dropsubscriber" =>
"3",
329 "sp_addsubscriber" =>
"3",
330 "sp_helpdistributor" =>
"3",
331 "sp_changesubscriber" =>
"3",
332 "sp_helpserver" =>
"3",
333 "sp_dboption" =>
"3",
334 "sp_helpsubscriberinfo" =>
"3",
335 "sp_droppublisher" =>
"3",
336 "sp_replsync" =>
"3",
337 "sp_addarticle" =>
"3",
338 "sp_helparticle" =>
"3",
339 "sp_addpublication" =>
"3",
340 "sp_helparticlecolumns" =>
"3",
341 "sp_articlecolumn" =>
"3",
342 "sp_helppublication" =>
"3",
343 "sp_changearticle" =>
"3",
344 "sp_helppublicationsync" =>
"3",
345 "sp_changepublication" =>
"3",
346 "sp_helpreplicationdb" =>
"3",
347 "sp_droparticle" =>
"3",
348 "sp_replflush" =>
"3",
349 "sp_droppublication" =>
"3",
350 "sp_replstatus" =>
"3",
351 "sp_enumfullsubscribers" =>
"3",
352 "sp_addsubscription" =>
"3",
353 "sp_helpsubscription" =>
"3",
354 "sp_changesubscription" =>
"3",
355 "sp_subscribe" =>
"3",
356 "sp_changesubstatus" =>
"3",
357 "sp_unsubscribe" =>
"3",
358 "sp_dropsubscription" =>
"3",
359 "sp_distcounters" =>
"3",
361 "sp_replcleanup" =>
"3",
362 "sp_MSkill_job" =>
"3",
363 "sp_repldone" =>
"3",
364 "sp_replcmds" =>
"3",
365 "sp_repltrans" =>
"3",
366 "sp_replcounters" =>
"3",
368 "sp_helptask" =>
"3",
369 "sp_droptask" =>
"3",
370 "sp_addalert" =>
"3",
371 "sp_helpalert" =>
"3",
372 "sp_addnotification" =>
"3",
373 "sp_helpnotification" =>
"3",
374 "sp_addoperator" =>
"3",
375 "sp_helpoperator" =>
"3",
376 "sp_dropalert" =>
"3",
377 "sp_updatealert" =>
"3",
378 "sp_dropnotification" =>
"3",
379 "sp_updatenotification" =>
"3",
380 "sp_dropoperator" =>
"3",
381 "sp_updateoperator" =>
"3",
382 "sp_purgehistory" =>
"3",
383 "sp_helphistory" =>
"3",
384 "sp_updatetask" =>
"3",
385 "sp_MSSQLOLE65_version" =>
"3",
386 "sp_MSSQLOLE_version" =>
"3",
387 "sp_MS_upd_sysobj_category" =>
"3",
388 "sp_MSdbuserprofile" =>
"3",
389 "sp_MSdependencies" =>
"3",
390 "sp_MSenumsubsystems" =>
"3",
391 "sp_MSfilterclause" =>
"3",
392 "sp_MSforeach_worker" =>
"3",
393 "sp_MSforeachdb" =>
"3",
394 "sp_MSforeachtable" =>
"3",
395 "sp_MSgetalertinfo" =>
"3",
396 "sp_MSgetexecinfo" =>
"3",
397 "sp_MShelpcolumns" =>
"3",
398 "sp_MShelpindex" =>
"3",
399 "sp_MShelptype" =>
"3",
400 "sp_MSindexspace" =>
"3",
401 "sp_MSkilldb" =>
"3",
402 "sp_MSloginmappings" =>
"3",
403 "sp_MSmatchkey" =>
"3",
404 "sp_MSobjectprivs" =>
"3",
405 "sp_MSsetalertinfo" =>
"3",
406 "sp_MSsetexecinfo" =>
"3",
407 "sp_MSsettopology" =>
"3",
408 "sp_MSsubscriptions" =>
"3",
409 "sp_MStablechecks" =>
"3",
410 "sp_MStablekeys" =>
"3",
411 "sp_MStablerefs" =>
"3",
412 "sp_MStablespace" =>
"3",
413 "sp_MSuninstall_publishing" =>
"3",
414 "sp_MSuniquename" =>
"3",
415 "sp_TDGEN_CURSOR1" =>
"3",
416 "sp_TD_table_summary" =>
"3",
417 "sp_TDaccess_server_drives" =>
"3",
418 "sp_TDblocks" =>
"3",
419 "sp_TDcheck_indexes" =>
"3",
420 "sp_TDcheck_rowcount" =>
"3",
421 "sp_TDdb_locks" =>
"3",
422 "sp_TDdbsizes_data" =>
"3",
423 "sp_TDdbsizes_log" =>
"3",
424 "sp_TDdbsizes_total" =>
"3",
425 "sp_TDdefault_db_audit" =>
"3",
426 "sp_TDdevspace" =>
"3",
427 "sp_TDdroplogin" =>
"3",
428 "sp_TDformat_commas" =>
"3",
429 "sp_TDget_logins" =>
"3",
430 "sp_TDgetdbsizes" =>
"3",
431 "sp_TDhelpdb" =>
"3",
432 "sp_TDhelplogin" =>
"3",
433 "sp_TDmirrorlogin" =>
"3",
434 "sp_TDpassword_change" =>
"3",
435 "sp_TDrunthis" =>
"3",
436 "sp_TDspaceused" =>
"3",
437 "sp_TDtable_sizes" =>
"3",
438 "sp_TDupdate_stats" =>
"3",
439 "sp_a_count_bits_on" =>
"3",
440 "sp_abort_xact" =>
"3",
441 "sp_add_app_user" =>
"3",
442 "sp_addalias" =>
"3",
443 "sp_addextendedproc" =>
"3",
444 "sp_addgroup" =>
"3",
445 "sp_addlanguage" =>
"3",
446 "sp_addlogin" =>
"3",
447 "sp_addmessage" =>
"3",
448 "sp_addremotelogin" =>
"3",
449 "sp_addsegment" =>
"3",
450 "sp_addserver" =>
"3",
452 "sp_addumpdevice" =>
"3",
454 "sp_altermessage" =>
"3",
455 "sp_articlefilter" =>
"3",
456 "sp_articletextcol" =>
"3",
457 "sp_articleview" =>
"3",
458 "sp_bindefault" =>
"3",
459 "sp_bindrule" =>
"3",
460 "sp_blockcnt" =>
"3",
461 "sp_certify_removable" =>
"3",
462 "sp_change_users_login" =>
"3",
463 "sp_changedbowner" =>
"3",
464 "sp_changegroup" =>
"3",
465 "sp_check_objects" =>
"3",
466 "sp_check_removable" =>
"3",
467 "sp_checknames" =>
"3",
468 "sp_chklangparam" =>
"3",
469 "sp_coalesce_fragments" =>
"3",
470 "sp_commit_xact" =>
"3",
471 "sp_commonkey" =>
"3",
472 "sp_configure" =>
"3",
473 "sp_create_distribution_tables" =>
"3",
474 "sp_create_removable" =>
"3",
475 "sp_db_locks" =>
"3",
476 "sp_db_upgrade" =>
"3",
477 "sp_db_upgrade1" =>
"3",
478 "sp_db_upgrade2" =>
"3",
479 "sp_db_upgrade3" =>
"3",
480 "sp_dbinstall" =>
"3",
481 "sp_dbremove" =>
"3",
483 "sp_defaultdb" =>
"3",
484 "sp_defaultlanguage" =>
"3",
486 "sp_devcreate" =>
"3",
487 "sp_devoption" =>
"3",
488 "sp_diskdefault" =>
"3",
489 "sp_dropalias" =>
"3",
490 "sp_dropdevice" =>
"3",
491 "sp_dropextendedproc" =>
"3",
492 "sp_dropgroup" =>
"3",
494 "sp_droplanguage" =>
"3",
495 "sp_droplogin" =>
"3",
496 "sp_dropmessage" =>
"3",
497 "sp_dropremotelogin" =>
"3",
498 "sp_dropsegment" =>
"3",
499 "sp_dropserver" =>
"3",
500 "sp_droptype" =>
"3",
501 "sp_dropuser" =>
"3",
502 "sp_dropwebtask" =>
"3",
504 "sp_dtdba_checkfull" =>
"3",
505 "sp_dtdba_constraint" =>
"3",
506 "sp_dtdba_createsql" =>
"3",
507 "sp_dtdba_freedevice" =>
"3",
508 "sp_dtdba_getobj" =>
"3",
509 "sp_dtdba_getobjectpermissions" =>
"3",
510 "sp_dtdba_gettabkey" =>
"3",
511 "sp_dtdba_gettabper" =>
"3",
512 "sp_dtdba_getuserpermissions" =>
"3",
513 "sp_dtdba_helpcolumn" =>
"3",
514 "sp_dtdba_helpcolumn2" =>
"3",
515 "sp_dtdba_indexkeys" =>
"3",
516 "sp_dtdba_userprotects" =>
"3",
519 "sp_extendsegment" =>
"3",
520 "sp_fallback_MS_enroll_db" =>
"3",
521 "sp_fallback_MS_enroll_dev" =>
"3",
522 "sp_fallback_MS_enroll_usg" =>
"3",
523 "sp_fallback_MS_sel_fb_svr" =>
"3",
524 "sp_fallback_MS_verify_ri" =>
"3",
525 "sp_fallback_activate_svr" =>
"3",
526 "sp_fallback_deactivate_svr" =>
"3",
527 "sp_fallback_deactivate_svr_db" =>
"3",
528 "sp_fallback_enroll_svr_db" =>
"3",
529 "sp_fallback_help" =>
"3",
530 "sp_fallback_help_db_dev" =>
"3",
531 "sp_fallback_permanent_svr" =>
"3",
532 "sp_fallback_upd_dev_drive" =>
"3",
533 "sp_fallback_withdraw_svr_db" =>
"3",
534 "sp_fixindex" =>
"3",
535 "sp_foreignkey" =>
"3",
536 "sp_get_volume_label" =>
"3",
537 "sp_hcchangesubstatus1" =>
"3",
538 "sp_hcchangesubstatus2" =>
"3",
540 "sp_help_revdatabase" =>
"3",
541 "sp_helpconstraint" =>
"3",
543 "sp_helpdevice" =>
"3",
544 "sp_helpextendedproc" =>
"3",
545 "sp_helpgroup" =>
"3",
546 "sp_helpindex" =>
"3",
547 "sp_helpjoins" =>
"3",
549 "sp_helplanguage" =>
"3",
551 "sp_helplogins" =>
"3",
552 "sp_helpremotelogin" =>
"3",
553 "sp_helprotect" =>
"3",
554 "sp_helpsegment" =>
"3",
555 "sp_helpsort" =>
"3",
557 "sp_helpstartup" =>
"3",
558 "sp_helptext" =>
"3",
559 "sp_helpuser" =>
"3",
563 "sp_lockinfo" =>
"3",
564 "sp_logdevice" =>
"3",
566 "sp_makestartup" =>
"3",
567 "sp_makewebtask" =>
"3",
568 "sp_markreport" =>
"3",
570 "sp_namecrack" =>
"3",
571 "sp_namecrack_qi" =>
"3",
572 "sp_objcheck" =>
"3",
573 "sp_objectsegment" =>
"3",
574 "sp_password" =>
"3",
575 "sp_placeobject" =>
"3",
576 "sp_primarykey" =>
"3",
577 "sp_probe_xact" =>
"3",
578 "sp_processinfo" =>
"3",
579 "sp_processmail" =>
"3",
580 "sp_publishdb" =>
"3",
581 "sp_recompile" =>
"3",
582 "sp_remoteoption" =>
"3",
583 "sp_remove_xact" =>
"3",
585 "sp_renamedb" =>
"3",
586 "sp_runwebtask" =>
"3",
587 "sp_scan_xact" =>
"3",
588 "sp_schedulersignal" =>
"3",
589 "sp_serveroption" =>
"3",
590 "sp_setlangalias" =>
"3",
591 "sp_setnetname" =>
"3",
592 "sp_spaceused" =>
"3",
594 "sp_sqlregister" =>
"3",
595 "sp_start_xact" =>
"3",
596 "sp_stat_xact" =>
"3",
597 "sp_sysbackuphistory_limiter" =>
"3",
598 "sp_tableoption" =>
"3",
599 "sp_tempdbspace" =>
"3",
600 "sp_textcolstatus" =>
"3",
601 "sp_unbindefault" =>
"3",
602 "sp_unbindrule" =>
"3",
603 "sp_unmakestartup" =>
"3",
604 "sp_user_counter1" =>
"3",
605 "sp_user_counter10" =>
"3",
606 "sp_user_counter2" =>
"3",
607 "sp_user_counter3" =>
"3",
608 "sp_user_counter4" =>
"3",
609 "sp_user_counter5" =>
"3",
610 "sp_user_counter6" =>
"3",
611 "sp_user_counter7" =>
"3",
612 "sp_user_counter8" =>
"3",
613 "sp_user_counter9" =>
"3",
614 "sp_userdefcounters" =>
"3",
615 "sp_validlang" =>
"3",
616 "sp_validname" =>
"3",
619 "xp_enumgroups" =>
"3",
620 "xp_logininfo" =>
"3",
621 "xp_grantlogin" =>
"3",
622 "xp_revokelogin" =>
"3",
623 "xp_loginconfig" =>
"3",
624 "xp_deletemail" =>
"3",
625 "xp_sendmail" =>
"3",
626 "xp_findnextmsg" =>
"3",
627 "xp_startmail" =>
"3",
628 "xp_readmail" =>
"3",
629 "xp_stopmail" =>
"3",
630 "xp_cmdshell" =>
"3",
632 "xp_logevent" =>
"3",
635 "CONNECTIONS" =>
"4",
637 "CURSOR_ROWS" =>
"4",
641 "FETCH_STATUS" =>
"4",
646 "MAX_CONNECTIONS" =>
"4",
647 "MAX_PRECISION" =>
"4",
648 "MICROSOFTVERSION" =>
"4",
650 "PACK_RECEIVED" =>
"4",
652 "PACKET_ERRORS" =>
"4",
656 "SERVICENAME" =>
"4",
659 "TOTAL_ERRORS" =>
"4",
661 "TOTAL_WRITE" =>
"4",
688 "GETANSINULL" =>
"5",
701 "OBJECT_NAME" =>
"5",
739 "SMALLDATETIME" =>
"6",
744 "UNIQUEIDENTIFIER" =>
"6",
755 $this->linkscripts = array(