├── _includes ├── img │ ├── file.gif │ ├── favicon.ico │ ├── folder.gif │ ├── slash.gif │ ├── external.gif │ ├── site_icon.gif │ ├── bullet_down.gif │ ├── bullet_right.gif │ ├── option_selected.gif │ ├── options_view_grid.gif │ ├── options_view_list.gif │ ├── thickbox │ │ ├── macFFBgHack.png │ │ └── loadingAnimation.gif │ └── mimetypes │ │ ├── cms_assetimg_sm_avi.gif │ │ ├── cms_assetimg_sm_csv.gif │ │ ├── cms_assetimg_sm_doc.gif │ │ ├── cms_assetimg_sm_fla.gif │ │ ├── cms_assetimg_sm_flv.gif │ │ ├── cms_assetimg_sm_gif.gif │ │ ├── cms_assetimg_sm_jpg.gif │ │ ├── cms_assetimg_sm_mdb.gif │ │ ├── cms_assetimg_sm_mov.gif │ │ ├── cms_assetimg_sm_pdf.gif │ │ ├── cms_assetimg_sm_ppt.gif │ │ ├── cms_assetimg_sm_sql.gif │ │ ├── cms_assetimg_sm_swf.gif │ │ ├── cms_assetimg_sm_txt.gif │ │ ├── cms_assetimg_sm_wav.gif │ │ ├── cms_assetimg_sm_xls.gif │ │ ├── cms_assetimg_sm_xxx.gif │ │ └── cms_assetimg_sm_zip.gif ├── skins │ ├── dark │ │ └── img │ │ │ ├── file.gif │ │ │ ├── folder.gif │ │ │ ├── slash.gif │ │ │ ├── external.gif │ │ │ ├── bullet_down.gif │ │ │ ├── site_icon.gif │ │ │ ├── bullet_right.gif │ │ │ ├── option_selected.gif │ │ │ ├── options_view_grid.gif │ │ │ └── options_view_list.gif │ └── standard │ │ └── img │ │ ├── file.gif │ │ ├── folder.gif │ │ ├── slash.gif │ │ ├── external.gif │ │ ├── site_icon.gif │ │ ├── bullet_down.gif │ │ ├── bullet_right.gif │ │ ├── option_selected.gif │ │ ├── options_view_grid.gif │ │ └── options_view_list.gif ├── php │ ├── lib │ │ ├── php4 │ │ │ └── singleton.php │ │ ├── localization │ │ │ └── languages │ │ │ │ ├── jp_JP.php │ │ │ │ ├── en_EN.php │ │ │ │ ├── de_DE.php │ │ │ │ └── es_ES.php │ │ └── geshi │ │ │ └── geshi │ │ │ ├── text.php │ │ │ ├── robots.php │ │ │ ├── gettext.php │ │ │ ├── bnf.php │ │ │ ├── cfdg.php │ │ │ ├── ocaml-brief.php │ │ │ ├── idl.php │ │ │ ├── ini.php │ │ │ ├── scala.php │ │ │ ├── xorg_conf.php │ │ │ ├── div.php │ │ │ ├── mxml.php │ │ │ ├── ada.php │ │ │ ├── vb.php │ │ │ ├── abap.php │ │ │ ├── caddcl.php │ │ │ ├── m68k.php │ │ │ ├── z80.php │ │ │ ├── xml.php │ │ │ ├── pic16.php │ │ │ ├── apt_sources.php │ │ │ ├── sql.php │ │ │ ├── oobas.php │ │ │ ├── smalltalk.php │ │ │ ├── lisp.php │ │ │ ├── javascript.php │ │ │ ├── vhdl.php │ │ │ ├── io.php │ │ │ ├── prolog.php │ │ │ ├── pascal.php │ │ │ ├── make.php │ │ │ ├── applescript.php │ │ │ └── c.php │ └── site │ │ ├── Ajax.php │ │ ├── FileHelper.php │ │ └── RevisionCheck.php ├── js │ └── lib │ │ ├── suckerfish │ │ └── sfhover.js │ │ ├── libman │ │ └── libman.js │ │ ├── swfaddress │ │ └── swfaddress-optimizer.js │ │ └── cookies │ │ └── cookies.js └── css │ ├── ie7.css │ ├── ie6.css │ └── thickbox.css ├── docs ├── VirtualHosts.md ├── Installation.md └── Password-Protection.md ├── README.md └── index.php /_includes/img/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/file.gif -------------------------------------------------------------------------------- /_includes/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/favicon.ico -------------------------------------------------------------------------------- /_includes/img/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/folder.gif -------------------------------------------------------------------------------- /_includes/img/slash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/slash.gif -------------------------------------------------------------------------------- /_includes/img/external.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/external.gif -------------------------------------------------------------------------------- /_includes/img/site_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/site_icon.gif -------------------------------------------------------------------------------- /_includes/img/bullet_down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/bullet_down.gif -------------------------------------------------------------------------------- /_includes/img/bullet_right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/bullet_right.gif -------------------------------------------------------------------------------- /_includes/img/option_selected.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/option_selected.gif -------------------------------------------------------------------------------- /_includes/img/options_view_grid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/options_view_grid.gif -------------------------------------------------------------------------------- /_includes/img/options_view_list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/options_view_list.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/file.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/folder.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/slash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/slash.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/external.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/external.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/file.gif -------------------------------------------------------------------------------- /_includes/img/thickbox/macFFBgHack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/thickbox/macFFBgHack.png -------------------------------------------------------------------------------- /_includes/skins/dark/img/bullet_down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/bullet_down.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/site_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/site_icon.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/folder.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/slash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/slash.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/bullet_right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/bullet_right.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/external.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/external.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/site_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/site_icon.gif -------------------------------------------------------------------------------- /_includes/img/thickbox/loadingAnimation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/thickbox/loadingAnimation.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/option_selected.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/option_selected.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/bullet_down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/bullet_down.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/bullet_right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/bullet_right.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_avi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_avi.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_csv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_csv.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_doc.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_fla.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_fla.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_flv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_flv.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_gif.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_jpg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_jpg.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_mdb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_mdb.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_mov.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_mov.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_pdf.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_ppt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_ppt.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_sql.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_sql.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_swf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_swf.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_txt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_txt.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_wav.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_wav.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_xls.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_xls.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_xxx.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_xxx.gif -------------------------------------------------------------------------------- /_includes/img/mimetypes/cms_assetimg_sm_zip.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/img/mimetypes/cms_assetimg_sm_zip.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/options_view_grid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/options_view_grid.gif -------------------------------------------------------------------------------- /_includes/skins/dark/img/options_view_list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/dark/img/options_view_list.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/option_selected.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/option_selected.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/options_view_grid.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/options_view_grid.gif -------------------------------------------------------------------------------- /_includes/skins/standard/img/options_view_list.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/orangespaceman/boris/master/_includes/skins/standard/img/options_view_list.gif -------------------------------------------------------------------------------- /_includes/php/lib/php4/singleton.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_includes/js/lib/suckerfish/sfhover.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Suckerfish hover - IE6 fix 3 | * http://htmldog.com/articles/suckerfish/dropdowns/ 4 | */ 5 | sfHover = function(id, tag) { 6 | var sfEls = document.getElementById(id).getElementsByTagName(tag); 7 | for (var i=0; i 10 | 11 | Alias /boris "D:/path/to/boris" 12 | 13 | AllowOverride AuthConfig 14 | Order allow,deny 15 | Allow from all 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /_includes/css/ie6.css: -------------------------------------------------------------------------------- 1 | /* 2 | * ie6.css - css styles for Win IE < 7 3 | * 4 | */ 5 | 6 | /* 7 | * html elements 8 | */ 9 | /* 10 | * headings 11 | */ 12 | 13 | /* 14 | * forms 15 | */ 16 | 17 | /* 18 | * text 19 | */ 20 | 21 | /* 22 | * clearfix 23 | */ 24 | .clearfix { height : 1%;} 25 | 26 | /* 27 | * global ids / areas 28 | */ 29 | /* 30 | * options - dropdown widths 31 | */ 32 | #options ul li#options-view ul { 33 | width : 70px; 34 | } 35 | 36 | #options ul li#options-tabs ul { 37 | width : 60px; 38 | } 39 | 40 | #options ul li#options-transitions ul { 41 | width : 90px; 42 | } 43 | 44 | #options ul li#options-colourscheme ul { 45 | width : 110px; 46 | } 47 | 48 | /* 49 | * page specific styles 50 | */ 51 | -------------------------------------------------------------------------------- /docs/Installation.md: -------------------------------------------------------------------------------- 1 | # How to get Boris running on your machine 2 | 3 | It should be straightforward to get Boris running on your local machine. Download the latest set of files from Github. 4 | 5 | You will see a single file called _index.php_ and a directory called _includes_. These can be placed directly in the site root. Alternatively, they can be placed within a subdirectory. If you choose to do this, you just need to create a new index.php file in the root, and put in the following few lines of code: 6 | 7 | 8 | 23 | 24 | ## System Requirements 25 | 26 | Boris should work with most flavours of PHP4/5 -------------------------------------------------------------------------------- /_includes/php/site/Ajax.php: -------------------------------------------------------------------------------- 1 | 0)) { 16 | foreach($_GET as $key => $value) { 17 | $args[$key] = $value; 18 | } 19 | } 20 | 21 | if (isset($_POST) && count($_POST > 0)) { 22 | foreach($_POST as $key => $value) { 23 | $args[$key] = $value; 24 | } 25 | } 26 | 27 | 28 | // initialise Boris 29 | include_once("./Boris.php"); 30 | $boris = new Boris(); 31 | 32 | // retrieve the Ajax request 33 | $return = $boris->$functionname($args); 34 | 35 | // return the results, in JSON format 36 | if ($return !== false) { 37 | echo json_encode($return); 38 | } 39 | ?> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | boris is a PHP-based localhost browser for the Apache Web Server, allowing you to quickly browse through your local projects. 4 | 5 | It has been built with jquery and swfaddress to allow you to move around directories on your local server easily. 6 | 7 | ## Quick installation 8 | 9 | Check the files out of Git into a subdirectory of your server root. In the server root, create a new index.php file, and copy in the following text, updating the value for PATH: 10 | 11 | 25 | 26 | *In the PATH definition, ensure you have the ./ before the path, and no trailing slash* 27 | 28 | For slightly longer instructions see the installation instructions in the docs folder 29 | 30 | 31 | ## Bookmarklet 32 | 33 | You can now add a bookmarklet to your browser by dragging a link to your bookmark bar. When looking at any page, site or file on your local server, click on the Borisify link to open that directory through Boris. 34 | -------------------------------------------------------------------------------- /_includes/php/lib/localization/languages/jp_JP.php: -------------------------------------------------------------------------------- 1 | languages['jp_JP'] = Array( 12 | 'metadata' => Array( 13 | 'meta_name' => "日本語", 14 | 'meta_locale' => "jp_JP", 15 | 'meta_windowslocale' => "jp_JP" 16 | ), 17 | 18 | /** 19 | * Set strings from here onwards... 20 | */ 21 | 'strings' => Array( 22 | 'metadescription' => "ボリス: すべてのローカルウェブサーバーにあるドキュメントを簡単に表示することができますローカルホストブラウザ", 23 | 'layout' => "設計", 24 | 'grid' => "グリッド", 25 | 'list' => "リスト", 26 | 'tabs' => "タブ", 27 | 'on' => "オン", 28 | 'off' => "オフ", 29 | 'transitions' => "アニメーション", 30 | 'normal' => "正常", 31 | 'fast' => "速い", 32 | 'colour_scheme' => "カラースキーム", 33 | 'language' => "言語", 34 | 'launch_site' => "オープンサイト", 35 | 'view_code' => "コードを見て", 36 | 'server' => "サーバー", 37 | 'file' => "ファイル", 38 | 'files' => "ファイル", 39 | 'directory' => "フォルダ", 40 | 'borislinkcopy' => "公式ボリスのGoogle Codeのホームページを訪問する", 41 | 'localhost_browser' => "ローカルホストブラウザ", 42 | 'home' => "ホーム", 43 | 'running_offline' => "オフラインで作用", 44 | 'preview_image' => "プレビュー画像", 45 | 'update_available' => "利用更新" 46 | ) 47 | ); 48 | 49 | ?> -------------------------------------------------------------------------------- /_includes/php/site/FileHelper.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_includes/php/lib/localization/languages/en_EN.php: -------------------------------------------------------------------------------- 1 | languages['en_EN'] = Array( 12 | 'metadata' => Array( 13 | 'meta_name' => "English", 14 | 'meta_locale' => "en_EN", 15 | 'meta_windowslocale' => "en_EN" 16 | ), 17 | 18 | /** 19 | * Set strings from here onwards... 20 | */ 21 | 'strings' => Array( 22 | 'metadescription' => "Boris: A Localhost browser that enables you to quickly look through all the files on your local web server", 23 | 'layout' => "Layout", 24 | 'grid' => "Grid", 25 | 'list' => "List", 26 | 'tabs' => "Tabs", 27 | 'on' => "On", 28 | 'off' => "Off", 29 | 'transitions' => "Transitions", 30 | 'normal' => "Normal", 31 | 'fast' => "Fast", 32 | 'colour_scheme' => "Colour Scheme", 33 | 'language' => "Language", 34 | 'launch_site' => "Launch site", 35 | 'view_code' => "View code", 36 | 'server' => "Server", 37 | 'file' => "file", 38 | 'files' => "files", 39 | 'directory' => "directory", 40 | 'borislinkcopy' => "visit the official Boris homepage on Google Code", 41 | 'localhost_switch' => "Switch to IP address: ", 42 | 'localhost_browser' => "Localhost Browser", 43 | 'home' => "home", 44 | 'running_offline' => "running offline", 45 | 'preview_image' => "preview image", 46 | 'update_available' => "update available from Google Code SVN" 47 | ) 48 | ); 49 | 50 | ?> -------------------------------------------------------------------------------- /_includes/php/lib/localization/languages/de_DE.php: -------------------------------------------------------------------------------- 1 | languages['de_DE'] = Array( 12 | 'metadata' => Array( 13 | 'meta_name' => "Deutsch", 14 | 'meta_locale' => "de_DE", 15 | 'meta_windowslocale' => "de_DE" 16 | ), 17 | 18 | /** 19 | * Set strings from here onwards... 20 | */ 21 | 'strings' => Array( 22 | 'metadescription' => "Boris: Ein Localhost Browser der es Ihnen erlaubt, schnell und einfach Einsicht in die Dateistruktur Ihres lokalen Webservers zu bekommen", 23 | 'layout' => "Layout", 24 | 'grid' => "Raster", 25 | 'list' => "Liste", 26 | 'tabs' => "Tabs", 27 | 'on' => "An", 28 | 'off' => "Aus", 29 | 'transitions' => "Übergänge", 30 | 'normal' => "Normal", 31 | 'fast' => "Schnell", 32 | 'colour_scheme' => "Farb-Schema", 33 | 'language' => "Sprache", 34 | 'launch_site' => "Seite öffnen", 35 | 'view_code' => "Code anzeigen", 36 | 'server' => "Server", 37 | 'file' => "Datei", 38 | 'files' => "Dateien", 39 | 'directory' => "Verzeichnis", 40 | 'borislinkcopy' => "Besuchen Sie die offizielle Boris-Homepage auf Google Code", 41 | 'localhost_browser' => "Localhost Browser", 42 | 'home' => "Home", 43 | 'running_offline' => "läuft offline", 44 | 'preview_image' => "Bild-Vorschau", 45 | 'update_available' => "es steht ein Update auf Google Code SVN bereit" 46 | ) 47 | ); 48 | 49 | ?> -------------------------------------------------------------------------------- /_includes/php/lib/localization/languages/es_ES.php: -------------------------------------------------------------------------------- 1 | languages['es_ES'] = Array( 12 | 'metadata' => Array( 13 | 'meta_name' => "Español", 14 | 'meta_locale' => "es_ES", 15 | 'meta_windowslocale' => "esp_esp" 16 | ), 17 | 18 | /** 19 | * Set strings from here onwards... 20 | */ 21 | 'strings' => Array( 22 | 'metadescription' => "Boris: Un navegador local que te permite rapidamente ver todos los archivos de tu servidor local", 23 | 'layout' => "Distribucion", 24 | 'grid' => "Cuadricula", 25 | 'list' => "Listado", 26 | 'tabs' => "Pestañas", 27 | 'on' => "Encendido", 28 | 'off' => "Apagado", 29 | 'transitions' => "Transiciones", 30 | 'normal' => "Normal", 31 | 'fast' => "Rapido", 32 | 'colour_scheme' => "Esquema de color", 33 | 'language' => "Idioma", 34 | 'launch_site' => "Lanzar sitio", 35 | 'view_code' => "Ver codigo", 36 | 'server' => "Servidor", 37 | 'file' => "archivo", 38 | 'files' => "archivos", 39 | 'directory' => "directorio", 40 | 'borislinkcopy' => "visita la pãgina oficial de Boris en Google Code", 41 | 'localhost_browser' => "Navegador Local", 42 | 'home' => "Inicio", 43 | 'running_offline' => "corriendo offline", 44 | 'preview_image' => "ver imagen", 45 | 'update_available' => "actualizaciõn disponible de Google Code SVN" 46 | ) 47 | ); 48 | 49 | ?> -------------------------------------------------------------------------------- /_includes/js/lib/libman/libman.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Libman: a Library Manager tool for JS 3 | * Includes js files and calculates the path to the web site root, for file inclusion 4 | * 5 | * @author julio ruiz - 6 | * @author michael allanson - 7 | * @author richard hallows - richardhallows.com 8 | */ 9 | LibMan = { 10 | 11 | // String : The path to libman.js 12 | path: null, 13 | 14 | 15 | /** 16 | * Calculates and sets the relative path to libman.js 17 | * 18 | * @return void 19 | */ 20 | calculatePath: function() { 21 | // condition : is object var already set? 22 | if (this.path == null) { 23 | // get path from LibraryManager javascript include string 24 | var libman = document.getElementById("libman"); 25 | if (!libman) return false; 26 | 27 | // remove the filename before setting the path 28 | this.path = libman.src.replace(/libman\.js(\?.*)?$/,''); 29 | } 30 | }, 31 | 32 | /** 33 | * Includes a js file 34 | * 35 | * @param array libFiles paths to files to include, relative to libman.js 36 | * 37 | * @return void 38 | */ 39 | require: function(libFiles) { 40 | // insert each script 41 | for (var i=0; i < libFiles.length; i++) { 42 | // match strings starting with 'http://' 43 | var pattern = /^http:\/\//; 44 | 45 | // if libFiles[i] matches pattern, path is absolute, otherwise it's relative 46 | libFiles[i] = (pattern.test(libFiles[i])) ? libFiles[i] : this.path + libFiles[i]; 47 | document.write(''); 48 | }; 49 | } 50 | } 51 | 52 | 53 | // on DOM ready 54 | $(function() { 55 | 56 | // calculate file path 57 | LibMan.calculatePath(); 58 | 59 | // require any additional files 60 | /* 61 | LibMan.require([ 62 | LibMan.path + "/file.js", 63 | LibMan.path + "/file.js" 64 | ]); 65 | */ 66 | }); 67 | 68 | 69 | // stop firebug console.log errors 70 | if(!window.console) { window.console = {} }; 71 | if(!window.console.log) { window.console.log = function(){} }; -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/text.php: -------------------------------------------------------------------------------- 1 | 'Text', 48 | 'COMMENT_SINGLE' => array(), 49 | 'COMMENT_MULTI' => array(), 50 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 51 | 'QUOTEMARKS' => array(), 52 | 'ESCAPE_CHAR' => '', 53 | 'KEYWORDS' => array(), 54 | 'SYMBOLS' => array(), 55 | 'CASE_SENSITIVE' => array( 56 | GESHI_COMMENTS => false 57 | ), 58 | 'STYLES' => array( 59 | 'KEYWORDS' => array(), 60 | 'COMMENTS' => array(), 61 | 'ESCAPE_CHAR' => array(), 62 | 'BRACKETS' => array(), 63 | 'STRINGS' => array(), 64 | 'NUMBERS' => array(), 65 | 'METHODS' => array(), 66 | 'SYMBOLS' => array(), 67 | 'SCRIPT' => array(), 68 | 'REGEXPS' => array() 69 | ), 70 | 'URLS' => array(), 71 | 'OOLANG' => false, 72 | 'OBJECT_SPLITTERS' => array(), 73 | 'REGEXPS' => array(), 74 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 75 | 'SCRIPT_DELIMITERS' => array(), 76 | 'HIGHLIGHT_STRICT_BLOCK' => array(), 77 | 'PARSER_CONTROL' => array( 78 | 'ENABLE_FLAGS' => array( 79 | 'ALL' => GESHI_NEVER 80 | ), 81 | ) 82 | ); 83 | 84 | ?> 85 | -------------------------------------------------------------------------------- /_includes/js/lib/swfaddress/swfaddress-optimizer.js: -------------------------------------------------------------------------------- 1 | /** * SWFAddress 2.2: Deep linking for Flash and Ajax * * SWFAddress is (c) 2006-2008 Rostislav Hristov and contributors * This software is released under the MIT License * * Uses code from SWFObject 2.0 * SWFObject is (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis * */ if(typeof asual=="undefined"){asual={};}if(typeof asual.swfaddress=="undefined"){asual.swfaddress={};}asual.swfaddress.SWFAddressOptimizer=new function(){var _1="object",_2="Shockwave Flash",_3="ShockwaveFlash.ShockwaveFlash",_4="application/x-shockwave-flash",_5="undefined",_6=location.href.indexOf("#"),_7,_n=navigator,_9={};var _a=function(_b){var rv=_b.toString().split(".");for(var i=0;i<3;i++){rv[i]=typeof rv[i]!=_5?parseInt(rv[i]):0;}var pv=[0,0,0];var d=null;if(typeof _n.plugins!=_5&&typeof _n.plugins[_2]==_1){d=_n.plugins[_2].description;if(d&&!(typeof _n.mimeTypes!=_5&&_n.mimeTypes[_4]&&!_n.mimeTypes[_4].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");pv[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);pv[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);pv[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0;}}else{if(typeof window.ActiveXObject!=_5){var a=null;var _11=false;try{a=new ActiveXObject(_3+".7");}catch(e){try{a=new ActiveXObject(_3+".6");pv=[6,0,21];a.AllowScriptAccess="always";}catch(e){if(pv[0]==6){_11=true;}}if(!_11){try{a=new ActiveXObject(_3);}catch(e){}}}if(!_11&&typeof a==_1){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");pv=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}catch(e){}}}}return (pv[0]>rv[0]||(pv[0]==rv[0]&&pv[1]>rv[1])||(pv[0]==rv[0]&&pv[1]==rv[1]&&pv[2]>=rv[2]))?true:false;};var _12=function(_13,_14){var _15=location.href.split(location.hostname)[1].replace(_14,"");if(_13!="/"&&(_6==-1||_6==location.href.length-1)&&(_15!=""&&_15!="/")){var xhr;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}else{if(window.ActiveXObject){try{try{xhr=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xhr=new ActiveXObject("Microsoft.XMLHTTP");}}catch(e){}}}if(xhr){xhr.open("get",((typeof _14!=_5)?_14:"")+"/?"+_13,false);xhr.setRequestHeader("Content-Type","application/x-swfaddress");xhr.send("");eval(xhr.responseText);}}};var _17=function(el){for(var i=0,l=el.childNodes.length,s;i-1){var _1d,_1e=_7.substr(qi+1).split("&");for(var i=0,p;p=_1e[i];i++){_1d=p.split("=");if(/^(flash|base|swfaddress)$/.test(_1d[0])){_9[_1d[0]]=unescape(_1d[1]);}}}if(typeof _9.flash!=_5){if(_a(_9.flash)){_12(_9.swfaddress,_9.base);}else{if(_6!=-1){location.replace(location.href.replace(/#(\/)?/,""));}}}else{_12(_9.swfaddress,_9.base);}this.toString=function(){return "[class SWFAddressOptimizer]";};}; -------------------------------------------------------------------------------- /_includes/php/site/RevisionCheck.php: -------------------------------------------------------------------------------- 1 | localRevision = $this->getLocalRevision(); 47 | 48 | //Language strings 49 | //$this -> strings = Localization::getInstance(); 50 | $this -> strings =& singleton('Localization'); 51 | } 52 | 53 | 54 | /** 55 | * Check the revision number 56 | * 57 | * @return string notice whether you are running the latest version of Boris 58 | */ 59 | function checkRevision() 60 | { 61 | // retreive the current number from Google Code 62 | $this->liveRevision = $this->getLiveRevision(); 63 | 64 | // ensure that you could open the google code URL and access the latest revision number 65 | if (!is_int($this->liveRevision)) { 66 | 67 | return $this->localRevision . " (".$this -> strings -> getString('running_offline').")"; 68 | 69 | } else { 70 | 71 | // condition : return a string based upon whether it is up-to-date or not 72 | if ($this->localRevision == $this->liveRevision) { 73 | return $this->localRevision; 74 | } else { 75 | return $this->localRevision . " (".$this -> strings -> getString('update_available').")"; 76 | } 77 | } 78 | 79 | // debug only 80 | //echo "Local Revision: " . $this->localRevision . ", Live Revision: ". $this->liveRevision; 81 | } 82 | 83 | 84 | 85 | /** 86 | * Get the local Boris SVN revision number 87 | * @return int the local revision number 88 | * @access private 89 | */ 90 | function getLocalRevision() { 91 | return intval(substr($this->localRevisionString, 6, -2)); 92 | } 93 | 94 | 95 | 96 | /** 97 | * Get the live Boris SVN revision number 98 | * @return int the live revision number 99 | * @access private 100 | */ 101 | function getLiveRevision() { 102 | return false; 103 | } 104 | } 105 | ?> -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/robots.php: -------------------------------------------------------------------------------- 1 | 'robots.txt', 37 | 'COMMENT_SINGLE' => array(1 => '#'), 38 | 'COMMENT_MULTI' => array(), 39 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 40 | 'QUOTEMARKS' => array(), 41 | 'ESCAPE_CHAR' => '', 42 | 'KEYWORDS' => array( 43 | 1 => array( 44 | 'User-agent', 'Disallow' 45 | ) 46 | ), 47 | 'SYMBOLS' => array( 48 | ':' 49 | ), 50 | 'CASE_SENSITIVE' => array( 51 | GESHI_COMMENTS => false, 52 | 1 => true 53 | ), 54 | 'STYLES' => array( 55 | 'KEYWORDS' => array( 56 | 1 => 'color: #b1b100;' 57 | ), 58 | 'COMMENTS' => array( 59 | 1 => 'color: #808080; font-style: italic;', 60 | ), 61 | 'ESCAPE_CHAR' => array( 62 | 0 => 'color: #000099; font-weight: bold;' 63 | ), 64 | 'BRACKETS' => array( 65 | 0 => 'color: #66cc66;' 66 | ), 67 | 'STRINGS' => array( 68 | 0 => 'color: #ff0000;' 69 | ), 70 | 'NUMBERS' => array( 71 | 0 => 'color: #cc66cc;' 72 | ), 73 | 'METHODS' => array( 74 | ), 75 | 'SYMBOLS' => array( 76 | 0 => 'color: #66cc66;' 77 | ), 78 | 'REGEXPS' => array( 79 | ), 80 | 'SCRIPT' => array( 81 | ) 82 | ), 83 | 'URLS' => array( 84 | 1 => 'http://www.robotstxt.org/wc/norobots.html' 85 | ), 86 | 'OOLANG' => false, 87 | 'OBJECT_SPLITTERS' => array( 88 | ), 89 | 'REGEXPS' => array( 90 | ), 91 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 92 | 'SCRIPT_DELIMITERS' => array( 93 | ), 94 | 'HIGHLIGHT_STRICT_BLOCK' => array( 95 | ) 96 | ); 97 | 98 | ?> 99 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/gettext.php: -------------------------------------------------------------------------------- 1 | 'GNU Gettext', 41 | 'COMMENT_SINGLE' => array('#:', '#.', '#,', '#|', '#'), 42 | 'COMMENT_MULTI' => array(), 43 | 'COMMENT_REGEXP' => array(), 44 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 45 | 'QUOTEMARKS' => array("'", '"'), 46 | 'ESCAPE_CHAR' => '\\', 47 | 'KEYWORDS' => array( 48 | 1 => array('msgctxt', 'msgid_plural', 'msgid', 'msgstr'), 49 | ), 50 | 'SYMBOLS' => array(), 51 | 'CASE_SENSITIVE' => array( 52 | GESHI_COMMENTS => false, 53 | 1 => true, 54 | ), 55 | 'STYLES' => array( 56 | 'KEYWORDS' => array( 57 | 1 => 'color: #000000; font-weight: bold;' 58 | ), 59 | 'COMMENTS' => array( 60 | 0 => 'color: #000099;', 61 | 1 => 'color: #000099;', 62 | 2 => 'color: #000099;', 63 | 3 => 'color: #006666;', 64 | 4 => 'color: #666666; font-style: italic;', 65 | ), 66 | 'ESCAPE_CHAR' => array( 67 | 0 => 'color: #000099; font-weight: bold;' 68 | ), 69 | 'STRINGS' => array( 70 | 0 => 'color: #ff0000;' 71 | ), 72 | 'REGEXPS' => array(), 73 | 'SYMBOLS' => array(), 74 | 'NUMBERS' => array( 75 | 0 => 'color: #000099;' 76 | ), 77 | 'METHODS' => array(), 78 | 'SCRIPT' => array(), 79 | 'BRACKETS' => array( 80 | 0 => 'color: #000099;' 81 | ), 82 | ), 83 | 'URLS' => array( 84 | 1 => '' 85 | ), 86 | 'OOLANG' => false, 87 | 'OBJECT_SPLITTERS' => array(), 88 | 'REGEXPS' => array(), 89 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 90 | 'SCRIPT_DELIMITERS' => array( 91 | ), 92 | 'HIGHLIGHT_STRICT_BLOCK' => array( 93 | ), 94 | 'TAB_WIDTH' => 4, 95 | ); 96 | 97 | ?> 98 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/bnf.php: -------------------------------------------------------------------------------- 1 | 'bnf', 48 | 'COMMENT_SINGLE' => array(), 49 | 'COMMENT_MULTI' => array(), 50 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 51 | 'QUOTEMARKS' => array('"', "'"), 52 | 'ESCAPE_CHAR' => '', 53 | 'KEYWORDS' => array(), 54 | 'SYMBOLS' => array( 55 | '(', ')', '<', '>', '::=', '|' 56 | ), 57 | 'CASE_SENSITIVE' => array( 58 | //GESHI_COMMENTS => false 59 | ), 60 | 'STYLES' => array( 61 | 'KEYWORDS' => array(), 62 | 'COMMENTS' => array( 63 | ), 64 | 'ESCAPE_CHAR' => array( 65 | 0 => '' 66 | ), 67 | 'BRACKETS' => array( 68 | 0 => '' 69 | ), 70 | 'STRINGS' => array( 71 | 0 => 'color: #a00;', 72 | 1 => 'color: #a00;' 73 | ), 74 | 'NUMBERS' => array( 75 | 0 => '' 76 | ), 77 | 'METHODS' => array( 78 | 0 => '' 79 | ), 80 | 'SYMBOLS' => array( 81 | 0 => 'color: #000066; font-weight: bold;', // Unused 82 | ), 83 | 'REGEXPS' => array( 84 | 0 => 'color: #007;', 85 | ), 86 | 'SCRIPT' => array( 87 | 0 => '' 88 | ) 89 | ), 90 | 'URLS' => array(), 91 | 'OOLANG' => false, 92 | 'OBJECT_SPLITTERS' => array(), 93 | 'REGEXPS' => array( 94 | //terminal symbols 95 | 0 => array( 96 | GESHI_SEARCH => '(<)([^&]+?)(>)', 97 | GESHI_REPLACE => '\\2', 98 | GESHI_MODIFIERS => '', 99 | GESHI_BEFORE => '\\1', 100 | GESHI_AFTER => '\\3' 101 | ), 102 | ), 103 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 104 | 'SCRIPT_DELIMITERS' => array( 105 | ), 106 | 'HIGHLIGHT_STRICT_BLOCK' => array( 107 | ) 108 | ); 109 | 110 | ?> 111 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/cfdg.php: -------------------------------------------------------------------------------- 1 | 6 | * Copyright: (c) 2006 John Horigan http://www.ozonehouse.com/john/ 7 | * Release Version: 1.0.8.1 8 | * Date Started: 2006/03/11 9 | * 10 | * CFDG language file for GeSHi. 11 | * 12 | * CHANGES 13 | * ------- 14 | * 2006/03/11 (1.0.0) 15 | * - First Release 16 | * 17 | * TODO (updated 2006/03/11) 18 | * ------------------------- 19 | * 20 | ************************************************************************************* 21 | * 22 | * This file is part of GeSHi. 23 | * 24 | * GeSHi is free software; you can redistribute it and/or modify 25 | * it under the terms of the GNU General Public License as published by 26 | * the Free Software Foundation; either version 2 of the License, or 27 | * (at your option) any later version. 28 | * 29 | * GeSHi is distributed in the hope that it will be useful, 30 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 31 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32 | * GNU General Public License for more details. 33 | * 34 | * You should have received a copy of the GNU General Public License 35 | * along with GeSHi; if not, write to the Free Software 36 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 37 | * 38 | ************************************************************************************/ 39 | 40 | $language_data = array ( 41 | 'LANG_NAME' => 'CFDG', 42 | 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 43 | 'COMMENT_MULTI' => array('/*' => '*/'), 44 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 45 | 'QUOTEMARKS' => array("'", '"'), 46 | 'ESCAPE_CHAR' => '', 47 | 'KEYWORDS' => array( 48 | 1 => array( 49 | 'include', 'startshape', 'rule', 'background' 50 | ), 51 | 2 => array( 52 | 'SQUARE', 'CIRCLE', 'TRIANGLE', 53 | ), 54 | 3 => array( 55 | 'b','brightness','h','hue','sat','saturation', 56 | 'a','alpha','x','y','z','s','size', 57 | 'r','rotate','f','flip','skew','xml_set_object' 58 | ) 59 | ), 60 | 'SYMBOLS' => array( 61 | '[', ']', '{', '}', '*', '|' 62 | ), 63 | 'CASE_SENSITIVE' => array( 64 | GESHI_COMMENTS => false, 65 | 1 => false, 66 | 2 => false, 67 | 3 => false, 68 | ), 69 | 'STYLES' => array( 70 | 'KEYWORDS' => array( 71 | 1 => 'color: #717100;', 72 | 2 => 'color: #000000; font-weight: bold;', 73 | 3 => 'color: #006666;' 74 | ), 75 | 'COMMENTS' => array( 76 | 1 => 'color: #808080; font-style: italic;', 77 | 2 => 'color: #808080; font-style: italic;', 78 | 'MULTI' => 'color: #808080; font-style: italic;' 79 | ), 80 | 'ESCAPE_CHAR' => array( 81 | 0 => 'color: #000099; font-weight: bold;' 82 | ), 83 | 'BRACKETS' => array( 84 | 0 => 'color: #66cc66;' 85 | ), 86 | 'STRINGS' => array( 87 | 0 => 'color: #ff0000;' 88 | ), 89 | 'NUMBERS' => array( 90 | 0 => 'color: #cc66cc;' 91 | ), 92 | 'METHODS' => array( 93 | 1 => 'color: #006600;', 94 | 2 => 'color: #006600;' 95 | ), 96 | 'SYMBOLS' => array( 97 | 0 => 'color: #66cc66;' 98 | ), 99 | 'REGEXPS' => array( 100 | ), 101 | 'SCRIPT' => array( 102 | 0 => '', 103 | 1 => '', 104 | 2 => '', 105 | 3 => '' 106 | ) 107 | ), 108 | 'URLS' => array( 109 | 1 => '', 110 | 2 => '', 111 | 3 => '' 112 | ), 113 | 'OOLANG' => false, 114 | 'OBJECT_SPLITTERS' => array(), 115 | 'REGEXPS' => array( 116 | ), 117 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 118 | 'SCRIPT_DELIMITERS' => array( 119 | ), 120 | 'HIGHLIGHT_STRICT_BLOCK' => array( 121 | ) 122 | ); 123 | 124 | ?> 125 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/ocaml-brief.php: -------------------------------------------------------------------------------- 1 | 'OCaml (brief)', 42 | 'COMMENT_SINGLE' => array(), 43 | 'COMMENT_MULTI' => array('(*' => '*)'), 44 | 'CASE_KEYWORDS' => 0, 45 | 'QUOTEMARKS' => array('"'), 46 | 'ESCAPE_CHAR' => "", 47 | 'KEYWORDS' => array( 48 | /* main OCaml keywords */ 49 | 1 => array( 50 | 'and', 'as', 'asr', 'begin', 'class', 'closed', 'constraint', 'do', 'done', 'downto', 'else', 51 | 'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor', 52 | 'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor', 53 | 'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser', 54 | 'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then', 55 | 'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with' 56 | ) 57 | ), 58 | /* highlighting symbols is really important in OCaml */ 59 | 'SYMBOLS' => array( 60 | ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+', 61 | '>', '<', '(', ')', '[', ']', '&', '|', '#', "'" 62 | ), 63 | 'CASE_SENSITIVE' => array( 64 | GESHI_COMMENTS => false, 65 | 1 => false, 66 | ), 67 | 'STYLES' => array( 68 | 'KEYWORDS' => array( 69 | 1 => 'color: #06c; font-weight: bold;' /* nice blue */ 70 | ), 71 | 'COMMENTS' => array( 72 | 'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */ 73 | ), 74 | 'ESCAPE_CHAR' => array( 75 | ), 76 | 'BRACKETS' => array( 77 | 0 => 'color: #6c6;' 78 | ), 79 | 'STRINGS' => array( 80 | 0 => 'color: #3cb371;' /* nice green */ 81 | ), 82 | 'NUMBERS' => array( 83 | 0 => 'color: #c6c;' /* pink */ 84 | ), 85 | 'METHODS' => array( 86 | 1 => 'color: #060;' /* dark green */ 87 | ), 88 | 'REGEXPS' => array( 89 | ), 90 | 'SYMBOLS' => array( 91 | 0 => 'color: #a52a2a;' /* maroon */ 92 | ), 93 | 'SCRIPT' => array( 94 | ) 95 | ), 96 | 'URLS' => array( 97 | 1 => '', 98 | ), 99 | 'OOLANG' => true, 100 | 'OBJECT_SPLITTERS' => array( 101 | 1 => '.' 102 | ), 103 | 'REGEXPS' => array( 104 | ), 105 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 106 | 'SCRIPT_DELIMITERS' => array( 107 | ), 108 | 'HIGHLIGHT_STRICT_BLOCK' => array( 109 | ) 110 | ); 111 | 112 | ?> 113 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/idl.php: -------------------------------------------------------------------------------- 1 | 'Uno Idl', 38 | 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 39 | 'COMMENT_MULTI' => array('/*' => '*/'), 40 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 41 | 'QUOTEMARKS' => array("'", '"'), 42 | 'ESCAPE_CHAR' => '\\', 43 | 'KEYWORDS' => array( 44 | 1 => array( 45 | 'published', 'get', 'set', 'service', 'singleton', 'type', 'module', 'interface', 'struct', 46 | 'const', 'constants', 'exception', 'enum', 'raises', 'typedef' 47 | ), 48 | 2 => array( 49 | 'bound', 'maybeambiguous', 'maybedefault', 'maybevoid', 'oneway', 'optional', 50 | 'readonly', 'in', 'out', 'inout', 'attribute', 'transient', 'removable' 51 | ), 52 | 3 => array( 53 | 'True', 'False', 'TRUE', 'FALSE' 54 | ), 55 | 4 => array( 56 | 'string', 'long', 'byte', 'hyper', 'boolean', 'any', 'char', 'double', 57 | 'void', 'sequence', 'unsigned' 58 | ), 59 | ), 60 | 'SYMBOLS' => array( 61 | '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ';', '...' 62 | ), 63 | 'CASE_SENSITIVE' => array( 64 | GESHI_COMMENTS => false, 65 | 1 => true, 66 | 2 => true, 67 | 3 => true, 68 | 4 => true, 69 | ), 70 | 'STYLES' => array( 71 | 'KEYWORDS' => array( 72 | 1 => 'color: #990078; font-weight: bold', 73 | 2 => 'color: #36dd1c;', 74 | 3 => 'color: #990078; font-weight: bold', 75 | 4 => 'color: #0000ec;' 76 | ), 77 | 'COMMENTS' => array( 78 | 1 => 'color: #3f7f5f;', 79 | 2 => 'color: #808080;', 80 | 'MULTI' => 'color: #4080ff; font-style: italic;' 81 | ), 82 | 'ESCAPE_CHAR' => array( 83 | 0 => 'color: #666666; font-weight: bold;' 84 | ), 85 | 'BRACKETS' => array( 86 | 0 => 'color: #808080;' 87 | ), 88 | 'STRINGS' => array( 89 | 0 => 'color: #ff0000;' 90 | ), 91 | 'NUMBERS' => array( 92 | 0 => 'color: #0000dd;' 93 | ), 94 | 'METHODS' => array( 95 | ), 96 | 'SYMBOLS' => array( 97 | 0 => 'color: #66cc66;' 98 | ), 99 | 'REGEXPS' => array( 100 | ), 101 | 'SCRIPT' => array( 102 | ) 103 | ), 104 | 'URLS' => array( 105 | 1 => '', 106 | 2 => '', 107 | 3 => '', 108 | 4 => '' 109 | ), 110 | 'OOLANG' => false, 111 | 'OBJECT_SPLITTERS' => array( 112 | 1 => '::' 113 | ), 114 | 'REGEXPS' => array( 115 | ), 116 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 117 | 'SCRIPT_DELIMITERS' => array( 118 | ), 119 | 'HIGHLIGHT_STRICT_BLOCK' => array( 120 | ) 121 | ); 122 | 123 | ?> 124 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/ini.php: -------------------------------------------------------------------------------- 1 | 'INI', 47 | 'COMMENT_SINGLE' => array(0 => ';'), 48 | 'COMMENT_MULTI' => array(), 49 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 50 | 'QUOTEMARKS' => array('"'), 51 | 'ESCAPE_CHAR' => '', 52 | 'KEYWORDS' => array( 53 | ), 54 | 'SYMBOLS' => array( 55 | '[', ']', '=' 56 | ), 57 | 'CASE_SENSITIVE' => array( 58 | GESHI_COMMENTS => false 59 | ), 60 | 'STYLES' => array( 61 | 'KEYWORDS' => array( 62 | ), 63 | 'COMMENTS' => array( 64 | 0 => 'color: #666666; font-style: italic;' 65 | ), 66 | 'ESCAPE_CHAR' => array( 67 | 0 => '' 68 | ), 69 | 'BRACKETS' => array( 70 | 0 => '' 71 | ), 72 | 'STRINGS' => array( 73 | 0 => 'color: #933;' 74 | ), 75 | 'NUMBERS' => array( 76 | 0 => '' 77 | ), 78 | 'METHODS' => array( 79 | 0 => '' 80 | ), 81 | 'SYMBOLS' => array( 82 | 0 => 'color: #000066; font-weight:bold;' 83 | ), 84 | 'REGEXPS' => array( 85 | 0 => 'color: #000066; font-weight:bold;', 86 | 1 => 'color: #000099;', 87 | 2 => 'color: #660066;' 88 | ), 89 | 'SCRIPT' => array( 90 | 0 => '' 91 | ) 92 | ), 93 | 'URLS' => array( 94 | ), 95 | 'OOLANG' => false, 96 | 'OBJECT_SPLITTERS' => array( 97 | ), 98 | 'REGEXPS' => array( 99 | //Section names 100 | 0 => '\[.+\]', 101 | //Entry names 102 | 1 => array( 103 | GESHI_SEARCH => '^(\s*)([a-zA-Z0-9_\-]+)(\s*=)', 104 | GESHI_REPLACE => '\\2', 105 | GESHI_MODIFIERS => 'm', 106 | GESHI_BEFORE => '\\1', 107 | GESHI_AFTER => '\\3' 108 | ), 109 | //Entry values 110 | 2 => array( 111 | // Evil hackery to get around GeSHi bug: <>" and ; are added so s can be matched 112 | // Explicit match on variable names because if a comment is before the first < of the span 113 | // gets chewed up... 114 | GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.*)', 115 | GESHI_REPLACE => '\\2', 116 | GESHI_MODIFIERS => '', 117 | GESHI_BEFORE => '\\1=', 118 | GESHI_AFTER => '' 119 | ) 120 | ), 121 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 122 | 'SCRIPT_DELIMITERS' => array( 123 | ), 124 | 'HIGHLIGHT_STRICT_BLOCK' => array( 125 | ) 126 | ); 127 | 128 | ?> 129 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/scala.php: -------------------------------------------------------------------------------- 1 | 'Scala', 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 | 1 => array( 49 | 'abstract', 'case', 'catch', 'class', 'def', 50 | 'do', 'else', 'extends', 'false', 'final', 51 | 'finally', 'for', 'forSome', 'if', 'implicit', 52 | 'import', 'match', 'new', 'null', 'object', 53 | 'override', 'package', 'private', 'protected', 'requires', 54 | 'return', 'sealed', 'super', 'this', 'throw', 55 | 'trait', 'try', 'true', 'type', 'val', 56 | 'var', 'while', 'with', 'yield' 57 | ), 58 | 2 => array( 59 | 'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float' 60 | ) 61 | ), 62 | 'SYMBOLS' => array( 63 | '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?', 64 | '_', ':', '=', '=>', '<<:', 65 | '<%', '>:', '#', '@' 66 | ), 67 | 'CASE_SENSITIVE' => array( 68 | GESHI_COMMENTS => false, 69 | 1 => true, 70 | 2 => true 71 | ), 72 | 'STYLES' => array( 73 | 'KEYWORDS' => array( 74 | 1 => 'color: #0000ff; font-weight: bold;', 75 | 2 => 'color: #9999cc; font-weight: bold;', 76 | ), 77 | 'COMMENTS' => array( 78 | 1=> 'color: #008000; font-style: italic;', 79 | 'MULTI' => 'color: #00ff00; font-style: italic;' 80 | ), 81 | 'ESCAPE_CHAR' => array( 82 | 0 => 'color: #0000ff; font-weight: bold;' 83 | ), 84 | 'BRACKETS' => array( 85 | 0 => 'color: #F78811;' 86 | ), 87 | 'STRINGS' => array( 88 | 0 => 'color: #6666FF;' 89 | ), 90 | 'NUMBERS' => array( 91 | 0 => 'color: #F78811;' 92 | ), 93 | 'METHODS' => array( 94 | 1 => 'color: #000000;', 95 | 2 => 'color: #000000;' 96 | ), 97 | 'SYMBOLS' => array( 98 | 0 => 'color: #000080;' 99 | ), 100 | 'SCRIPT' => array( 101 | ), 102 | 'REGEXPS' => array( 103 | ) 104 | ), 105 | 'URLS' => array( 106 | 1 => 'http://scala-lang.org', 107 | 2 => '' 108 | ), 109 | 'OOLANG' => true, 110 | 'OBJECT_SPLITTERS' => array( 111 | 1 => '.' 112 | ), 113 | 'REGEXPS' => array( 114 | ), 115 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 116 | 'SCRIPT_DELIMITERS' => array( 117 | ), 118 | 'HIGHLIGHT_STRICT_BLOCK' => array( 119 | ) 120 | ); 121 | 122 | ?> 123 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/xorg_conf.php: -------------------------------------------------------------------------------- 1 | 'Xorg configuration', 39 | 'COMMENT_SINGLE' => array(1 => '#'), 40 | 'COMMENT_MULTI' => array(), 41 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 42 | 'QUOTEMARKS' => array('"'), 43 | 'ESCAPE_CHAR' => '\\', 44 | 'KEYWORDS' => array( 45 | // sections 46 | 1 => array( 47 | 'Section', 'EndSection', 'SubSection', 'EndSubSection' 48 | ), 49 | 2 => array( 50 | // see http://www.x.org/archive/X11R6.9.0/doc/html/xorg.conf.5.html 51 | 'BiosBase', 'Black', 'Boardname', 'BusID', 'ChipID', 'ChipRev', 52 | 'Chipset', 'ClockChip', 'Clocks', 'DacSpeed', 53 | 'DefaultDepth', 'DefaultFbBpp', 'Depth', 'Device', 54 | 'DisplaySize', 'Driver', 'FbBpp', 'Gamma', 55 | 'HorizSync', 'IOBase', 'Identifier', 'InputDevice', 56 | 'Load', 'MemBase', 'Mode', 'Modeline', 'Modelname', 57 | 'Modes', 'Monitor', 'Option', 'Ramdac', 'RgbPath', 58 | 'Screen', 'TextClockFreq', 'UseModes', 'VendorName', 59 | 'VertRefresh', 'VideoAdaptor', 'VideoRam', 60 | 'ViewPort', 'Virtual', 'Visual', 'Weight', 'White' 61 | ), 62 | 3 => array( 63 | // some sub-keywords 64 | // screen position 65 | 'Above', 'Absolute', 'Below', 'LeftOf', 'Relative', 'RightOf', 66 | // modes 67 | 'DotClock', 'Flags', 'HSkew', 'HTimings', 'VScan', 'VTimings' 68 | ), 69 | ), 70 | 'REGEXPS' => array( 71 | ), 72 | 'SYMBOLS' => array( 73 | ), 74 | 'CASE_SENSITIVE' => array( 75 | GESHI_COMMENTS => false, 76 | 1 => false, 77 | 2 => false, 78 | 3 => false 79 | ), 80 | 'STYLES' => array( 81 | 'KEYWORDS' => array( 82 | 1 => 'color: #b1b100;', 83 | 2 => 'color: #990000;', 84 | 3 => 'color: #550000;' 85 | ), 86 | 'COMMENTS' => array( 87 | 1 => 'color: #adadad; font-style: italic;', 88 | ), 89 | 'ESCAPE_CHAR' => array( 90 | ), 91 | 'BRACKETS' => array( 92 | ), 93 | 'STRINGS' => array( 94 | 0 => 'color: #0000ff;', 95 | ), 96 | 'NUMBERS' => array( 97 | 0 => 'color: #cc66cc;' 98 | ), 99 | 'METHODS' => array( 100 | ), 101 | 'SYMBOLS' => array( 102 | ), 103 | 'REGEXPS' => array( 104 | ), 105 | 'SCRIPT' => array( 106 | ) 107 | ), 108 | 'URLS' => array( 109 | 1 => '', 110 | 2 => '', 111 | 3 => '' 112 | ), 113 | 'OOLANG' => false, 114 | 'OBJECT_SPLITTERS' => array( 115 | ), 116 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 117 | 'SCRIPT_DELIMITERS' => array( 118 | ), 119 | 'HIGHLIGHT_STRICT_BLOCK' => array( 120 | ), 121 | 'TAB_WIDTH' => 4 122 | ); 123 | 124 | ?> 125 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/div.php: -------------------------------------------------------------------------------- 1 | 'DIV', 43 | 'COMMENT_SINGLE' => array(1 => '//'), 44 | 'COMMENT_MULTI' => array('/*' => '*/'), 45 | 'CASE_KEYWORDS' => GESHI_CAPS_UPPER, 46 | 'QUOTEMARKS' => array("'", '"'), 47 | 'ESCAPE_CHAR' => '', 48 | 'KEYWORDS' => array( 49 | 1 => array( 50 | 'while','until','to','switch','step','return','repeat','loop','if','from','frame','for','end','elseif', 51 | 'else','default','debug','continue','clone','case','break','begin' 52 | ), 53 | 2 => array( 54 | 'xor','whoami','type','sizeof','pointer','or','offset','not','neg','mod','id','dup','and','_ne','_lt', 55 | '_le','_gt','_ge','_eq' 56 | ), 57 | 3 => array( 58 | 'setup_program','program','process','private','local','import','global','function','const', 59 | 'compiler_options' 60 | ), 61 | 4 => array( 62 | 'word','struct','string','int','byte' 63 | ), 64 | ), 65 | 'SYMBOLS' => array( 66 | '(',')','[',']','=','+','-','*','/','!','%','^','&',':',';',',','<','>' 67 | ), 68 | 'CASE_SENSITIVE' => array( 69 | GESHI_COMMENTS => false, 70 | 1 => false, 71 | 2 => false, 72 | 3 => false, 73 | 4 => false, 74 | ), 75 | 'STYLES' => array( 76 | 'KEYWORDS' => array( 77 | 1 => 'color: #0040b1;', 78 | 2 => 'color: #000000;', 79 | 3 => 'color: #000066; font-weight: bold;', 80 | 4 => 'color: #993333;' 81 | ), 82 | 'COMMENTS' => array( 83 | 1 => 'color: #808080; font-style: italic;', 84 | 'MULTI' => 'color: #808080; font-style: italic;' 85 | ), 86 | 'ESCAPE_CHAR' => array( 87 | 0 => '' 88 | ), 89 | 'BRACKETS' => array( 90 | 0 => 'color: #44aa44;' 91 | ), 92 | 'STRINGS' => array( 93 | 0 => 'color: #ff0000;' 94 | ), 95 | 'NUMBERS' => array( 96 | 0 => 'color: #cc66cc;' 97 | ), 98 | 'METHODS' => array( 99 | 0 => 'color: #202020;', 100 | ), 101 | 'SYMBOLS' => array( 102 | 0 => 'color: #44aa44;' 103 | ), 104 | 'REGEXPS' => array( 105 | ), 106 | 'SCRIPT' => array( 107 | ) 108 | ), 109 | 'URLS' => array( 110 | 1 => '', 111 | 2 => '', 112 | 3 => '', 113 | 4 => '' 114 | ), 115 | 'OOLANG' => false, 116 | 'OBJECT_SPLITTERS' => array(), 117 | 'REGEXPS' => array( 118 | ), 119 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 120 | 'SCRIPT_DELIMITERS' => array( 121 | ), 122 | 'HIGHLIGHT_STRICT_BLOCK' => array( 123 | ) 124 | ); 125 | 126 | ?> 127 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | getTabs(TAB_PATH); 43 | 44 | // condition : get the currently selected tab (non-js only), or select first tab if none selected previously 45 | if(isset($_GET['tab'])) { 46 | // check the tab exists 47 | if (array_key_exists($_GET['tab'], $tabs)) { 48 | $selectedtab = $tabs[$_GET['tab']]; 49 | } else { 50 | $selectedtab = $tabs['home']; 51 | } 52 | } else { 53 | $selectedtab = $tabs['home']; 54 | } 55 | 56 | // optional : set a INCLUDE_PATH for a phpMyAdmin directory, to have it display in the site footer, or comment out to hide 57 | $phpMyAdminDir = "./phpMyAdmin/"; 58 | 59 | // set layout variables, from cookies 60 | $tabsview = (isset($_COOKIE['optionsTabs']) && $_COOKIE['optionsTabs'] == "hide") ? " full" : ""; 61 | $optionsview = (isset($_COOKIE['optionsView']) && $_COOKIE['optionsView'] == "grid") ? "grid" : "list"; 62 | 63 | // retreive Boris version number, for footer 64 | //$rc = new RevisionCheck(); 65 | //$revision = $rc->getLocalRevision(); 66 | 67 | // build the top of the page 68 | $pagebuilder = new PageBuilder(); 69 | $pagebuilder->buildPageTop(); 70 | 71 | ?> 72 | 73 |
74 | 75 |
76 | 77 |
78 | createFileList(); 81 | ?> 82 |
83 | 84 |
    85 | $tab) { 88 | 89 | // condition : check if this is the currently selected tab 90 | $selected = ($tab == $selectedtab) ? ' class="selected"' : ""; 91 | 92 | echo ' 93 | -->
  • '.$key.'
98 |
99 | 100 | 132 |
133 | buildPageBottom(); 135 | ?> -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/mxml.php: -------------------------------------------------------------------------------- 1 | 'MXML', 42 | 'COMMENT_SINGLE' => array(), 43 | 'COMMENT_MULTI' => array(''), 44 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 45 | 'QUOTEMARKS' => array("'", '"'), 46 | 'ESCAPE_CHAR' => '', 47 | 'KEYWORDS' => array( 48 | ), 49 | 'SYMBOLS' => array( 50 | ), 51 | 'CASE_SENSITIVE' => array( 52 | GESHI_COMMENTS => false, 53 | ), 54 | 'STYLES' => array( 55 | 'KEYWORDS' => array( 56 | ), 57 | 'COMMENTS' => array( 58 | 'MULTI' => 'color: #808080; font-style: italic;' 59 | ), 60 | 'ESCAPE_CHAR' => array( 61 | 0 => 'color: #000099; font-weight: bold;' 62 | ), 63 | 'BRACKETS' => array( 64 | 0 => 'color: #66cc66;' 65 | ), 66 | 'STRINGS' => array( 67 | 0 => 'color: #ff0000;' 68 | ), 69 | 'NUMBERS' => array( 70 | 0 => 'color: #cc66cc;' 71 | ), 72 | 'METHODS' => array( 73 | ), 74 | 'SYMBOLS' => array( 75 | 0 => 'color: #66cc66;' 76 | ), 77 | 'SCRIPT' => array( 78 | 0 => 'color: #00bbdd;', 79 | 1 => 'color: #ddbb00;', 80 | 2 => 'color: #339933;', 81 | 3 => 'color: #000000;' 82 | ), 83 | 'REGEXPS' => array( 84 | 0 => 'font-weight: bold; color: black;', 85 | 1 => 'color: #7400FF;', 86 | 2 => 'color: #7400FF;' 87 | ) 88 | ), 89 | 'URLS' => array( 90 | ), 91 | 'OOLANG' => false, 92 | 'OBJECT_SPLITTERS' => array( 93 | ), 94 | 'REGEXPS' => array( 95 | // xml declaration 96 | 0 => array( 97 | GESHI_SEARCH => '(<[\/?|(\?xml)]?[a-z0-9_\-:]*(\?>))', 98 | GESHI_REPLACE => '\\1', 99 | GESHI_MODIFIERS => 'i', 100 | GESHI_BEFORE => '', 101 | GESHI_AFTER => '' 102 | ), 103 | // opening tags 104 | 1 => array( 105 | GESHI_SEARCH => '(<\/?[a-z]+:[a-z]+)', 106 | GESHI_REPLACE => '\\1', 107 | GESHI_MODIFIERS => 'i', 108 | GESHI_BEFORE => '', 109 | GESHI_AFTER => '' 110 | ), 111 | // closing tags 112 | 2 => array( 113 | GESHI_SEARCH => '(\/?>)', 114 | GESHI_REPLACE => '\\1', 115 | GESHI_MODIFIERS => 'i', 116 | GESHI_BEFORE => '', 117 | GESHI_AFTER => '' 118 | ) 119 | ), 120 | 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 121 | 'SCRIPT_DELIMITERS' => array( 122 | 0 => array( 123 | ' '>' 124 | ), 125 | 1 => array( 126 | '&' => ';' 127 | ), 128 | 2 => array( 129 | //' ']]>' 130 | '' => '' 131 | ), 132 | 3 => array( 133 | '<' => '>' 134 | ) 135 | ), 136 | 'HIGHLIGHT_STRICT_BLOCK' => array( 137 | 0 => false, 138 | 1 => false, 139 | 2 => false, 140 | 3 => true 141 | ), 142 | 'TAB_WIDTH' => 4 143 | ); 144 | 145 | ?> 146 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/ada.php: -------------------------------------------------------------------------------- 1 | 'Ada', 48 | 'COMMENT_SINGLE' => array(1 => '--'), 49 | 'COMMENT_MULTI' => array('/*' => '*/'), 50 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 51 | 'QUOTEMARKS' => array('"'), 52 | 'ESCAPE_CHAR' => '\\', 53 | 'KEYWORDS' => array( 54 | 1 => array( 55 | 'begin', 'declare', 'do', 'else', 'elsif', 'exception', 'for', 'if', 56 | 'is', 'loop', 'while', 'then', 'end', 'select', 'case', 'until', 57 | 'goto', 'return' 58 | ), 59 | 2 => array( 60 | 'abs', 'and', 'mod', 'not', 'or', 'rem', 'xor' 61 | ), 62 | 3 => array( 63 | 'abort', 'abstract', 'accept', 'access', 'aliased', 'all', 'array', 'at', 'body', 64 | 'constant', 'delay', 'delta', 'digits', 'entry', 'exit', 65 | 'function', 'generic', 'in', 'limited', 'new', 'null', 'of', 'others', 'out', 'package', 'pragma', 66 | 'private', 'procedure', 'protected', 'raise', 'range', 'record', 'renames', 'requeue', 'reverse', 67 | 'separate', 'subtype', 'tagged', 'task', 'terminate', 'type', 'use', 'when', 'with' 68 | ) 69 | ), 70 | 'SYMBOLS' => array( 71 | '(', ')' 72 | ), 73 | 'CASE_SENSITIVE' => array( 74 | GESHI_COMMENTS => false, 75 | 1 => false, 76 | 2 => false, 77 | 3 => false, 78 | ), 79 | 'STYLES' => array( 80 | 'KEYWORDS' => array( 81 | 1 => 'color: #00007f;', 82 | 2 => 'color: #0000ff;', 83 | 3 => 'color: #46aa03; font-weight:bold;', 84 | ), 85 | 'BRACKETS' => array( 86 | 0 => 'color: #66cc66;' 87 | ), 88 | 'COMMENTS' => array( 89 | 1 => 'color: #adadad; font-style: italic;', 90 | 'MULTI' => 'color: #808080; font-style: italic;' 91 | ), 92 | 'ESCAPE_CHAR' => array( 93 | 0 => 'color: #000099; font-weight: bold;' 94 | ), 95 | 'BRACKETS' => array( 96 | 0 => 'color: #66cc66;' 97 | ), 98 | 'STRINGS' => array( 99 | 0 => 'color: #7f007f;' 100 | ), 101 | 'NUMBERS' => array( 102 | 0 => 'color: #ff0000;' 103 | ), 104 | 'METHODS' => array( 105 | 1 => 'color: #202020;' 106 | ), 107 | 'SYMBOLS' => array( 108 | 0 => 'color: #66cc66;' 109 | ), 110 | 'REGEXPS' => array( 111 | ), 112 | 'SCRIPT' => array( 113 | ) 114 | ), 115 | 'URLS' => array( 116 | 1 => '', 117 | 2 => '', 118 | 3 => '' 119 | ), 120 | 'OOLANG' => true, 121 | 'OBJECT_SPLITTERS' => array( 122 | 1 => '.' 123 | ), 124 | 'REGEXPS' => array( 125 | ), 126 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 127 | 'SCRIPT_DELIMITERS' => array( 128 | ), 129 | 'HIGHLIGHT_STRICT_BLOCK' => array( 130 | ) 131 | ); 132 | 133 | ?> 134 | -------------------------------------------------------------------------------- /docs/Password-Protection.md: -------------------------------------------------------------------------------- 1 | # Password Protecting Boris 2 | 3 | Here's an example of how you could password-protect boris on a server: 4 | 5 | 'username1', 'p' => 'password1'), 11 | array('u' => 'username2', 'p' => 'password2'), 12 | ); 13 | 14 | //if log-in is successful, redirect to main menu 15 | if (isset($_POST) && count($_POST)>0) { 16 | foreach($login as $user) { 17 | if ($_POST['u'] == $user['u'] && $_POST['p'] == $user['p']) { 18 | $_SESSION['u']=$_POST['u']; 19 | $_SESSION['p']=$_POST['p']; 20 | header("Location: /"); 21 | exit(); 22 | } 23 | } 24 | } 25 | 26 | //if logged in already, redirect to main menu 27 | foreach($login as $user) { 28 | if ($_SESSION['u'] == $user['u'] && $_SESSION['p'] == $user['p']) { 29 | $loggedin = true; 30 | 31 | // set the location of the main boris directory 32 | define("INCLUDE_PATH", "./_boris"); 33 | 34 | // set the root location, for indexing 35 | define("INDEX_ROOT_PATH", "../"); 36 | 37 | // set the tab index path 38 | define("TAB_PATH", "./"); 39 | 40 | // include (and start) boris localhost browser 41 | include_once(INCLUDE_PATH."/index.php"); 42 | } 43 | } 44 | 45 | if ($loggedin !== true) { 46 | ?> 47 | 48 | 49 | 50 | root 51 | 52 | 53 | 54 | 55 | 56 | 87 | 88 | 89 |
90 |
91 |
92 |

root

93 |
94 |
95 | Login 96 |
97 | 98 | 99 |
100 |
101 | 102 | 103 | 104 |
105 |
106 |
107 |
108 |
109 |
110 | 111 | 112 | 115 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/vb.php: -------------------------------------------------------------------------------- 1 | 'Visual Basic', 49 | 'COMMENT_SINGLE' => array(), 50 | 'COMMENT_MULTI' => array(), 51 | 'COMMENT_REGEXP' => array( 52 | // Comments (either single or multiline with _ 53 | 1 => '/\'.*(? GESHI_CAPS_NO_CHANGE, 56 | 'QUOTEMARKS' => array(), 57 | 'ESCAPE_CHAR' => '', 58 | 'KEYWORDS' => array( 59 | 1 => array( 60 | 'AddressOf', 'Alias', 'And', 'Append', 'As', 'BF', 'Binary', 61 | 'Boolean', 'ByRef', 'Byte', 'ByVal', 'Call', 'Case', 'CBool', 62 | 'CByte', 'CCur', 'CDate', 'CDbl', 'CDec', 'CInt', 'CLng', 63 | 'Close', 'Collection', 'Const', 'Control', 'CSng', 'CStr', 64 | 'Currency', 'CVar', 'Date', 'Declare', 'Dim', 'Do', 'Double', 65 | 'Each', 'Else', 'ElseIf', 'End', 'Enum', 'Erase', 'Error', 66 | 'Event', 'Exit', 'Explicit', 'False', 'For', 'Friend', 67 | 'Function', 'Get', 'GoSub', 'Goto', 'If', 'Implements', 'In', 68 | 'Input', 'Integer', 'Is', 'LBound', 'Let', 'Lib', 'Like', 69 | 'Line', 'Long', 'Loop', 'Mod', 'New', 'Next', 'Not', 70 | 'Nothing', 'Object', 'On', 'Open', 'Option', 'Optional', 71 | 'Or', 'Output', 'ParamArray', 'Preserve', 'Print', 'Private', 72 | 'Property', 'Public', 'RaiseEvent', 'Random', 'ReDim', 73 | 'Resume', 'Select', 'Set', 'Single', 'Static', 'Step', 74 | 'Stop', 'String', 'Sub', 'Then', 'To', 'True', 'Type', 75 | 'TypeOf', 'UBound', 'Until', 'Variant', 'While', 'With', 76 | 'WithEvents', 'Xor' 77 | ) 78 | ), 79 | 'SYMBOLS' => array( 80 | ), 81 | 'CASE_SENSITIVE' => array( 82 | GESHI_COMMENTS => false, 83 | 1 => false 84 | ), 85 | 'STYLES' => array( 86 | 'KEYWORDS' => array( 87 | 1 => 'color: #000080;' 88 | ), 89 | 'COMMENTS' => array( 90 | 1 => 'color: #008000;' 91 | ), 92 | 'BRACKETS' => array( 93 | ), 94 | 'STRINGS' => array( 95 | ), 96 | 'NUMBERS' => array( 97 | ), 98 | 'METHODS' => array( 99 | ), 100 | 'SYMBOLS' => array( 101 | ), 102 | 'ESCAPE_CHAR' => array( 103 | ), 104 | 'SCRIPT' => array( 105 | ), 106 | 'REGEXPS' => array( 107 | ) 108 | ), 109 | 'URLS' => array( 110 | 1 => '' 111 | ), 112 | 'OOLANG' => false, 113 | 'OBJECT_SPLITTERS' => array( 114 | ), 115 | 'REGEXPS' => array( 116 | ), 117 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 118 | 'SCRIPT_DELIMITERS' => array( 119 | ), 120 | 'HIGHLIGHT_STRICT_BLOCK' => array( 121 | ), 122 | 'PARSER_CONTROL' => array( 123 | 'ENABLE_FLAGS' => array( 124 | 'STRINGS' => GESHI_NEVER, 125 | 'BRACKETS' => GESHI_NEVER, 126 | 'SYMBOLS' => GESHI_NEVER, 127 | 'NUMBERS' => GESHI_NEVER 128 | ) 129 | ) 130 | ); 131 | 132 | ?> 133 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/abap.php: -------------------------------------------------------------------------------- 1 | 'ABAP', 42 | 'COMMENT_SINGLE' => array(1 => '"', 2 => '*'), 43 | 'COMMENT_MULTI' => array(), 44 | 'CASE_KEYWORDS' => 0, 45 | 'QUOTEMARKS' => array("'"), 46 | 'ESCAPE_CHAR' => '', 47 | 'KEYWORDS' => array( 48 | 1 => array( 49 | 'if', 'return', 'while', 'case', 'default', 50 | 'do', 'else', 'for', 'endif', 'elseif', 'eq', 51 | 'not', 'and' 52 | ), 53 | 2 => array( 54 | 'data', 'types', 'seletion-screen', 'parameters', 'field-symbols', 'extern', 'inline' 55 | ), 56 | 3 => array( 57 | 'report', 'write', 'append', 'select', 'endselect', 'call method', 'call function', 58 | 'loop', 'endloop', 'raise', 'read table', 'concatenate', 'split', 'shift', 59 | 'condense', 'describe', 'clear', 'endfunction', 'assign', 'create data', 'translate', 60 | 'continue', 'start-of-selection', 'at selection-screen', 'modify', 'call screen', 61 | 'create object', 'perform', 'form', 'endform', 62 | 'reuse_alv_block_list_init', 'zbcialv', 'include' 63 | ), 64 | 4 => array( 65 | 'type ref to', 'type', 'begin of', 'end of', 'like', 'into', 66 | 'from', 'where', 'order by', 'with key', 'string', 'separated by', 67 | 'exporting', 'importing', 'to upper case', 'to', 'exceptions', 'tables', 68 | 'using', 'changing' 69 | ), 70 | ), 71 | 'SYMBOLS' => array( 72 | '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' 73 | ), 74 | 'CASE_SENSITIVE' => array( 75 | GESHI_COMMENTS => false, 76 | 1 => false, 77 | 2 => false, 78 | 3 => false, 79 | 4 => false, 80 | ), 81 | 'STYLES' => array( 82 | 'KEYWORDS' => array( 83 | 1 => 'color: #b1b100;', 84 | 2 => 'color: #000000; font-weight: bold;', 85 | 3 => 'color: #000066;', 86 | 4 => 'color: #993333;' 87 | ), 88 | 'COMMENTS' => array( 89 | 1 => 'color: #808080; font-style: italic;', 90 | 2 => 'color: #339933;', 91 | 'MULTI' => 'color: #808080; font-style: italic;' 92 | ), 93 | 'ESCAPE_CHAR' => array( 94 | 0 => 'color: #000099; font-weight: bold;' 95 | ), 96 | 'BRACKETS' => array( 97 | 0 => 'color: #66cc66;' 98 | ), 99 | 'STRINGS' => array( 100 | 0 => 'color: #ff0000;' 101 | ), 102 | 'NUMBERS' => array( 103 | 0 => 'color: #cc66cc;' 104 | ), 105 | 'METHODS' => array( 106 | 1 => 'color: #202020;', 107 | 2 => 'color: #202020;' 108 | ), 109 | 'SYMBOLS' => array( 110 | 0 => 'color: #66cc66;' 111 | ), 112 | 'REGEXPS' => array( 113 | ), 114 | 'SCRIPT' => array( 115 | ) 116 | ), 117 | 'URLS' => array( 118 | 1 => '', 119 | 2 => '', 120 | 3 => 'http://sap4.com/wiki/index.php?title={FNAMEL}', 121 | 4 => '' 122 | ), 123 | 'OOLANG' => true, 124 | 'OBJECT_SPLITTERS' => array( 125 | 1 => '.', 126 | 2 => '::' 127 | ), 128 | 'REGEXPS' => array( 129 | ), 130 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 131 | 'SCRIPT_DELIMITERS' => array( 132 | ), 133 | 'HIGHLIGHT_STRICT_BLOCK' => array( 134 | ) 135 | ); 136 | 137 | ?> 138 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/caddcl.php: -------------------------------------------------------------------------------- 1 | 'CAD DCL', 46 | 'COMMENT_SINGLE' => array(1 => '//'), 47 | 'COMMENT_MULTI' => array('/*' => '*/'), 48 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 49 | 'QUOTEMARKS' => array('"'), 50 | 'ESCAPE_CHAR' => '\\', 51 | 'KEYWORDS' => array( 52 | 1 => array( 53 | 'boxed_column','boxed_radio_column','boxed_radio_row','boxed_row', 54 | 'column','concatenation','button','dialog','edit_box','image','image_button', 55 | 'errtile','list_box','ok_cancel','ok_cancel_help','ok_cancel_help_errtile', 56 | 'ok_cancel_help_info','ok_only','paragraph','popup_list','radio_button', 57 | 'radio_column','radio_row','row','slider','spacer','spacer_0','spacer_1','text', 58 | 'text_part','toggle', 59 | 'action','alignment','allow_accept','aspect_ratio','big_increment', 60 | 'children_alignment','children_fixed_height', 61 | 'children_fixed_width','color', 62 | 'edit_limit','edit_width','fixed_height','fixed_width', 63 | 'height','initial_focus','is_cancel','is_default', 64 | 'is_enabled','is_tab_stop','is-bold','key','label','layout','list', 65 | 'max_value','min_value','mnemonic','multiple_select','password_char', 66 | 'small_increment','tabs','tab_truncate','value','width', 67 | 'false','true','left','right','centered','top','bottom', 68 | 'dialog_line','dialog_foreground','dialog_background', 69 | 'graphics_background','black','red','yellow','green','cyan', 70 | 'blue','magenta','whitegraphics_foreground', 71 | 'horizontal','vertical' 72 | ) 73 | ), 74 | 'SYMBOLS' => array( 75 | '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' 76 | ), 77 | 'CASE_SENSITIVE' => array( 78 | GESHI_COMMENTS => false, 79 | 1 => false 80 | ), 81 | 'STYLES' => array( 82 | 'KEYWORDS' => array( 83 | 1 => 'color: #b1b100;' 84 | ), 85 | 'COMMENTS' => array( 86 | 1 => 'color: #808080; font-style: italic;', 87 | 'MULTI' => 'color: #808080; font-style: italic;' 88 | ), 89 | 'ESCAPE_CHAR' => array( 90 | 0 => 'color: #000099; font-weight: bold;' 91 | ), 92 | 'BRACKETS' => array( 93 | 0 => 'color: #66cc66;' 94 | ), 95 | 'STRINGS' => array( 96 | 0 => 'color: #ff0000;' 97 | ), 98 | 'NUMBERS' => array( 99 | 0 => 'color: #cc66cc;' 100 | ), 101 | 'METHODS' => array( 102 | ), 103 | 'SYMBOLS' => array( 104 | 0 => 'color: #66cc66;' 105 | ), 106 | 'REGEXPS' => array( 107 | ), 108 | 'SCRIPT' => array( 109 | ) 110 | ), 111 | 'URLS' => array( 112 | 1 => '' 113 | ), 114 | 'OOLANG' => false, 115 | 'OBJECT_SPLITTERS' => array( 116 | ), 117 | 'REGEXPS' => array( 118 | ), 119 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 120 | 'SCRIPT_DELIMITERS' => array( 121 | ), 122 | 'HIGHLIGHT_STRICT_BLOCK' => array( 123 | ) 124 | ); 125 | 126 | ?> 127 | -------------------------------------------------------------------------------- /_includes/css/thickbox.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------------------------------------------------*/ 2 | /* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/ 3 | /* ----------------------------------------------------------------------------------------------------------------*/ 4 | *{padding: 0; margin: 0;} 5 | 6 | /* ----------------------------------------------------------------------------------------------------------------*/ 7 | /* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/ 8 | /* ----------------------------------------------------------------------------------------------------------------*/ 9 | #TB_window { 10 | font: 12px Arial, Helvetica, sans-serif; 11 | color: #333333; 12 | } 13 | 14 | 15 | 16 | #TB_window a:link {color: #666666;} 17 | #TB_window a:visited {color: #666666;} 18 | #TB_window a:hover {color: #000;} 19 | #TB_window a:active {color: #666666;} 20 | #TB_window a:focus{color: #666666;} 21 | 22 | /* ----------------------------------------------------------------------------------------------------------------*/ 23 | /* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/ 24 | /* ----------------------------------------------------------------------------------------------------------------*/ 25 | #TB_overlay { 26 | position: fixed; 27 | z-index:100; 28 | top: 0px; 29 | left: 0px; 30 | height:100%; 31 | width:100%; 32 | } 33 | 34 | .TB_overlayMacFFBGHack {background: url(../img/thickbox/macFFBgHack.png) repeat;} 35 | .TB_overlayBG { 36 | background-color:#000; 37 | filter:alpha(opacity=75); 38 | -moz-opacity: 0.75; 39 | opacity: 0.75; 40 | } 41 | 42 | * html #TB_overlay { /* ie6 hack */ 43 | position: absolute; 44 | height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); 45 | } 46 | 47 | #TB_window { 48 | position: fixed; 49 | background: #ffffff; 50 | z-index: 102; 51 | color:#000000; 52 | display:none; 53 | border: 4px solid #525252; 54 | text-align:left; 55 | top:50%; 56 | left:50%; 57 | min-width:200px; 58 | min-height:200px; 59 | } 60 | 61 | * html #TB_window { /* ie6 hack */ 62 | position: absolute; 63 | margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); 64 | } 65 | 66 | #TB_window img#TB_Image { 67 | display:block; 68 | margin: 15px 15px 15px 15px; 69 | /* border-right: 1px solid #ccc; 70 | border-bottom: 1px solid #ccc; 71 | border-top: 1px solid #666; 72 | border-left: 1px solid #666;*/ 73 | border:0; 74 | } 75 | 76 | 77 | /* 78 | * Thickbox - custom header area styles 79 | */ 80 | /* container */ 81 | #TB_title{ 82 | background-color:#e8e8e8; 83 | padding:15px 15px 15px 15px; 84 | font-size: 1em; 85 | } 86 | 87 | #TB_ajaxWindowTitle{ 88 | float:left; 89 | font-weight:bold; 90 | margin:0 10px 10px 0; 91 | } 92 | 93 | #TB_secondLine { 94 | float:left; 95 | color:#666666; 96 | } 97 | 98 | #TB_dimensions{ 99 | float:left; 100 | clear:left; 101 | } 102 | 103 | #TB_closeWindow, 104 | #TB_closeAjaxWindow{ 105 | float:right; 106 | margin-bottom:10px; 107 | } 108 | 109 | #TB_closeWindowButton { 110 | clear:both; 111 | } 112 | 113 | 114 | /* 115 | * misc... 116 | */ 117 | #TB_caption{ 118 | height:25px; 119 | padding:7px 30px 0px 25px; 120 | } 121 | 122 | /* 123 | #TB_closeAjaxWindow{ 124 | padding:7px 10px 5px 0; 125 | margin-bottom:1px; 126 | text-align:right; 127 | float:right; 128 | }*/ 129 | 130 | #TB_ajaxContent{ 131 | clear:both; 132 | padding:2px 15px 15px 15px; 133 | overflow:auto; 134 | text-align:left; 135 | line-height:1.4em; 136 | } 137 | 138 | #TB_ajaxContent.TB_modal{ 139 | padding:15px; 140 | } 141 | 142 | #TB_ajaxContent p{ 143 | padding:5px 0px 5px 0px; 144 | } 145 | 146 | #TB_load{ 147 | position: fixed; 148 | display:none; 149 | height:13px; 150 | width:208px; 151 | z-index:103; 152 | top: 50%; 153 | left: 50%; 154 | margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */ 155 | } 156 | 157 | * html #TB_load { /* ie6 hack */ 158 | position: absolute; 159 | margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); 160 | } 161 | 162 | #TB_HideSelect{ 163 | z-index:99; 164 | position:fixed; 165 | top: 0; 166 | left: 0; 167 | background-color:#fff; 168 | border:none; 169 | filter:alpha(opacity=0); 170 | -moz-opacity: 0; 171 | opacity: 0; 172 | height:100%; 173 | width:100%; 174 | } 175 | 176 | * html #TB_HideSelect { /* ie6 hack */ 177 | position: absolute; 178 | height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); 179 | } 180 | 181 | #TB_iframeContent{ 182 | clear:both; 183 | border:none; 184 | margin-bottom:-1px; 185 | margin-top:1px; 186 | _margin-bottom:1px; 187 | } 188 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/m68k.php: -------------------------------------------------------------------------------- 1 | 'Motorola 68000 Assembler', 47 | 'COMMENT_SINGLE' => array(1 => ';'), 48 | 'COMMENT_MULTI' => array(), 49 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 50 | 'QUOTEMARKS' => array("'", '"'), 51 | 'ESCAPE_CHAR' => '', 52 | 'KEYWORDS' => array( 53 | /*CPU*/ 54 | 1 => array( 55 | 'adc','add','ais','aix','and','asl','asr','bcc','bclr','bcs','beq', 56 | 'bge','bgt','bhcc','bhcs','bhi','bhs','bih','bil','bit','ble','blo', 57 | 'bls','blt','bmc','bmi','bms','bne','bpl','bra','brclr','brn', 58 | 'brset','bset','bsr','cbeq','clc','cli','clr','cmp','com','cphx', 59 | 'cpx','daa','dbnz','dec','div','eor','inc','jmp','jsr','lda','ldhx', 60 | 'ldx','lsl','lsr','mov','mul','neg','nop','nsa','ora','psha','pshh', 61 | 'pshx','pula','pulh','pulx','rol','ror','rsp','rti','rts','sbc', 62 | 'sec','sei','sta','sthx','stop','stx','sub','swi','tap','tax','tpa', 63 | 'tst','tsx','txa','txs','wait' 64 | ), 65 | /*registers*/ 66 | 2 => array( 67 | 'a','h','x', 68 | 'hx','sp' 69 | ), 70 | /*Directive*/ 71 | 3 => array( 72 | '#define','#endif','#else','#ifdef','#ifndef','#include','#undef', 73 | '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ' 74 | ), 75 | ), 76 | 'SYMBOLS' => array( 77 | ',' 78 | ), 79 | 'CASE_SENSITIVE' => array( 80 | GESHI_COMMENTS => false, 81 | 1 => false, 82 | 2 => false, 83 | 3 => false, 84 | ), 85 | 'STYLES' => array( 86 | 'KEYWORDS' => array( 87 | 1 => 'color: #0000ff; font-weight:bold;', 88 | 2 => 'color: #0000ff;', 89 | 3 => 'color: #46aa03; font-weight:bold;' 90 | ), 91 | 'COMMENTS' => array( 92 | 1 => 'color: #adadad; font-style: italic;', 93 | ), 94 | 'ESCAPE_CHAR' => array( 95 | 0 => 'color: #000099; font-weight: bold;' 96 | ), 97 | 'BRACKETS' => array( 98 | 0 => 'color: #0000ff;' 99 | ), 100 | 'STRINGS' => array( 101 | 0 => 'color: #7f007f;' 102 | ), 103 | 'NUMBERS' => array( 104 | 0 => 'color: #dd22dd;' 105 | ), 106 | 'METHODS' => array( 107 | ), 108 | 'SYMBOLS' => array( 109 | 0 => 'color: #008000;' 110 | ), 111 | 'REGEXPS' => array( 112 | 0 => 'color: #22bbff;', 113 | 1 => 'color: #22bbff;', 114 | 2 => 'color: #993333;' 115 | ), 116 | 'SCRIPT' => array( 117 | ) 118 | ), 119 | 'URLS' => array( 120 | 1 => '', 121 | 2 => '', 122 | 3 => '' 123 | ), 124 | 'OOLANG' => false, 125 | 'OBJECT_SPLITTERS' => array( 126 | ), 127 | 'REGEXPS' => array( 128 | //Hex numbers 129 | 0 => '#?0[0-9a-fA-F]{1,32}[hH]', 130 | //Binary numbers 131 | 1 => '\%[01]{1,64}[bB]', 132 | //Labels 133 | 2 => '^[_a-zA-Z][_a-zA-Z0-9]*?\:' 134 | ), 135 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 136 | 'SCRIPT_DELIMITERS' => array( 137 | ), 138 | 'HIGHLIGHT_STRICT_BLOCK' => array( 139 | ), 140 | 'TAB_WIDTH' => 8 141 | ); 142 | 143 | ?> 144 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/z80.php: -------------------------------------------------------------------------------- 1 | 'ZiLOG Z80 Assembler', 48 | 'COMMENT_SINGLE' => array(1 => ';'), 49 | 'COMMENT_MULTI' => array(), 50 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 51 | 'QUOTEMARKS' => array("'", '"'), 52 | 'ESCAPE_CHAR' => '', 53 | 'KEYWORDS' => array( 54 | /*CPU*/ 55 | 1 => array( 56 | 'adc','add','and','bit','call','ccf','cp','cpd','cpdr','cpir','cpi', 57 | 'cpl','daa','dec','di','djnz','ei','ex','exx','halt','im','in', 58 | 'in0','inc','ind','indr','inir','ini','jp','jr','ld','ldd','lddr', 59 | 'ldir','ldi','mlt','neg','nop','or','otdm','otdmr','otdr','otim', 60 | 'otimr','otir','out','out0','outd','outi','pop','push','res','ret', 61 | 'reti','retn','rl','rla','rlc','rlca','rld','rr','rra','rrc','rrca', 62 | 'rrd','rst','sbc','scf','set','sla','sl1','sll','slp','sra','srl', 63 | 'sub','tst','tstio','xor' 64 | ), 65 | /*registers*/ 66 | 2 => array( 67 | 'a','b','c','d','e','h','l', 68 | 'af','bc','de','hl','ix','iy','sp', 69 | 'af\'','ixh','ixl','iyh','iyl' 70 | ), 71 | /*Directive*/ 72 | 3 => array( 73 | '#define','#endif','#else','#ifdef','#ifndef','#include','#undef', 74 | '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ' 75 | ), 76 | ), 77 | 'SYMBOLS' => array( 78 | '[', ']', '(', ')', '?', '+', '-', '*', '/', '%', '$' 79 | ), 80 | 'CASE_SENSITIVE' => array( 81 | GESHI_COMMENTS => false, 82 | 1 => false, 83 | 2 => false, 84 | 3 => false, 85 | ), 86 | 'STYLES' => array( 87 | 'KEYWORDS' => array( 88 | 1 => 'color: #0000ff; font-weight:bold;', 89 | 2 => 'color: #0000ff;', 90 | 3 => 'color: #46aa03; font-weight:bold;' 91 | ), 92 | 'COMMENTS' => array( 93 | 1 => 'color: #adadad; font-style: italic;', 94 | ), 95 | 'ESCAPE_CHAR' => array( 96 | 0 => 'color: #000099; font-weight: bold;' 97 | ), 98 | 'BRACKETS' => array( 99 | 0 => 'color: #0000ff;' 100 | ), 101 | 'STRINGS' => array( 102 | 0 => 'color: #7f007f;' 103 | ), 104 | 'NUMBERS' => array( 105 | 0 => 'color: #dd22dd;' 106 | ), 107 | 'METHODS' => array( 108 | ), 109 | 'SYMBOLS' => array( 110 | 0 => 'color: #008000;' 111 | ), 112 | 'REGEXPS' => array( 113 | 0 => 'color: #22bbff;', 114 | 1 => 'color: #22bbff;', 115 | 2 => 'color: #993333;' 116 | ), 117 | 'SCRIPT' => array( 118 | ) 119 | ), 120 | 'URLS' => array( 121 | 1 => '', 122 | 2 => '', 123 | 3 => '' 124 | ), 125 | 'OOLANG' => false, 126 | 'OBJECT_SPLITTERS' => array( 127 | ), 128 | 'REGEXPS' => array( 129 | //Hex numbers 130 | 0 => '0[0-9a-fA-F]{1,32}[hH]', 131 | //Binary numbers 132 | 1 => '\%[01]{1,64}|[01]{1,64}[bB]?', 133 | //Labels 134 | 2 => '^[_a-zA-Z][_a-zA-Z0-9]?\:' 135 | ), 136 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 137 | 'SCRIPT_DELIMITERS' => array( 138 | ), 139 | 'HIGHLIGHT_STRICT_BLOCK' => array( 140 | ), 141 | 'TAB_WIDTH' => 8 142 | ); 143 | 144 | ?> 145 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/xml.php: -------------------------------------------------------------------------------- 1 | 'XML', 49 | 'COMMENT_SINGLE' => array(), 50 | 'COMMENT_MULTI' => array(), 51 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 52 | 'QUOTEMARKS' => array("'", '"'), 53 | 'ESCAPE_CHAR' => '', 54 | 'KEYWORDS' => array( 55 | ), 56 | 'SYMBOLS' => array( 57 | ), 58 | 'CASE_SENSITIVE' => array( 59 | GESHI_COMMENTS => false, 60 | ), 61 | 'STYLES' => array( 62 | 'KEYWORDS' => array( 63 | ), 64 | 'COMMENTS' => array( 65 | ), 66 | 'ESCAPE_CHAR' => array( 67 | 0 => 'color: #000099; font-weight: bold;' 68 | ), 69 | 'BRACKETS' => array( 70 | 0 => 'color: #66cc66;' 71 | ), 72 | 'STRINGS' => array( 73 | 0 => 'color: #ff0000;' 74 | ), 75 | 'NUMBERS' => array( 76 | 0 => 'color: #cc66cc;' 77 | ), 78 | 'METHODS' => array( 79 | ), 80 | 'SYMBOLS' => array( 81 | 0 => 'color: #66cc66;' 82 | ), 83 | 'SCRIPT' => array( 84 | -1 => 'color: #808080; font-style: italic;', // comments 85 | 0 => 'color: #00bbdd;', 86 | 1 => 'color: #ddbb00;', 87 | 2 => 'color: #339933;', 88 | 3 => 'color: #009900;' 89 | ), 90 | 'REGEXPS' => array( 91 | 0 => 'color: #000066;', 92 | 1 => 'color: #000000; font-weight: bold;', 93 | 2 => 'color: #000000; font-weight: bold;' 94 | ) 95 | ), 96 | 'URLS' => array( 97 | ), 98 | 'OOLANG' => false, 99 | 'OBJECT_SPLITTERS' => array( 100 | ), 101 | 'REGEXPS' => array( 102 | 0 => array(//attribute names 103 | GESHI_SEARCH => '([a-z0-9_\-:]+)(=)', 104 | GESHI_REPLACE => '\\1', 105 | GESHI_MODIFIERS => 'i', 106 | GESHI_BEFORE => '', 107 | GESHI_AFTER => '\\2' 108 | ), 109 | 1 => array(//Initial header line 110 | GESHI_SEARCH => '(<[\/?|(\?xml)]?[a-z0-9_\-:]*(\??>)?)', 111 | GESHI_REPLACE => '\\1', 112 | GESHI_MODIFIERS => 'i', 113 | GESHI_BEFORE => '', 114 | GESHI_AFTER => '' 115 | ), 116 | 2 => array(//Tag end markers 117 | GESHI_SEARCH => '(([\/|\?])?>)', 118 | GESHI_REPLACE => '\\1', 119 | GESHI_MODIFIERS => 'i', 120 | GESHI_BEFORE => '', 121 | GESHI_AFTER => '' 122 | ), 123 | ), 124 | 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 125 | 'SCRIPT_DELIMITERS' => array( 126 | -1 => array( 127 | '' 128 | ), 129 | 0 => array( 130 | ' '>' 131 | ), 132 | 1 => array( 133 | '&' => ';' 134 | ), 135 | 2 => array( 136 | ' ']]>' 137 | ), 138 | 3 => array( 139 | '<' => '>' 140 | ) 141 | ), 142 | 'HIGHLIGHT_STRICT_BLOCK' => array( 143 | -1 => false, 144 | 0 => false, 145 | 1 => false, 146 | 2 => false, 147 | 3 => true 148 | ), 149 | 'TAB_WIDTH' => 2, 150 | 'PARSER_CONTROL' => array( 151 | 'ENABLE_FLAGS' => array( 152 | 'NUMBERS' => GESHI_NEVER 153 | ) 154 | ) 155 | ); 156 | 157 | ?> 158 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/pic16.php: -------------------------------------------------------------------------------- 1 | 'PIC16', 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 | /*Instructions*/ 49 | 1 => array( 50 | 'addcf','adddcf','addlw','addwf','andlw','andwf','bc','bcf','bdc', 51 | 'bnc','bndc','bnz','bsf','btfsc','btfss','bz','call','clrc','clrdc', 52 | 'clrf','clrw','clrwdt','clrz','comf','decf','goto','incf','incfsz', 53 | 'iorlw','iorwf','lcall','lgoto','movf','movfw','movlw','movwf', 54 | 'option','negf','nop','retfie','retlw','return','rlf','rrf','setc', 55 | 'setdc','setz','skpc','skpdc','skpnc','skpndc','skpnz','skpz', 56 | 'sleep','subcf','subdcf','sublw','subwf','swapf','tris','tstf', 57 | 'xorlw','xorwf' 58 | ), 59 | /*Registers*/ 60 | 2 => array( 61 | 'INDF','TMR0','OPTION','PCL','STATUS','FSR','PORTA','PORTB','PORTC', 62 | 'PORTD','PORTE','PORTF','TRISA','TRISB','TRISC','TRISD','TRISE', 63 | 'TRISF','PCLATH','INTCON','PIR1','PIE1','PCON','CMCON','VRCON', 64 | 'F','W' 65 | ), 66 | /*Directives*/ 67 | 3 => array( 68 | '_BADRAM','BANKISEL','BANKSEL','CBLOCK','CODE','_CONFIG','CONSTANT', 69 | 'DA','DATA','DB','DE','#DEFINE','DT','DW','ELSE','END','ENDC', 70 | 'ENDIF','ENDM','ENDW','EQU','ERROR','ERRORLEVEL','EXITM','EXPAND', 71 | 'EXTERN','FILL','GLOBAL','IDATA','_IDLOCS','IF','IFDEF','IFNDEF', 72 | 'INCLUDE','#INCLUDE','LIST','LOCAL','MACRO','_MAXRAM','MESSG', 73 | 'NOEXPAND','NOLIST','ORG','PAGE','PAGESEL','PROCESSOR','RADIX', 74 | 'RES','SET','SPACE','SUBTITLE','TITLE','UDATA','UDATA_ACS', 75 | 'UDATA_OVR','UDATA_SHR','#UNDEFINE','VARIABLE','WHILE', 76 | 'D','H','O','B','A' 77 | ), 78 | ), 79 | 'SYMBOLS' => array('=','.',',',':'), 80 | 'CASE_SENSITIVE' => array( 81 | GESHI_COMMENTS => false, 82 | 1 => false, 83 | 2 => false, 84 | 3 => false 85 | ), 86 | 'STYLES' => array( 87 | 'KEYWORDS' => array( 88 | 1 => 'color: #0000a0; font-weight: bold;', 89 | 2 => 'color: #aa3300; font-weight: bold;', 90 | 3 => 'color: #0000ff;', 91 | ), 92 | 'COMMENTS' => array( 93 | 1 => 'color: #00a000;' 94 | ), 95 | 'ESCAPE_CHAR' => array( 96 | 0 => 'color: #ff0000;' 97 | ), 98 | 'BRACKETS' => array( 99 | 0 => 'color: #0000ff;' 100 | ), 101 | 'STRINGS' => array( 102 | 0 => 'color: #ff7700;' 103 | ), 104 | 'NUMBERS' => array( 105 | 0 => 'color: #ff7700;' 106 | ), 107 | 'METHODS' => array( 108 | ), 109 | 'SYMBOLS' => array( 110 | 0 => 'color: #7777ff;' 111 | ), 112 | 'REGEXPS' => array(), 113 | 'SCRIPT' => array() 114 | ), 115 | 'URLS' => array( 116 | 1 => '', 117 | 2 => '', 118 | 3 => '' 119 | ), 120 | 'OOLANG' => false, 121 | 'OBJECT_SPLITTERS' => array(), 122 | 'NUMBERS' => 123 | GESHI_NUMBER_INT_BASIC | 124 | GESHI_NUMBER_BIN_SUFFIX | 125 | GESHI_NUMBER_HEX_PREFIX | 126 | GESHI_NUMBER_HEX_SUFFIX, 127 | 'REGEXPS' => array( 128 | ), 129 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 130 | 'SCRIPT_DELIMITERS' => array(), 131 | 'HIGHLIGHT_STRICT_BLOCK' => array(), 132 | 'TAB_WIDTH' => 4, 133 | 'PARSER_CONTROL' => array( 134 | 'KEYWORDS' => array( 135 | 'DISALLOWED_BEFORE' => "a-zA-Z0-9\$_\|\#>|^", 136 | 'DISALLOWED_AFTER' => "a-zA-Z0-9_<\|%" 137 | ) 138 | ) 139 | ); 140 | 141 | ?> 142 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/apt_sources.php: -------------------------------------------------------------------------------- 1 | 'Apt sources', 39 | 'COMMENT_SINGLE' => array(1 => '#'), 40 | 'COMMENT_MULTI' => array(), 41 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 42 | 'QUOTEMARKS' => array(), 43 | 'ESCAPE_CHAR' => '\\', 44 | 'KEYWORDS' => array( 45 | /*keywords*/ 46 | 1 => array( 47 | 'deb-src', 'deb' 48 | ), 49 | 2 => array( 50 | //Generic 51 | 'stable', 'old-stable', 'testing', 'testing-proposed-updates', 52 | 'unstable', 'unstable-proposed-updates', 'experimental', 53 | 'non-US', 'security', 'volatile', 'volatile-sloppy', 54 | 'apt-build', 55 | 'stable/updates', 56 | //Debian 57 | 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge', 58 | 'etch', 'lenny', 'sid', 59 | //Ubuntu 60 | 'warty', 'warty-updates', 'warty-security', 'warty-proposed', 'warty-backports', 61 | 'hoary', 'hoary-updates', 'hoary-security', 'hoary-proposed', 'hoary-backports', 62 | 'breezy', 'breezy-updates', 'breezy-security', 'breezy-proposed', 'breezy-backports', 63 | 'dapper', 'dapper-updates', 'dapper-security', 'dapper-proposed', 'dapper-backports', 64 | 'edgy', 'edgy-updates', 'edgy-security', 'edgy-proposed', 'edgy-backports', 65 | 'feisty', 'feisty-updates', 'feisty-security', 'feisty-proposed', 'feisty-backports', 66 | 'gutsy', 'gutsy-updates', 'gutsy-security', 'gutsy-proposed', 'gutsy-backports', 67 | 'hardy', 'hardy-updates', 'hardy-security', 'hardy-proposed', 'hardy-backports', 68 | 'intrepid', 'intrepid-updates', 'intrepid-security', 'intrepid-proposed', 'intrepid-backports' 69 | ), 70 | 3 => array( 71 | 'main', 'restricted', 'preview', 'contrib', 'non-free', 72 | 'commercial', 'universe', 'multiverse' 73 | ) 74 | ), 75 | 'REGEXPS' => array( 76 | 0 => "(((http|ftp):\/\/|file:\/)[^\s]+)|(cdrom:\[[^\]]*\][^\s]*)", 77 | ), 78 | 'SYMBOLS' => array( 79 | ), 80 | 'CASE_SENSITIVE' => array( 81 | GESHI_COMMENTS => false, 82 | 1 => false, 83 | 2 => true, 84 | 3 => true 85 | ), 86 | 'STYLES' => array( 87 | 'KEYWORDS' => array( 88 | 1 => 'color: #00007f;', 89 | 2 => 'color: #b1b100;', 90 | 3 => 'color: #b16000;' 91 | ), 92 | 'COMMENTS' => array( 93 | 1 => 'color: #adadad; font-style: italic;', 94 | ), 95 | 'ESCAPE_CHAR' => array( 96 | ), 97 | 'BRACKETS' => array( 98 | ), 99 | 'STRINGS' => array( 100 | ), 101 | 'NUMBERS' => array( 102 | ), 103 | 'METHODS' => array( 104 | ), 105 | 'SYMBOLS' => array( 106 | ), 107 | 'REGEXPS' => array( 108 | 0 => 'color: #009900;', 109 | ), 110 | 'SCRIPT' => array( 111 | ) 112 | ), 113 | 'URLS' => array( 114 | 1 => '', 115 | 2 => '', 116 | 3 => '' 117 | ), 118 | 'OOLANG' => false, 119 | 'OBJECT_SPLITTERS' => array( 120 | ), 121 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 122 | 'SCRIPT_DELIMITERS' => array( 123 | ), 124 | 'HIGHLIGHT_STRICT_BLOCK' => array( 125 | ), 126 | 'PARSER_CONTROL' => array( 127 | 'ENABLE_FLAGS' => array( 128 | 'NUMBERS' => GESHI_NEVER, 129 | 'METHODS' => GESHI_NEVER, 130 | 'SCRIPT' => GESHI_NEVER, 131 | 'SYMBOLS' => GESHI_NEVER, 132 | 'ESCAPE_CHAR' => GESHI_NEVER, 133 | 'BRACKETS' => GESHI_NEVER, 134 | 'STRINGS' => GESHI_NEVER, 135 | ), 136 | 'KEYWORDS' => array( 137 | 'DISALLOWED_BEFORE' => '(?|^\/])', 138 | 'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-&\.])' 139 | ) 140 | ), 141 | 'TAB_WIDTH' => 4 142 | ); 143 | 144 | ?> 145 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/sql.php: -------------------------------------------------------------------------------- 1 | 'SQL', 54 | 'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'), 55 | 'COMMENT_MULTI' => array('/*' => '*/'), 56 | 'CASE_KEYWORDS' => 1, 57 | 'QUOTEMARKS' => array("'", '"', '`'), 58 | 'ESCAPE_CHAR' => '\\', 59 | 'KEYWORDS' => array( 60 | 1 => array( 61 | 'ADD', 'ALL', 'ALTER', 'AND', 'AS', 'ASC', 62 | 'AUTO_INCREMENT', 'BETWEEN', 'BINARY', 'BOOLEAN', 63 | 'BOTH', 'BY', 'CHANGE', 'CHECK', 'COLUMN', 'COLUMNS', 64 | 'CREATE', 'CROSS', 'DATA', 'DATABASE', 'DATABASES', 65 | 'DEFAULT', 'DELAYED', 'DELETE', 'DESC', 'DESCRIBE', 66 | 'DISTINCT', 'DROP', 'ENCLOSED', 'ESCAPED', 'EXISTS', 67 | 'EXPLAIN', 'FIELD', 'FIELDS', 'FLUSH', 'FOR', 68 | 'FOREIGN', 'FROM', 'FULL', 'FUNCTION', 'GRANT', 69 | 'GROUP', 'HAVING', 'IDENTIFIED', 'IF', 'IGNORE', 70 | 'IN', 'INDEX', 'INFILE', 'INNER', 'INSERT', 'INTO', 71 | 'IS', 'JOIN', 'KEY', 'KEYS', 'KILL', 'LANGUAGE', 72 | 'LEADING', 'LEFT', 'LIKE', 'LIMIT', 'LINES', 'LOAD', 73 | 'LOCAL', 'LOCK', 'LOW_PRIORITY', 'MODIFY', 'NATURAL', 74 | 'NEXTVAL', 'NOT', 'NULL', 'ON', 'OPTIMIZE', 'OPTION', 75 | 'OPTIONALLY', 'OR', 'ORDER', 'OUTER', 'OUTFILE', 76 | 'PRIMARY', 'PROCEDURAL', 'PROCEEDURE', 'READ', 77 | 'REFERENCES', 'REGEXP', 'RENAME', 'REPLACE', 78 | 'RETURN', 'REVOKE', 'RIGHT', 'RLIKE', 'SELECT', 79 | 'SET', 'SETVAL', 'SHOW', 'SONAME', 'STATUS', 80 | 'STRAIGHT_JOIN', 'TABLE', 'TABLES', 'TEMINATED', 81 | 'TEMPORARY', 'TO', 'TRAILING', 'TRIGGER', 'TRUNCATE', 82 | 'TRUSTED', 'UNION', 'UNIQUE', 'UNLOCK', 'UNSIGNED', 83 | 'UPDATE', 'USE', 'USING', 'VALUES', 'VARIABLES', 84 | 'VIEW', 'WHERE', 'WITH', 'WRITE', 'XOR', 'ZEROFILL' 85 | ) 86 | ), 87 | 'SYMBOLS' => array( 88 | '(', ')', '=', '<', '>', '|', ',', '.', '+', '-', '*', '/' 89 | ), 90 | 'CASE_SENSITIVE' => array( 91 | GESHI_COMMENTS => false, 92 | 1 => false 93 | ), 94 | 'STYLES' => array( 95 | 'KEYWORDS' => array( 96 | 1 => 'color: #993333; font-weight: bold;' 97 | ), 98 | 'COMMENTS' => array( 99 | 1 => 'color: #808080; font-style: italic;', 100 | 2 => 'color: #808080; font-style: italic;', 101 | 'MULTI' => 'color: #808080; font-style: italic;' 102 | ), 103 | 'ESCAPE_CHAR' => array( 104 | 0 => 'color: #000099; font-weight: bold;' 105 | ), 106 | 'BRACKETS' => array( 107 | 0 => 'color: #66cc66;' 108 | ), 109 | 'STRINGS' => array( 110 | 0 => 'color: #ff0000;' 111 | ), 112 | 'NUMBERS' => array( 113 | 0 => 'color: #cc66cc;' 114 | ), 115 | 'METHODS' => array( 116 | ), 117 | 'SYMBOLS' => array( 118 | 0 => 'color: #66cc66;' 119 | ), 120 | 'SCRIPT' => array( 121 | ), 122 | 'REGEXPS' => array( 123 | ) 124 | ), 125 | 'URLS' => array( 126 | 1 => '' 127 | ), 128 | 'OOLANG' => false, 129 | 'OBJECT_SPLITTERS' => array( 130 | ), 131 | 'REGEXPS' => array( 132 | ), 133 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 134 | 'SCRIPT_DELIMITERS' => array( 135 | ), 136 | 'HIGHLIGHT_STRICT_BLOCK' => array( 137 | ) 138 | ); 139 | 140 | ?> 141 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/oobas.php: -------------------------------------------------------------------------------- 1 | 'OpenOffice.org Basic', 46 | 'COMMENT_SINGLE' => array(1 => "'"), 47 | 'COMMENT_MULTI' => array(), 48 | //Single-Line comments using REM keyword 49 | 'COMMENT_REGEXP' => array(2 => '/\bREM.*?$/i'), 50 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 51 | 'QUOTEMARKS' => array('"'), 52 | 'ESCAPE_CHAR' => '', 53 | 'KEYWORDS' => array( 54 | 1 => array( 55 | 'dim','private','public','global','as','if','redim','true','set','byval', 56 | 'false','bool','double','integer','long','object','single','variant', 57 | 'msgbox','print','inputbox','green','blue','red','qbcolor', 58 | 'rgb','open','close','reset','freefile','get','input','line', 59 | 'put','write','loc','seek','eof','lof','chdir','chdrive', 60 | 'curdir','dir','fileattr','filecopy','filedatetime','fileexists', 61 | 'filelen','getattr','kill','mkdir','name','rmdir','setattr', 62 | 'dateserial','datevalue','day','month','weekday','year','cdatetoiso', 63 | 'cdatefromiso','hour','minute','second','timeserial','timevalue', 64 | 'date','now','time','timer','erl','err','error','on','goto','resume', 65 | 'and','eqv','imp','not','or','xor','mod','atn','cos','sin','tan','log', 66 | 'exp','rnd','randomize','sqr','fix','int','abs','sgn','hex','oct', 67 | 'it','then','else','select','case','iif','do','loop','for','next','to', 68 | 'while','wend','gosub','return','call','choose','declare', 69 | 'end','exit','freelibrary','function','rem','stop','sub','switch','with', 70 | 'cbool','cdate','cdbl','cint','clng','const','csng','cstr','defbool', 71 | 'defdate','defdbl','defint','deflng','asc','chr','str','val','cbyte', 72 | 'space','string','format','lcase','left','lset','ltrim','mid','right', 73 | 'rset','rtrim','trim','ucase','split','join','converttourl','convertfromurl', 74 | 'instr','len','strcomp','beep','shell','wait','getsystemticks','environ', 75 | 'getsolarversion','getguitype','twipsperpixelx','twipsperpixely', 76 | 'createunostruct','createunoservice','getprocessservicemanager', 77 | 'createunodialog','createunolistener','createunovalue','thiscomponent', 78 | 'globalscope' 79 | ) 80 | ), 81 | 'SYMBOLS' => array( 82 | '(', ')', '=' 83 | ), 84 | 'CASE_SENSITIVE' => array( 85 | GESHI_COMMENTS => false, 86 | 1 => false 87 | ), 88 | 'STYLES' => array( 89 | 'KEYWORDS' => array( 90 | 1 => 'color: #b1b100;' 91 | ), 92 | 'COMMENTS' => array( 93 | 1 => 'color: #808080;', 94 | 2 => 'color: #808080;' 95 | ), 96 | 'BRACKETS' => array( 97 | 0 => 'color: #66cc66;' 98 | ), 99 | 'STRINGS' => array( 100 | 0 => 'color: #ff0000;' 101 | ), 102 | 'NUMBERS' => array( 103 | 0 => 'color: #cc66cc;' 104 | ), 105 | 'METHODS' => array( 106 | 1 => 'color: #006600;' 107 | ), 108 | 'SYMBOLS' => array( 109 | 0 => 'color: #66cc66;' 110 | ), 111 | 'ESCAPE_CHAR' => array( 112 | 0 => 'color: #000099;' 113 | ), 114 | 'SCRIPT' => array( 115 | ), 116 | 'REGEXPS' => array( 117 | ) 118 | ), 119 | 'URLS' => array( 120 | 1 => '' 121 | ), 122 | 'OOLANG' => true, 123 | 'OBJECT_SPLITTERS' => array( 124 | 1 => '.' 125 | ), 126 | 'REGEXPS' => array( 127 | ), 128 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 129 | 'SCRIPT_DELIMITERS' => array( 130 | ), 131 | 'HIGHLIGHT_STRICT_BLOCK' => array( 132 | ) 133 | ); 134 | 135 | ?> 136 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/smalltalk.php: -------------------------------------------------------------------------------- 1 | 'Smalltalk', 43 | 'COMMENT_SINGLE' => array(), 44 | 'COMMENT_MULTI' => array('"' => '"'), 45 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 46 | 'QUOTEMARKS' => array("'"), 47 | 'ESCAPE_CHAR' => '', 48 | 'KEYWORDS' => array( 49 | 1 => array('self','super','true','false','nil') 50 | ), 51 | 'SYMBOLS' => array( 52 | '[', ']', '=' , ':=', '(', ')', '#' 53 | ), 54 | 'CASE_SENSITIVE' => array( 55 | GESHI_COMMENTS => false, 56 | 1 => true 57 | ), 58 | 'STYLES' => array( 59 | 'KEYWORDS' => array( 60 | 1 => 'color: #7f007f;' 61 | ), 62 | 'COMMENTS' => array( 63 | 'MULTI' => 'color: #007f00; font-style: italic;' 64 | ), 65 | 'ESCAPE_CHAR' => array( 66 | 0 => '' 67 | ), 68 | 'BRACKETS' => array( 69 | 0 => '' 70 | ), 71 | 'STRINGS' => array( 72 | 0 => 'color: #7f0000;' 73 | ), 74 | 'NUMBERS' => array( 75 | 0 => 'color: #7f0000;' 76 | ), 77 | 'METHODS' => array( 78 | 0 => '' 79 | ), 80 | 'SYMBOLS' => array( 81 | 0 => 'color: #000066; font-weight:bold;' 82 | ), 83 | 'REGEXPS' => array( 84 | 0 => 'color: #0000ff;', 85 | 1 => 'color: #7f0000;', 86 | 2 => 'color: #7f0000;', 87 | 3 => 'color: #00007f;', 88 | 4 => 'color: #7f007f;', 89 | 5 => 'color: #00007f;', 90 | 6 => 'color: #00007f;' 91 | ), 92 | 'SCRIPT' => array( 93 | 0 => '' 94 | ) 95 | ), 96 | 'URLS' => array( 97 | 1 => '' 98 | ), 99 | 'OOLANG' => false, 100 | 'OBJECT_SPLITTERS' => array( 101 | ), 102 | 'REGEXPS' => array( 103 | 0 => array( 104 | GESHI_SEARCH => '([^a-zA-Z0-9_#<])([A-Z]+[a-zA-Z0-9_]*)(?!>)', //class names 105 | GESHI_REPLACE => '\\2', 106 | GESHI_MODIFIERS => '', 107 | GESHI_BEFORE => '\\1', 108 | GESHI_AFTER => '' 109 | ), 110 | 1 => array( 111 | GESHI_SEARCH => '(#+)([a-zA-Z0-9_]+)', //symbols 112 | GESHI_REPLACE => '\\1\\2', 113 | GESHI_MODIFIERS => '', 114 | GESHI_BEFORE => '', 115 | GESHI_AFTER => '' 116 | ), 117 | 2 => array( 118 | GESHI_SEARCH => '(#\s*\([^)]*\))', //array symbols 119 | GESHI_REPLACE => '\\1', 120 | GESHI_MODIFIERS => '', 121 | GESHI_BEFORE => '', 122 | GESHI_AFTER => '' 123 | ), 124 | 3 => array( 125 | GESHI_SEARCH => '([a-zA-Z0-9_\s]+)', //temporary variables 126 | GESHI_REPLACE => '\\1', 127 | GESHI_MODIFIERS => '', 128 | GESHI_BEFORE => '|', 129 | GESHI_AFTER => '|' 130 | ), 131 | 4 => array( 132 | GESHI_SEARCH => '(self|super|true|false|nil)', //keywords again (to avoid matching in next regexp) 133 | GESHI_REPLACE => '\\1', 134 | GESHI_MODIFIERS => '', 135 | GESHI_BEFORE => '', 136 | GESHI_AFTER => '' 137 | ), 138 | 5 => array( 139 | GESHI_SEARCH => '([:(,=[.*\/+-]\s*)([a-zA-Z0-9_]+)', //message parameters, message receivers 140 | GESHI_REPLACE => '\\2', 141 | GESHI_MODIFIERS => 's', 142 | GESHI_BEFORE => '\\1', 143 | GESHI_AFTER => '' 144 | ), 145 | 6 => array( 146 | GESHI_SEARCH => '([a-zA-Z0-9_]+)(\s*:=)', //assignment targets 147 | GESHI_REPLACE => '\\1', 148 | GESHI_MODIFIERS => '', 149 | GESHI_BEFORE => '', 150 | GESHI_AFTER => '\\2' 151 | ) 152 | ), 153 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 154 | 'SCRIPT_DELIMITERS' => array( 155 | ), 156 | 'HIGHLIGHT_STRICT_BLOCK' => array( 157 | ) 158 | ); 159 | 160 | ?> 161 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/lisp.php: -------------------------------------------------------------------------------- 1 | 'Lisp', 46 | 'COMMENT_SINGLE' => array(1 => ';'), 47 | 'COMMENT_MULTI' => array(';|' => '|;'), 48 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 49 | 'QUOTEMARKS' => array('"'), 50 | 'ESCAPE_CHAR' => '\\', 51 | 'KEYWORDS' => array( 52 | 1 => array( 53 | 'not','defun','princ','when', 54 | 'eval','apply','funcall','quote','identity','function', 55 | 'complement','backquote','lambda','set','setq','setf', 56 | 'defmacro','gensym','make','symbol','intern', 57 | 'name','value','plist','get', 58 | 'getf','putprop','remprop','hash','array','aref', 59 | 'car','cdr','caar','cadr','cdar','cddr','caaar','caadr','cadar', 60 | 'caddr','cdaar','cdadr','cddar','cdddr','caaaar','caaadr', 61 | 'caadar','caaddr','cadaar','cadadr','caddar','cadddr', 62 | 'cdaaar','cdaadr','cdadar','cdaddr','cddaar','cddadr', 63 | 'cdddar','cddddr','cons','list','append','reverse','last','nth', 64 | 'nthcdr','member','assoc','subst','sublis','nsubst', 65 | 'nsublis','remove','length', 66 | 'mapc','mapcar','mapl','maplist','mapcan','mapcon','rplaca', 67 | 'rplacd','nconc','delete','atom','symbolp','numberp', 68 | 'boundp','null','listp','consp','minusp','zerop','plusp', 69 | 'evenp','oddp','eq','eql','equal','cond','case','and','or', 70 | 'let','l','if','prog','prog1','prog2','progn','go','return', 71 | 'do','dolist','dotimes','catch','throw','error','cerror','break', 72 | 'continue','errset','baktrace','evalhook','truncate','float', 73 | 'rem','min','max','abs','sin','cos','tan','expt','exp','sqrt', 74 | 'random','logand','logior','logxor','lognot','bignums','logeqv', 75 | 'lognand','lognor','logorc2','logtest','logbitp','logcount', 76 | 'integer','nil','parse-integer' 77 | ) 78 | ), 79 | 'SYMBOLS' => array( 80 | '(', ')', '{', '}', '[', ']', 81 | '!', '%', '^', '&', 82 | ' + ',' - ',' * ',' / ', 83 | '=','<','>', 84 | '.',':',',',';', 85 | '|' 86 | ), 87 | 'CASE_SENSITIVE' => array( 88 | GESHI_COMMENTS => false, 89 | 1 => false 90 | ), 91 | 'STYLES' => array( 92 | 'KEYWORDS' => array( 93 | 1 => 'color: #b1b100;' 94 | ), 95 | 'COMMENTS' => array( 96 | 1 => 'color: #808080; font-style: italic;', 97 | 'MULTI' => 'color: #808080; font-style: italic;' 98 | ), 99 | 'ESCAPE_CHAR' => array( 100 | 0 => 'color: #000099; font-weight: bold;' 101 | ), 102 | 'BRACKETS' => array( 103 | 0 => 'color: #66cc66;' 104 | ), 105 | 'STRINGS' => array( 106 | 0 => 'color: #ff0000;' 107 | ), 108 | 'NUMBERS' => array( 109 | 0 => 'color: #cc66cc;' 110 | ), 111 | 'METHODS' => array( 112 | 0 => 'color: #555;', 113 | 1 => 'color: #555;' 114 | ), 115 | 'SYMBOLS' => array( 116 | 0 => 'color: #66cc66;' 117 | ), 118 | 'REGEXPS' => array( 119 | ), 120 | 'SCRIPT' => array( 121 | ) 122 | ), 123 | 'URLS' => array( 124 | 1 => '' 125 | ), 126 | 'OOLANG' => true, 127 | 'OBJECT_SPLITTERS' => array( 128 | '::', ':' 129 | ), 130 | 'REGEXPS' => array( 131 | ), 132 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 133 | 'SCRIPT_DELIMITERS' => array( 134 | ), 135 | 'HIGHLIGHT_STRICT_BLOCK' => array( 136 | ), 137 | 'PARSER_CONTROL' => array( 138 | 'OOLANG' => array( 139 | 'MATCH_AFTER' => '[a-zA-Z][a-zA-Z0-9_\-]*' 140 | ) 141 | ) 142 | ); 143 | 144 | ?> 145 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/javascript.php: -------------------------------------------------------------------------------- 1 | 'Javascript', 46 | 'COMMENT_SINGLE' => array(1 => '//'), 47 | 'COMMENT_MULTI' => array('/*' => '*/'), 48 | //Regular Expressions 49 | 'COMMENT_REGEXP' => array(2 => "/(?<=[\\s^])s\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])m?\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\,\\;\\)])/iU"), 50 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 51 | 'QUOTEMARKS' => array("'", '"'), 52 | 'ESCAPE_CHAR' => '\\', 53 | 'KEYWORDS' => array( 54 | 1 => array( 55 | 'as', 'break', 'case', 'catch', 'continue', 'decodeURI', 'delete', 'do', 56 | 'else', 'encodeURI', 'eval', 'finally', 'for', 'if', 'in', 'is', 'item', 57 | 'instanceof', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'void', 58 | 'while', 'write', 'with' 59 | ), 60 | 2 => array( 61 | 'class', 'const', 'default', 'debugger', 'export', 'extends', 'false', 62 | 'function', 'import', 'namespace', 'new', 'null', 'package', 'private', 63 | 'protected', 'public', 'super', 'true', 'use', 'var' 64 | ), 65 | 3 => array( 66 | // common functions for Window object 67 | 'alert', 'back', 'blur', 'close', 'confirm', 'focus', 'forward', 'home', 68 | 'name', 'navigate', 'onblur', 'onerror', 'onfocus', 'onload', 'onmove', 69 | 'onresize', 'onunload', 'open', 'print', 'prompt', 'scroll', 'status', 70 | 'stop', 71 | ) 72 | ), 73 | 'SYMBOLS' => array( 74 | '(', ')', '[', ']', '{', '}', 75 | '+', '-', '*', '/', '%', 76 | '!', '@', '&', '|', '^', 77 | '<', '>', '=', 78 | ',', ';', '?', ':' 79 | ), 80 | 'CASE_SENSITIVE' => array( 81 | GESHI_COMMENTS => false, 82 | 1 => false, 83 | 2 => false, 84 | 3 => false 85 | ), 86 | 'STYLES' => array( 87 | 'KEYWORDS' => array( 88 | 1 => 'color: #000066; font-weight: bold;', 89 | 2 => 'color: #003366; font-weight: bold;', 90 | 3 => 'color: #000066;' 91 | ), 92 | 'COMMENTS' => array( 93 | 1 => 'color: #006600; font-style: italic;', 94 | 2 => 'color: #009966; font-style: italic;', 95 | 'MULTI' => 'color: #006600; font-style: italic;' 96 | ), 97 | 'ESCAPE_CHAR' => array( 98 | 0 => 'color: #000099; font-weight: bold;' 99 | ), 100 | 'BRACKETS' => array( 101 | 0 => 'color: #009900;' 102 | ), 103 | 'STRINGS' => array( 104 | 0 => 'color: #3366CC;' 105 | ), 106 | 'NUMBERS' => array( 107 | 0 => 'color: #CC0000;' 108 | ), 109 | 'METHODS' => array( 110 | 1 => 'color: #660066;' 111 | ), 112 | 'SYMBOLS' => array( 113 | 0 => 'color: #339933;' 114 | ), 115 | 'REGEXPS' => array( 116 | ), 117 | 'SCRIPT' => array( 118 | 0 => '', 119 | 1 => '', 120 | 2 => '', 121 | 3 => '' 122 | ) 123 | ), 124 | 'URLS' => array( 125 | 1 => '', 126 | 2 => '', 127 | 3 => '' 128 | ), 129 | 'OOLANG' => true, 130 | 'OBJECT_SPLITTERS' => array( 131 | 1 => '.' 132 | ), 133 | 'REGEXPS' => array( 134 | ), 135 | 'STRICT_MODE_APPLIES' => GESHI_MAYBE, 136 | 'SCRIPT_DELIMITERS' => array( 137 | 0 => array( 138 | '' 139 | ), 140 | 1 => array( 141 | '' 142 | ) 143 | ), 144 | 'HIGHLIGHT_STRICT_BLOCK' => array( 145 | 0 => true, 146 | 1 => true 147 | ) 148 | ); 149 | 150 | ?> 151 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/vhdl.php: -------------------------------------------------------------------------------- 1 | 'VHDL', 45 | 'COMMENT_SINGLE' => array(1 => '--'), 46 | 'COMMENT_MULTI' => array('%' => '%'), 47 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 48 | 'QUOTEMARKS' => array('"'), 49 | 'ESCAPE_CHAR' => '', 50 | 'KEYWORDS' => array( 51 | /*keywords*/ 52 | 1 => array( 53 | 'access','after','alias','all','assert','attribute','architecture','begin', 54 | 'block','body','buffer','bus','case','component','configuration','constant', 55 | 'disconnect','downto','else','elsif','end','entity','exit','file','for', 56 | 'function','generate','generic','group','guarded','if','impure','in', 57 | 'inertial','inout','is','label','library','linkage','literal','loop', 58 | 'map','new','next','null','of','on','open','others','out','package', 59 | 'port','postponed','procedure','process','pure','range','record','register', 60 | 'reject','report','return','select','severity','signal','shared','subtype', 61 | 'then','to','transport','type','unaffected','units','until','use','variable', 62 | 'wait','when','while','with','note','warning','error','failure','and', 63 | 'or','xor','not','nor','used','memory','segments','dff','dffe','help_id', 64 | 'mod','info','latch','rising_edge','falling_edge' 65 | ), 66 | /*types*/ 67 | 2 => array( 68 | 'bit','bit_vector','character','boolean','integer','real','time','string', 69 | 'severity_level','positive','natural','signed','unsigned','line','text', 70 | 'std_logic','std_logic_vector','std_ulogic','std_ulogic_vector','qsim_state', 71 | 'qsim_state_vector','qsim_12state','qsim_12state_vector','qsim_strength', 72 | 'mux_bit','mux_vector','reg_bit','reg_vector','wor_bit','wor_vector', 73 | 'work','ieee','std_logic_signed','std_logic_1164','std_logic_arith', 74 | 'numeric_std' 75 | 76 | ), 77 | /*operators*/ 78 | ), 79 | 'SYMBOLS' => array( 80 | '[', ']', '(', ')', 81 | ';',':', 82 | '<','>','=','<=',':=','=>','==' 83 | ), 84 | 'CASE_SENSITIVE' => array( 85 | GESHI_COMMENTS => false, 86 | 1 => false, 87 | 2 => false 88 | ), 89 | 'STYLES' => array( 90 | 'KEYWORDS' => array( 91 | 1 => 'color: #000080; font-weight: bold;', 92 | 2 => 'color: #0000ff;' 93 | ), 94 | 'COMMENTS' => array( 95 | 1 => 'color: #008000; font-style: italic;', 96 | 'MULTI' => 'color: #008000; font-style: italic;' 97 | ), 98 | 'ESCAPE_CHAR' => array( 99 | 0 => 'color: #000099; font-weight: bold;' 100 | ), 101 | 'BRACKETS' => array( 102 | 0 => 'color: #000066;' 103 | ), 104 | 'STRINGS' => array( 105 | 0 => 'color: #7f007f;' 106 | ), 107 | 'NUMBERS' => array( 108 | 0 => 'color: #ff0000;' 109 | ), 110 | 'METHODS' => array( 111 | ), 112 | 'SYMBOLS' => array( 113 | 0 => 'color: #000066;' 114 | ), 115 | 'REGEXPS' => array( 116 | 0 => 'color: #ff0000;', 117 | 1 => 'color: #ff0000;' 118 | ), 119 | 'SCRIPT' => array( 120 | ) 121 | ), 122 | 'URLS' => array( 123 | 1 => '', 124 | 2 => '' 125 | ), 126 | 'OOLANG' => false, 127 | 'OBJECT_SPLITTERS' => array( 128 | ), 129 | 'REGEXPS' => array( 130 | //Hex numbers and scientific notation for numbers 131 | 0 => '(\b0x[0-9a-fA-F]+|\b\d[0-9a-fA-F]+[hH])|'. 132 | '(\b\d+?(\.\d+?)?E[+\-]?\d+)|(\bns)|'. 133 | "('[0-9a-zA-Z]+(?!'))", 134 | //Number characters? 135 | 1 => "\b(''\d'')" 136 | ), 137 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 138 | 'SCRIPT_DELIMITERS' => array( 139 | ), 140 | 'HIGHLIGHT_STRICT_BLOCK' => array( 141 | ) 142 | ); 143 | 144 | ?> 145 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/io.php: -------------------------------------------------------------------------------- 1 | 'Io', 43 | 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 44 | 'COMMENT_MULTI' => array('/*' => '*/'), 45 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 46 | 'QUOTEMARKS' => array('"'), 47 | 'ESCAPE_CHAR' => '\\', 48 | 'KEYWORDS' => array( 49 | 1 => array( 50 | 'and', 'break', 'else', 'elseif', 'exit', 'for', 'foreach', 'if', 'ifFalse', 'ifNil', 51 | 'ifTrue', 'or', 'pass', 'raise', 'return', 'then', 'try', 'wait', 'while', 'yield' 52 | ), 53 | 2 => array( 54 | 'activate', 'activeCoroCount', 'asString', 'block', 'catch', 'clone', 'collectGarbage', 55 | 'compileString', 'continue', 'do', 'doFile', 'doMessage', 'doString', 'forward', 56 | 'getSlot', 'getenv', 'hasSlot', 'isActive', 'isNil', 'isResumable', 'list', 'message', 57 | 'method', 'parent', 'pause', 'perform', 'performWithArgList', 'print', 'proto', 58 | 'raiseResumable', 'removeSlot', 'resend', 'resume', 'schedulerSleepSeconds', 'self', 59 | 'sender', 'setSchedulerSleepSeconds', 'setSlot', 'shallowCopy', 'slotNames', 'super', 60 | 'system', 'thisBlock', 'thisContext', 'thisMessage', 'type', 'uniqueId', 'updateSlot', 61 | 'write' 62 | ), 63 | 3 => array( 64 | 'Array', 'AudioDevice', 'AudioMixer', 'Block', 'Box', 'Buffer', 'CFunction', 'CGI', 65 | 'Color', 'Curses', 'DBM', 'DNSResolver', 'DOConnection', 'DOProxy', 'DOServer', 66 | 'Date', 'Directory', 'Duration', 'DynLib', 'Error', 'Exception', 'FFT', 'File', 67 | 'Fnmatch', 'Font', 'Future', 'GL', 'GLE', 'GLScissor', 'GLU', 'GLUCylinder', 68 | 'GLUQuadric', 'GLUSphere', 'GLUT', 'Host', 'Image', 'Importer', 'LinkList', 'List', 69 | 'Lobby', 'Locals', 'MD5', 'MP3Decoder', 'MP3Encoder', 'Map', 'Message', 'Movie', 70 | 'NULL', 'Nil', 'Nop', 'Notifiction', 'Number', 'Object', 'OpenGL', 'Point', 'Protos', 71 | 'Regex', 'SGMLTag', 'SQLite', 'Server', 'ShowMessage', 'SleepyCat', 'SleepyCatCursor', 72 | 'Socket', 'SocketManager', 'Sound', 'Soup', 'Store', 'String', 'Tree', 'UDPSender', 73 | 'UDPReceiver', 'URL', 'User', 'Warning', 'WeakLink' 74 | ) 75 | ), 76 | 'SYMBOLS' => array( 77 | '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>' 78 | ), 79 | 'CASE_SENSITIVE' => array( 80 | GESHI_COMMENTS => false, 81 | 1 => false, 82 | 2 => false, 83 | 3 => false, 84 | ), 85 | 'STYLES' => array( 86 | 'KEYWORDS' => array( 87 | 1 => 'color: #b1b100;', 88 | 2 => 'color: #000000; font-weight: bold;', 89 | 3 => 'color: #000066;' 90 | ), 91 | 'COMMENTS' => array( 92 | 1 => 'color: #808080; font-style: italic;', 93 | 2 => 'color: #808080; font-style: italic;', 94 | 'MULTI' => 'color: #808080; font-style: italic;' 95 | ), 96 | 'ESCAPE_CHAR' => array( 97 | 0 => 'color: #000099; font-weight: bold;' 98 | ), 99 | 'BRACKETS' => array( 100 | 0 => 'color: #66cc66;' 101 | ), 102 | 'STRINGS' => array( 103 | 0 => 'color: #ff0000;' 104 | ), 105 | 'NUMBERS' => array( 106 | 0 => 'color: #cc66cc;' 107 | ), 108 | 'METHODS' => array( 109 | 1 => 'color: #006600;', 110 | 2 => 'color: #006600;' 111 | ), 112 | 'SYMBOLS' => array( 113 | 0 => 'color: #66cc66;' 114 | ), 115 | 'REGEXPS' => array( 116 | ), 117 | 'SCRIPT' => array( 118 | 0 => '' 119 | ) 120 | ), 121 | 'URLS' => array( 122 | 1 => '', 123 | 2 => '', 124 | 3 => '' 125 | ), 126 | 'OOLANG' => false, 127 | 'OBJECT_SPLITTERS' => array( 128 | ), 129 | 'REGEXPS' => array( 130 | ), 131 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 132 | 'SCRIPT_DELIMITERS' => array( 133 | ), 134 | 'HIGHLIGHT_STRICT_BLOCK' => array( 135 | ) 136 | ); 137 | 138 | ?> 139 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/prolog.php: -------------------------------------------------------------------------------- 1 | 'Prolog', 42 | 'COMMENT_SINGLE' => array(1 => '%'), 43 | 'COMMENT_MULTI' => array('/*' => '*/'), 44 | 'HARDQUOTE' => array("'", "'"), 45 | 'HARDESCAPE' => array("\'"), 46 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 47 | 'QUOTEMARKS' => array(), 48 | 'ESCAPE_CHAR' => '', 49 | 'NUMBERS' => 50 | GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO, 51 | 'KEYWORDS' => array( 52 | 1 => array( 53 | 'abolish','abs','arg','asserta','assertz','at_end_of_stream','atan', 54 | 'atom','atom_chars','atom_codes','atom_concat','atom_length', 55 | 'atomic','bagof','call','catch','ceiling','char_code', 56 | 'char_conversion','clause','close','compound','consult','copy_term', 57 | 'cos','current_char_conversion','current_input','current_op', 58 | 'current_output','current_predicate','current_prolog_flag', 59 | 'discontiguous','dynamic','ensure_loaded','exp','fail','findall', 60 | 'float','float_fractional_part','float_integer_part','floor', 61 | 'flush_output','functor','get_byte','get_char','get_code','halt', 62 | 'include','initialization','integer','is','listing','log','mod', 63 | 'multifile','nl','nonvar','notrace','number','number_chars', 64 | 'number_codes','once','op','open','peek_byte','peek_char', 65 | 'peek_code','put_byte','put_char','put_code','read','read_term', 66 | 'rem','repeat','retract','round','set_input','set_output', 67 | 'set_prolog_flag','set_stream_position','setof','sign','sin','sqrt', 68 | 'stream_property','sub_atom','throw','trace','true','truncate', 69 | 'unify_with_occurs_check','univ','var','write','write_canonical', 70 | 'write_term','writeq' 71 | ) 72 | ), 73 | 'SYMBOLS' => array( 74 | 0 => array('(', ')', '[', ']', '{', '}',), 75 | 1 => array('?-', ':-', '=:='), 76 | 2 => array('\-', '\+', '\*', '\/'), 77 | 3 => array('-', '+', '*', '/'), 78 | 4 => array('.', ':', ',', ';'), 79 | 5 => array('!', '@', '&', '|'), 80 | 6 => array('<', '>', '=') 81 | ), 82 | 'CASE_SENSITIVE' => array( 83 | GESHI_COMMENTS => false, 84 | 1 => false 85 | ), 86 | 'STYLES' => array( 87 | 'KEYWORDS' => array( 88 | 1 => 'color: #990000;' 89 | ), 90 | 'COMMENTS' => array( 91 | 1 => 'color: #666666; font-style: italic;', 92 | 'MULTI' => 'color: #666666; font-style: italic;' 93 | ), 94 | 'ESCAPE_CHAR' => array( 95 | 0 => 'color: #000099; font-weight: bold;', 96 | 'HARD' => 'color: #000099; font-weight: bold;' 97 | ), 98 | 'BRACKETS' => array( 99 | 0 => 'color: #009900;' 100 | ), 101 | 'STRINGS' => array( 102 | 0 => 'color: #0000ff;', 103 | 'HARD' => 'color: #0000ff;' 104 | ), 105 | 'NUMBERS' => array( 106 | 0 => 'color: #800080;' 107 | ), 108 | 'METHODS' => array( 109 | ), 110 | 'SYMBOLS' => array( 111 | 0 => 'color: #339933;', 112 | 1 => 'color: #339933;', 113 | 2 => 'color: #339933;', 114 | 3 => 'color: #339933;', 115 | 4 => 'color: #339933;', 116 | 5 => 'color: #339933;', 117 | 6 => 'color: #339933;' 118 | ), 119 | 'REGEXPS' => array( 120 | 0 => 'color: #008080;' 121 | ), 122 | 'SCRIPT' => array( 123 | ) 124 | ), 125 | 'URLS' => array( 126 | 1 => 'http://pauillac.inria.fr/~deransar/prolog/bips.html' 127 | ), 128 | 'OOLANG' => false, 129 | 'OBJECT_SPLITTERS' => array( 130 | ), 131 | 'REGEXPS' => array( 132 | //Variables 133 | 0 => "(? GESHI_NEVER, 136 | 'SCRIPT_DELIMITERS' => array( 137 | ), 138 | 'HIGHLIGHT_STRICT_BLOCK' => array( 139 | ), 140 | 'TAB_WIDTH' => 4 141 | ); 142 | 143 | ?> 144 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/pascal.php: -------------------------------------------------------------------------------- 1 | 'Pascal', 52 | 'COMMENT_SINGLE' => array(1 => '//'), 53 | 'COMMENT_MULTI' => array('{' => '}','(*' => '*)'), 54 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 55 | 'QUOTEMARKS' => array('"'), 56 | 'HARDQUOTE' => array("'", "'"), 57 | 'HARDESCAPE' => array("''"), 58 | 'ESCAPE_CHAR' => '\\', 59 | 'KEYWORDS' => array( 60 | 1 => array( 61 | 'absolute','asm','assembler','begin','break','case','catch','cdecl', 62 | 'const','constructor','default','destructor','div','do','downto', 63 | 'else','end','except','export','exports','external','far', 64 | 'finalization','finally','for','forward','function','goto','if', 65 | 'implementation','in','index','inherited','initialization','inline', 66 | 'interface','interrupt','label','library','mod','name','not','of', 67 | 'or','overload','override','private','procedure','program', 68 | 'property','protected','public','published','raise','repeat', 69 | 'resourcestring','shl','shr','stdcall','stored','switch','then', 70 | 'to','try','type','unit','until','uses','var','while','xor' 71 | ), 72 | 2 => array( 73 | 'nil', 'false', 'true', 74 | ), 75 | 3 => array( 76 | 'abs','and','arc','arctan','blockread','blockwrite','chr','dispose', 77 | 'cos','eof','eoln','exp','get','ln','new','odd','ord','ordinal', 78 | 'pred','read','readln','sin','sqrt','succ','write','writeln' 79 | ), 80 | 4 => array( 81 | 'ansistring','array','boolean','byte','bytebool','char','file', 82 | 'integer','longbool','longint','object','packed','pointer','real', 83 | 'record','set','shortint','smallint','string','union','word' 84 | ), 85 | ), 86 | 'SYMBOLS' => array( 87 | ',', ':', '=', '+', '-', '*', '/' 88 | ), 89 | 'CASE_SENSITIVE' => array( 90 | GESHI_COMMENTS => false, 91 | 1 => false, 92 | 2 => false, 93 | 3 => false, 94 | 4 => false, 95 | ), 96 | 'STYLES' => array( 97 | 'KEYWORDS' => array( 98 | 1 => 'color: #000000; font-weight: bold;', 99 | 2 => 'color: #000000; font-weight: bold;', 100 | 3 => 'color: #000066;', 101 | 4 => 'color: #000066; font-weight: bold;' 102 | ), 103 | 'COMMENTS' => array( 104 | 1 => 'color: #666666; font-style: italic;', 105 | 'MULTI' => 'color: #666666; font-style: italic;' 106 | ), 107 | 'ESCAPE_CHAR' => array( 108 | 0 => 'color: #000099; font-weight: bold;', 109 | 'HARD' => 'color: #000099; font-weight: bold;' 110 | ), 111 | 'BRACKETS' => array( 112 | 0 => 'color: #009900;' 113 | ), 114 | 'STRINGS' => array( 115 | 0 => 'color: #ff0000;', 116 | 'HARD' => 'color: #ff0000;' 117 | ), 118 | 'NUMBERS' => array( 119 | 0 => 'color: #cc66cc;' 120 | ), 121 | 'METHODS' => array( 122 | 1 => 'color: #0066ee;' 123 | ), 124 | 'SYMBOLS' => array( 125 | 0 => 'color: #339933;' 126 | ), 127 | 'REGEXPS' => array( 128 | ), 129 | 'SCRIPT' => array( 130 | ) 131 | ), 132 | 'URLS' => array( 133 | 1 => '', 134 | 2 => '', 135 | 3 => '', 136 | 4 => '' 137 | ), 138 | 'OOLANG' => true, 139 | 'OBJECT_SPLITTERS' => array( 140 | 1 => '.' 141 | ), 142 | 'REGEXPS' => array( 143 | ), 144 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 145 | 'SCRIPT_DELIMITERS' => array( 146 | ), 147 | 'HIGHLIGHT_STRICT_BLOCK' => array( 148 | ), 149 | 'TAB_WIDTH' => 4 150 | ); 151 | 152 | ?> 153 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/make.php: -------------------------------------------------------------------------------- 1 | 6 | * Copyright: (c) 2008 Neil Bird 7 | * Release Version: 1.0.8.1 8 | * Date Started: 2008/08/26 9 | * 10 | * make language file for GeSHi. 11 | * 12 | * (GNU make specific) 13 | * 14 | * CHANGES 15 | * ------- 16 | * 2008/09/05 (1.0.0) 17 | * - First Release 18 | * 19 | ************************************************************************************* 20 | * 21 | * This file is part of GeSHi. 22 | * 23 | * GeSHi is free software; you can redistribute it and/or modify 24 | * it under the terms of the GNU General Public License as published by 25 | * the Free Software Foundation; either version 2 of the License, or 26 | * (at your option) any later version. 27 | * 28 | * GeSHi is distributed in the hope that it will be useful, 29 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 30 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31 | * GNU General Public License for more details. 32 | * 33 | * You should have received a copy of the GNU General Public License 34 | * along with GeSHi; if not, write to the Free Software 35 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 36 | * 37 | ************************************************************************************/ 38 | 39 | $language_data = array ( 40 | 'LANG_NAME' => 'GNU make', 41 | 'COMMENT_SINGLE' => array(1 => '#'), 42 | 'COMMENT_REGEXP' => array( 43 | //Escaped String Starters 44 | 2 => "/\\\\['\"]/siU" 45 | ), 46 | 'COMMENT_MULTI' => array(), 47 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 48 | 'QUOTEMARKS' => array("'", '"'), 49 | 'ESCAPE_CHAR' => '\\', 50 | 'KEYWORDS' => array( 51 | 1 => array( 52 | // core 53 | 'ifeq', 'else', 'endif', 'ifneq', 'ifdef', 'ifndef', 54 | 'include', 'vpath', 'export', 'unexport', 'override', 55 | 'info', 'warning', 'error' 56 | ), 57 | 2 => array( 58 | // macros, literals 59 | '.SUFFIXES', '.PHONY', '.DEFAULT', '.PRECIOUS', '.IGNORE', '.SILENT', '.EXPORT_ALL_VARIABLES', '.KEEP_STATE', 60 | '.LIBPATTERNS', '.NOTPARALLEL', '.DELETE_ON_ERROR', '.INTERMEDIATE', '.POSIX', '.SECONDARY' 61 | ), 62 | /* 63 | 3 => array( 64 | // funcs - see regex 65 | //'subst', 'addprefix', 'addsuffix', 'basename', 'call', 'dir', 'error', 'eval', 'filter-out', 'filter', 66 | //'findstring', 'firstword', 'foreach', 'if', 'join', 'notdir', 'origin', 'patsubst', 'shell', 'sort', 'strip', 67 | //'suffix', 'warning', 'wildcard', 'word', 'wordlist', 'words' 68 | )*/ 69 | ), 70 | 'SYMBOLS' => array( 71 | '(', ')', '[', ']', '{', '}', 72 | '!', '@', '%', '&', '|', '/', 73 | '<', '>', 74 | '=', '-', '+', '*', 75 | '.', ':', ',', ';', 76 | '$' 77 | ), 78 | 'CASE_SENSITIVE' => array( 79 | GESHI_COMMENTS => false, 80 | 1 => false, 81 | 2 => false, 82 | //3 => false, 83 | ), 84 | 'STYLES' => array( 85 | 'KEYWORDS' => array( 86 | 1 => 'color: #666622; font-weight: bold;', 87 | 2 => 'color: #990000;', 88 | //3 => 'color: #000000; font-weight: bold;' 89 | ), 90 | 'COMMENTS' => array( 91 | 1 => 'color: #339900; font-style: italic;', 92 | 2 => 'color: #000099; font-weight: bold;', 93 | 'MULTI' => '' 94 | ), 95 | 'ESCAPE_CHAR' => array( 96 | 0 => 'color: #000099; font-weight: bold;' 97 | ), 98 | 'BRACKETS' => array( # keep same as symbols so as to make ${} and $() equiv. 99 | 0 => 'color: #004400;' 100 | ), 101 | 'STRINGS' => array( 102 | 0 => 'color: #CC2200;' 103 | ), 104 | 'NUMBERS' => array( 105 | 0 => 'color: #CC2200;' 106 | ), 107 | 'SYMBOLS' => array( 108 | 0 => 'color: #004400;' 109 | ), 110 | 'REGEXPS' => array( 111 | 0 => 'color: #000088; font-weight: bold;', 112 | 1 => 'color: #0000CC; font-weight: bold;', 113 | 2 => 'color: #000088;' 114 | ), 115 | 'SCRIPT' => array(), 116 | 'METHODS' => array() 117 | ), 118 | 'URLS' => array( 119 | 1 => '', 120 | 2 => '', 121 | //3 => '' 122 | ), 123 | 'OOLANG' => false, 124 | 'OBJECT_SPLITTERS' => array(), 125 | 'REGEXPS' => array( 126 | //Simple variables 127 | 0 => "\\$(?:[^{(&]|&(?:amp|lt|gt);)", 128 | //Complex variables/functions [built-ins] 129 | 1 => array( 130 | GESHI_SEARCH => '(\\$[({])(subst|addprefix|addsuffix|basename|call|dir|error|eval|filter-out|filter,|findstring|firstword|foreach|if|join|notdir|origin|patsubst|shell|sort|strip,|suffix|warning|wildcard|word|wordlist|words)([ })])', 131 | GESHI_REPLACE => '\\2', 132 | GESHI_MODIFIERS => '', 133 | GESHI_BEFORE => '\\1', 134 | GESHI_AFTER => '\\3' 135 | ), 136 | //Complex variables/functions [others] 137 | 2 => array( 138 | GESHI_SEARCH => '(\\$[({])([A-Za-z_][A-Za-z_0-9]*)([ })])', 139 | GESHI_REPLACE => '\\2', 140 | GESHI_MODIFIERS => '', 141 | GESHI_BEFORE => '\\1', 142 | GESHI_AFTER => '\\3' 143 | ), 144 | ), 145 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 146 | 'SCRIPT_DELIMITERS' => array(), 147 | 'HIGHLIGHT_STRICT_BLOCK' => array(), 148 | 'TAB_WIDTH' => 8 149 | // vim: set sw=4 sts=4 : 150 | ); 151 | ?> 152 | -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/applescript.php: -------------------------------------------------------------------------------- 1 | 'AppleScript', 43 | 'COMMENT_SINGLE' => array(1 => '--'), 44 | 'COMMENT_MULTI' => array( '(*' => '*)'), 45 | 'COMMENT_REGEXP' => array( 46 | 2 => '/(?<=[a-z])\'/i', 47 | 3 => '/(? GESHI_CAPS_NO_CHANGE, 50 | 'QUOTEMARKS' => array('"'), 51 | 'ESCAPE_CHAR' => '\\', 52 | 'KEYWORDS' => array( 53 | 1 => array( 54 | 'script','property','prop','end','to','set','global','local','on','of', 55 | 'in','given','with','without','return','continue','tell','if','then','else','repeat', 56 | 'times','while','until','from','exit','try','error','considering','ignoring','timeout', 57 | 'transaction','my','get','put','into','is' 58 | ), 59 | 2 => array( 60 | 'each','some','every','whose','where','id','index','first','second','third','fourth', 61 | 'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd', 62 | 'rd','th','middle','named','through','thru','before','after','beginning','the' 63 | ), 64 | 3 => array( 65 | 'close','copy','count','delete','duplicate','exists','launch','make','move','open', 66 | 'print','quit','reopen','run','save','saving', 67 | 'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion', 68 | 'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain', 69 | 'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false', 70 | 'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday', 71 | 'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march', 72 | 'mar','april','apr','may','june','jun','july','jul','august','aug','september', 73 | 'sep','october','oct','november','nov','december','dec','minutes','hours', 74 | 'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt' 75 | ) 76 | ), 77 | 'SYMBOLS' => array( 78 | ')','+','-','^','*','/','&','<','>=','<','<=','=','�' 79 | ), 80 | 'CASE_SENSITIVE' => array( 81 | GESHI_COMMENTS => false, 82 | 1 => false, 83 | 2 => false, 84 | 3 => false, 85 | ), 86 | 'STYLES' => array( 87 | 'KEYWORDS' => array( 88 | 1 => 'color: #b1b100;', 89 | 2 => 'color: #000000; font-weight: bold;', 90 | 3 => 'color: #000066;' 91 | ), 92 | 'COMMENTS' => array( 93 | 1 => 'color: #808080; font-style: italic;', 94 | 2 => '', 95 | 3 => 'color: #ff0000;', 96 | 'MULTI' => 'color: #808080; font-style: italic;' 97 | ), 98 | 'ESCAPE_CHAR' => array( 99 | 0 => 'color: #000099; font-weight: bold;' 100 | ), 101 | 'BRACKETS' => array( 102 | 0 => 'color: #66cc66;' 103 | ), 104 | 'STRINGS' => array( 105 | 0 => 'color: #ff0000;' 106 | ), 107 | 'NUMBERS' => array( 108 | 0 => 'color: #cc66cc;' 109 | ), 110 | 'METHODS' => array( 111 | 1 => 'color: #006600;', 112 | 2 => 'color: #006600;' 113 | ), 114 | 'SYMBOLS' => array( 115 | 0 => 'color: #66cc66;' 116 | ), 117 | 'REGEXPS' => array( 118 | 0 => 'color: #0000ff;', 119 | 4 => 'color: #009999;', 120 | ), 121 | 'SCRIPT' => array( 122 | ) 123 | ), 124 | 'URLS' => array( 125 | 1 => '', 126 | 2 => '', 127 | 3 => '' 128 | ), 129 | 'OOLANG' => true, 130 | 'OBJECT_SPLITTERS' => array( 131 | 1 => ',+-=<>/?^&*' 132 | ), 133 | 'REGEXPS' => array( 134 | //Variables 135 | 0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*', 136 | //File descriptors 137 | 4 => '<[a-zA-Z_][a-zA-Z0-9_]*>', 138 | ), 139 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 140 | 'SCRIPT_DELIMITERS' => array( 141 | ), 142 | 'HIGHLIGHT_STRICT_BLOCK' => array( 143 | ) 144 | ); 145 | 146 | ?> 147 | -------------------------------------------------------------------------------- /_includes/js/lib/cookies/cookies.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Cookie Functions 3 | */ 4 | 5 | var cookie = { 6 | 7 | /* 8 | * set cookie 9 | * 10 | * @param string name the name of the new cookie 11 | * @param string value the value of the new cookie 12 | * @param integer expires the number of days in which the cookie should expire - if not set, cookies will be session cookies only 13 | * @param path string the local path of the page that the cookie relates to 14 | * @param domain string the domain the cookie is being set from 15 | * @param secure boolean whether the cookie should only be available for https 16 | * 17 | */ 18 | set : function( name, value, expires, path, domain, secure ) { 19 | 20 | var today = new Date(); 21 | today.setTime( today.getTime() ); 22 | 23 | if ( expires ) { 24 | expires = expires * 1000 * 60 * 60 * 24; 25 | } 26 | 27 | var expires_date = new Date( today.getTime() + (expires) ); 28 | document.cookie = name+"="+escape( value ) + 29 | ( ( expires ) ? ";expires="+expires_date.toGMTString() : "" ) + 30 | ( ( path ) ? ";path=" + path : "" ) + 31 | ( ( domain ) ? ";domain=" + domain : "" ) + 32 | ( ( secure ) ? ";secure" : "" ); 33 | }, 34 | 35 | 36 | 37 | 38 | /* 39 | * get cookie 40 | * 41 | * @param string name the name of the desired cookie 42 | * 43 | * @return string unescape the value of the desired cookie 44 | * 45 | */ 46 | get : function( name ) { 47 | 48 | var start = document.cookie.indexOf( name + "=" ); 49 | var len = start + name.length + 1; 50 | 51 | if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) { 52 | return null; 53 | } 54 | 55 | if ( start == -1 ) return null; 56 | var end = document.cookie.indexOf( ";", len ); 57 | 58 | if ( end == -1 ) end = document.cookie.length; 59 | 60 | return unescape( document.cookie.substring( len, end ) ); 61 | }, 62 | 63 | 64 | /* 65 | * get all cookies 66 | * 67 | * @return object cookies all current cookies 68 | * 69 | */ 70 | getAll : function( ) { 71 | 72 | //start the associative array to return 73 | var cookies = { }; 74 | 75 | //temporary holders for each cookie name and value 76 | var name, value; 77 | 78 | //values to work out how far through the cookie string the function has got 79 | var beginning = 0; 80 | var middle, end; 81 | 82 | //cycle through the cookie string 83 | while (beginning < document.cookie.length) { 84 | 85 | //extract the cookie content between each = and ; 86 | middle = document.cookie.indexOf('=', beginning); 87 | end = document.cookie.indexOf(';', beginning); 88 | 89 | //if no ; is found, its the last cookie in the string 90 | if (end == -1) { 91 | end = document.cookie.length; 92 | } 93 | 94 | //if no = is found then set the name, and value to empty 95 | if ( (middle > end) || (middle == -1) ) { 96 | name = document.cookie.substring(beginning, end); 97 | value=""; 98 | 99 | //everything is good, set the values 100 | } else { 101 | name = document.cookie.substring(beginning, middle); 102 | value = document.cookie.substring(middle+1, end); 103 | } 104 | 105 | //add the current cookie to the associative array 106 | cookies[name] = unescape(value); 107 | 108 | //set the start point for the next cookie 109 | beginning = end + 2; 110 | } 111 | 112 | //at the end of the loop, return the associative array 113 | return cookies; 114 | 115 | }, 116 | 117 | 118 | 119 | 120 | /* 121 | * remove cookie 122 | * 123 | * @param string name the name of the cookie to remove 124 | * @param path 125 | * @param string domain 126 | * 127 | */ 128 | remove : function( name, path, domain ) { 129 | 130 | if ( this.get( name ) ) document.cookie = name + "=" + 131 | ( ( path ) ? ";path=" + path : "") + 132 | ( ( domain ) ? ";domain=" + domain : "" ) + 133 | ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; 134 | }, 135 | 136 | 137 | 138 | /* 139 | * remove all cookies 140 | * 141 | */ 142 | removeAll : function( ) { 143 | 144 | //temporary holder for each cookie name 145 | var name; 146 | 147 | //values to work out how far through the cookie string the function has got 148 | var beginning = 0; 149 | 150 | //cycle through the cookie string 151 | while (beginning < document.cookie.length) { 152 | 153 | //extract the cookie content between each = and ; 154 | var middle = document.cookie.indexOf('=', beginning); 155 | 156 | //if no ; is found, its the last cookie in the string 157 | if (middle == -1) { 158 | middle = document.cookie.length; 159 | } else { 160 | name = document.cookie.substring(beginning, middle); 161 | } 162 | 163 | //remove the cookie 164 | this.remove(name); 165 | 166 | //since the cookie string has changed, start the loop again 167 | beginning = 0; 168 | } 169 | }, 170 | 171 | 172 | /* 173 | * count cookies 174 | */ 175 | count : function() { 176 | var count = 0; 177 | var beginning = 0; 178 | 179 | //loop through cookies 180 | while (beginning < document.cookie.length) { 181 | 182 | //check for each = within a cookie 183 | var middle = document.cookie.indexOf('=', beginning); 184 | 185 | //if no = are found, end the script 186 | if ( middle == -1) { 187 | middle = document.cookie.length; 188 | 189 | //else, an = has been found, add one to the count 190 | } else { 191 | count ++; 192 | } 193 | 194 | //start again from the last point that an = was found 195 | beginning = middle + 2; 196 | } 197 | 198 | //return the count 199 | return count; 200 | } 201 | } -------------------------------------------------------------------------------- /_includes/php/lib/geshi/geshi/c.php: -------------------------------------------------------------------------------- 1 | 'C', 56 | 'COMMENT_SINGLE' => array(2 => '#'), 57 | 'COMMENT_MULTI' => array('/*' => '*/'), 58 | //Multiline-continued single-line comments 59 | 'COMMENT_REGEXP' => array(1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m'), 60 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 61 | 'QUOTEMARKS' => array("'", '"'), 62 | 'ESCAPE_CHAR' => '\\', 63 | 'NUMBERS' => 64 | GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | 65 | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | 66 | GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, 67 | 'KEYWORDS' => array( 68 | 1 => array( 69 | 'if', 'return', 'while', 'case', 'continue', 'default', 70 | 'do', 'else', 'for', 'switch', 'goto' 71 | ), 72 | 2 => array( 73 | 'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline' 74 | ), 75 | 3 => array( 76 | 'printf', 'cout' 77 | ), 78 | 4 => array( 79 | 'auto', 'char', 'const', 'double', 'float', 'int', 'long', 80 | 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct', 81 | 'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t' 82 | ), 83 | ), 84 | 'SYMBOLS' => array( 85 | '(', ')', '{', '}', '[', ']', 86 | '+', '-', '*', '/', '%', 87 | '=', '<', '>', 88 | '!', '^', '&', '|', 89 | '?', ':', 90 | ';', ',' 91 | ), 92 | 'CASE_SENSITIVE' => array( 93 | GESHI_COMMENTS => false, 94 | 1 => false, 95 | 2 => false, 96 | 3 => false, 97 | 4 => false, 98 | ), 99 | 'STYLES' => array( 100 | 'KEYWORDS' => array( 101 | 1 => 'color: #b1b100;', 102 | 2 => 'color: #000000; font-weight: bold;', 103 | 3 => 'color: #000066;', 104 | 4 => 'color: #993333;' 105 | ), 106 | 'COMMENTS' => array( 107 | 1 => 'color: #666666; font-style: italic;', 108 | 2 => 'color: #339933;', 109 | 'MULTI' => 'color: #808080; font-style: italic;' 110 | ), 111 | 'ESCAPE_CHAR' => array( 112 | 0 => 'color: #000099; font-weight: bold;' 113 | ), 114 | 'BRACKETS' => array( 115 | 0 => 'color: #009900;' 116 | ), 117 | 'STRINGS' => array( 118 | 0 => 'color: #ff0000;' 119 | ), 120 | 'NUMBERS' => array( 121 | 0 => 'color: #0000dd;', 122 | GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', 123 | GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', 124 | GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', 125 | GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', 126 | GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', 127 | GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', 128 | GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' 129 | ), 130 | 'METHODS' => array( 131 | 1 => 'color: #202020;', 132 | 2 => 'color: #202020;' 133 | ), 134 | 'SYMBOLS' => array( 135 | 0 => 'color: #339933;' 136 | ), 137 | 'REGEXPS' => array( 138 | ), 139 | 'SCRIPT' => array( 140 | ) 141 | ), 142 | 'URLS' => array( 143 | 1 => '', 144 | 2 => '', 145 | 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html', 146 | 4 => '' 147 | ), 148 | 'OOLANG' => true, 149 | 'OBJECT_SPLITTERS' => array( 150 | 1 => '.', 151 | 2 => '::' 152 | ), 153 | 'REGEXPS' => array( 154 | ), 155 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, 156 | 'SCRIPT_DELIMITERS' => array( 157 | ), 158 | 'HIGHLIGHT_STRICT_BLOCK' => array( 159 | ), 160 | 'TAB_WIDTH' => 4 161 | ); 162 | 163 | ?> 164 | --------------------------------------------------------------------------------