diff --git a/gulliver/bin/tasks/templates/sysGeneric.php.tpl b/gulliver/bin/tasks/templates/sysGeneric.php.tpl index 6096079f0..bd94fe686 100755 --- a/gulliver/bin/tasks/templates/sysGeneric.php.tpl +++ b/gulliver/bin/tasks/templates/sysGeneric.php.tpl @@ -142,7 +142,6 @@ $docuroot = explode ( PATH_SEP , $_SERVER['DOCUMENT_ROOT'] ); G::LoadSystem('form'); G::LoadSystem('menu'); G::LoadSystem("xmlMenu"); - G::LoadSystem('dvEditor'); G::LoadSystem('table'); G::LoadSystem('pagedTable'); G::LoadSystem('tree'); diff --git a/gulliver/js/dveditor/core/dveditor.js b/gulliver/js/dveditor/core/dveditor.js deleted file mode 100755 index 03aeebace..000000000 --- a/gulliver/js/dveditor/core/dveditor.js +++ /dev/null @@ -1,136 +0,0 @@ -function DVEditor(where,body,oHiddenInput,height,mode,editorId) -{ - var me=this; - var hiddenInput=oHiddenInput; - var iframe=$dce("iframe"); - //NOTE: className no funciona en FIREFOX - iframe.style.width="100%"; - iframe.style.height=height; - iframe.style.margin="0px"; - iframe.style.padding="0px"; - iframe.style.border="none"; - where.appendChild(iframe); - var head=document.childNodes[0].childNodes[0]; - var header=''; - if (iframe.contentWindow) { - var doc = iframe.contentWindow.document; - } else { - var doc = iframe.contentDocument; - } - var _header = $dce("head");// head.cloneNode(true); - for (var i=0;i'+header+''+body+''); - doc.close(); - doc.designMode="on"; - if (mode=="edit") { - doc.contentEditable=true; - } else { - doc.contentEditable=false; - } - this.doc=doc; - - me.insertHTML = function (html) - { - var cmd = 'inserthtml'; - var bool = false; - var value = html; - try { - doc.execCommand(cmd,bool,value); - } catch (e) { - } - return false; - }; - - me.command = function() - { - var cmd = this.getAttribute('name'); - var bool = false; - var value = this.getAttribute('cmdValue') || null; - if (value == 'promptUser') { - value = prompt( - (typeof(G_STRINGS[this.getAttribute('promptText')])!=='undefined')? - G_STRINGS[this.getAttribute('promptText')]: - this.getAttribute('promptText') - ); - } - try { - if (editorId) { - if (window.ActiveXObject && cmd == 'hilitecolor') { - doc.selection.createRange().pasteHTML('' +doc.selection.createRange().text +''); - } else { - eval("window._editor" +editorId+".doc.execCommand(cmd,bool,value);"); - } - } else { - doc.execCommand(cmd,bool,value); - } - } catch (e) { - } - return false; - }; - - me.loadToolBar = function(uri) - { - var tb=WebResource(uri); - if(editorId){ // for multi-edhtmleditor - tb.innerHTML = tb.innerHTML.replace(/DVEditorMap/g, "DVEditorMap" + editorId); - } - iframe.parentNode.insertBefore(tb,iframe); - me.setToolBar(tb); - }; - - me.setToolBar = function(toolbar) - { - var buttons=toolbar.getElementsByTagName('area'); - for (var b=0;b - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/gulliver/js/dveditor/core/toolbars/complete3lines.png b/gulliver/js/dveditor/core/toolbars/complete3lines.png deleted file mode 100755 index b71594ad5..000000000 Binary files a/gulliver/js/dveditor/core/toolbars/complete3lines.png and /dev/null differ diff --git a/gulliver/js/dveditor/core/toolbars/smallToolBar.html b/gulliver/js/dveditor/core/toolbars/smallToolBar.html deleted file mode 100755 index 4bd642fc9..000000000 --- a/gulliver/js/dveditor/core/toolbars/smallToolBar.html +++ /dev/null @@ -1,16 +0,0 @@ -
- - - - - - - - - - - - -
\ No newline at end of file diff --git a/gulliver/js/dveditor/core/toolbars/smallToolBar.png b/gulliver/js/dveditor/core/toolbars/smallToolBar.png deleted file mode 100755 index 8beb16eb3..000000000 Binary files a/gulliver/js/dveditor/core/toolbars/smallToolBar.png and /dev/null differ diff --git a/gulliver/js/dveditor/core/toolbars/toolbar2lines.html b/gulliver/js/dveditor/core/toolbars/toolbar2lines.html deleted file mode 100755 index 4172a9f69..000000000 --- a/gulliver/js/dveditor/core/toolbars/toolbar2lines.html +++ /dev/null @@ -1,39 +0,0 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\ No newline at end of file diff --git a/gulliver/js/dveditor/core/toolbars/toolbar2lines.png b/gulliver/js/dveditor/core/toolbars/toolbar2lines.png deleted file mode 100755 index 28df773c8..000000000 Binary files a/gulliver/js/dveditor/core/toolbars/toolbar2lines.png and /dev/null differ diff --git a/gulliver/js/highlight/core/AUTHORS.en.txt b/gulliver/js/highlight/core/AUTHORS.en.txt deleted file mode 100755 index 4c5a3c295..000000000 --- a/gulliver/js/highlight/core/AUTHORS.en.txt +++ /dev/null @@ -1,19 +0,0 @@ -Syntax highlighting with language autodetection. - -URL: http://softwaremaniacs.org/soft/highlight/en/ - -Original author and current maintainer: -Ivan Sagalaev - -Contributors: - -- Peter Leonov -- Victor Karamzin -- Vsevolod Solovyov -- Anton Kovalyov -- Nikita Ledyaev -- Konstantin Evdokimenko -- Dmitri Roudakov -- Yuri Ivanov -- Vladimir Ermakov -- Vladimir Gubarkov \ No newline at end of file diff --git a/gulliver/js/highlight/core/AUTHORS.ru.txt b/gulliver/js/highlight/core/AUTHORS.ru.txt deleted file mode 100755 index ad39a904c..000000000 --- a/gulliver/js/highlight/core/AUTHORS.ru.txt +++ /dev/null @@ -1,19 +0,0 @@ -Подсветка синтаксиса с автоопределением языка. - -URL: http://softwaremaniacs.org/soft/highlight/ - -Первоначальный автор и ведущий проекта: -Иван Сагалаев - -Внесли свой вклад: - -- Петр Леонов -- Виктор Карамзин -- Всеволод Соловьёв -- Антон Ковалёв -- Никита Ледяев -- Константин Евдокименко -- Дмитрий Рудаков -- Юрий Иванов -- Владимир Ермаков -- Владимир Губарьков \ No newline at end of file diff --git a/gulliver/js/highlight/core/LICENSE b/gulliver/js/highlight/core/LICENSE deleted file mode 100755 index e452d954c..000000000 --- a/gulliver/js/highlight/core/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2006, Ivan Sagalaev -All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of highlight.js nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/gulliver/js/highlight/core/export.html b/gulliver/js/highlight/core/export.html deleted file mode 100755 index a2f3a782d..000000000 --- a/gulliver/js/highlight/core/export.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - Highlited code export - - - - - - - - - - - - - - - - -
Write a code snippetGet HTML to paste anywhere (for actual styles and colors see sample.css)
- - - - - -
-
-
- Export script: Vladimir Gubarkov
- Highlighting: highlight.js -
- - \ No newline at end of file diff --git a/gulliver/js/highlight/core/highlight.js b/gulliver/js/highlight/core/highlight.js deleted file mode 100755 index a873b64cd..000000000 --- a/gulliver/js/highlight/core/highlight.js +++ /dev/null @@ -1,429 +0,0 @@ -/* -Syntax highlighting with language autodetection. -http://softwaremaniacs.org/soft/highlight/ -*/ - -var DEFAULT_LANGUAGES = ['python', 'ruby', 'perl', 'php', 'css', 'xml', 'html', 'django', 'javascript', 'java', 'cpp', 'sql', 'smalltalk']; -var ALL_LANGUAGES = (DEFAULT_LANGUAGES.join(',') + ',' + ['1c', 'axapta', 'delphi', 'rib', 'rsl', 'vbscript'].join(',')).split(','); -var LANGUAGE_GROUPS = { - 'xml': 'www', - 'html': 'www', - 'css': 'www', - 'django': 'www', - 'python': 'dynamic', - 'perl': 'dynamic', - 'php': 'dynamic', - 'ruby': 'dynamic', - 'cpp': 'static', - 'java': 'static', - 'delphi': 'static' -} - -var IDENT_RE = '[a-zA-Z][a-zA-Z0-9_]*'; -var UNDERSCORE_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_]*'; -var NUMBER_RE = '\\b\\d+(\\.\\d+)?'; -var C_NUMBER_RE = '\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)'; - -// Common modes -var APOS_STRING_MODE = { - className: 'string', - begin: '\'', end: '\'', - illegal: '\\n', - contains: ['escape'], - relevance: 0 -} -var QUOTE_STRING_MODE = { - className: 'string', - begin: '"', end: '"', - illegal: '\\n', - contains: ['escape'], - relevance: 0 -} -var BACKSLASH_ESCAPE = { - className: 'escape', - begin: '\\\\.', end: '^', - relevance: 0 -} -var C_LINE_COMMENT_MODE = { - className: 'comment', - begin: '//', end: '$', - relevance: 0 -} -var C_BLOCK_COMMENT_MODE = { - className: 'comment', - begin: '/\\*', end: '\\*/' -} -var HASH_COMMENT_MODE = { - className: 'comment', - begin: '#', end: '$' -} -var C_NUMBER_MODE = { - className: 'number', - begin: C_NUMBER_RE, end: '^', - relevance: 0 -} - -var LANGUAGES = {} -var selected_languages = {}; - -function Highlighter(language_name, value) { - function subMode(lexem) { - if (!modes[modes.length - 1].contains) - return null; - for (var i in modes[modes.length - 1].contains) { - var className = modes[modes.length - 1].contains[i]; - for (var key in language.modes) - if (language.modes[key].className == className && language.modes[key].beginRe.test(lexem)) - return language.modes[key]; - }//for - return null; - }//subMode - - function endOfMode(mode_index, lexem) { - if (modes[mode_index].end && modes[mode_index].endRe.test(lexem)) - return 1; - if (modes[mode_index].endsWithParent) { - var level = endOfMode(mode_index - 1, lexem); - return level ? level + 1 : 0; - }//if - return 0; - }//endOfMode - - function isIllegal(lexem) { - if (!modes[modes.length - 1].illegalRe) - return false; - return modes[modes.length - 1].illegalRe.test(lexem); - }//isIllegal - - function eatModeChunk(value, index) { - if (!modes[modes.length - 1].terminators) { - var terminators = []; - - if (modes[modes.length - 1].contains) - for (var key in language.modes) { - if (contains(modes[modes.length - 1].contains, language.modes[key].className) && - !contains(terminators, language.modes[key].begin)) - terminators[terminators.length] = language.modes[key].begin; - }//for - - var mode_index = modes.length - 1; - do { - if (modes[mode_index].end && !contains(terminators, modes[mode_index].end)) - terminators[terminators.length] = modes[mode_index].end; - mode_index--; - } while (modes[mode_index + 1].endsWithParent); - - if (modes[modes.length - 1].illegal) - if (!contains(terminators, modes[modes.length - 1].illegal)) - terminators[terminators.length] = modes[modes.length - 1].illegal; - - var terminator_re = '(' + terminators[0]; - for (var i = 0; i < terminators.length; i++) - terminator_re += '|' + terminators[i]; - terminator_re += ')'; - modes[modes.length - 1].terminators = langRe(language, terminator_re); - }//if - value = value.substr(index); - var match = modes[modes.length - 1].terminators.exec(value); - if (!match) - return [value, '', true]; - if (match.index == 0) - return ['', match[0], false]; - else - return [value.substr(0, match.index), match[0], false]; - }//eatModeChunk - - function escape(value) { - return value.replace(/&/gm, '&').replace(//gm, '>'); - }//escape - - function keywordMatch(mode, match) { - var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0] - for (var className in mode.keywordGroups) { - var value = mode.keywordGroups[className].hasOwnProperty(match_str); - if (value) - return [className, value]; - }//for - return false; - }//keywordMatch - - function processKeywords(buffer) { - var mode = modes[modes.length - 1]; - if (!mode.keywords || !mode.lexems) - return escape(buffer); - if (!mode.lexemsRe) { - var lexems = []; - for (var key in mode.lexems) - if (!contains(lexems, mode.lexems[key])) - lexems[lexems.length] = mode.lexems[key]; - var lexems_re = '(' + lexems[0]; - for (var i = 1; i < lexems.length; i++) - lexems_re += '|' + lexems[i]; - lexems_re += ')'; - mode.lexemsRe = langRe(language, lexems_re, true); - }//if - var result = ''; - var last_index = 0; - mode.lexemsRe.lastIndex = 0; - var match = mode.lexemsRe.exec(buffer); - while (match) { - result += escape(buffer.substr(last_index, match.index - last_index)); - keyword_match = keywordMatch(mode, match); - if (keyword_match) { - keyword_count += keyword_match[1]; - result += '' + escape(match[0]) + ''; - } else { - result += escape(match[0]); - }//if - last_index = mode.lexemsRe.lastIndex; - match = mode.lexemsRe.exec(buffer); - }//while - result += escape(buffer.substr(last_index, buffer.length - last_index)); - return result; - }//processKeywords - - function processModeInfo(buffer, lexem, end) { - if (end) { - result += processKeywords(modes[modes.length - 1].buffer + buffer); - return; - }//if - if (isIllegal(lexem)) - throw 'Illegal'; - var new_mode = subMode(lexem); - if (new_mode) { - modes[modes.length - 1].buffer += buffer; - result += processKeywords(modes[modes.length - 1].buffer); - if (new_mode.excludeBegin) { - result += lexem + ''; - new_mode.buffer = ''; - } else { - result += ''; - new_mode.buffer = lexem; - }//if - modes[modes.length] = new_mode; - relevance += modes[modes.length - 1].relevance != undefined ? modes[modes.length - 1].relevance : 1; - return; - }//if - var end_level = endOfMode(modes.length - 1, lexem); - if (end_level) { - modes[modes.length - 1].buffer += buffer; - if (modes[modes.length - 1].excludeEnd) { - result += processKeywords(modes[modes.length - 1].buffer) + '' + lexem; - } else { - result += processKeywords(modes[modes.length - 1].buffer + lexem) + ''; - } - while (end_level > 1) { - result += ''; - end_level--; - modes.length--; - }//while - modes.length--; - modes[modes.length - 1].buffer = ''; - return; - }//if - }//processModeInfo - - function highlight(value) { - var index = 0; - language.defaultMode.buffer = ''; - do { - var mode_info = eatModeChunk(value, index); - processModeInfo(mode_info[0], mode_info[1], mode_info[2]); - index += mode_info[0].length + mode_info[1].length; - } while (!mode_info[2]); - if(modes.length > 1) - throw 'Illegal'; - }//highlight - - this.language_name = language_name; - var language = LANGUAGES[language_name]; - var modes = [language.defaultMode]; - var relevance = 0; - var keyword_count = 0; - var result = ''; - try { - highlight(value); - this.relevance = relevance; - this.keyword_count = keyword_count; - this.result = result; - } catch (e) { - if (e == 'Illegal') { - this.relevance = 0; - this.keyword_count = 0; - this.result = escape(value); - } else { - throw e; - }//if - }//try -}//Highlighter - -function contains(array, item) { - if (!array) - return false; - for (var key in array) - if (array[key] == item) - return true; - return false; -}//contains - -function blockText(block) { - var result = ''; - for (var i = 0; i < block.childNodes.length; i++) - if (block.childNodes[i].nodeType == 3) - result += block.childNodes[i].nodeValue; - else if (block.childNodes[i].nodeName == 'BR') - result += '\n'; - else - throw 'Complex markup'; - return result; -}//blockText - -function initHighlight(block) { - if (block.className.search(/\bno\-highlight\b/) != -1) - return; - try { - blockText(block); - } catch (e) { - if (e == 'Complex markup') - return; - }//try - var classes = block.className.split(/\s+/); - for (var i = 0; i < classes.length; i++) { - if (LANGUAGES[classes[i]]) { - highlightLanguage(block, classes[i]); - return; - }//if - }//for - highlightAuto(block); -}//initHighlight - -function highlightLanguage(block, language) { - var highlight = new Highlighter(language, blockText(block)); - // See these 4 lines? This is IE's notion of "block.innerHTML = result". Love this browser :-/ - var container = $dce('div'); - container.innerHTML = '
' + highlight.result + '
'; - var environment = block.parentNode.parentNode; - environment.replaceChild(container.firstChild, block.parentNode); -}//highlightLanguage - -function highlightAuto(block) { - var result = null; - var language = ''; - var max_relevance = 2; - var relevance = 0; - var block_text = blockText(block); - for (var key in selected_languages) { - var highlight = new Highlighter(key, block_text); - relevance = highlight.keyword_count + highlight.relevance; - if (relevance > max_relevance) { - max_relevance = relevance; - result = highlight; - }//if - }//for - - if(result) { - // See these 4 lines? This is IE's notion of "block.innerHTML = result". Love this browser :-/ - var container = $dce('div'); - container.innerHTML = '
' + result.result + '
'; - var environment = block.parentNode.parentNode; - environment.replaceChild(container.firstChild, block.parentNode); - }//if -}//highlightAuto - -function langRe(language, value, global) { - var mode = 'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : ''); - return new RegExp(value, mode); -}//re - -function compileRes() { - for (var i in LANGUAGES) { - var language = LANGUAGES[i]; - for (var key in language.modes) { - if (language.modes[key].begin) - language.modes[key].beginRe = langRe(language, '^' + language.modes[key].begin); - if (language.modes[key].end) - language.modes[key].endRe = langRe(language, '^' + language.modes[key].end); - if (language.modes[key].illegal) - language.modes[key].illegalRe = langRe(language, '^(?:' + language.modes[key].illegal + ')'); - language.defaultMode.illegalRe = langRe(language, '^(?:' + language.defaultMode.illegal + ')'); - }//for - }//for -}//compileRes - -function compileKeywords() { - - function compileModeKeywords(mode) { - if (!mode.keywordGroups) { - for (var key in mode.keywords) { - if (mode.keywords[key] instanceof Object) - mode.keywordGroups = mode.keywords; - else - mode.keywordGroups = {'keyword': mode.keywords}; - break; - }//for - }//if - }//compileModeKeywords - - for (var i in LANGUAGES) { - var language = LANGUAGES[i]; - compileModeKeywords(language.defaultMode); - for (var key in language.modes) { - compileModeKeywords(language.modes[key]); - }//for - }//for -}//compileKeywords - -function initHighlighting() { - if (initHighlighting.called) - return; - initHighlighting.called = true; - compileRes(); - compileKeywords(); - if (arguments.length) { - for (var i = 0; i < arguments.length; i++) { - if (LANGUAGES[arguments[i]]) { - selected_languages[arguments[i]] = LANGUAGES[arguments[i]]; - }//if - }//for - } else - selected_languages = LANGUAGES; - var pres = document.getElementsByTagName('pre'); - for (var i = 0; i < pres.length; i++) { - if (pres[i].firstChild && pres[i].firstChild.nodeName == 'CODE') - initHighlight(pres[i].firstChild); - }//for -}//initHighlighting - -function injectScripts(languages) { - var scripts = document.getElementsByTagName('SCRIPT'); - for (var i=0; i < scripts.length; i++) { - if (scripts[i].src.match(/highlight\.js(\?.+)?$/)) { - var path = scripts[i].src.replace(/highlight\.js(\?.+)?$/, ''); - break; - }//if - }//for - if (languages.length == 0) { - languages = DEFAULT_LANGUAGES; - }//if - var injected = {} - for (var i=0; i < languages.length; i++) { - var filename = LANGUAGE_GROUPS[languages[i]] ? LANGUAGE_GROUPS[languages[i]] : languages[i]; - if (!injected[filename]) { - document.write(''); - injected[filename] = true; - }//if - }//for -}//injectScripts - -function initHighlightingOnLoad() { - var original_arguments = arguments; - injectScripts(arguments); - var handler = function(){initHighlighting.apply(null, original_arguments)}; - if (window.addEventListener) { - window.addEventListener('DOMContentLoaded', handler, false); - window.addEventListener('load', handler, false); - } else if (window.attachEvent) - window.attachEvent('onload', handler); - else - window.onload = handler; -}//initHighlightingOnLoad \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/1c.js b/gulliver/js/highlight/core/languages/1c.js deleted file mode 100755 index a57dc03b1..000000000 --- a/gulliver/js/highlight/core/languages/1c.js +++ /dev/null @@ -1,84 +0,0 @@ -var IDENT_RE_RU = '[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*'; -var NUMBER_RE = '\\b\\d+(\\.\\d+)?'; - -var OneS_KEYWORDS = {'процедура':1,'функция':1,'экспорт':1,'перем':1,'конецфункции':1,'конецпроцедуры':1,'если':1,'тогда':1,'иначе':1,'иначеесли':1,'конецесли':1,'попытка':1,'исключение':1,'конецпопытки':1,'ложь':1,'истина':1,'неопределено':1,'и':1,'или':1,'не':1,'null':1,'для':1,'каждого':1,'из':1,'по':1,'цикл':1,'конеццикла':1}; - -LANGUAGES['1c'] = { - defaultMode: { - lexems: [IDENT_RE_RU], - contains: ['comment', 'string', 'function', 'preprocessor', 'number'], - keywords: OneS_KEYWORDS - }, - case_insensitive: true, - modes: [ - C_LINE_COMMENT_MODE, - { - className: 'string', - begin: '"', end: '"', - contains: ['dquote'], - relevance: 0 - }, - { - className: 'string', - begin: '"', end: '$', - contains: ['dquote'] - }, - { - className: 'string', - begin: '\\|', end: '$', - contains: ['dquote'] - }, - { - className: 'string', - begin: '\\|', end: '"', - contains: ['dquote'] - }, - { - className: 'dquote', - begin: '""', end: '^' - }, - { - className: 'number', - begin: NUMBER_RE, end: '^', - relevance: 0 - }, - { - className: 'title', - lexems: [IDENT_RE_RU], - begin: IDENT_RE_RU, end: '^' - }, - { - className: 'params', - begin: '\\(', end: '\\)', - lexems: [IDENT_RE_RU], - keywords: {'знач':1}, - contains: ['string'] - }, - { - className: 'function', - begin: '(процедура|функция)', end: '$', - lexems: [IDENT_RE_RU], - keywords: {'процедура': 1, 'экспорт':1, 'функция': 1}, - contains: ['title','tail','comment'], - relevance: 0 - }, - { - className: 'tail', - begin: '^', endsWithParent: true, - lexems: [IDENT_RE_RU], - contains: ['params', 'export'] - }, - { - className: 'export', - begin: 'экспорт', endsWithParent: true, - lexems: [IDENT_RE_RU], - keywords: {'экспорт': 1}, - contains: ['comment'] - }, - { - className: 'preprocessor', - begin: '#', end: '$', - lexems: [IDENT_RE_RU] - } - ] -};//1c \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/axapta.js b/gulliver/js/highlight/core/languages/axapta.js deleted file mode 100755 index 32ab1f30d..000000000 --- a/gulliver/js/highlight/core/languages/axapta.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - -Axapta definition (с) Dmitri Roudakov - -*/ -LANGUAGES.axapta = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - contains: ['comment', 'string', 'class', 'number', 'preprocessor'], - keywords: {'false': 1, 'int': 1, 'abstract': 1, 'private': 1, 'char': 1, 'interface': 1, 'boolean': 1, 'static': 1, 'null': 1, 'if': 1, 'for': 1, 'true': 1, 'while': 1, 'long': 1, 'throw': 1, 'finally': 1, 'protected': 1, 'extends': 1, 'final': 1, 'implements': 1, 'return': 1, 'void': 1, 'enum': 1, 'else': 1, 'break': 1, 'new': 1, 'catch': 1, 'byte': 1, 'super': 1, 'class': 1, 'case': 1, 'short': 1, 'default': 1, 'double': 1, 'public': 1, 'try': 1, 'this': 1, 'switch': 1, 'continue': 1, - 'reverse':1, 'firstfast':1,'firstonly':1,'forupdate':1,'nofetch':1, 'sum':1, 'avg':1, 'minof':1, 'maxof':1, 'count':1, 'order':1, 'group':1, 'by':1, 'asc':1, 'desc':1, 'index':1, 'hint':1, 'like':1, - 'dispaly':1, 'edit':1, 'client':1, 'server':1, 'ttsbegin':1, 'ttscommit':1, - 'str':1, 'real':1, 'date':1, 'container':1, 'anytype':1, 'common':1, 'div':1,'mod':1 - } - }, - modes: [ - { - className: 'class', - lexems: [UNDERSCORE_IDENT_RE], - begin: '(class |interface )', end: '{', - illegal: ':', - keywords: {'class': 1, 'interface': 1}, - contains: ['inheritance', 'title'] - }, - { - className: 'inheritance', - begin: '(implements|extends)', end: '^', - lexems: [IDENT_RE], - keywords: {'extends': 1, 'implements': 1}, - relevance: 10 - }, - { - className: 'title', - begin: UNDERSCORE_IDENT_RE, end: '^' - }, - { - className: 'params', - begin: '\\(', end: '\\)', - contains: ['string', 'annotation'] - }, - C_NUMBER_MODE, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - C_LINE_COMMENT_MODE, - C_BLOCK_COMMENT_MODE, - { - className: 'preprocessor', - begin: '#', end: '$' - } - ] -};//axapta \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/dynamic.js b/gulliver/js/highlight/core/languages/dynamic.js deleted file mode 100755 index 9bf5013dc..000000000 --- a/gulliver/js/highlight/core/languages/dynamic.js +++ /dev/null @@ -1,319 +0,0 @@ -LANGUAGES.python = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - illegal: '()', - contains: ['comment', 'string', 'function', 'class', 'number', 'decorator'], - keywords: {'and': 1, 'elif': 1, 'is': 1, 'global': 1, 'as': 1, 'in': 1, 'if': 1, 'from': 1, 'raise': 1, 'for': 1, 'except': 1, 'finally': 1, 'print': 1, 'import': 1, 'pass': 1, 'None': 1, 'return': 1, 'exec': 1, 'else': 1, 'break': 1, 'not': 1, 'with': 1, 'class': 1, 'assert': 1, 'yield': 1, 'try': 1, 'while': 1, 'continue': 1, 'del': 1, 'or': 1, 'def': 1, 'lambda': 1} - }, - modes: [ - { - className: 'function', - lexems: [UNDERSCORE_IDENT_RE], - begin: '\\bdef ', end: ':', - illegal: '$', - keywords: {'def': 1}, - contains: ['title', 'params'], - relevance: 10 - }, - { - className: 'class', - lexems: [UNDERSCORE_IDENT_RE], - begin: '\\bclass ', end: ':', - illegal: '[${]', - keywords: {'class': 1}, - contains: ['title', 'params',], - relevance: 10 - }, - { - className: 'title', - begin: UNDERSCORE_IDENT_RE, end: '^' - }, - { - className: 'params', - begin: '\\(', end: '\\)', - contains: ['string'] - }, - HASH_COMMENT_MODE, - C_NUMBER_MODE, - { - className: 'string', - begin: '\'\'\'', end: '\'\'\'', - relevance: 10 - }, - { - className: 'string', - begin: '"""', end: '"""', - relevance: 10 - }, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - { - className: 'string', - begin: 'r\'', end: '\'', - relevance: 10 - }, - { - className: 'string', - begin: 'r"', end: '"', - relevance: 10 - }, - { - className: 'string', - begin: 'u\'', end: '(^|[^\\\\])\'', - relevance: 10 - }, - { - className: 'string', - begin: 'u"', end: '(^|[^\\\\])"', - relevance: 10 - }, - { - className: 'string', - begin: 'ur\'', end: '\'', - relevance: 10 - }, - { - className: 'string', - begin: 'ur"', end: '"', - relevance: 10 - }, - { - className: 'decorator', - begin: '@', end: '$' - } - ] -};//python - - -/* - -Perl definition (с) Peter Leonov -Test you perl code here: http://wiki.cmsbuilder.ru/Highlite_test - -*/ - -var PERL_NUMBER_RE = '(\\b0[0-7]+)|(\\b0x[0-9a-fA-F]+)|(\\b[1-9]\\d*(\\.\\d+)?)|0\\b'; -var PERL_KEYWORDS = {'getpwent': 1, 'getservent': 1, 'quotemeta': 1, 'msgrcv': 1, 'scalar': 1, 'kill': 1, 'dbmclose': 1, 'undef': 1, 'lc': 1, 'ma': 1, 'syswrite': 1, 'tr': 1, 'send': 1, 'umask': 1, 'sysopen': 1, 'shmwrite': 1, 'vec': 1, 'qx': 1, 'utime': 1, 'local': 1, 'oct': 1, 'semctl': 1, 'localtime': 1, 'readpipe': 1, 'do': 1, 'return': 1, 'format': 1, 'read': 1, 'sprintf': 1, 'dbmopen': 1, 'pop': 1, 'getpgrp': 1, 'not': 1, 'getpwnam': 1, 'rewinddir': 1, 'qq': 1, 'fileno': 1, 'qw': 1, 'endprotoent': 1, 'wait': 1, 'sethostent': 1, 'bless': 1, 's': 1, 'opendir': 1, 'continue': 1, 'each': 1, 'sleep': 1, 'endgrent': 1, 'shutdown': 1, 'dump': 1, 'chomp': 1, 'connect': 1, 'getsockname': 1, 'die': 1, 'socketpair': 1, 'close': 1, 'flock': 1, 'exists': 1, 'index': 1, 'shmget': 1, 'sub': 1, 'for': 1, 'endpwent': 1, 'redo': 1, 'lstat': 1, 'msgctl': 1, 'setpgrp': 1, 'abs': 1, 'exit': 1, 'select': 1, 'print': 1, 'ref': 1, 'gethostbyaddr': 1, 'unshift': 1, 'fcntl': 1, 'syscall': 1, 'goto': 1, 'getnetbyaddr': 1, 'join': 1, 'gmtime': 1, 'symlink': 1, 'semget': 1, 'splice': 1, 'x': 1, 'getpeername': 1, 'recv': 1, 'log': 1, 'setsockopt': 1, 'cos': 1, 'last': 1, 'reverse': 1, 'gethostbyname': 1, 'getgrnam': 1, 'study': 1, 'formline': 1, 'endhostent': 1, 'times': 1, 'chop': 1, 'length': 1, 'gethostent': 1, 'getnetent': 1, 'pack': 1, 'getprotoent': 1, 'getservbyname': 1, 'rand': 1, 'mkdir': 1, 'pos': 1, 'chmod': 1, 'y': 1, 'substr': 1, 'endnetent': 1, 'printf': 1, 'next': 1, 'open': 1, 'msgsnd': 1, 'readdir': 1, 'use': 1, 'unlink': 1, 'getsockopt': 1, 'getpriority': 1, 'rindex': 1, 'wantarray': 1, 'hex': 1, 'system': 1, 'getservbyport': 1, 'endservent': 1, 'int': 1, 'chr': 1, 'untie': 1, 'rmdir': 1, 'prototype': 1, 'tell': 1, 'listen': 1, 'fork': 1, 'shmread': 1, 'ucfirst': 1, 'setprotoent': 1, 'else': 1, 'sysseek': 1, 'link': 1, 'getgrgid': 1, 'shmctl': 1, 'waitpid': 1, 'unpack': 1, 'getnetbyname': 1, 'reset': 1, 'chdir': 1, 'grep': 1, 'split': 1, 'require': 1, 'caller': 1, 'lcfirst': 1, 'until': 1, 'warn': 1, 'while': 1, 'values': 1, 'shift': 1, 'telldir': 1, 'getpwuid': 1, 'my': 1, 'getprotobynumber': 1, 'delete': 1, 'and': 1, 'sort': 1, 'uc': 1, 'defined': 1, 'srand': 1, 'accept': 1, 'package': 1, 'seekdir': 1, 'getprotobyname': 1, 'semop': 1, 'our': 1, 'rename': 1, 'seek': 1, 'if': 1, 'q': 1, 'chroot': 1, 'sysread': 1, 'setpwent': 1, 'no': 1, 'crypt': 1, 'getc': 1, 'chown': 1, 'sqrt': 1, 'write': 1, 'setnetent': 1, 'setpriority': 1, 'foreach': 1, 'tie': 1, 'sin': 1, 'msgget': 1, 'map': 1, 'stat': 1, 'getlogin': 1, 'unless': 1, 'elsif': 1, 'truncate': 1, 'exec': 1, 'keys': 1, 'glob': 1, 'tied': 1, 'closedir': 1, 'ioctl': 1, 'socket': 1, 'readlink': 1, 'eval': 1, 'xor': 1, 'readline': 1, 'binmode': 1, 'setservent': 1, 'eof': 1, 'ord': 1, 'bind': 1, 'alarm': 1, 'pipe': 1, 'atan2': 1, 'getgrent': 1, 'exp': 1, 'time': 1, 'push': 1, 'setgrent': 1, 'gt': 1, 'lt': 1, 'or': 1, 'ne': 1, 'm': 1}; - -LANGUAGES.perl = { - defaultMode: { - lexems: [IDENT_RE], - contains: ['comment', 'string', 'number', 'regexp', 'sub', 'variable', 'operator', 'pod', 'identifier'], - keywords: PERL_KEYWORDS - }, - modes: [ - - // variables - { - className: 'variable', - begin: '\\$\\d', end: '^', - relevance: 5 - }, - { - className: 'variable', - begin: '[\\$\\%\\@\\*](\\^\\w\\b|#\\w+|[^\\s\\w{]|{\\w+}|\\w+)', end: '^' - }, - - // numbers and strings - { - className: 'number', - begin: PERL_NUMBER_RE, end: '^', - relevance: 0 - }, - { - className: 'string', - begin: 'q[qwxr]?\\(', end: '[^\\\\]\\)', - relevance: 10 - }, - { - className: 'string', - begin: 'qw\\s+q', end: 'q', - relevance: 10 - }, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - { - className: 'string', - begin: '`', end: '`', - contains: ['escape'] - }, - - // regexps - { - className: 'regexp', - begin: '(s|tr|y)(/.*?[^\\\\]/|//)(.*?[^\\\\]/|/)[a-z]*', end: '^', - relevance: 10 - }, - { - className: 'regexp', - begin: '(m|qr)?//[cgimosxe]*', end: '^', - relevance: 0 // allows empty "//" which is a common comment delimiter in other languages - }, - { - className: 'regexp', - begin: '(m|qr)?/.*?[^\\\\/]/[cgimosxe]*', end: '^' - }, - - // bareword context - { - className: 'string', - begin: '{\\w+}', end: '^', - relevance: 0 - }, - { - className: 'string', - begin: '\-?\\w+\\s*\\=\\>', end: '^', - relevance: 5 - }, - - // subroutines - { - className: 'sub', - begin: '\\bsub\\b', end: '(\\s*\\(.*?\\))?[;{]', - lexems: [IDENT_RE], - keywords: {'sub':1}, - contains: ['identifier'], - relevance: 10 - }, - - // operators - { - className: 'operator', - begin: '-\\w\\b', end: '^' - }, - - // comments - HASH_COMMENT_MODE, - - // pod - { - className: 'pod', - begin: '\\=\\w', end: '\\=cut' - }, - - // identifiers - { - className: 'identifier', - begin: '\\b[a-zA-Z]\\w*\\b', end: '^', - lexems: [IDENT_RE], - keywords: PERL_KEYWORDS, - relevance: 0 - } - ] -};//perl - - -/* - -PHP5 definition (с) Victor Karamzin - -*/ -PHP5_KEYWORDS = {'and': 1, 'include_once': 1, 'list': 1, 'abstract': 1, 'global': 1, 'private': 1, 'echo': 1, 'interface': 1, 'as': 1, 'static': 1, 'endswitch': 1, 'array': 1, 'null': 1, 'if': 1, 'endwhile': 1, 'or': 1, 'const': 1, 'for': 1, 'endforeach': 1, 'self': 1, 'var': 1, 'while': 1, 'isset': 1, 'public': 1, 'protected': 1, 'exit': 1, 'foreach': 1, 'throw': 1, 'elseif': 1, 'extends': 1, 'include': 1, '__FILE__': 1, 'empty': 1, 'require_once': 1, 'function': 1, 'do': 1, 'xor': 1, 'return': 1, 'implements': 1, 'parent': 1, 'clone': 1, 'use': 1, '__CLASS__': 1, '__LINE__': 1, 'else': 1, 'break': 1, 'print': 1, 'eval': 1, 'new': 1, 'catch': 1, '__METHOD__': 1, 'class': 1, 'case': 1, 'exception': 1, 'php_user_filter': 1, 'default': 1, 'die': 1, 'require': 1, '__FUNCTION__': 1, 'enddeclare': 1, 'final': 1, 'try': 1, 'this': 1, 'switch': 1, 'continue': 1, 'endfor': 1, 'endif': 1, 'declare': 1, 'unset': 1}; - -PHP_IDENTIFIER_RE = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'; - -LANGUAGES.php = { - defaultMode: { - lexems: [IDENT_RE], - contains: ['comment', 'number', 'string', 'variable'], - keywords: PHP5_KEYWORDS - }, - case_insensitive: true, - modes: [ - C_LINE_COMMENT_MODE, - HASH_COMMENT_MODE, - { - className: 'comment', - begin: '/\\*', end: '\\*/', - contains: ['phpdoc'] - }, - { - className: 'phpdoc', - begin: '\\s@[A-Za-z]+', end: '^', - relevance: 10 - }, - C_NUMBER_MODE, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - { - className: 'variable', - begin: '\\$' + PHP_IDENTIFIER_RE, end: '^' - }, - ] -};//php - - -/* - -Ruby definition (с) Anton Kovalyov - -*/ -LANGUAGES.ruby = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - contains: ['comment', 'string', 'class', 'function', 'symbol'], - keywords: {'and': 1, 'false': 1, 'then': 1, 'defined': 1, 'module': 1, 'in': 1, 'return': 1, 'redo': 1, 'if': 1, 'BEGIN': 1, 'retry': 1, 'end': 1, 'for': 1, 'true': 1, 'self': 1, 'when': 1, 'next': 1, 'until': 1, 'do': 1, 'begin': 1, 'unless': 1, 'END': 1, 'rescue': 1, 'nil': 1, 'else': 1, 'break': 1, 'undef': 1, 'not': 1, 'super': 1, 'class': 1, 'case': 1, 'require': 1, 'yield': 1, 'alias': 1, 'while': 1, 'ensure': 1, 'elsif': 1, 'or': 1, 'def': 1} - }, - modes: [ - HASH_COMMENT_MODE, - { - className: 'comment', - begin: '^\\=begin', end: '^\\=end', - relevance: 10 - }, - { - className: 'string', - begin: '\'', end: '(^|[^\\\\])\'', - contains: ['subst'], - relevance: 0 - }, - { - className: 'string', - begin: '"', end: '(^|[^\\\\])"', - contains: ['subst'], - relevance: 0 - }, - { - className: 'subst', - begin: '#\\{', end: '\}', - contains: ['string'], - relevance: 10 - }, - { - className: 'function', - lexems: [IDENT_RE], - begin: '\\bdef ', end: '$', - illegal: '[{\\:]', - keywords: {'def': 1}, - contains: ['title', 'comment'], - relevance: 10 - }, - { - className: 'class', - lexems: [IDENT_RE], - begin: '\\bclass ', end: '$', - illegal: '[{\\:]', - contains: ['title', 'comment'], - keywords: {'class': 1} - }, - { - className: 'symbol', - begin: ':' + UNDERSCORE_IDENT_RE, end: '^' - }, - { - className: 'title', - begin: IDENT_RE + "\\s*<\\s*" + IDENT_RE, end: '^' - }, - { - className: 'title', - begin: 'self.' + IDENT_RE, end: '^' - }, - { - className: 'title', - begin: IDENT_RE, end: '^' - } - ] -};//ruby \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/javascript.js b/gulliver/js/highlight/core/languages/javascript.js deleted file mode 100755 index fd14d6f8e..000000000 --- a/gulliver/js/highlight/core/languages/javascript.js +++ /dev/null @@ -1,38 +0,0 @@ -LANGUAGES.javascript = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - contains: ['string', 'comment', 'number', 'regexp', 'function'], - keywords: { - 'keyword': {'in': 1, 'if': 1, 'for': 1, 'while': 1, 'finally': 1, 'var': 1, 'new': 1, 'function': 1, 'do': 1, 'return': 1, 'void': 1, 'else': 1, 'break': 1, 'catch': 1, 'instanceof': 1, 'with': 1, 'throw': 1, 'case': 1, 'default': 1, 'try': 1, 'this': 1, 'switch': 1, 'continue': 1, 'typeof': 1, 'delete': 1}, - 'literal': {'true': 1, 'false': 1, 'null': 1} - } - }, - modes: [ - C_LINE_COMMENT_MODE, - C_BLOCK_COMMENT_MODE, - C_NUMBER_MODE, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - { - className: 'regexp', - begin: '/.*?[^\\\\/]/[gim]*', end: '^' - }, - { - className: 'function', - begin: 'function ', end: '{', - lexems: [UNDERSCORE_IDENT_RE], - keywords: {'function': 1}, - contains: ['title', 'params'] - }, - { - className: 'title', - begin: UNDERSCORE_IDENT_RE, end: '^' - }, - { - className: 'params', - begin: '\\(', end: '\\)', - contains: ['string', 'comment'] - } - ] -};//javascript \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/rib.js b/gulliver/js/highlight/core/languages/rib.js deleted file mode 100755 index 618bca490..000000000 --- a/gulliver/js/highlight/core/languages/rib.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - -RenderMan Interface Bytestream (c) Konstantin Evdokimenko - -*/ - -LANGUAGES.rib = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - illegal: ' - -*/ - -LANGUAGES.rsl = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - illegal: ' - -*/ - -var SMALLTALK_KEYWORDS = {'self': 1, 'super': 1, 'nil': 1, 'true': 1, 'false': 1, 'thisContext': 1}; // only 6 -var VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*'; - -LANGUAGES.smalltalk = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - contains: ['comment', 'string', 'class', 'method', - 'number', 'symbol', 'char', 'localvars', 'array'], - keywords: SMALLTALK_KEYWORDS - }, - modes: [ - { - className: 'class', - begin: '\\b[A-Z][A-Za-z0-9_]*', end: '^', - relevance: 0 - }, - { - className: 'symbol', - begin: '#' + UNDERSCORE_IDENT_RE, end: '^' - }, - C_NUMBER_MODE, - APOS_STRING_MODE, - { - className: 'comment', - begin: '"', end: '"', - relevance: 0 - }, - { - className: 'method', - begin: VAR_IDENT_RE+':', end:'^' - }, - { - className: 'char', - begin: '\\$.{1}', end: '^' - }, - { - className: 'localvars', - begin: '\\|\\s*(('+VAR_IDENT_RE+')\\s*)+\\|', end: '^', - relevance: 10 - }, - { - className: 'array', - begin: '\\#\\(', end: '\\)', - contains: ['string', 'char', 'number', 'symbol'] - } - ] -};//smalltalk \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/sql.js b/gulliver/js/highlight/core/languages/sql.js deleted file mode 100755 index 585ef259d..000000000 --- a/gulliver/js/highlight/core/languages/sql.js +++ /dev/null @@ -1,50 +0,0 @@ -SQL_KEYWORDS = {'all': 1, 'partial': 1, 'global': 1, 'month': 1, 'current_timestamp': 1, 'using': 1, 'go': 1, 'revoke': 1, 'smallint': 1, 'indicator': 1, 'end-exec': 1, 'disconnect': 1, 'zone': 1, 'with': 1, 'character': 1, 'assertion': 1, 'to': 1, 'add': 1, 'current_user': 1, 'usage': 1, 'input': 1, 'local': 1, 'alter': 1, 'match': 1, 'collate': 1, 'real': 1, 'then': 1, 'rollback': 1, 'get': 1, 'read': 1, 'timestamp': 1, 'session_user': 1, 'not': 1, 'integer': 1, 'bit': 1, 'unique': 1, 'day': 1, 'minute': 1, 'desc': 1, 'insert': 1, 'execute': 1, 'like': 1, 'level': 1, 'decimal': 1, 'drop': 1, 'continue': 1, 'isolation': 1, 'found': 1, 'where': 1, 'constraints': 1, 'domain': 1, 'right': 1, 'national': 1, 'some': 1, 'module': 1, 'transaction': 1, 'relative': 1, 'second': 1, 'connect': 1, 'escape': 1, 'close': 1, 'system_user': 1, 'for': 1, 'deferred': 1, 'section': 1, 'cast': 1, 'current': 1, 'sqlstate': 1, 'allocate': 1, 'intersect': 1, 'deallocate': 1, 'numeric': 1, 'public': 1, 'preserve': 1, 'full': 1, 'goto': 1, 'initially': 1, 'asc': 1, 'no': 1, 'key': 1, 'output': 1, 'collation': 1, 'group': 1, 'by': 1, 'union': 1, 'session': 1, 'both': 1, 'last': 1, 'language': 1, 'constraint': 1, 'column': 1, 'of': 1, 'space': 1, 'foreign': 1, 'deferrable': 1, 'prior': 1, 'connection': 1, 'unknown': 1, 'action': 1, 'commit': 1, 'view': 1, 'or': 1, 'first': 1, 'into': 1, 'float': 1, 'year': 1, 'primary': 1, 'cascaded': 1, 'except': 1, 'restrict': 1, 'set': 1, 'references': 1, 'names': 1, 'table': 1, 'outer': 1, 'open': 1, 'select': 1, 'size': 1, 'are': 1, 'rows': 1, 'from': 1, 'prepare': 1, 'distinct': 1, 'leading': 1, 'create': 1, 'only': 1, 'next': 1, 'inner': 1, 'authorization': 1, 'schema': 1, 'corresponding': 1, 'option': 1, 'declare': 1, 'precision': 1, 'immediate': 1, 'else': 1, 'timezone_minute': 1, 'external': 1, 'varying': 1, 'translation': 1, 'true': 1, 'case': 1, 'exception': 1, 'join': 1, 'hour': 1, 'default': 1, 'double': 1, 'scroll': 1, 'value': 1, 'cursor': 1, 'descriptor': 1, 'values': 1, 'dec': 1, 'fetch': 1, 'procedure': 1, 'delete': 1, 'and': 1, 'false': 1, 'int': 1, 'is': 1, 'describe': 1, 'char': 1, 'as': 1, 'at': 1, 'in': 1, 'varchar': 1, 'null': 1, 'trailing': 1, 'any': 1, 'absolute': 1, 'current_time': 1, 'end': 1, 'grant': 1, 'privileges': 1, 'when': 1, 'cross': 1, 'check': 1, 'write': 1, 'current_date': 1, 'pad': 1, 'begin': 1, 'temporary': 1, 'exec': 1, 'time': 1, 'update': 1, 'catalog': 1, 'user': 1, 'sql': 1, 'date': 1, 'on': 1, 'identity': 1, 'timezone_hour': 1, 'natural': 1, 'whenever': 1, 'interval': 1, 'work': 1, 'order': 1, 'cascade': 1, 'diagnostics': 1, 'nchar': 1, 'having': 1, 'left': 1}; - -LANGUAGES.sql = -{ - case_insensitive: true, - defaultMode: - { - lexems: [IDENT_RE], - contains: ['string', 'number', 'comment'], - keywords: { - 'keyword': SQL_KEYWORDS, - 'aggregate': {'count': 1, 'sum': 1, 'min': 1, 'max': 1, 'avg': 1} - } - }, - - modes: [ - C_NUMBER_MODE, - C_BLOCK_COMMENT_MODE, - { - className: 'comment', - begin: '--', end: '$' - }, - { - className: 'string', - begin: '\'', end: '\'', - contains: ['escape', 'squote'], - relevance: 0 - }, - { - className: 'squote', - begin: '\'\'', end: '^' - }, - { - className: 'string', - begin: '"', end: '"', - contains: [ 'escape', 'dquote'], - relevance: 0 - }, - { - className: 'dquote', - begin: '""', end: '^' - }, - { - className: 'string', - begin: '`', end: '`', - contains: ['escape'] - }, - BACKSLASH_ESCAPE - ] -};//sql diff --git a/gulliver/js/highlight/core/languages/static.js b/gulliver/js/highlight/core/languages/static.js deleted file mode 100755 index 4f9b10e30..000000000 --- a/gulliver/js/highlight/core/languages/static.js +++ /dev/null @@ -1,158 +0,0 @@ -LANGUAGES.cpp = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - illegal: ' - -*/ -LANGUAGES.java = { - defaultMode: { - lexems: [UNDERSCORE_IDENT_RE], - contains: ['comment', 'string', 'class', 'number', 'javadoc', 'annotation'], - keywords: {'false': 1, 'synchronized': 1, 'int': 1, 'abstract': 1, 'float': 1, 'private': 1, 'char': 1, 'interface': 1, 'boolean': 1, 'static': 1, 'null': 1, 'if': 1, 'const': 1, 'for': 1, 'true': 1, 'while': 1, 'long': 1, 'throw': 1, 'strictfp': 1, 'finally': 1, 'protected': 1, 'extends': 1, 'import': 1, 'native': 1, 'final': 1, 'implements': 1, 'return': 1, 'void': 1, 'enum': 1, 'else': 1, 'break': 1, 'transient': 1, 'new': 1, 'catch': 1, 'instanceof': 1, 'byte': 1, 'super': 1, 'class': 1, 'volatile': 1, 'case': 1, 'assert': 1, 'short': 1, 'package': 1, 'default': 1, 'double': 1, 'public': 1, 'try': 1, 'this': 1, 'switch': 1, 'continue': 1, 'throws': 1} - }, - modes: [ - { - className: 'class', - lexems: [UNDERSCORE_IDENT_RE], - begin: '(class |interface )', end: '{', - illegal: ':', - keywords: {'class': 1, 'interface': 1}, - contains: ['inheritance', 'title'] - }, - { - className: 'inheritance', - begin: '(implements|extends)', end: '^', - lexems: [IDENT_RE], - keywords: {'extends': 1, 'implements': 1}, - relevance: 10 - }, - { - className: 'title', - begin: UNDERSCORE_IDENT_RE, end: '^' - }, - { - className: 'params', - begin: '\\(', end: '\\)', - contains: ['string', 'annotation'] - }, - C_NUMBER_MODE, - APOS_STRING_MODE, - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - C_LINE_COMMENT_MODE, - { - className: 'javadoc', - begin: '/\\*\\*', end: '\\*/', - relevance: 10 - }, - C_BLOCK_COMMENT_MODE, - { - className: 'annotation', - begin: '@[A-Za-z]+', end: '^' - } - ] -};//java - - -var DELPHI_KEYWORDS = {'and': 1, 'safecall': 1, 'cdecl': 1, 'then': 1, 'string': 1, 'exports': 1, 'library': 1, 'not': 1, 'pascal': 1, 'set': 1, 'virtual': 1, 'file': 1, 'in': 1, 'array': 1, 'label': 1, 'packed': 1, 'end.': 1, 'index': 1, 'while': 1, 'const': 1, 'raise': 1, 'for': 1, 'to': 1, 'implementation': 1, 'with': 1, 'except': 1, 'overload': 1, 'destructor': 1, 'downto': 1, 'finally': 1, 'program': 1, 'exit': 1, 'unit': 1, 'inherited': 1, 'override': 1, 'if': 1, 'type': 1, 'until': 1, 'function': 1, 'do': 1, 'begin': 1, 'repeat': 1, 'goto': 1, 'nil': 1, 'far': 1, 'initialization': 1, 'object': 1, 'else': 1, 'var': 1, 'uses': 1, 'external': 1, 'resourcestring': 1, 'interface': 1, 'end': 1, 'finalization': 1, 'class': 1, 'asm': 1, 'mod': 1, 'case': 1, 'on': 1, 'shr': 1, 'shl': 1, 'of': 1, 'register': 1, 'xorwrite': 1, 'threadvar': 1, 'try': 1, 'record': 1, 'near': 1, 'stored': 1, 'constructor': 1, 'stdcall': 1, 'inline': 1, 'div': 1, 'out': 1, 'or': 1, 'procedure': 1}; -var DELPHI_CLASS_KEYWORDS = {'safecall': 1, 'stdcall': 1, 'pascal': 1, 'stored': 1, 'const': 1, 'implementation': 1, 'finalization': 1, 'except': 1, 'to': 1, 'finally': 1, 'program': 1, 'inherited': 1, 'override': 1, 'then': 1, 'exports': 1, 'string': 1, 'read': 1, 'not': 1, 'mod': 1, 'shr': 1, 'try': 1, 'div': 1, 'shl': 1, 'set': 1, 'library': 1, 'message': 1, 'packed': 1, 'index': 1, 'for': 1, 'near': 1, 'overload': 1, 'label': 1, 'downto': 1, 'exit': 1, 'public': 1, 'goto': 1, 'interface': 1, 'asm': 1, 'on': 1, 'of': 1, 'constructor': 1, 'or': 1, 'private': 1, 'array': 1, 'unit': 1, 'raise': 1, 'destructor': 1, 'var': 1, 'type': 1, 'until': 1, 'function': 1, 'else': 1, 'external': 1, 'with': 1, 'case': 1, 'default': 1, 'record': 1, 'while': 1, 'protected': 1, 'property': 1, 'procedure': 1, 'published': 1, 'and': 1, 'cdecl': 1, 'do': 1, 'threadvar': 1, 'file': 1, 'in': 1, 'if': 1, 'end': 1, 'virtual': 1, 'write': 1, 'far': 1, 'out': 1, 'begin': 1, 'repeat': 1, 'nil': 1, 'initialization': 1, 'object': 1, 'uses': 1, 'resourcestring': 1, 'class': 1, 'register': 1, 'xorwrite': 1, 'inline': 1}; - -LANGUAGES.delphi = { - defaultMode: { - lexems: [IDENT_RE], - illegal: '("|\\$[G-Zg-z]|\\/\\*| - -*/ -LANGUAGES.vbscript = { - defaultMode: { - lexems: [IDENT_RE], - contains: ['string', 'comment', 'number', 'built_in'], - keywords: { - 'keyword': {'call' : 1,'class' : 1,'const' : 1,'dim' : 1,'do' : 1,'loop' : 1,'erase' : 1,'execute' : 1,'executeglobal' : 1,'exit' : 1,'for' : 1,'each' : 1,'next' : 1,'function' : 1,'if' : 1,'then' : 1,'else' : 1,'on' : 1, 'error' : 1,'option' : 1, 'explicit' : 1,'private' : 1,'property' : 1,'let' : 1,'get' : 1,'public' : 1,'randomize' : 1,'redim' : 1,'rem' : 1,'select' : 1,'case' : 1,'set' : 1,'stop' : 1,'sub' : 1,'while' : 1,'wend' : 1,'with' : 1, 'end' : 1, 'to' : 1}, - 'built_in': {'lcase': 1, 'month': 1, 'vartype': 1, 'instrrev': 1, 'ubound': 1, 'setlocale': 1, 'getobject': 1, 'rgb': 1, 'getref': 1, 'string': 1, 'weekdayname': 1, 'rnd': 1, 'dateadd': 1, 'monthname': 1, 'now': 1, 'day': 1, 'minute': 1, 'isarray': 1, 'cbool': 1, 'round': 1, 'formatcurrency': 1, 'conversions': 1, 'csng': 1, 'timevalue': 1, 'second': 1, 'year': 1, 'space': 1, 'abs': 1, 'clng': 1, 'timeserial': 1, 'fixs': 1, 'len': 1, 'asc': 1, 'isempty': 1, 'maths': 1, 'dateserial': 1, 'atn': 1, 'timer': 1, 'isobject': 1, 'filter': 1, 'weekday': 1, 'datevalue': 1, 'ccur': 1, 'isdate': 1, 'instr': 1, 'datediff': 1, 'formatdatetime': 1, 'replace': 1, 'isnull': 1, 'right': 1, 'sgn': 1, 'array': 1, 'snumeric': 1, 'log': 1, 'cdbl': 1, 'hex': 1, 'chr': 1, 'lbound': 1, 'msgbox': 1, 'ucase': 1, 'getlocale': 1, 'cos': 1, 'cdate': 1, 'cbyte': 1, 'rtrim': 1, 'join': 1, 'hour': 1, 'oct': 1, 'typename': 1, 'trim': 1, 'strcomp': 1, 'int': 1, 'createobject': 1, 'loadpicture': 1, 'tan': 1, 'formatnumber': 1, 'mid': 1, 'scriptenginebuildversion': 1, 'scriptengine': 1, 'split': 1, 'scriptengineminorversion': 1, 'cint': 1, 'sin': 1, 'datepart': 1, 'ltrim': 1, 'sqr': 1, 'scriptenginemajorversion': 1, 'time': 1, 'derived': 1, 'eval': 1, 'date': 1, 'formatpercent': 1, 'exp': 1, 'inputbox': 1, 'left': 1} - } - }, - case_insensitive: true, - modes: [ - QUOTE_STRING_MODE, - BACKSLASH_ESCAPE, - { - className: 'comment', - begin: '\'', end: '$' - }, - C_NUMBER_MODE - ] -};//vbscript \ No newline at end of file diff --git a/gulliver/js/highlight/core/languages/www.js b/gulliver/js/highlight/core/languages/www.js deleted file mode 100755 index b88f7c05e..000000000 --- a/gulliver/js/highlight/core/languages/www.js +++ /dev/null @@ -1,186 +0,0 @@ -var XML_COMMENT = { - className: 'comment', - begin: '' -}; -var XML_ATTR = { - className: 'attribute', - begin: ' [a-zA-Z]+=', end: '^', - contains: ['value'] -}; -var XML_VALUE = { - className: 'value', - begin: '"', end: '"' -}; - -LANGUAGES.xml = { - defaultMode: { - contains: ['pi', 'comment', 'cdata', 'tag'] - }, - case_insensitive: true, - modes: [ - { - className: 'pi', - begin: '<\\?', end: '\\?>', - relevance: 10 - }, - XML_COMMENT, - { - className: 'cdata', - begin: '<\\!\\[CDATA\\[', end: '\\]\\]>' - }, - { - className: 'tag', - begin: '', - contains: ['title', 'tag_internal'], - relevance: 1.5 - }, - { - className: 'title', - begin: '[A-Za-z]+', end: '^', - relevance: 0 - }, - { - className: 'tag_internal', - begin: '^', endsWithParent: true, - contains: ['attribute'], - relevance: 0, - illegal: '[\\+\\.]' - }, - XML_ATTR, - XML_VALUE - ] -};//xml - -var HTML_TAGS = {'code': 1, 'kbd': 1, 'font': 1, 'noscript': 1, 'style': 1, 'img': 1, 'title': 1, 'menu': 1, 'tt': 1, 'tr': 1, 'param': 1, 'li': 1, 'tfoot': 1, 'th': 1, 'input': 1, 'td': 1, 'dl': 1, 'blockquote': 1, 'fieldset': 1, 'big': 1, 'dd': 1, 'abbr': 1, 'optgroup': 1, 'dt': 1, 'button': 1, 'isindex': 1, 'p': 1, 'small': 1, 'div': 1, 'dir': 1, 'em': 1, 'frame': 1, 'meta': 1, 'sub': 1, 'bdo': 1, 'label': 1, 'acronym': 1, 'sup': 1, 'body': 1, 'xml': 1, 'basefont': 1, 'base': 1, 'br': 1, 'address': 1, 'strong': 1, 'legend': 1, 'ol': 1, 'script': 1, 'caption': 1, 's': 1, 'col': 1, 'h2': 1, 'h3': 1, 'h1': 1, 'h6': 1, 'h4': 1, 'h5': 1, 'table': 1, 'select': 1, 'noframes': 1, 'span': 1, 'area': 1, 'dfn': 1, 'strike': 1, 'cite': 1, 'thead': 1, 'head': 1, 'option': 1, 'form': 1, 'hr': 1, 'var': 1, 'link': 1, 'b': 1, 'colgroup': 1, 'ul': 1, 'applet': 1, 'del': 1, 'iframe': 1, 'pre': 1, 'frameset': 1, 'ins': 1, 'tbody': 1, 'html': 1, 'samp': 1, 'map': 1, 'object': 1, 'a': 1, 'xmlns': 1, 'center': 1, 'textarea': 1, 'i': 1, 'q': 1, 'u': 1}; -var HTML_DOCTYPE = { - className: 'doctype', - begin: '', - relevance: 10 -}; -var HTML_ATTR = { - className: 'attribute', - begin: ' [a-zA-Z]+', end: '^' -}; -var HTML_VALUE = { - className: 'value', - begin: '[a-zA-Z0-9]+', end: '^' -}; - -LANGUAGES.html = { - defaultMode: { - contains: ['tag', 'comment', 'doctype'] - }, - case_insensitive: true, - modes: [ - XML_COMMENT, - HTML_DOCTYPE, - { - className: 'tag', - lexems: [IDENT_RE], - keywords: HTML_TAGS, - begin: '<[A-Za-z/]', end: '>', - contains: ['attribute'], - illegal: '[\\+\\.]' - }, - XML_ATTR, - HTML_ATTR, - XML_VALUE, - HTML_VALUE - ] -};//html - -LANGUAGES.css = { - defaultMode: { - contains: ['id', 'class', 'attr_selector', 'rules', 'comment'], - keywords: HTML_TAGS, - lexems: [IDENT_RE], - illegal: '=' - }, - case_insensitive: true, - modes: [ - { - className: 'id', - begin: '\\#[A-Za-z0-9_-]+', end: '^' - }, - { - className: 'class', - begin: '\\.[A-Za-z0-9_-]+', end: '^', - relevance: 0 - }, - { - className: 'attr_selector', - begin: '\\[', end: '\\]', - illegal: '$' - }, - { - className: 'rules', - begin: '{', end: '}', - lexems: ['[A-Za-z-]+'], - keywords: {'play-during': 1, 'counter-reset': 1, 'counter-increment': 1, 'min-height': 1, 'quotes': 1, 'border-top': 1, 'pitch': 1, 'font': 1, 'pause': 1, 'list-style-image': 1, 'border-width': 1, 'cue': 1, 'outline-width': 1, 'border-left': 1, 'elevation': 1, 'richness': 1, 'speech-rate': 1, 'border-bottom': 1, 'border-spacing': 1, 'background': 1, 'list-style-type': 1, 'text-align': 1, 'page-break-inside': 1, 'orphans': 1, 'page-break-before': 1, 'text-transform': 1, 'line-height': 1, 'padding-left': 1, 'font-size': 1, 'right': 1, 'word-spacing': 1, 'padding-top': 1, 'outline-style': 1, 'bottom': 1, 'content': 1, 'border-right-style': 1, 'padding-right': 1, 'border-left-style': 1, 'voice-family': 1, 'background-color': 1, 'border-bottom-color': 1, 'outline-color': 1, 'unicode-bidi': 1, 'max-width': 1, 'font-family': 1, 'caption-side': 1, 'border-right-width': 1, 'pause-before': 1, 'border-top-style': 1, 'color': 1, 'border-collapse': 1, 'border-bottom-width': 1, 'float': 1, 'height': 1, 'max-height': 1, 'margin-right': 1, 'border-top-width': 1, 'speak': 1, 'speak-header': 1, 'top': 1, 'cue-before': 1, 'min-width': 1, 'width': 1, 'font-variant': 1, 'border-top-color': 1, 'background-position': 1, 'empty-cells': 1, 'direction': 1, 'border-right': 1, 'visibility': 1, 'padding': 1, 'border-style': 1, 'background-attachment': 1, 'overflow': 1, 'border-bottom-style': 1, 'cursor': 1, 'margin': 1, 'display': 1, 'border-left-width': 1, 'letter-spacing': 1, 'vertical-align': 1, 'clip': 1, 'border-color': 1, 'list-style': 1, 'padding-bottom': 1, 'pause-after': 1, 'speak-numeral': 1, 'margin-left': 1, 'widows': 1, 'border': 1, 'font-style': 1, 'border-left-color': 1, 'pitch-range': 1, 'background-repeat': 1, 'table-layout': 1, 'margin-bottom': 1, 'speak-punctuation': 1, 'font-weight': 1, 'border-right-color': 1, 'page-break-after': 1, 'position': 1, 'white-space': 1, 'text-indent': 1, 'background-image': 1, 'volume': 1, 'stress': 1, 'outline': 1, 'clear': 1, 'z-index': 1, 'text-decoration': 1, 'margin-top': 1, 'azimuth': 1, 'cue-after': 1, 'left': 1, 'list-style-position': 1}, - contains: ['comment', 'value'] - }, - C_BLOCK_COMMENT_MODE, - { - className: 'value', - begin: ':', end: ';', endsWithParent: true, - excludeBegin: true, excludeEnd: true - } - ] -};//css - -LANGUAGES.django = { - defaultMode: { - contains: ['tag', 'comment', 'doctype', 'template_comment', 'template_tag', 'variable'] - }, - case_insensitive: true, - modes: [ - XML_COMMENT, - HTML_DOCTYPE, - { - className: 'tag', - lexems: [IDENT_RE], - keywords: HTML_TAGS, - begin: '<[A-Za-z/]', end: '>', - contains: ['attribute', 'template_comment', 'template_tag', 'variable'] - }, - XML_ATTR, - HTML_ATTR, - { - className: 'value', - begin: '"', end: '"', - contains: ['template_comment', 'template_tag', 'variable'] - }, - HTML_VALUE, - { - className: 'template_comment', - begin: '\\{\\%\\s*comment\\s*\\%\\}', end: '\\{\\%\\s*endcomment\\s*\\%\\}' - }, - { - className: 'template_comment', - begin: '\\{#', end: '#\\}' - }, - { - className: 'template_tag', - begin: '\\{\\%', end: '\\%\\}', - lexems: [IDENT_RE], - keywords: {'comment': 1, 'endcomment': 1, 'load': 1, 'templatetag': 1, 'ifchanged': 1, 'endifchanged': 1, 'if': 1, 'endif': 1, 'firstof': 1, 'for': 1, 'endfor': 1, 'in': 1, 'ifnotequal': 1, 'endifnotequal': 1, 'widthratio': 1, 'extends': 1, 'include': 1, 'spaceless': 1, 'endspaceless': 1, 'regroup': 1, 'by': 1, 'as': 1, 'ifequal': 1, 'endifequal': 1, 'ssi': 1, 'now': 1, 'with': 1, 'cycle': 1, 'url': 1, 'filter': 1, 'endfilter': 1, 'debug': 1, 'block': 1, 'endblock': 1, 'else': 1}, - contains: ['filter'] - }, - { - className: 'variable', - begin: '\\{\\{', end: '\\}\\}', - contains: ['filter'] - }, - { - className: 'filter', - begin: '\\|[A-Za-z]+\\:?', end: '^', excludeEnd: true, - lexems: [IDENT_RE], - keywords: {'truncatewords': 1, 'removetags': 1, 'linebreaksbr': 1, 'yesno': 1, 'get_digit': 1, 'timesince': 1, 'random': 1, 'striptags': 1, 'filesizeformat': 1, 'escape': 1, 'linebreaks': 1, 'length_is': 1, 'ljust': 1, 'rjust': 1, 'cut': 1, 'urlize': 1, 'fix_ampersands': 1, 'title': 1, 'floatformat': 1, 'capfirst': 1, 'pprint': 1, 'divisibleby': 1, 'add': 1, 'make_list': 1, 'unordered_list': 1, 'urlencode': 1, 'timeuntil': 1, 'urlizetrunc': 1, 'wordcount': 1, 'stringformat': 1, 'linenumbers': 1, 'slice': 1, 'date': 1, 'dictsort': 1, 'dictsortreversed': 1, 'default_if_none': 1, 'pluralize': 1, 'lower': 1, 'join': 1, 'center': 1, 'default': 1, 'truncatewords_html': 1, 'upper': 1, 'length': 1, 'phone2numeric': 1, 'wordwrap': 1, 'time': 1, 'addslashes': 1, 'slugify': 1, 'first': 1}, - contains: ['argument'] - }, - { - className: 'argument', - begin: '"', end: '"' - } - ] -};//django \ No newline at end of file diff --git a/gulliver/js/highlight/core/readme.eng.txt b/gulliver/js/highlight/core/readme.eng.txt deleted file mode 100755 index e47a6043d..000000000 --- a/gulliver/js/highlight/core/readme.eng.txt +++ /dev/null @@ -1,310 +0,0 @@ -# Highlight.js - -Highlight.js highlights syntax in code examples on blogs, forums and -in fact on any web pages. It's very easy to use because it works -automatically: finds blocks of code, detects a language, highlights it. - -Autodetection can be fine tuned when it fails by itself (see "Heuristics"). - -## Installation and usage - -The script is installed by linking to a single file and making a single -initialization call: - - - - -Autodetection can work a bit slow if it includes too many languages and code -blocks are large. To speed up highlighting in this case you can pass to the -initialization function only those languages that you actually use on your pages: - - - -When called this way highlight.js will dynamically load appropriate language -files and thus will also weigh less than with the default set that includes all -languages implemented. - -Then the script looks in your page for fragments `
...
` -that are used traditionally to mark up code examples. Their content is -marked up by logical pieces with defined class names. The classes are -used to actually style the code elements: - - .comment { - color: gray; - } - - .keyword { - font-weight: bold; - } - - .python .string { - color: blue; - } - - .html .atribute .value { - color: green; - } - -You can use included sample.css as a starting point for you own style. - -A full list of available classes is below ("Languages"). - -### WordPress plugin - -Generally installing highlight.js in a [WordPress][wp] blog is no different -than for any other web page. However it can also be installed as a plugin. -This is useful if your blog is located on a shared hosting and you don't -have a permission to edit template and style files. Or it may be more convenient -to you this way. - -To install the plugin copy the whole directory with highlight.js to the -WordPress plugins directory. After this you can activate and deactivate it -from the Plugins panel. There is also a page "highlight.js" under the Options -menu where you can set a list of languages and style rules. Insanely convenient :-) - -[wp]: http://wordpress.org/ - - -## Export - -File export.html contains a little program that shows and allows to copy and paste -an HTML code generated by the highlighter for any code snippet. This can be useful -in situations when one can't use the script itself on a site. - - -## Languages - -This is a full list of available classes corresponding to languages' -syntactic structures. - -Python: - - keyword keyword - number number - string string (of any type) - comment comment - decorator @-decorator for functions - function function header "def some_name(...):" - class class header "class SomeName(...):" - title name of a function or a class inside a header - params everything inside parentheses in a function's or class' header - -Ruby: - - keyword keyword - string string - subst in-string substitution (#{...}) - comment comment - function function header "def some_name(...):" - class class header "class SomeName(...):" - title name of a function or a class inside a header - symbol symbol - -Perl: - - keyword keyword - comment comment - number number - string string - regexp regular expression - sub subroutine header (from "sub" till "{") - variable variable starting with "$", "%", "@" - operator operator - pod plain old doc - -PHP: - - keyword keyword - number number - string string (of any type) - comment comment - phpdoc phpdoc params in comments - variable variable starting with "$" - -XML: - - tag any tag from "<" till ">" - comment comment - pi processing instruction () - cdata CDATA section - attribute attribute - value attribute's value - -HTML: - - keyword HTML tag - tag any tag from "<" till ">" - comment comment - doctype declaration - attribute tag's attribute with or without value - value attribute's value - -CSS: - - keyword HTML tag when in selectors, CSS keyword when in rules - id #some_name in selectors - class .some_name in selectors - attr_selector attribute selector (square brackets in a[href^=http://]) - comment comment - rules everything from "{" till "}" - value property's value inside a rule, from ":" till ";" or - till the end of rule block - -Django: - - keyword HTML tag in HTML, default tags and default filters in templates - tag any tag from "<" till ">" - comment comment - doctype declaration - attribute tag's attribute with or withou value - value attribute's value - template_tag template tag {% .. %} - variable template variable {{ .. }} - template_comment template comment, both {# .. #} and {% comment %} - filter filter from "|" till the next filter or the end of tag - argument filter argument - -Javascript: - - keyword keyword - comment comment - number number - literal special literal: "true", "false" and "null" - string string - regexp regular expression - function header of a function - title name of a function inside a header - params everything inside parentheses in a function's header - -VBScript: - - keyword keyword - number number - string string - comment comment - built_in built-in function - -Delphi: - - keyword keyword - comment comment (of any type) - number number - string string - function header of a function, procedure, constructor and destructor - title name of a function, procedure, constructor or destructor - inside a header - params everything inside parentheses in a function's header - class class' body from "= class" till "end;" - -Java: - - keyword keyword - number number - string string - comment commment - annotaion annotation - javadoc javadoc comment - class class header from "class" till "{" - title class name inside a header - params everything in parentheses inside a class header - inheritance keywords "extends" and "implements" inside class header - -C++: - - keyword keyword - number number - string string and character - comment comment - preprocessor preprocessor directive - -RenderMan (RSL): - - keyword keyword - number number - string string - comment comment - preprocessor preprocessor directive - shader sahder keywords - shading shading keywords - built_in built-in function - -RenderMan (RIB): - - keyword keyword - number number - string string - comment comment - commands command - -SQL: - - keyword keyword (mostly SQL'92 and SQL'99) - number number - string string (of any type: "..", '..', `..`) - comment comment - aggregate aggregate function - -Smalltalk: - - keyword keyword - number number - string string - comment commment - symbol symbol - array array - class name of a class - char char - localvars block of local variables - -Axapta: - - keyword keyword - number number - string string - comment commment - class class header from "class" till "{" - title class name inside a header - params everything in parentheses inside a class header - inheritance keywords "extends" and "implements" inside class header - preprocessor preprocessor directive - -1C: - - keyword keyword - number number - string string - comment commment - function header of function or procudure - title function name inside a header - params everything in parentheses inside a function header - preprocessor preprocessor directive - -## Heuristics - -Autodetection of a code's language is done with a simple heuristics: -the program tries to highlight a fragment with all available languages and -counts all syntactic structures that it finds along the way. The language -with greatest count wins. - -This means that in short fragments the probability of an error is high -(and it really happens sometimes). In this cases you can set the fragment's -language explicitly by assigning a class to the `` element: - -
...
- -To disable highlighting of a fragment altogether use "no-highlight" class: - -
...
- -## Contacts - -Version: 3.5 -URL: http://softwaremaniacs.org/soft/highlight/en/ -Author: Ivan Sagalaev (Maniac@SoftwareManiacs.Org) - -For the license terms see LICENSE files. -For the list of contributors see AUTHORS.en.txt file. diff --git a/gulliver/js/highlight/core/readme.rus.txt b/gulliver/js/highlight/core/readme.rus.txt deleted file mode 100755 index 7e444695f..000000000 --- a/gulliver/js/highlight/core/readme.rus.txt +++ /dev/null @@ -1,316 +0,0 @@ -# Highlight.js - -Highlight.js нужен для подсветки синтаксиса в примерах кода в блогах, -форумах и вообще на любых веб-страницах. Пользоваться им очень просто, -потому что работает он автоматически: сам находит блоки кода, сам -определяет язык, сам подсвечивает. - -Автоопределением языка можно управлять, когда оно не справляется само (см. -дальше "Эвристика"). - -## Подключение и использование - -Скрипт подключается одним файлом и одним вызовом инициализирующей -функции: - - - - -Автоматическое определение языков может работать довольно медленно, когда -в него включено много языков, а фрагменты кода обширны. Чтобы ускорить -процесс, можно перечислить в вызове инициализирующей функции только те -языки, которые используются в тексте: - - - -При вызов таким образом highlight.js динамически подгружает соответствующие -языковые файлы и таким образом весит меньше, чем с набором по умолчанию, -который включает все реализованные языки. - -Дальше скрипт ищет на странице конструкции `
...
`, -которые традиционно используются для написания кода, и код в них -размечается на куски, помеченные разными значениями классов. Классам -этим затем надо задать в стилях нужные цвета например так: - - .comment { - color: gray; - } - - .keyword { - font-weight: bold; - } - - .python .string { - color: blue; - } - - .html .atribute .value { - color: green; - } - -Можно использовать sample.css из комплекта как стартовую точку для собственного -стиля. - -Полный список классов для разных языков приведен ниже ("Языки"). - -### Плагин к WordPress - -Вообще, подключение highlight.js к блогу на [WordPress][wp] ничем не отличается -от подключения куда-либо еще. Однако он может быть подключен к блогу и как плагин. -Это удобно, если блог находится на общественном сервере, где вы не можете -свободно редактировать файлы, или просто если вы привыкли пользоваться плагинами. - -Для установки плагина надо скопировать всю директорию с файлами highlight.js в -директорию плагинов WordPress. После этого в панели плагинов его можно -будет включать и отключать. В меню Options также добавляется страничка -highlight.js, где можно настраивать список языков и CSS-стили. Удобно до одурения :-). - -[wp]: http://wordpress.org/ - - -## Экспорт - -В файле export.html находится небольшая программка, которая показывает и дает -скопировать непосредственно HTML-код подсветки для любого заданного фрагмента кода. -Это может понадобится например на сайте, на котором нельзя подключить сам скрипт -highlight.js. - - -## Языки - -В списке приведены все языки, которые знает библиотека с классами, -соответствующими различным синтаксическим частям. - -Python: - - keyword ключевое слово языка - number число - string строка (любого типа) - comment комментарий - decorator @-декоратор функции - function заголовок функции "def some_name(...):" - class заголовок класса "class SomeName(...):" - title название функции или класса внутри заголовка - params все, что в скобках внутри заголовка функции или класса - -Ruby: - - keyword ключевое слово языка - string строка - subst внутристроковая подстановка (#{...}) - comment комментарий - function заголовок функции "def ..." - class заголовок класса "class ..." - title название функции или класса внутри заголовка - symbol символ - -Perl: - - keyword ключевое слово языка - comment комментарий - number число - string строка - regexp регулярное выражение - sub заголовок процедуры (от "sub" до "{") - variable переменная, начинающаяся с "$", "%", "@" - operator оператор - pod документация (plain old doc) - -PHP: - - keyword ключевое слово языка - number число - string строка (любого типа) - comment комментарий - phpdoc параметры phpdoc в комментарии - variable переменная, начинающаяся с "$" - -XML: - - tag любой открывающий или закрывающий тег от "<" до ">" - comment комментарий - pi инструкции обработки () - cdata раздел CDATA - attribute атрибут - value значение атрибута - -HTML: - - keyword тег языка HTML - tag любой открывающий или закрывающий тег от "<" до ">" - comment комментарий - doctype объявление - attribute атрибут внутри тега со значением или без - value значение атрибута - -CSS: - - keyword тег языка HTML в селекторах или свойство CSS в правилах - id #some_name в селекторах - class .some_name в селекторах - attr_selector селектор атрибутов (квадатные скобоки в a[href^=http://]) - comment комментарий - rules все от "{" до "}" - value значение свойства внутри правила, все от ":" до ";" или - до конца блока правил - -Django: - - keyword тег HTML в HTML, встроенные шаблонные теги и фильтры в шаблонах - tag любой открывающий или закрывающий тег от "<" до ">" - comment комментарий - doctype объявление - attribute атрибут внутри тега со значением или без - value значение атрибута - template_tag шаблонный тег {% .. %} - variable шаблонная переменная {{ .. }} - template_comment шаблонный комментарий, и {# .. #}, и {% comment %} - filter фильтр от "|" до следующего фильтра или до конца тега - argument аргумент фильтра - -Javascript: - - keyword ключевое слово языка - comment комментарий - number число - literal специальное слово: "true", "false" и "null" - string строка - regexp регулярное выражение - function заголовок функции - title название функции внутри заголовка - params все, что в скобках внутри заголовка функции - -VBScript: - - keyword ключевое слово языка - comment комментарий - number число - string строка - built_in встроенная функция - -Delphi: - - keyword ключевое слово языка - comment комментарий (любого типа) - number число - string строка - function заголовок функции, процедуры, конструктора или деструктора - title название функции, процедуры, конструктора или деструктора - внутри заголовка - params все, что в скобках внутри заголовка функций - class тело класса от "= class" до "end;" - -Java: - - keyword ключевое слово языка - number число - string строка - comment комментарий - annotaion аннотация - javadoc javadoc-комментарии - class заголовок класса от "class" до "{" - title название класса внутри заголовка - params все, что в скобках внутри заголовка класса - inheritance слова "extends" и "implements" внутри заголовка класса - -C++: - - keyword ключевое слово языка - number число - string строка и одиночный символ - comment комментарий - preprocessor директива препроцессора - -RenderMan (RSL): - - keyword ключевое слово языка - number число - string строка - comment комментарий - preprocessor директива препроцессора - shader ключевое слово шейдеров - shading ключевое слово затенений - built_in встроенная функция - -RenderMan (RIB): - - keyword ключевое слово языка - number число - string строка - comment комментарий - commands команда - -SQL: - - keyword ключевое слово (в основном из SQL'92 и SQL'99) - number число - string строка (любого типа: "..", '..', `..`) - comment комментарий - aggregate агрегатная функция - -Smalltalk: - - keyword ключевое слово - number число - string строка - comment комментарий - symbol символ - array массив - class имя класса - char буква - localvars блок локальных переменных - -Axapta: - - keyword ключевое слово языка - number число - string строка - comment комментарий - class заголовок класса от "class" до "{" - title название класса внутри заголовка - params все, что в скобках внутри заголовка класса - inheritance слова "extends" и "implements" внутри заголовка класса - preprocessor директива препроцессора - -1С: - - keyword ключевое слово языка - number число - string строка - comment комментарий - function заголовок функции или процедуры - title название функции внутри заголовка - params все, что в скобках внутри заголовка функции - preprocessor директива препроцессора - - -## Эвристика - -Определение языка, на котором написан фрагмент, делается с помощью -довольно простой эвристики: программа пытается расцветить фрагмент всеми -языками подряд, и для каждого языка считает количество подошедших -синтаксически конструкций и ключевых слов. Для какого языка нашлось больше, -тот и выбирается. - -Это означает, что в коротких фрагментах высока вероятность ошибки, что -периодически и случается. Чтобы указать язык фрагмента явно, надо написать -его название в виде класса к элементу ``: - -
...
- -Чтобы запретить расцветку фрагмента вообще, используется класс "no-highlight": - -
...
- -## Координаты - -Версия: 3.5 -URL: http://softwaremaniacs.org/soft/highlight/ -Автор: Иван Сагалаев (Maniac@SoftwareManiacs.Org) - -Лицензионное соглашение читайте в файле LICENSE. -Список соавторов читайте в файле AUTHORS.ru.txt \ No newline at end of file diff --git a/gulliver/js/highlight/core/sample.css b/gulliver/js/highlight/core/sample.css deleted file mode 100755 index fac0df5ff..000000000 --- a/gulliver/js/highlight/core/sample.css +++ /dev/null @@ -1,75 +0,0 @@ -/* -You can use this file as is or as a starting point for you own styling -*/ - -pre code[class]:after { - content: 'highlight: ' attr(class); - display: block; text-align: right; - font-size: smaller; - color: #CCC; background: white; - border-top: solid 1px; - padding-top: 0.5em; -} - -pre code { - display: block; - background: #F0F0F0; -} - -pre code, -.ruby .subst { - color: black; -} - -.string, -.function .title, -.class .title, -.tag .attribute .value, -.css .rules .value, -.preprocessor, -.ruby .symbol, -.built_in, -.sql .aggregate, -.django .template_tag, -.django .variable, -.smalltalk .class { - color: #800; -} - -.comment, -.java .annotation, -.template_comment { - color: #888; -} - -.number, -.regexp, -.javascript .literal, -.smalltalk .symbol, -.smalltalk .char { - color: #080; -} - -.javadoc, -.ruby .string, -.python .decorator, -.django .filter .argument, -.smalltalk .localvars, -.smalltalk .array, -.css .attr_selector, -.xml .pi { - color: #88F; -} - -.keyword, -.css .id, -.phpdoc, -.function .title, -.class .title, -.vbscript .built_in, -.sql .aggregate, -.rsl .built_in, -.smalltalk .class, -.xml .tag .title { - font-weight: bold; -} \ No newline at end of file diff --git a/gulliver/js/highlight/core/test.html b/gulliver/js/highlight/core/test.html deleted file mode 100755 index e65c1b716..000000000 --- a/gulliver/js/highlight/core/test.html +++ /dev/null @@ -1,620 +0,0 @@ - - - Highlight - - - - - - - - -

Some Python code: - -

@requires_authorization
-def somefunc(param1, param2):
-  '''A docstring'''
-  if param1 > param2: # interesting
-    print 'Gre\'ater'
-    print ''
-  return param2 - param1 + 1
-  
-class SomeClass:
pass -
- -

Short sample of Ruby: - -

# Ruby support for highlight.js
-  
-class CategoriesController < ApplicationController
-  layout "core"
-
-  before_filter :login_required
-  before_filter :xhr_required, :only => [:create, :update]
-  before_filter :admin_privileges_required, :except => [:show]
-
-=begin
-  This method creates a category. Very difficult to understand, huh?
-=end
-
-  def create
-    @category = Category.create(params[:category])
-    flash[:notice] = "Category #{@category + "..."} was successfully created"
-  end
-end
-
- -

A bit of Perl: - -

# loads object
-sub load
-{
-  my $c = shift;
-  my $id = shift;
-  
-  my $flds = $c->db_load($id,@_) || do { Carp::carp "Can`t load (class: $c, id: $id): '$!'"; return undef };
-  
-  my $o = $c->_perl_new();
-  
-  $id12 = $id;
-  $o->{'ID'} = $id12 + 123;
-  
-  $o->{'PAPA'} = $flds->{'PAPA'};
-  #$o->{'SHCUT'} = $flds->{'SHCUT'};
-  
-  my $p = $o->props;
-  
-  #if($o->{'SHCUT'})
-  #{
-  #  $flds = $o->db_load($o->{'SHCUT'},@_);
-  #}
-  
-  my $vt;
-  for my $key (keys %$p)
-  {
-    if(${$vt.'::property'})
-    {
-      $o->{$key . '_real'} = $flds->{$key};
-      tie $o->{$key}, 'CMSBuilder::Property', $o, $key;
-    }
-    else
-    {
-      $o->{$key} = $flds->{$key};
-    }
-  }
-  
-  $o->save if delete $o->{'_save_after_load'};
-  
-  return $o;
-}
-
- -

A chunk of PHP: - -

require_once 'Zend.php';
-require_once 'Zend/Uri/Exception.php';
-require_once 'Zend/Uri/Http.php';
-
-/**
- * Zend_Uri_Mailto
- */
-require_once 'Zend/Uri/Mailto.php';
-
-
-/**
- * @category   Zend
- * @package    Zend_Uri
- * @copyright  Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)
- * @license    http://framework.zend.com/license/new-bsd     New BSD License
- */
-abstract class Zend_Uri
-{
-
-
-	/**
-	 * Scheme of this URI (http, ftp, etc.)
-	 * @var string
-	 */
-	protected $_scheme = "";
-
-
-    /**
-     * Return a string representation of this URI.
-     *
-     * @see     getUri()
-     * @return  string
-     */
-    public function __toString()
-    {
-        return $this->getUri();
-    }
-
-
-    static public function check($uri)
-    {
-        try {
-            $uri = self::factory($uri);
-        } catch (Exception $e) {
-            return false;
-        }
-
-        return $uri->valid();
-    }
-
-
-    /**
-     * Create a new Zend_Uri object for a URI.  If building a new URI, then $uri should contain
-     * only the scheme (http, ftp, etc).  Otherwise, supply $uri with the complete URI.
-     *
-     * @param string $uri
-     * @throws Zend_Uri_Exception
-     * @return Zend_Uri
-     */
-    static public function factory($uri = 'http')
-    {
-        /**
-         * Separate the scheme from the scheme-specific parts
-         * @link http://www.faqs.org/rfcs/rfc2396.html
-         */
-        $uri = explode(':', $uri, 2);
-        $scheme = strtolower($uri[0]);
-        $schemeSpecify = isset($uri[1]) ? $uri[1] : '';
-
-        if (!strlen($scheme)) {
-            throw new Zend_Uri_Exception('An empty string was supplied for the scheme');
-        }
-
-        // Security check: $scheme is used to load a class file, so only alphanumerics are allowed.
-        if (!ctype_alnum($scheme)) {
-            throw new Zend_Uri_Exception('Illegal scheme supplied, only alphanumeric characters are permitted');
-        }
-}
-
- -

A custom XML document: - -

<?xml version="1.0"?>
-<response value="ok">
-  <text>Ok</text>
-  <comment/>
-  <description><![CDATA[ 
-  CDATA is <not> magical. 
-  ]]></description>
-</response>
-
- -

Some HTML code: - -

<head>
-  <title>Title</title>
-<body>
-  <p class="something">Something</p>
-  <p class=something>Something</p>
-  <!-- comment -->
-  <p class>Something</p>
-  <p class="something" title="p">Something</p>
-</body>
-
- -

HTML with Django templates: - -

{% if articles|length %}
-{% for article in articles %}
-
-{# Striped table #}
-<tr class="{% cycle odd,even %}">
-  <td>{{ article|default:"Hi... "|escape }}</td>
-  <td>{{ article.date|date:"d.m.Y" }}</td>
-</tr>
-  
-{% endfor %}
-{% endif %}
-
-{% comment %}
-Comments may be long and
-multiline.
-{% endcomment %}
-
- -

Some CSS code: - -

body, 
-html {
-  font: Tahoma, Arial, san-serif;
-}
-
-#content {
-  width: 100%; /* комментарий */
-  height: 100%
-}
-
-p[lang=ru] {
-  color: red;
-}
-
- -

Javascript here too (right from the source, mind you): - -

function initHighlight(block) {
-  if (block.className.search(/\bno\-highlight\b/) != -1)
-    return false;
-  try {
-    blockText(block);
-  } catch (e) {
-    if (e == 'Complex markup')
-      return;
-  }//try
-  var classes = block.className.split(/\s+/);
-  for (var i = 0; i < classes.length; i++) {
-    if (LANGUAGES[classes[i]]) {
-      highlightLanguage(block, classes[i]);
-      return;
-    }//if
-  }//for
-  highlightAuto(block);
-}//initHighlight
- -

VBScript - -

' creating configuration storage and initializing with default values
-Set cfg = CreateObject("Scripting.Dictionary")
-cfg.add "dest", ""
-cfg.add "dest_gz", ""
-cfg.add "gzip_exe", ""
-cfg.add "perl_exe", ""
-cfg.add "uncompressed_postfix", ""
-
-' reading ini file
-for i = 0 to ubound(ini_strings)
-    s = trim(ini_strings(i))
-
-    ' skipping empty strings and comments
-    if mid(s, 1, 1) <> "#" and len(s) > 0 then 
-      ' obtaining key and value
-      parts = split(s, "=", -1, 1)
-
-      if ubound(parts)+1 = 2 then
-        parts(0) = trim(parts(0))
-        parts(1) = trim(parts(1))
-
-        ' reading configuration and filenames
-        select case lcase(parts(0))
-          case "dest"                 cfg.item("dest") = parts(1)
-          case "dest_gz"              cfg.item("dest_gz") = parts(1)
-          case "gzip_exe"             cfg.item("gzip_exe") = parts(1)
-          case "perl_exe"             cfg.item("perl_exe") = parts(1)
-          case "uncompressed_postfix" cfg.item("uncompressed_postfix") = parts(1)
-          case "f"
-                    options = split(parts(1), "|", -1, 1)
-                    if ubound(options)+1 = 2 then
-                      ' 0: filename,  1: options
-                      ff.add trim(options(0)), trim(options(1))
-                    end if
-        end select
-      end if
-    end if
-next
- -

Delphi code - -

TList=Class(TObject) 
-Private
-  Some: String;
-Public
-  Procedure Inside;
-End;{TList}
-
-Procedure CopyFile(InFileName,var OutFileName:String);
-Const
-  BufSize=4096; (* Huh? *)
-Var
-  InFile,OutFile:TStream;
-  Buffer:Array[1..BufSize] Of Byte;
-  ReadBufSize:Integer;
-Begin
-  InFile:=Nil;
-  OutFile:=Nil;
-  Try
-    InFile:=TFileStream.Create(InFileName,fmOpenRead);
-    OutFile:=TFileStream.Create(OutFileName,fmCreate);
-    Repeat
-      ReadBufSize:=InFile.Read(Buffer,BufSize);
-      OutFile.Write(Buffer,ReadBufSize);
-    Until ReadBufSize<>BufSize;
-    Log('File '''+InFileName+''' copied'#13#10);
-  Finally
-    InFile.Free;
-    OutFile.Free;
-  End;{Try}
-End;{CopyFile}
-
- -

From Java world: - -

package l2f.gameserver.model;
-
-import java.util.ArrayList;
-
-/**
- * Mother class of all character objects of the world (PC, NPC...)<BR><BR>
- *
- */
-public abstract class L2Character extends L2Object
-{
-	protected static final Logger _log = Logger.getLogger(L2Character.class.getName());
-
-	public static final Short ABNORMAL_EFFECT_BLEEDING = 0x0001; // not sure
-	public static final Short ABNORMAL_EFFECT_POISON = 0x0002;
-
-	/**
-	 * Cancel the AI.<BR><BR>
-	 */
-	public void detachAI()
-	{
-		_ai = null;
-		//jbf = null;
-		if (1 > 5)
-		{
-			return;
-		}
-	}
-
-	public void moveTo(int x, int y, int z)
-	{
-		moveTo(x, y, z, 0);
-	}
-
-	/** Task of AI notification */
-	@SuppressWarnings( { "nls", "unqualified-field-access", "boxing" })
-	public class NotifyAITask implements Runnable
-	{
-		private final CtrlEvent _evt;
-
-		public NotifyAITask(CtrlEvent evt)
-		{
-			this._evt = evt;
-		}
-
-		public void run()
-		{
-			try
-			{
-				getAI().notifyEvent(_evt, null, null);
-			}
-			catch (Throwable t)
-			{
-				_log.warning("Exception " + t);
-				t.printStackTrace();
-			}
-		}
-	}
-
-	private static final int HP_REGEN_FLAG = 1;
-	private static final int MP_REGEN_FLAG = 2;
-	private static final int CP_REGEN_FLAG = 4;
-
-	/** The table containing the List of all stacked effect in progress for each Stack group Identifier */
-	private ConcurrentHashMap<String, Short> _stackedEffects = null;
-}
-
- -

C++: - -

#include <iostream>
-
-int main(int argc, char *argv[]) {
-  
-  /* An annoying "Hello World" example */
-  for (unsigned i = 0; i < 0xFFFF; i++)
-    cout << "Hello, World!" << endl;
-  
-  char c = '\n'; // just a test 
-  char *s = "\\\\"; // another test
-}
-
- -

Bet you didn't expect to see a highlighted RenderMan (both RenderMan -Shading Language and RenderMan Interface Bytestream):

- -
#define TEST_DEFINE 3.14
-/*	plastic surface shader
- *
- * 	Pixie is:
- * 	(c) Copyright 1999-2003 Okan Arikan. All rights reserved.
- */
-
-surface plastic (float Ka = 1, Kd = 0.5, Ks = 0.5, roughness = 0.1;
-                 color specularcolor = 1;) {
-	normal Nf = faceforward (normalize(N),I);
-	Ci = Cs * (Ka*ambient() + Kd*diffuse(Nf)) + specularcolor * Ks*specular(Nf,-normalize(I),roughness);
-	Oi = Os;
-	Ci *= Oi;
-}
-
- -
FrameBegin 0
-Display "Scene" "framebuffer" "rgb"
-Option "searchpath" "shader" "+&:/home/kew"
-Option "trace" "int maxdepth" [4]
-Attribute "visibility" "trace" [1]
-Attribute "irradiance" "maxerror" [0.1]
-Attribute "visibility" "transmission" "opaque"
-Format 640 480 1.0
-ShadingRate 2
-PixelFilter "catmull-rom" 1 1
-PixelSamples 4 4
-Projection "perspective" "fov" 49.5502811377
-Scale 1 1 -1
-ConcatTransform [-0.105581186712 -0.336664259434 0.935686826706 0.0
-
-		      0.994097530842 -0.0121211335063 0.107810914516 0.0
-
-          -0.0249544940889 0.941546678543 0.335956931114 0.0
-
-          0.103667020798 -1.30126297474 -6.22769546509 1.0]
-
-WorldBegin
-
-ReadArchive "/home/qewerty/blends/my/instances/Lamp.002_Light/instance.rib"
-Surface "plastic"
-ReadArchive "/home/qewerty/blends/my/instances/Cube.004_Mesh/instance.rib"
-# ReadArchive "/home/qewerty/blends/my/instances/Sphere.010_Mesh/instance.rib"
-# ReadArchive "/home/qewerty/blends/my/instances/Sphere.009_Mesh/instance.rib"
-ReadArchive "/home/qewerty/blends/my/instances/Sphere.006_Mesh/instance.rib"
-
-WorldEnd
-FrameEnd
-
- -

SQL: - -

BEGIN;
-CREATE TABLE "cicero_topic" (
-    "id" serial NOT NULL PRIMARY KEY,
-    "forum_id" integer NOT NULL,
-    "subject" varchar(255) NOT NULL,
-    "created" timestamp with time zone NOT NULL
-);
-ALTER TABLE "cicero_topic" 
-ADD CONSTRAINT forum_id_refs_id_4be56999 
-FOREIGN KEY ("forum_id") 
-REFERENCES "cicero_forum" ("id") 
-DEFERRABLE INITIALLY DEFERRED;
-
--- Initials
-insert into "cicero_forum" ("slug", "name", "group", "ordering") values ('test', 'Тест''овый форум', 'Тест', 0);
-
--- Indices
-CREATE INDEX "cicero_topic_forum_id" ON "cicero_topic" ("forum_id");
-
--- Test
-select count(*) from cicero_forum;
-
-COMMIT;
-
- -

Good old classic SmallTalk: - -

Object>>method: num
-    "comment 123"
-    | var1 var2 |
-    (1 to: num) do: [:i | |var| ^i].
-    Klass with: var1.
-    Klass new.
-    arr := #('123' 123.345 #hello Transcript var $@).
-    arr := #().
-    var2 = arr at: 3.
-    ^ self abc
-
-heapExample
-    "HeapTest new heapExample"
-    "Create a sorted collection of numbers, remove the elements
-    sequentially and add new objects randomly.
-    Note: This is the kind of benchmark a heap is designed for."
-    | n rnd array time sorted |
-    n := 5000.
-    "# of elements to sort"
-    rnd := Random new.
-    array := (1 to: n)
-                collect: [:i | rnd next].
-    "First, the heap version"
-    time := Time
-                millisecondsToRun: [sorted := Heap withAll: array.
-    1
-        to: n
-        do: [:i |
-            sorted removeFirst.
-            sorted add: rnd next]].
-    Transcript cr; show: 'Time for Heap: ' , time printString , ' msecs'.
-    "The quicksort version"
-    time := Time
-                millisecondsToRun: [sorted := SortedCollection withAll: array.
-    1
-        to: n
-        do: [:i |
-            sorted removeFirst.
-            sorted add: rnd next]].
-    Transcript cr; show: 'Time for SortedCollection: ' , time printString , ' msecs'
-
- -

Axapta: - -

class ExchRateLoadBatch extends RunBaseBatch
-{
-    ExchRateLoad rbc;
-    container currencies;
-    boolean actual;
-    boolean overwrite;
-    date beg;
-    date end;
-
-    #define.CurrentVersion(5)
-
-    #localmacro.CurrentList
-        currencies,
-        actual,
-        beg,
-        end
-    #endmacro
-}
-
-public boolean unpack(container packedClass)
-{
-    container       base;
-    boolean         ret;
-    Integer         version    = runbase::getVersion(packedClass);
-
-    switch (version)
-    {
-        case #CurrentVersion:
-            [version, #CurrentList] = packedClass;
-            return true;
-        default:
-            return false;
-    }
-    return ret;
-}
-
- -

And this is a russian enterpise system "1С": - -


-#Если Клиент Тогда
-Перем СимвольныйКодКаталога = "ля-ля-ля"; //комментарий
-Функция Сообщить(Знач ТекстСообщения, ТекстСообщения2) Экспорт //комментарий к функции
-	x=ТекстСообщения+ТекстСообщения2+"
-	|строка1
-	|строка2
-	|строка3";
-КонецФункции
-#КонецЕсли
-
-////////////////////////////////////////////////////////////////////////////////
-// ОБРАБОТЧИКИ СОБЫТИЙ
-// 
-
-// Процедура ПриНачалеРаботыСистемы
-// 
-Процедура ПриНачалеРаботыСистемы()
-
-	Обработки.Помощник.ПолучитьФорму("Форма").Открыть();
-
-КонецПроцедуры
-
- -
- -

Explicit Python highlight: - -

for x in [1, 2, 3]:
-  count(x)
-
- -

Disabled highlighting: - -

<div id="contents">
-  <p>Hello, World!
-</div>
-
diff --git a/gulliver/js/highlight/core/wp_highlight.js.php b/gulliver/js/highlight/core/wp_highlight.js.php deleted file mode 100755 index ca91abcb9..000000000 --- a/gulliver/js/highlight/core/wp_highlight.js.php +++ /dev/null @@ -1,86 +0,0 @@ - $language) { - $languages[$i] = '\'' . trim($language) . '\''; - } - $languages_str = implode(', ', $languages); - } - ?> - - - - -

Options updated.

-
-
-

highlight.js options

- -
-

-

List here languages that you want to highlight on your blog like this: php, html, css. Empty string means "all known languages". For the list - of supported languages refer to highlight.js homepage.

-
- -
-

-

Let's you place the script in a convenient place

-
- -
-

-

-

Normally styling of code snippets goes into site's main CSS files. But you can - write it here if you can't access site's CSS or just like it this way.

-
- -
- -
-
-
\ No newline at end of file diff --git a/gulliver/js/json/core/json.js b/gulliver/js/json/core/json.js deleted file mode 100755 index c99aab684..000000000 --- a/gulliver/js/json/core/json.js +++ /dev/null @@ -1,148 +0,0 @@ -/* PACKAGE : json.js 2007-03-21 - */ -if (!Object.prototype.toJSONString) { - Array.prototype.toJSONString = function () { - var a = ['['], - b, - i, - l = this.length, - v; - function p(s) { - if (b) { - a.push(','); - } - a.push(s); - b = true; - } - for (i = 0; i < l; i += 1) { - v = this[i]; - switch (typeof v) { - case 'undefined': - case 'function': - case 'unknown': - break; - case 'object': - if (v) { - if (typeof v.toJSONString === 'function') { - p(v.toJSONString()); - } - } else { - p("null"); - } - break; - default: - p(v.toJSONString()); - } - } - a.push(']'); - return a.join(''); - }; - Boolean.prototype.toJSONString = function () { - return String(this); - }; - Date.prototype.toJSONString = function () { - function f(n) { - return n < 10 ? '0' + n : n; - } - return '"' + this.getFullYear() + '-' + - f(this.getMonth() + 1) + '-' + - f(this.getDate()) + 'T' + - f(this.getHours()) + ':' + - f(this.getMinutes()) + ':' + - f(this.getSeconds()) + '"'; - }; - Number.prototype.toJSONString = function () { - return isFinite(this) ? String(this) : "null"; - }; - Object.prototype.toJSONString = function () { - var a = ['{'], - b, - k, - v; - function p(s) { - if (b) { - a.push(','); - } - a.push(k.toJSONString(), ':', s); - b = true; - } - for (k in this) { - if (this.hasOwnProperty(k)) { - v = this[k]; - switch (typeof v) { - case 'undefined': - case 'function': - case 'unknown': - break; - case 'object': - if (v) { - if (typeof v.toJSONString === 'function') { - p(v.toJSONString()); - } - } else { - p("null"); - } - break; - default: - p(v.toJSONString()); - } - } - } - a.push('}'); - return a.join(''); - }; - - (function (s) { - var m = { - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - }; - s.parseJSON = function (filter) { - try { - if (/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/. - test(this)) { - var j = eval('(' + this + ')'); - if (typeof filter === 'function') { - - function walk(k, v) { - if (v && typeof v === 'object') { - for (var i in v) { - if (v.hasOwnProperty(i)) { - v[i] = walk(i, v[i]); - } - } - } - return filter(k, v); - } - - j = walk('', j); - } - return j; - } - } catch (e) { - } - throw new SyntaxError("parseJSON"); - }; - - s.toJSONString = function () { - if (/["\\\x00-\x1f]/.test(this)) { - return '"' + this.replace(/([\x00-\x1f\\"])/g, function(a, b) { - var c = m[b]; - if (c) { - return c; - } - c = b.charCodeAt(); - return '\\u00' + - Math.floor(c / 16).toString(16) + - (c % 16).toString(16); - }) + '"'; - } - return '"' + this + '"'; - }; - })(String.prototype); -} diff --git a/gulliver/js/md5/core/md5.js b/gulliver/js/md5/core/md5.js deleted file mode 100755 index 9a21d8683..000000000 --- a/gulliver/js/md5/core/md5.js +++ /dev/null @@ -1,248 +0,0 @@ -/* - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ - -/* - * Configurable variables. You may need to tweak these to be compatible with - * the server-side, but the defaults work in most cases. - */ -var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */ -var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */ -var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */ - -/* - * These are the functions you'll usually want to call - * They take string arguments and return either hex or base-64 encoded strings - */ -var hex_md5 = md5 = function(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));} -function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));} -function str_md5(s){ return binl2str(core_md5(str2binl(s), s.length * chrsz));} -function hex_hmac_md5(key, data) { return binl2hex(core_hmac_md5(key, data)); } -function b64_hmac_md5(key, data) { return binl2b64(core_hmac_md5(key, data)); } -function str_hmac_md5(key, data) { return binl2str(core_hmac_md5(key, data)); } - -/* - * Calculate the MD5 of an array of little-endian words, and a bit length - */ -function core_md5(x, len) -{ - /* append padding */ - x[len >> 5] |= 0x80 << ((len) % 32); - x[(((len + 64) >>> 9) << 4) + 14] = len; - - var a = 1732584193; - var b = -271733879; - var c = -1732584194; - var d = 271733878; - - for(var i = 0; i < x.length; i += 16) - { - var olda = a; - var oldb = b; - var oldc = c; - var oldd = d; - - a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); - d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); - c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); - b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); - a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); - d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); - c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); - b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); - a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); - d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); - c = md5_ff(c, d, a, b, x[i+10], 17, -42063); - b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); - a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); - d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); - c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); - b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); - - a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); - d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); - c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); - b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); - a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); - d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); - c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); - b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); - a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); - d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); - c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); - b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); - a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); - d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); - c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); - b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); - - a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); - d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); - c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); - b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); - a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); - d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); - c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); - b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); - a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); - d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); - c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); - b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); - a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); - d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); - c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); - b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); - - a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); - d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); - c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); - b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); - a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); - d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); - c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); - b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); - a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); - d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); - c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); - b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); - a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); - d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); - c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); - b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); - - a = safe_add(a, olda); - b = safe_add(b, oldb); - c = safe_add(c, oldc); - d = safe_add(d, oldd); - } - return Array(a, b, c, d); - -} - -/* - * These functions implement the four basic operations the algorithm uses. - */ -function md5_cmn(q, a, b, x, s, t) -{ - return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); -} -function md5_ff(a, b, c, d, x, s, t) -{ - return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); -} -function md5_gg(a, b, c, d, x, s, t) -{ - return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); -} -function md5_hh(a, b, c, d, x, s, t) -{ - return md5_cmn(b ^ c ^ d, a, b, x, s, t); -} -function md5_ii(a, b, c, d, x, s, t) -{ - return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); -} - -/* - * Calculate the HMAC-MD5, of a key and some data - */ -function core_hmac_md5(key, data) -{ - var bkey = str2binl(key); - if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz); - - var ipad = Array(16), opad = Array(16); - for(var i = 0; i < 16; i++) - { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - - var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz); - return core_md5(opad.concat(hash), 512 + 128); -} - -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ -function safe_add(x, y) -{ - var lsw = (x & 0xFFFF) + (y & 0xFFFF); - var msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xFFFF); -} - -/* - * Bitwise rotate a 32-bit number to the left. - */ -function bit_rol(num, cnt) -{ - return (num << cnt) | (num >>> (32 - cnt)); -} - -/* - * Convert a string to an array of little-endian words - * If chrsz is ASCII, characters >255 have their hi-byte silently ignored. - */ -function str2binl(str) -{ - var bin = new Array(); - var mask = (1 << chrsz) - 1; - for(var i = 0; i < str.length * chrsz; i += chrsz) - bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32); - return bin; -} - -/* - * Convert an array of little-endian words to a string - */ -function binl2str(bin) -{ - var str = ""; - var mask = (1 << chrsz) - 1; - for(var i = 0; i < bin.length * 32; i += chrsz) - str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask); - return str; -} - -/* - * Convert an array of little-endian words to a hex string. - */ -function binl2hex(binarray) -{ - var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; - var str = ""; - for(var i = 0; i < binarray.length * 4; i++) - { - str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + - hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); - } - return str; -} - -/* - * Convert an array of little-endian words to a base-64 string - */ -function binl2b64(binarray) -{ - var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - var str = ""; - for(var i = 0; i < binarray.length * 4; i += 3) - { - var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16) - | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 ) - | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF); - for(var j = 0; j < 4; j++) - { - if(i * 8 + j * 6 > binarray.length * 32) str += b64pad; - else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); - } - } - return str; -} diff --git a/gulliver/system/class.bootstrap.php b/gulliver/system/class.bootstrap.php index 233aff967..c3fe0e50c 100644 --- a/gulliver/system/class.bootstrap.php +++ b/gulliver/system/class.bootstrap.php @@ -77,12 +77,10 @@ class Bootstrap self::registerClass("DBRecordSet", PATH_GULLIVER . "class.dbrecordset.php"); self::registerClass("DBSession", PATH_GULLIVER . "class.dbsession.php"); self::registerClass("DBTable", PATH_GULLIVER . "class.dbtable.php"); - self::registerClass("XmlForm_Field_HTML", PATH_GULLIVER . "class.dvEditor.php"); self::registerClass("dynaFormHandler", PATH_GULLIVER . "class.dynaformhandler.php"); self::registerClass("G_Error", PATH_GULLIVER . "class.error.php"); self::registerClass("filterForm", PATH_GULLIVER . "class.filterForm.php"); self::registerClass("Form", PATH_GULLIVER . "class.form.php"); - self::registerClass("functionTest", PATH_GULLIVER . "class.functionTest.php"); self::registerClass("G", PATH_GULLIVER . "class.g.php"); self::registerClass("headPublisher", PATH_GULLIVER . "class.headPublisher.php"); self::registerClass("Helper", PATH_GULLIVER . "class.helper.php"); @@ -107,9 +105,7 @@ class Bootstrap self::registerClass("Table", PATH_GULLIVER . "class.table.php"); self::registerClass("TemplatePowerParser", PATH_GULLIVER . "class.templatePower.php"); self::registerClass("TemplatePower", PATH_GULLIVER . "class.templatePower.php"); - self::registerClass("testTools", PATH_GULLIVER . "class.testTools.php"); self::registerClass("Tree", PATH_GULLIVER . "class.tree.php"); - self::registerClass("unitTest", PATH_GULLIVER . "class.unitTest.php"); self::registerClass("WebResource", PATH_GULLIVER . "class.webResource.php"); self::registerClass("XmlForm_Field_WYSIWYG_EDITOR", PATH_GULLIVER . "class.wysiwygEditor.php"); self::registerClass("Xml_Node", PATH_GULLIVER . "class.xmlDocument.php"); @@ -162,8 +158,6 @@ class Bootstrap self::registerClass("XmlForm_Field_DVEditor", PATH_GULLIVER . "class.xmlformExtension.php"); self::registerClass("XmlForm_Field_FastSearch", PATH_GULLIVER . "class.xmlformExtension.php"); self::registerClass("xmlformTemplate", PATH_GULLIVER . "class.xmlformTemplate.php"); - self::registerClass("ymlDomain", PATH_GULLIVER . "class.ymlDomain.php"); - self::registerClass("ymlTestCases", PATH_GULLIVER . "class.ymlTestCases.php"); // ProcessMaker classes self::registerClass("InvalidIndexSearchTextException", PATH_CLASSES . "class.AppSolr.php"); diff --git a/gulliver/system/class.dvEditor.php b/gulliver/system/class.dvEditor.php deleted file mode 100755 index 1068c8347..000000000 --- a/gulliver/system/class.dvEditor.php +++ /dev/null @@ -1,88 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -//XmlForm_Field_DVEditor -/** - * XmlForm_Field_HTML class definition - * It is useful to see dynaforms how are built - * - * @package gulliver.system - * @author - * - * @copyright (C) 2002 by Colosa Development Team. - * - */ -class XmlForm_Field_HTML extends XmlForm_Field -{ - public $toolbarSet = 'smallToolBar'; - public $width = '100%'; - public $height = '200'; - public $defaultValue = '
'; - - /** - * render function is drawing the dynaform - * - * @author - * - * - * @access public - * @param string $value - * @param string $owner - * @return string - * - */ - public function render($value = null, $owner = null) - { - $value = ($value == '') ? '
' : $value; - $html = "
"; - $html .= ""; - $html .= "
"; - return $html; - } - - /** - * attachEvents function is putting its events - * - * @author - * - * - * @access public - * @param string $element - * @return string - * - */ - public function attachEvents ($element) - { - $html = 'window._editor' . $this->name . '=new DVEditor(getField("' . $this->name . '").parentNode,getField("' . $this->name . '").value,element,"' . $this->height . '","' . $this->mode . '");'; - if ($this->mode == "edit") { - $html .= 'window._editor' . $this->name . '.loadToolBar("/js/dveditor/core/toolbars/' . $this->toolbarSet . '.html");'; - } - $html .= 'window._editor' . $this->name . '.syncHidden("window._editor' . $this->name . '");'; - return $html; - } -} - diff --git a/gulliver/system/class.functionTest.php b/gulliver/system/class.functionTest.php deleted file mode 100755 index 90a700039..000000000 --- a/gulliver/system/class.functionTest.php +++ /dev/null @@ -1,68 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -/** - * - * @package gulliver.system - * - */ - -class functionTest -{ - public $dbc; - public $times; - - /** - * Starts functionTest with a database connection - * - * @access public - * @param string $dbc - * @return void - * - */ - public function functionTest ($dbc) - { - $this->dbc = $dbc; - } - - /** - * this function is a sample - * - * @access public - * @param string $testCase - * @param string $testDomain - * @param string $limeTestObject - * @return ok - * - */ - public function sample ($testCase, &$testDomain, &$limeTestObject) - { - return "OK"; - } -} - diff --git a/gulliver/system/class.testTools.php b/gulliver/system/class.testTools.php deleted file mode 100755 index ff9611fb4..000000000 --- a/gulliver/system/class.testTools.php +++ /dev/null @@ -1,199 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -/** - * - * @package gulliver.system - * - */ -G::LoadSystem( 'ymlDomain' ); -G::LoadSystem( 'ymlTestCases' ); -G::LoadSystem( 'unitTest' ); - -class testTools -{ - - /** - * importDB - * - * @param string $host - * @param string $user - * @param string $password - * @param string $database - * @param string $importFile - * - * @return none - */ - function importDB ($host, $user, $password, $database, $importFile) - { - exec( "mysql -h " . $host . " --user=" . $user . " --password=" . $password . " $database < $importFile" ); - } - - /** - * importLocalDB - * - * @param string $importFile - * - * @return none - */ - function importLocalDB ($importFile) - { - self::importDB( DB_HOST, DB_USER, DB_PASS, DB_NAME, $importFile ); - } - - /** - * callMethod - * - * @param string $methodFile - * @param string $GET - * @param string $POST - * @param string $SESSION - * - * @return none - */ - function callMethod ($methodFile, $GET, $POST, $SESSION) - { - //TODO $_SERVER - self::arrayDelete( $_GET ); - self::arrayDelete( $_POST ); - self::arrayDelete( $_SESSION ); - self::arrayAppend( $_GET, $GET ); - self::arrayAppend( $_POST, $POST ); - self::arrayAppend( $_SESSION, $SESSION ); - include (PATH_CORE . 'methods/' . $methodFile); - } - - /** - * arrayAppend - * - * @param string &$to - * @param string $appendFrom - * - * @return boolean true - */ - function arrayAppend (&$to, $appendFrom) - { - foreach ($appendFrom as $appendItem) { - $to[] = $appendItem; - } - return true; - } - - /** - * arrayDelete - * - * @param array &$array - * - * @return boolean true - */ - function arrayDelete (&$array) - { - foreach ($array as $key => $value) { - unset( $array[$key] ); - } - return true; - } - - /** - * replaceVariables - * - * @param string $Fields - * @param array $ExternalVariables - * - * @return array $Fields - */ - //@@ - function replaceVariables ($Fields, $ExternalVariables = array()) - { - //TODO: Verify dependencies between fields - foreach ($Fields as $key => $field) { - if (is_string( $field )) { - $mergedValues = G::array_merges( $Fields, $ExternalVariables ); - $Fields[$key] = G::ReplaceDataField( $field, $mergedValues ); - } - } - return $Fields; - } - - // EXTRA TOOLS - /** - * findValue - * - * @param string $value - * @param object &$obj - * - * @return (boolean | string) ((true | false) | $value) - */ - function findValue ($value, &$obj) - { - if (is_array( $obj )) { - foreach ($obj as $key => $val) { - if ($res = self::findValue( $value, $obj[$key] )) { - if ($res == true) { - return $key; - } else { - return $key . '.' . $res; - } - } - } - return false; - } elseif (is_object( $obj )) { - foreach ($obj as $key => $val) { - if ($res = self::findValue( $value, $obj->$key )) { - if ($res == true) { - return $key; - } else { - return $key . '.' . $res; - } - } - } - return false; - } else { - return $obj == $value; - } - } -} - -/* Some extra global functions */ -/** - * domain - * - * @param string $location * - * @return object $result - */ - -function domain ($location) -{ - global $testDomain; - $result = $testDomain->get( $location ); - if (count( $result ) == 0) { - trigger_error( "'$location' is an empty domain.", E_USER_WARNING ); - } - return $result; -} - diff --git a/gulliver/system/class.unitTest.php b/gulliver/system/class.unitTest.php deleted file mode 100755 index 1ce24c473..000000000 --- a/gulliver/system/class.unitTest.php +++ /dev/null @@ -1,79 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -/** - * - * @package gulliver.system - */ - -class unitTest -{ - var $dbc; - var $times; - var $yml; - var $domain; - var $testLime; - - function unitTest ($ymlFile, &$testLime, &$testDomain) - { - if (! isset( $testDomain )) { - $testDomain = new ymlDomain(); - } - $this->domain = & $testDomain; - $this->testLime = & $testLime; - $this->yml = new ymlTestCases( $ymlFile, $this->domain, $this->testLime ); - } - //Load a Test (group of unitary tests) defined in the Yml file. - function load ($testName, $fields = array()) - { - $this->yml->load( $testName, $fields ); - } - //Run one single unit test from the loaded Test - function runSingle ($fields = array()) - { - return $this->yml->runSingle( $this, $fields ); - } - //Run a group of unit tests from the loaded Test - function runMultiple ($fields = array(), $count = -1, $start = 0) - { - return $this->yml->runMultiple( $this, $fields, $count, $start ); - } - //Run all the unit tests from the loaded Test - function runAll ($fields = array()) - { - return $this->yml->runMultiple( $this, $fields, - 1, 0 ); - } - //A sample of "Function" to run a unit test. - function sampleTestFunction ($testCase, &$Fields) - { - $result = ($Fields['APP_UID'] != '') ? "OK" : "FALSE"; - return $result; - } -} - diff --git a/gulliver/system/class.ymlDomain.php b/gulliver/system/class.ymlDomain.php deleted file mode 100755 index 0b139f992..000000000 --- a/gulliver/system/class.ymlDomain.php +++ /dev/null @@ -1,296 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -/** - * - * @package gulliver.system - * - */ -require_once (PATH_THIRDPARTY . 'lime/yaml.class.php'); - -/** - * ymlDomain class - * - * @copyright (C) 2002 by Colosa Development Team. - * @package gulliver.system - */ - -class ymlDomain -{ - public $global; - - /** - * function ymlDomain - * - * @access public - * @return void - */ - public function ymlDomain () - { - $this->global = sfYAML::Load( PATH_FIXTURES . 'domain.yml' ); - } - - /** - * function addDomain - * - * @access public - * @param string $domainName - * @return boolean - */ - public function addDomain ($domainName) - { - $keys = $this->name2keys( $domainName ); - $currDomain = & $this->global; - $i = 0; - for ($i = 0; $i < count( $keys ); $i ++) { - if (is_array( $currDomain )) { - if (! isset( $currDomain[$keys[$i]] )) { - $currDomain[$keys[$i]] = array (); - } - $currDomain = & $currDomain[$keys[$i]]; - } else { - trigger_error( "Operation not possible: Subdomain is not present $domainName", E_USER_ERROR ); - return false; - } - } - return true; - } - - /** - * function addDomainValue - * - * @access public - * @param string $domainName - * @param string $value - * @return boolean - */ - public function addDomainValue ($domainName, $value) - { - $keys = $this->name2keys( $domainName ); - $currDomain = & $this->global; - $i = 0; - for ($i = 0; $i < count( $keys ); $i ++) { - if (is_array( $currDomain )) { - $currDomain = & $currDomain[$keys[$i]]; - } else { - trigger_error( "Operation not possible: Subdomain is not present $domainName", E_USER_ERROR ); - return false; - } - } - $currDomain[] = $value; - return true; - } - - /** - * function exists - * - * @access public - * @param string $domainName - * @return boolean - */ - public function exists ($domainName) - { - $keys = $this->name2keys( $domainName ); - $currDomain = & $this->global; - $i = 0; - for ($i = 0; $i < count( $keys ); $i ++) { - if (is_array( $currDomain ) && isset( $currDomain[$keys[$i]] )) { - $currDomain = & $currDomain[$keys[$i]]; - } else { - return false; - } - } - return true; - } - - /** - * function get - * - * @access public - * @param string $resource - * @return array - */ - public function get ($resource) - { - if (is_array( $result = $this->load( $resource ) )) { - //Get one value per each $item - //Ex. *.first.name.es => Returns an array with all of the defined firstNames. - // first.name.es => Returns an array with one firstName. - // *.name.es => Returns an array with one value per each sub domain of name.es. - // For example: if name.es has the subdomains: - // first.name.es and last.name.es, it returns an array of - // two elements: one firstName and one lastName. - foreach ($result as $key => $item) { - if (is_array( $item )) { - $subResult = $this->plainArray( $item ); - $result[$key] = $subResult[array_rand( $subResult, 1 )]; - } - } - return $result; - } else { - return array (''); - } - } - - /** - * function name2keys - * - * @access public - * @param string $resource - * @return array - */ - public function name2keys ($resource) - { - if (strpos( $resource, '.' ) !== false) { - $revKeys = explode( '.', $resource ); - $keys = array (); - for ($i = count( $revKeys ) - 1; $i >= 0; $i --) { - $keys[] = $revKeys[$i]; - } - } elseif (strpos( $resource, '/' ) !== false) { - $rootKeys = explode( '/', $resource ); - unset( $rootKeys[0] ); - $keys = array_values( $rootKeys ); - } else { - $keys = array ($resource ); - } - return $keys; - } - - /** - * function load - * - * @access public - * @param string $resource - * @return array - */ - public function load ($resource) - { - $keys = $this->name2keys( $resource ); - //Find in global variable - if (count( $this->getNode( $keys[0], $this->global ) ) > 0) { - return $this->find( $keys, $this->global ); - } else { - if (file_exists( PATH_FIXTURES . $keys[0] . '.yml' )) { - $local = sfYAML::Load( PATH_FIXTURES . $keys[0] . '.yml' ); - unset( $keys[0] ); - $keys = array_values( $keys ); - return $this->find( $keys, $local ); - } else { - return null; - } - } - return null; - } - - /** - * function find - * - * @access public - * @param string $nodesKey - * @param string $where - * @return array - */ - public function find ($nodesKey, $where) - { - if (count( $nodesKey ) == 1) { - return $this->getNode( $nodesKey[0], $where ); - } elseif (count( $nodesKey ) > 1) { - $routes = $this->getNode( $nodesKey[0], $where ); - $result = array (); - unset( $nodesKey[0] ); - $nodesKey = array_values( $nodesKey ); - foreach ($routes as $route) { - if (is_array( $route )) { - $subResult = $this->find( $nodesKey, $route ); - $this->arrayAppend( $result, $subResult ); - } else { - $result[] = $route; - } - } - return $result; - } else { - return array (); - } - } - - /** - * function getNode - * - * @access public - * @param string $nodesKey - * @param string $from - * @return array - */ - public function getNode ($nodeKey, $from) - { - if ($nodeKey === '*') { - return array_values( $from ); - } elseif (array_key_exists( $nodeKey, $from )) { - return array ($from[$nodeKey] ); - } else { - return array (); - } - } - - /** - * function plainArray - * - * @access public - * @param array $array - * @return array - */ - public function plainArray ($array) - { - $result = array (); - foreach ($array as $item) { - if (is_array( $item )) { - $appResult = $this->plainArray( $item ); - $this->arrayAppend( $result, $appResult ); - } else { - $result[] = $item; - } - } - return $result; - } - - /** - * function arrayAppend - * - * @access public - * @param string $to - * @param string $appendFrom - * @return void - */ - public function arrayAppend (&$to, $appendFrom) - { - foreach ($appendFrom as $appendItem) { - $to[] = $appendItem; - } - } -} - diff --git a/gulliver/system/class.ymlTestCases.php b/gulliver/system/class.ymlTestCases.php deleted file mode 100755 index 444406dbd..000000000 --- a/gulliver/system/class.ymlTestCases.php +++ /dev/null @@ -1,275 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -/* Dependencies: class.ymlDomain.php; class.testTools.php - * +----------------------------+ - * | STRUCTURE for ymlTestFile. | - * +----------------------------+ - * TestCasesGroup1: - * - Un caso de prueba. - * Input: - * FIELD_A: "Value_Field_A" - * FIELD_B[]: "Domain_Field_A" - * Output: - * Type: "TypeOfResult" Type of data that should be the result. - * Value: "a:0{}" This node must contain a value that will be serialized compared with the test result. - * - Another test case. - * ... - * TestCasesGroup2: - * ... - */ - -/** - * - * @package gulliver.system - */ -class ymlTestCases -{ - public $testCaseFile; - public $testCases = array (); - - /** - * function TestCases - * - * @access public - * @param string $testCaseFile - * @param string $testDomain - * @param string $testLime - * @return void - */ - public function ymlTestCases ($testCaseFile, &$testDomain, &$testLime) - { - $this->testDomain = & $testDomain; - $this->testLime = & $testLime; - if (basename( $testCaseFile ) === $testCaseFile) { - $testCaseFile = PATH_FIXTURES . $testCaseFile; - } - $this->testCaseFile = $testCaseFile; - } - - /** - * function load - * - * @access public - * @param string $inputTestCasesIndex - * @param array $fields - * @return array - */ - public function load ($inputTestCasesIndex = 'TestCases', $fields = array()) - { - $testCases = array (); - $input = sfYAML::Load( /*PATH_FIXTURES .*/ $this->testCaseFile ); - foreach ($input[$inputTestCasesIndex] as $preTestCase) { - $testFunctionInputs = array (); - foreach ($preTestCase['Input'] as $inputArgument => $value) { - if (substr( $inputArgument, - 2, 2 ) === '[]') { - //DOMAIN - $inputArgument = substr( $inputArgument, 0, strlen( $inputArgument ) - 2 ); - if (! isset( $testFunctionInputs[$inputArgument] )) { - $testFunctionInputs[$inputArgument] = array (); - } - //var_dump($this->testDomain->global,$this->testDomain->get( $value ), $value ); - ymlDomain::arrayAppend( $testFunctionInputs[$inputArgument], $this->testDomain->get( $value ) ); - } else { - //SPECIFIC VALUE - if (! isset( $testFunctionInputs[$inputArgument] )) { - $testFunctionInputs[$inputArgument] = array (); - } - ymlDomain::arrayAppend( $testFunctionInputs[$inputArgument], array ($value) ); - } - } - /* Start Block: "Explode" all the posible test cases defined in the yml - * using domains and single values - */ - //Initialize $index key values for the first test case (5.2 array_fill_keys(array_keys($testFunctionInputs),0)) - $index = array_combine( array_keys( $testFunctionInputs ), array_fill( 0, count( $testFunctionInputs ), 0 ) ); - //array_product() - $prod = 1; - foreach ($testFunctionInputs as $values) { - $prod *= count( $values ); - } - $lastCase = ($prod == 0); - while (! $lastCase) { - //foreach($index as $v) echo($v);echo("\n"); - /* Put in $aux one test case */ - $aux = array (); - foreach ($testFunctionInputs as $key => $values) { - $aux[$key] = $values[$index[$key]]; - } - /* CREATE TEST CASE: Put $aux test case in $testCases array */ - $i = count( $testCases ); - $testCases[$i] = $preTestCase; - $testCases[$i]['Input'] = $aux; - /* Increse the $index key values to the next test case */ - $lastCase = true; - foreach ($testFunctionInputs as $key => $values) { - $index[$key] ++; - if ($index[$key] >= count( $values )) { - $index[$key] = 0; - } else { - $lastCase = false; - break; - } - } - } - /*End Block */ - } - /* Start Block: Replace @@ tags variables */ - foreach ($testCases as $key => $testCase) { - $testCases[$key] = testTools::replaceVariables( $testCases[$key] ); - $testCases[$key]['Input'] = testTools::replaceVariables( $testCases[$key]['Input'], $fields ); - if (isset( $testCase['Output'] )) { - if (isset( $testCase['Output']['Value'] )) { - /*$testCases[$key]['Output']['Value'] = - unserialize($testCases[$key]['Output']['Value']);*/ - } - } - } - /* End Block */ - $this->testCases = $testCases; - return $testCases; - } - - /** - * function load - * Increase the number of "planned" tests. - * - * @access public - * @param int $count - * @param int $start - * @return void - */ - public function addToPlan ($count = -1, $start = 0) - { - foreach ($this->testCases as $testCase) { - if (($start == 0) && ($count != 0)) { - if (isset( $testCase['TODO'] )) { - $this->testLime->plan ++; - } else { - if (isset( $testCase['Output'] )) { - if (isset( $testCase['Output']['Type'] ) || isset( $testCase['Output']['Value'] )) { - $this->testLime->plan ++; - } - } - } - } else { - $start --; - if ($count > 0) { - $count --; - } - } - } - } - - /** - * function run - * - * @access public - * @param object $testerObject - * @param array $fields - * @param int $count - * @param int $start - * @return array - */ - public function run (&$testerObject, $fields = array(), $count = -1, $start = 0) - { - $results = array (); - //$this->addToPlan( $count, $start ); - $functions = get_class_methods( get_class( $testerObject ) ); - foreach ($functions as $id => $fn) { - $functions[$id] = strtolower( $fn ); - } - foreach ($this->testCases as $index => $testCase) { - if (($start == 0) && ($count != 0)) { - if (isset( $testCase['TODO'] )) { - $this->testLime->todo( $testCase['TODO'] ); - } else { - if (isset( $testCase['Function'] )) { - if (array_search( strtolower( $testCase['Function'] ), $functions ) !== false) { - $testCase['Input'] = G::array_merges( $testCase['Input'], $fields ); - $result = eval( 'return $testerObject->' . $testCase['Function'] . '($testCase, $testCase["Input"]);' ); - $results[] = $result; - /* Start Block: Test the $result */ - if (isset( $testCase['Output'] )) { - if (isset( $testCase['Output']['Value'] )) { - //$this->testLime->is( $result, $testCase['Output']['Value'], $testCase['Title'] ); - $this->testLime->todo( ($testCase['Output']['Type']) ); - $this->testLime->diag( "/processmaker/trunk/gulliver/system/class.ymlTestCases.php at line 204" ); - } elseif (isset( $testCase['Output']['Type'] )) { - // $this->testLime->isa_ok( $result, $testCase['Output']['Type'], $testCase['Title'] ); - $this->testLime->todo( ($testCase['Output']['Type']) ); - $this->testLime->diag( "/processmaker/trunk/gulliver/system/class.ymlTestCases.php at line 204" ); - } - } - /* End Block */ - } else { - $this->testLime->fail( 'Case #' . $index . ': Test function (Function) is not present in tester object.' ); - } - } else { - $this->testLime->fail( 'Case #' . $index . ' doesn\'t have a test function (Function) defined.' ); - } - } - } else { - $start --; - if ($count > 0) { - $count --; - } - } - } - return $results; - } - - /** - * function runSingle - * - * @access public - * @param object $testerObject - * @param array $fields - * @return array - */ - public function runSingle (&$testerObject, $fields = array()) - { - $results = $this->run( $testerObject, $fields, 1, 0 ); - return $results[0]; - } - - /** - * function runMultiple - * - * @access public - * @param object $testerObject - * @param array $fields - * @param int $count - * @param int $start - * @return array - */ - public function runMultiple (&$testerObject, $fields = array(), $count = -1, $start = 0) - { - return $this->run( $testerObject, $fields, $count, $start ); - } -} - diff --git a/gulliver/thirdparty/codepress/codepress.css b/gulliver/thirdparty/codepress/codepress.css deleted file mode 100755 index 21868201a..000000000 --- a/gulliver/thirdparty/codepress/codepress.css +++ /dev/null @@ -1,21 +0,0 @@ -body { - margin-top:13px; - _margin-top:14px; - background:white; - margin-left:32px; - font-family:monospace; - font-size:13px; - white-space:pre; - background-image:url("images/line-numbers.png"); - background-repeat:repeat-y; - background-position:0 3px; - line-height:16px; - height:100%; -} -pre {margin:0;} -html>body{background-position:0 2px;} -P {margin:0;padding:0;border:0;outline:0;display:block;white-space:pre;} -b, i, s, u, a, em, tt, ins, big, cite, strong, var, dfn {text-decoration:none;font-weight:normal;font-style:normal;font-size:13px;} - -body.hide-line-numbers {background:white;margin-left:16px;} -body.show-line-numbers {background-image:url("images/line-numbers.png");margin-left:32px;} \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/codepress.html b/gulliver/thirdparty/codepress/codepress.html deleted file mode 100755 index 20270feab..000000000 --- a/gulliver/thirdparty/codepress/codepress.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - CodePress - Real Time Syntax Highlighting Editor written in JavaScript - - - - - - - - - diff --git a/gulliver/thirdparty/codepress/codepress.js b/gulliver/thirdparty/codepress/codepress.js deleted file mode 100755 index 38e258eea..000000000 --- a/gulliver/thirdparty/codepress/codepress.js +++ /dev/null @@ -1,153 +0,0 @@ -/* - * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ - * - * Copyright (C) 2006 Fernando M.A.d.S. - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ -if (typeof(CodePress)==="undefined") -{ -CodePress = function(obj,language) { - var self = $dce('iframe'); - self.textarea = obj; - self.textarea.disabled = true; - self.textarea.style.overflow = 'hidden'; - self.style.height = self.textarea.clientHeight +'px'; - self.style.width = self.textarea.clientWidth +'px'; - self.textarea.style.overflow = 'auto'; - self.style.border = '1px solid gray'; - self.frameBorder = 0; // remove IE internal iframe border - self.style.visibility = 'hidden'; - self.style.position = 'absolute'; - self.options = self.textarea.className; - self.language=language; - - self.initialize = function() { - self.editor = self.contentWindow.CodePress; - self.editor.body = self.contentWindow.document.getElementsByTagName('body')[0]; - self.editor.setCode(self.textarea.value); - self.setOptions(); - self.editor.syntaxHighlight('init'); - self.textarea.style.display = 'none'; - self.style.position = 'static'; - self.style.visibility = 'visible'; - self.style.display = 'inline'; - } - - // obj can by a textarea id or a string (code) - self.edit = function(obj,language) { - //if(obj) self.textarea.value = $(obj) ? $(obj).value : obj; - if(obj) self.textarea.value = document.getElementById(obj) ? document.getElementById(obj).value : obj; - if(!self.textarea.disabled) return; - self.language = language ? language : self.getLanguage(); - - self.src = CodePress.path+'codepress.html?language='+self.language+'&ts='+(new Date).getTime(); - if(self.attachEvent) self.attachEvent('onload',self.initialize); - else self.addEventListener('load',self.initialize,false); - } - - self.getLanguage = function() { - for (language in CodePress.languages) - if(self.options.match('\\b'+language+'\\b')) - return CodePress.languages[language] ? language : 'generic'; - } - - self.setOptions = function() { - if(self.options.match('autocomplete-off')) self.toggleAutoComplete(); - if(self.options.match('readonly-on')) self.toggleReadOnly(); - if(self.options.match('linenumbers-off')) self.toggleLineNumbers(); - } - - self.getCode = function() { - return self.textarea.disabled ? self.editor.getCode() : self.textarea.value; - } - - /* Modified by David Callizaya - * Refresh the highlighting after set the code. - **/ - self.setCode = function(code) { - self.textarea.disabled ? self.editor.setCode(code) : self.textarea.value = code; - self.editor.innerHTML = '
'+code+'
'; - self.editor.syntaxHighlight('init'); - } - - self.toggleAutoComplete = function() { - self.editor.autocomplete = (self.editor.autocomplete) ? false : true; - } - - self.toggleReadOnly = function() { - self.textarea.readOnly = (self.textarea.readOnly) ? false : true; - if(self.style.display != 'none') // prevent exception on FF + iframe with display:none - self.editor.readOnly(self.textarea.readOnly ? true : false); - } - - self.toggleLineNumbers = function() { - var cn = self.editor.body.className; - self.editor.body.className = (cn==''||cn=='show-line-numbers') ? 'hide-line-numbers' : 'show-line-numbers'; - } - - self.toggleEditor = function() { - if(self.textarea.disabled) { - self.textarea.value = self.getCode(); - self.textarea.disabled = false; - self.style.display = 'none'; - self.textarea.style.display = 'inline'; - } - else { - self.textarea.disabled = true; - self.setCode(self.textarea.value); - self.editor.syntaxHighlight('init'); - self.style.display = 'inline'; - self.textarea.style.display = 'none'; - } - } - - self.edit(); - return self; -} - -CodePress.languages = { - csharp : 'C#', - css : 'CSS', - generic : 'Generic', - html : 'HTML', - java : 'Java', - javascript : 'JavaScript', - perl : 'Perl', - ruby : 'Ruby', - php : 'PHP', - text : 'Text', - sql : 'SQL', - vbscript : 'VBScript' -} - - -CodePress.run = function() { - s = document.getElementsByTagName('script'); - CodePress.path="/codepress/" - for(var i=0,n=s.length;i - * - * Developers: - * Fernando M.A.d.S. - * Michael Hurni - * Contributors: - * Martin D. Kirk - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - -CodePress = { - scrolling : false, - autocomplete : true, - - // set initial vars and start sh - initialize : function() { - if(typeof(editor)=='undefined' && !arguments[0]) return; - body = document.getElementsByTagName('body')[0]; - body.innerHTML = body.innerHTML.replace(/\n/g,""); - chars = '|32|46|62|8|'; // charcodes that trigger syntax highlighting - cc = '\u2009'; // carret char - editor = document.getElementsByTagName('pre')[0]; - document.designMode = 'on'; - document.addEventListener('keypress', this.keyHandler, true); - window.addEventListener('scroll', function() { if(!CodePress.scrolling) CodePress.syntaxHighlight('scroll') }, false); - completeChars = this.getCompleteChars(); - completeEndingChars = this.getCompleteEndingChars(); - }, - - // treat key bindings - keyHandler : function(evt) { - keyCode = evt.keyCode; - charCode = evt.charCode; - fromChar = String.fromCharCode(charCode); - - if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && charCode!=90) { // shortcuts = ctrl||appleKey+shift+key!=z(undo) - CodePress.shortcuts(charCode?charCode:keyCode); - } - else if( (completeEndingChars.indexOf('|'+fromChar+'|')!= -1 || completeChars.indexOf('|'+fromChar+'|')!=-1) && CodePress.autocomplete) { // auto complete - if(!CodePress.completeEnding(fromChar)) - CodePress.complete(fromChar); - } - else if(chars.indexOf('|'+charCode+'|')!=-1||keyCode==13) { // syntax highlighting - top.setTimeout(function(){CodePress.syntaxHighlight('generic');},100); - } - else if(keyCode==9 || evt.tabKey) { // snippets activation (tab) - CodePress.snippets(evt); - } - else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed - CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML; - } - else if((charCode==122||charCode==121||charCode==90) && evt.ctrlKey) { // undo and redo - (charCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo(); - evt.preventDefault(); - } - else if(charCode==118 && evt.ctrlKey) { // handle paste - top.setTimeout(function(){CodePress.syntaxHighlight('generic');},100); - } - else if(charCode==99 && evt.ctrlKey) { // handle cut - //alert(window.getSelection().getRangeAt(0).toString().replace(/\t/g,'FFF')); - } - - }, - - // put cursor back to its original position after every parsing - findString : function() { - if(self.find(cc)) - window.getSelection().getRangeAt(0).deleteContents(); - }, - - // split big files, highlighting parts of it - split : function(code,flag) { - if(flag=='scroll') { - this.scrolling = true; - return code; - } - else { - this.scrolling = false; - mid = code.indexOf(cc); - if(mid-2000<0) {ini=0;end=4000;} - else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;} - else {ini=mid-2000;end=mid+2000;} - code = code.substring(ini,end); - return code; - } - }, - - getEditor : function() { - if(!document.getElementsByTagName('pre')[0]) { - body = document.getElementsByTagName('body')[0]; - if(!body.innerHTML) return body; - if(body.innerHTML=="
") body.innerHTML = "
 
"; - else body.innerHTML = "
"+body.innerHTML+"
"; - } - return body;//document.getElementsByTagName('pre')[0]; - }, - - // syntax highlighting parser - syntaxHighlight : function(flag) { - //if(document.designMode=='off') document.designMode='on' - if(flag != 'init') { window.getSelection().getRangeAt(0).insertNode(document.createTextNode(cc));} - editor = CodePress.getEditor(); - o = editor.innerHTML; - o = o.replace(/
/g,'\n'); - o = o.replace(/<.*?>/g,''); - x = z = this.split(o,flag); - x = x.replace(/\n/g,'
'); - - if(arguments[1]&&arguments[2]) x = x.replace(arguments[1],arguments[2]); - - for(i=0;i/g,'>'); - if(content.indexOf('$0')<0) content += cc; - else content = content.replace(/\$0/,cc); - content = content.replace(/\n/g,'
'); - var pattern = new RegExp(trigger+cc,'gi'); - evt.preventDefault(); // prevent the tab key from being added - this.syntaxHighlight('snippets',pattern,content); - } - } - }, - - readOnly : function() { - document.designMode = (arguments[0]) ? 'off' : 'on'; - }, - - complete : function(trigger) { - window.getSelection().getRangeAt(0).deleteContents(); - var complete = Language.complete; - for (var i=0; i/g,'\n'); - code = code.replace(/\u2009/g,''); - code = code.replace(/<.*?>/g,''); - code = code.replace(/</g,'<'); - code = code.replace(/>/g,'>'); - code = code.replace(/&/gi,'&'); - return code; - }, - - // put code inside editor - setCode : function() { - var code = arguments[0]; - code = code.replace(/\u2009/gi,''); - code = code.replace(/&/gi,'&'); - code = code.replace(//g,'>'); - editor.innerHTML = code; - if (code == '') - document.getElementsByTagName('body')[0].innerHTML = ''; - }, - - // undo and redo methods - actions : { - pos : -1, // actual history position - history : [], // history vector - - undo : function() { - editor = CodePress.getEditor(); - if(editor.innerHTML.indexOf(cc)==-1){ - if(editor.innerHTML != " ") - window.getSelection().getRangeAt(0).insertNode(document.createTextNode(cc)); - this.history[this.pos] = editor.innerHTML; - } - this.pos --; - if(typeof(this.history[this.pos])=='undefined') this.pos ++; - editor.innerHTML = this.history[this.pos]; - if(editor.innerHTML.indexOf(cc)>-1) editor.innerHTML+=cc; - CodePress.findString(); - }, - - redo : function() { - // editor = CodePress.getEditor(); - this.pos++; - if(typeof(this.history[this.pos])=='undefined') this.pos--; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - next : function() { // get next vector position and clean old ones - if(this.pos>20) this.history[this.pos-21] = undefined; - return ++this.pos; - } - } -} - -Language={}; -window.addEventListener('load', function() { CodePress.initialize('new'); }, true); \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/engines/khtml.js b/gulliver/thirdparty/codepress/engines/khtml.js deleted file mode 100755 index e69de29bb..000000000 diff --git a/gulliver/thirdparty/codepress/engines/msie.js b/gulliver/thirdparty/codepress/engines/msie.js deleted file mode 100755 index fd609b222..000000000 --- a/gulliver/thirdparty/codepress/engines/msie.js +++ /dev/null @@ -1,304 +0,0 @@ -/* - * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ - * - * Copyright (C) 2007 Fernando M.A.d.S. - * - * Developers: - * Fernando M.A.d.S. - * Michael Hurni - * Contributors: - * Martin D. Kirk - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - -CodePress = { - scrolling : false, - autocomplete : true, - - // set initial vars and start sh - initialize : function() { - if(typeof(editor)=='undefined' && !arguments[0]) return; - chars = '|32|46|62|'; // charcodes that trigger syntax highlighting - cc = '\u2009'; // carret char - editor = document.getElementsByTagName('pre')[0]; - editor.contentEditable = 'true'; - document.getElementsByTagName('body')[0].onfocus = function() {editor.focus();} - document.attachEvent('onkeydown', this.metaHandler); - document.attachEvent('onkeypress', this.keyHandler); - window.attachEvent('onscroll', function() { if(!CodePress.scrolling) setTimeout(function(){CodePress.syntaxHighlight('scroll')},1)}); - completeChars = this.getCompleteChars(); - completeEndingChars = this.getCompleteEndingChars(); - setTimeout(function() { window.scroll(0,0) },50); // scroll IE to top - }, - - // treat key bindings - keyHandler : function(evt) { - charCode = evt.keyCode; - fromChar = String.fromCharCode(charCode); - - if( (completeEndingChars.indexOf('|'+fromChar+'|')!= -1 || completeChars.indexOf('|'+fromChar+'|')!=-1 )&& CodePress.autocomplete) { // auto complete - if(!CodePress.completeEnding(fromChar)) - CodePress.complete(fromChar); - } - else if(chars.indexOf('|'+charCode+'|')!=-1||charCode==13) { // syntax highlighting - CodePress.syntaxHighlight('generic'); - } - }, - - metaHandler : function(evt) { - keyCode = evt.keyCode; - - if(keyCode==9 || evt.tabKey) { - CodePress.snippets(); - } - else if((keyCode==122||keyCode==121||keyCode==90) && evt.ctrlKey) { // undo and redo - (keyCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo(); - evt.returnValue = false; - } - else if(keyCode==34||keyCode==33) { // handle page up/down for IE - self.scrollBy(0, (keyCode==34) ? 200 : -200); - evt.returnValue = false; - } - else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed - CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML; - } - else if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && keyCode!=90) { // shortcuts = ctrl||appleKey+shift+key!=z(undo) - CodePress.shortcuts(keyCode); - evt.returnValue = false; - } - else if(keyCode==86 && evt.ctrlKey) { // handle paste - window.clipboardData.setData('Text',window.clipboardData.getData('Text').replace(/\t/g,'\u2008')); - top.setTimeout(function(){CodePress.syntaxHighlight('paste');},10); - } - else if(keyCode==67 && evt.ctrlKey) { // handle cut - // window.clipboardData.setData('Text',x[0]); - // code = window.clipboardData.getData('Text'); - } - }, - - // put cursor back to its original position after every parsing - - - findString : function() { - range = self.document.body.createTextRange(); - if(range.findText(cc)){ - range.select(); - range.text = ''; - } - }, - - // split big files, highlighting parts of it - split : function(code,flag) { - if(flag=='scroll') { - this.scrolling = true; - return code; - } - else { - this.scrolling = false; - mid = code.indexOf(cc); - if(mid-2000<0) {ini=0;end=4000;} - else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;} - else {ini=mid-2000;end=mid+2000;} - code = code.substring(ini,end); - return code.substring(code.indexOf('

'),code.lastIndexOf('

')+4); - } - }, - - // syntax highlighting parser - syntaxHighlight : function(flag) { - if(flag!='init') document.selection.createRange().text = cc; - o = editor.innerHTML; - if(flag=='paste') { // fix pasted text - o = o.replace(/
/g,'\r\n'); - o = o.replace(/\u2008/g,'\t'); - } - o = o.replace(/

/g,'\n'); - o = o.replace(/<\/P>/g,'\r'); - o = o.replace(/<.*?>/g,''); - o = o.replace(/ /g,''); - o = '

'+o+'

'; - o = o.replace(/\n\r/g,'

'); - o = o.replace(/\n/g,'

'); - o = o.replace(/\r/g,'<\/P>'); - o = o.replace(/

(

)+/,'

'); - o = o.replace(/<\/P>(<\/P>)+/,'

'); - o = o.replace(/

<\/P>/g,'


'); - x = z = this.split(o,flag); - - if(arguments[1]&&arguments[2]) x = x.replace(arguments[1],arguments[2]); - - for(i=0;i/g,'>'); - if(content.indexOf('$0')<0) content += cc; - else content = content.replace(/\$0/,cc); - content = content.replace(/\n/g,'

'); - var pattern = new RegExp(trigger+cc,"gi"); - this.syntaxHighlight('snippets',pattern,content); - } - } - }, - - readOnly : function() { - editor.contentEditable = (arguments[0]) ? 'false' : 'true'; - }, - - complete : function(trigger) { - var complete = Language.complete; - for (var i=0; i/g,'\n'); - code = code.replace(/<\/p>/gi,'\r'); - code = code.replace(/

/i,''); // IE first line fix - code = code.replace(/

/gi,'\n'); - code = code.replace(/ /gi,''); - code = code.replace(/\u2009/g,''); - code = code.replace(/<.*?>/g,''); - code = code.replace(/</g,'<'); - code = code.replace(/>/g,'>'); - code = code.replace(/&/gi,'&'); - return code; - }, - - // put code inside editor - setCode : function() { - var code = arguments[0]; - code = code.replace(/\u2009/gi,''); - code = code.replace(/&/gi,'&'); - code = code.replace(//g,'>'); - editor.innerHTML = '

'+code+'
'; - }, - - - // undo and redo methods - actions : { - pos : -1, // actual history position - history : [], // history vector - - undo : function() { - if(editor.innerHTML.indexOf(cc)==-1){ - document.selection.createRange().text = cc; - this.history[this.pos] = editor.innerHTML; - } - this.pos--; - if(typeof(this.history[this.pos])=='undefined') this.pos++; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - redo : function() { - this.pos++; - if(typeof(this.history[this.pos])=='undefined') this.pos--; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - next : function() { // get next vector position and clean old ones - if(this.pos>20) this.history[this.pos-21] = undefined; - return ++this.pos; - } - } -} - -Language={}; -window.attachEvent('onload', function() { CodePress.initialize('new');}); \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/engines/older.js b/gulliver/thirdparty/codepress/engines/older.js deleted file mode 100755 index e69de29bb..000000000 diff --git a/gulliver/thirdparty/codepress/engines/opera.js b/gulliver/thirdparty/codepress/engines/opera.js deleted file mode 100755 index 613d24634..000000000 --- a/gulliver/thirdparty/codepress/engines/opera.js +++ /dev/null @@ -1,260 +0,0 @@ -/* - * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ - * - * Copyright (C) 2007 Fernando M.A.d.S. - * - * Contributors : - * - * Michael Hurni - * - * This program is free software; you can redistribute it and/or modify it under the terms of the - * GNU Lesser General Public License as published by the Free Software Foundation. - * - * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php - */ - - -CodePress = { - scrolling : false, - autocomplete : true, - - // set initial vars and start sh - initialize : function() { - if(typeof(editor)=='undefined' && !arguments[0]) return; - chars = '|32|46|62|'; // charcodes that trigger syntax highlighting - cc = '\u2009'; // control char - editor = document.getElementsByTagName('body')[0]; - document.designMode = 'on'; - document.addEventListener('keyup', this.keyHandler, true); - window.addEventListener('scroll', function() { if(!CodePress.scrolling) CodePress.syntaxHighlight('scroll') }, false); - completeChars = this.getCompleteChars(); -// CodePress.syntaxHighlight('init'); - }, - - // treat key bindings - keyHandler : function(evt) { - keyCode = evt.keyCode; - charCode = evt.charCode; - - if((evt.ctrlKey || evt.metaKey) && evt.shiftKey && charCode!=90) { // shortcuts = ctrl||appleKey+shift+key!=z(undo) - CodePress.shortcuts(charCode?charCode:keyCode); - } - else if(completeChars.indexOf('|'+String.fromCharCode(charCode)+'|')!=-1 && CodePress.autocomplete) { // auto complete - CodePress.complete(String.fromCharCode(charCode)); - } - else if(chars.indexOf('|'+charCode+'|')!=-1||keyCode==13) { // syntax highlighting - CodePress.syntaxHighlight('generic'); - } - else if(keyCode==9 || evt.tabKey) { // snippets activation (tab) - CodePress.snippets(evt); - } - else if(keyCode==46||keyCode==8) { // save to history when delete or backspace pressed - CodePress.actions.history[CodePress.actions.next()] = editor.innerHTML; - } - else if((charCode==122||charCode==121||charCode==90) && evt.ctrlKey) { // undo and redo - (charCode==121||evt.shiftKey) ? CodePress.actions.redo() : CodePress.actions.undo(); - evt.preventDefault(); - } - else if(keyCode==86 && evt.ctrlKey) { // paste - // TODO: pasted text should be parsed and highlighted - } - }, - - // put cursor back to its original position after every parsing - findString : function() { - var sel = window.getSelection(); - var range = window.document.createRange(); - var span = window.document.getElementsByTagName('span')[0]; - - range.selectNode(span); - sel.removeAllRanges(); - sel.addRange(range); - span.parentNode.removeChild(span); - //if(self.find(cc)) - //window.getSelection().getRangeAt(0).deleteContents(); - }, - - // split big files, highlighting parts of it - split : function(code,flag) { - if(flag=='scroll') { - this.scrolling = true; - return code; - } - else { - this.scrolling = false; - mid = code.indexOf(''); - if(mid-2000<0) {ini=0;end=4000;} - else if(mid+2000>code.length) {ini=code.length-4000;end=code.length;} - else {ini=mid-2000;end=mid+2000;} - code = code.substring(ini,end); - return code; - } - }, - - // syntax highlighting parser - syntaxHighlight : function(flag) { - //if(document.designMode=='off') document.designMode='on' - if(flag!='init') { - var span = $dce('span'); - window.getSelection().getRangeAt(0).insertNode(span); - } - - o = editor.innerHTML; -// o = o.replace(/
/g,'\r\n'); -// o = o.replace(/<(b|i|s|u|a|em|tt|ins|big|cite|strong)?>/g,''); - //alert(o) - o = o.replace(/<(?!span|\/span|br).*?>/gi,''); -// alert(o) -// x = o; - x = z = this.split(o,flag); - //alert(z) -// x = x.replace(/\r\n/g,'
'); - x = x.replace(/\t/g, ' '); - - - if(arguments[1]&&arguments[2]) x = x.replace(arguments[1],arguments[2]); - - for(i=0;i/g,'>'); - if(content.indexOf('$0')<0) content += cc; - else content = content.replace(/\$0/,cc); - content = content.replace(/\n/g,'
'); - var pattern = new RegExp(trigger+cc,'gi'); - evt.preventDefault(); // prevent the tab key from being added - this.syntaxHighlight('snippets',pattern,content); - } - } - }, - - readOnly : function() { - document.designMode = (arguments[0]) ? 'off' : 'on'; - }, - - complete : function(trigger) { - window.getSelection().getRangeAt(0).deleteContents(); - var complete = Language.complete; - for (var i=0; i/g,'\n'); - code = code.replace(/\u2009/g,''); - code = code.replace(/<.*?>/g,''); - code = code.replace(/</g,'<'); - code = code.replace(/>/g,'>'); - code = code.replace(/&/gi,'&'); - return code; - }, - - // put code inside editor - setCode : function() { - var code = arguments[0]; - code = code.replace(/\u2009/gi,''); - code = code.replace(/&/gi,'&'); - code = code.replace(//g,'>'); - editor.innerHTML = code; - }, - - // undo and redo methods - actions : { - pos : -1, // actual history position - history : [], // history vector - - undo : function() { - if(editor.innerHTML.indexOf(cc)==-1){ - window.getSelection().getRangeAt(0).insertNode(document.createTextNode(cc)); - this.history[this.pos] = editor.innerHTML; - } - this.pos--; - if(typeof(this.history[this.pos])=='undefined') this.pos++; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - redo : function() { - this.pos++; - if(typeof(this.history[this.pos])=='undefined') this.pos--; - editor.innerHTML = this.history[this.pos]; - CodePress.findString(); - }, - - next : function() { // get next vector position and clean old ones - if(this.pos>20) this.history[this.pos-21] = undefined; - return ++this.pos; - } - } -} - -Language={}; -window.addEventListener('load', function() { CodePress.initialize('new'); }, true); diff --git a/gulliver/thirdparty/codepress/images/line-numbers.png b/gulliver/thirdparty/codepress/images/line-numbers.png deleted file mode 100755 index ffea4e6aa..000000000 Binary files a/gulliver/thirdparty/codepress/images/line-numbers.png and /dev/null differ diff --git a/gulliver/thirdparty/codepress/index.html b/gulliver/thirdparty/codepress/index.html deleted file mode 100755 index 703cec2ff..000000000 --- a/gulliver/thirdparty/codepress/index.html +++ /dev/null @@ -1,443 +0,0 @@ - - - - - CodePress - Real Time Syntax Highlighting Editor written in JavaScript - - - - - - -
- - - -
- - - - - - - - - - -

- CodePress is web-based source code editor with syntax highlighting written in JavaScript that colors text in real time while it's being typed in the browser. -

- -

- Go to http://codepress.org/ for updates. -

- -

Demo

-
- choose example in: - - - - - - - -
- - - -

- - - -

- - - - - -

- - - -

Installation

-
    -
  1. -

    - Download and uncompress CodePress under a directory inside your webserver.
    - Example: http://yourserver/codepress/
    - Since CodePress is pure JavaScript and HTML, you can also test it without a webserver. -

    -
  2. -
  3. -

    - Insert CodePress script somewhere in your page inside the <head> or above the </body> tag. -

    - -

    - <script src="/codepress/codepress.js" type="text/javascript"></script> -

    -
  4. - -
  5. -

    - Add the <textarea> tag to the place on your page you want CodePress to appear. CodePress will inherit the width and height of your textarea. - When the page loads, it will automatically replace your textarea with a CodePress window. -

    -

    - <textarea id="myCpWindow" class="codepress javascript linenumbers-off">
    -    // your code here
    - </textarea> -

    -
      -
    • - The javascript portion of the class="" means that the language being edited is JavaScript. -
    • -
    • - The codepress portion of the class="" is mandatory and indicates a textarea to be replaced for a CodePress window. -
    • -
    • - Other class options are linenumbers-off, autocomplete-off and readonly-on. -
    • -
    • - Careful not to use the same id for two different CodePress windows (<textarea id="xx"...>) -
    • -
    - -
  6. -
- -

You also can...

-
    -
  1. - Open/edit code from a different textarea.
    - Example: textarea_id.edit('other_textarea_id','language')
    -
  2. -
  3. - Get code from CodePress window.
    - Example: textarea_id.getCode()
    -
  4. -
  5. - Turn on/off CodePress editor and return to the regular textarea.
    - Example: textarea_id.toggleEditor()
    -
  6. -
  7. - Turn on/off line numbers.
    - Example: textarea_id.toggleLineNumbers()
    -
  8. -
  9. - Turn on/off read only.
    - Example: textarea_id.toggleReadOnly()
    -
  10. -
  11. - Turn on/off auto-complete.
    - Example: textarea_id.toggleAutoComplete()
    -
  12. - -
- - - -

License

-

- CodePress is distributed under the LGPL. If your software is compatible with this licence or it is under Creative Commons, you can use it as you want. Just keep the credits somewhere around. -

- - -
- - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gulliver/thirdparty/codepress/languages/asp.css b/gulliver/thirdparty/codepress/languages/asp.css deleted file mode 100755 index 87af3903f..000000000 --- a/gulliver/thirdparty/codepress/languages/asp.css +++ /dev/null @@ -1,71 +0,0 @@ -/* - * CodePress color styles for ASP-VB syntax highlighting - * By Martin D. Kirk - */ -/* tags */ - -b { - color:#000080; -} -/* comments */ -big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u { - color:gray; - font-weight:normal; -} -/* ASP comments */ -strong dfn, strong dfn a,strong dfn var, strong dfn a u, strong dfn u{ - color:gray; - font-weight:normal; -} - /* attributes */ -s, s b, span s u, span s cite, strong span s { - color:#5656fa ; - font-weight:normal; -} - /* strings */ -strong s,strong s b, strong s u, strong s cite { - color:#009900; - font-weight:normal; -} -strong ins{ - color:#000000; - font-weight:bold; -} - /* Syntax */ -strong a, strong a u { - color:#0000FF; - font-weight:; -} - /* Native Keywords */ -strong u { - color:#990099; - font-weight:bold; -} -/* Numbers */ -strong var{ - color:#FF0000; -} -/* ASP Language */ -span{ - color:#990000; - font-weight:bold; -} -strong i,strong a i, strong u i { - color:#009999; -} -/* style */ -em { - color:#800080; - font-style:normal; -} - /* script */ -ins { - color:#800000; - font-weight:bold; -} - -/* */ -cite, s cite { - color:red; - font-weight:bold; -} \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/asp.js b/gulliver/thirdparty/codepress/languages/asp.js deleted file mode 100755 index 74395397e..000000000 --- a/gulliver/thirdparty/codepress/languages/asp.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - * CodePress regular expressions for ASP-vbscript syntax highlighting - */ - -// ASP VBScript -Language.syntax = [ -// all tags - { input : /(<[^!%|!%@]*?>)/g, output : '$1' }, -// style tags - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, -// script tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, -// strings "" and attributes - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, -// ASP Comment - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, -// <%.* - { input : /(<%)/g, output : '$1' }, -// .*%> - { input : /(%>)/g, output : '$1' }, -// <%@...%> - { input : /(<%@)(.+?)(%>)/gi, output : '$1$2$3' }, -//Numbers - { input : /\b([\d]+)\b/g, output : '$1' }, -// Reserved Words 1 (Blue) - { input : /\b(And|As|ByRef|ByVal|Call|Case|Class|Const|Dim|Do|Each|Else|ElseIf|Empty|End|Eqv|Exit|False|For|Function)\b/gi, output : '$1' }, - { input : /\b(Get|GoTo|If|Imp|In|Is|Let|Loop|Me|Mod|Enum|New|Next|Not|Nothing|Null|On|Option|Or|Private|Public|ReDim|Rem)\b/gi, output : '$1' }, - { input : /\b(Resume|Select|Set|Stop|Sub|Then|To|True|Until|Wend|While|With|Xor|Execute|Randomize|Erase|ExecuteGlobal|Explicit|step)\b/gi, output : '$1' }, -// Reserved Words 2 (Purple) - { input : /\b(Abandon|Abs|AbsolutePage|AbsolutePosition|ActiveCommand|ActiveConnection|ActualSize|AddHeader|AddNew|AppendChunk)\b/gi, output : '$1' }, - { input : /\b(AppendToLog|Application|Array|Asc|Atn|Attributes|BeginTrans|BinaryRead|BinaryWrite|BOF|Bookmark|Boolean|Buffer|Byte)\b/gi, output : '$1' }, - { input : /\b(CacheControl|CacheSize|Cancel|CancelBatch|CancelUpdate|CBool|CByte|CCur|CDate|CDbl|Charset|Chr|CInt|Clear)\b/gi, output : '$1' }, - { input : /\b(ClientCertificate|CLng|Clone|Close|CodePage|CommandText|CommandType|CommandTimeout|CommitTrans|CompareBookmarks|ConnectionString|ConnectionTimeout)\b/gi, output : '$1' }, - { input : /\b(Contents|ContentType|Cookies|Cos|CreateObject|CreateParameter|CSng|CStr|CursorLocation|CursorType|DataMember|DataSource|Date|DateAdd|DateDiff)\b/gi, output : '$1' }, - { input : /\b(DatePart|DateSerial|DateValue|Day|DefaultDatabase|DefinedSize|Delete|Description|Double|EditMode|Eof|EOF|err|Error)\b/gi, output : '$1' }, - { input : /\b(Exp|Expires|ExpiresAbsolute|Filter|Find|Fix|Flush|Form|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent)\b/gi, output : '$1' }, - { input : /\b(GetChunk|GetLastError|GetRows|GetString|Global|HelpContext|HelpFile|Hex|Hour|HTMLEncode|IgnoreCase|Index|InStr|InStrRev)\b/gi, output : '$1' }, - { input : /\b(Int|Integer|IsArray|IsClientConnected|IsDate|IsolationLevel|Join|LBound|LCase|LCID|Left|Len|Lock|LockType|Log|Long|LTrim)\b/gi, output : '$1' }, - { input : /\b(MapPath|MarshalOptions|MaxRecords|Mid|Minute|Mode|Month|MonthName|Move|MoveFirst|MoveLast|MoveNext|MovePrevious|Name|NextRecordset)\b/gi, output : '$1' }, - { input : /\b(Now|Number|NumericScale|ObjectContext|Oct|Open|OpenSchema|OriginalValue|PageCount|PageSize|Pattern|PICS|Precision|Prepared|Property)\b/gi, output : '$1' }, - { input : /\b(Provider|QueryString|RecordCount|Redirect|RegExp|Remove|RemoveAll|Replace|Requery|Request|Response|Resync|Right|Rnd)\b/gi, output : '$1' }, - { input : /\b(RollbackTrans|RTrim|Save|ScriptTimeout|Second|Seek|Server|ServerVariables|Session|SessionID|SetAbort|SetComplete|Sgn)\b/gi, output : '$1' }, - { input : /\b(Sin|Size|Sort|Source|Space|Split|Sqr|State|StaticObjects|Status|StayInSync|StrComp|String|StrReverse|Supports|Tan|Time)\b/gi, output : '$1' }, - { input : /\b(Timeout|Timer|TimeSerial|TimeValue|TotalBytes|Transfer|Trim|Type|Type|UBound|UCase|UnderlyingValue|UnLock|Update|UpdateBatch)\b/gi, output : '$1' }, - { input : /\b(URLEncode|Value|Value|Version|Weekday|WeekdayName|Write|Year)\b/gi, output : '$1' }, -// Reserved Words 3 (Turquis) - { input : /\b(vbBlack|vbRed|vbGreen|vbYellow|vbBlue|vbMagenta|vbCyan|vbWhite|vbBinaryCompare|vbTextCompare)\b/gi, output : '$1' }, - { input : /\b(vbSunday|vbMonday|vbTuesday|vbWednesday|vbThursday|vbFriday|vbSaturday|vbUseSystemDayOfWeek)\b/gi, output : '$1' }, - { input : /\b(vbFirstJan1|vbFirstFourDays|vbFirstFullWeek|vbGeneralDate|vbLongDate|vbShortDate|vbLongTime|vbShortTime)\b/gi, output : '$1' }, - { input : /\b(vbObjectError|vbCr|VbCrLf|vbFormFeed|vbLf|vbNewLine|vbNullChar|vbNullString|vbTab|vbVerticalTab|vbUseDefault|vbTrue)\b/gi, output : '$1' }, - { input : /\b(vbFalse|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant)\b/gi, output : '$1' }, - { input : /\b(vbDataObject|vbDecimal|vbByte|vbArray)\b/gi, output : '$1' }, -// html comments - { input : /(<!--.*?-->.)/g, output : '$1' } -] - -Language.Functions = [ - // Output at index 0, must be the desired tagname surrounding a $1 - // Name is the index from the regex that marks the functionname - {input : /(function|sub)([ ]*?)(\w+)([ ]*?\()/gi , output : '$1', name : '$3'} -] - -Language.snippets = [ -//Conditional - { input : 'if', output : 'If $0 Then\n\t\nEnd If' }, - { input : 'ifelse', output : 'If $0 Then\n\t\n\nElse\n\t\nEnd If' }, - { input : 'case', output : 'Select Case $0\n\tCase ?\n\tCase Else\nEnd Select'}, -//Response - { input : 'rw', output : 'Response.Write( $0 )' }, - { input : 'resc', output : 'Response.Cookies( $0 )' }, - { input : 'resb', output : 'Response.Buffer'}, - { input : 'resflu', output : 'Response.Flush()'}, - { input : 'resend', output : 'Response.End'}, -//Request - { input : 'reqc', output : 'Request.Cookies( $0 )' }, - { input : 'rq', output : 'Request.Querystring("$0")' }, - { input : 'rf', output : 'Request.Form("$0")' }, -//FSO - { input : 'fso', output : 'Set fso = Server.CreateObject("Scripting.FileSystemObject")\n$0' }, - { input : 'setfo', output : 'Set fo = fso.getFolder($0)' }, - { input : 'setfi', output : 'Set fi = fso.getFile($0)' }, - { input : 'twr', output : 'Set f = fso.CreateTextFile($0,true)\'overwrite\nf.WriteLine()\nf.Close'}, - { input : 'tre', output : 'Set f = fso.OpenTextFile($0, 1)\nf.ReadAll\nf.Close'}, -//Server - { input : 'mapp', output : 'Server.Mappath($0)' }, -//Loops - { input : 'foreach', output : 'For Each $0 in ?\n\t\nNext' }, - { input : 'for', output : 'For $0 to ? step ?\n\t\nNext' }, - { input : 'do', output : 'Do While($0)\n\t\nLoop' }, - { input : 'untilrs', output : 'do until rs.eof\n\t\nrs.movenext\nloop' }, -//ADO - { input : 'adorec', output : 'Set rs = Server.CreateObject("ADODB.Recordset")' }, - { input : 'adocon', output : 'Set Conn = Server.CreateObject("ADODB.Connection")' }, - { input : 'adostr', output : 'Set oStr = Server.CreateObject("ADODB.Stream")' }, -//Http Request - { input : 'xmlhttp', output : 'Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")\nxmlHttp.open("GET", $0, false)\nxmlHttp.send()\n?=xmlHttp.responseText' }, - { input : 'xmldoc', output : 'Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")\nxmldoc.async=false\nxmldoc.load(request)'}, -//Functions - { input : 'func', output : 'Function $0()\n\t\n\nEnd Function'}, - { input : 'sub', output : 'Sub $0()\n\t\nEnd Sub'} - -] - -Language.complete = [ - //{ input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [ - { input : '[space]', output : ' ' }, - { input : '[enter]', output : '
' } , - { input : '[j]', output : 'testing' }, - { input : '[7]', output : '&' } -] \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/autoit.css b/gulliver/thirdparty/codepress/languages/autoit.css deleted file mode 100755 index 953ed8669..000000000 --- a/gulliver/thirdparty/codepress/languages/autoit.css +++ /dev/null @@ -1,13 +0,0 @@ -/** - * CodePress color styles for AutoIt syntax highlighting - */ - -u {font-style:normal;color:#000090;font-weight:bold;font-family:Monospace;} -var {color:#AA0000;font-weight:bold;font-style:normal;} -em {color:#FF33FF;} -ins {color:#AC00A9;} -i {color:#F000FF;} -b {color:#FF0000;} -a {color:#0080FF;font-weight:bold;} -s, s u, s b {color:#9999CC;font-weight:normal;} -cite, cite *{color:#009933;font-weight:normal;} \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/autoit.js b/gulliver/thirdparty/codepress/languages/autoit.js deleted file mode 100755 index c34ecc616..000000000 --- a/gulliver/thirdparty/codepress/languages/autoit.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * CodePress regular expressions for AutoIt syntax highlighting - * @author: James Brooks, Michael HURNI - */ - -// AutoIt -Language.syntax = [ - { input : /({|}|\(|\))/g, output : '$1' }, // Brackets - { input : /(\*|\+|-)/g, output : '$1' }, // Operator - { input : /\"(.*?)(\"|
|<\/P>)/g, output : "\"$1$2" }, // strings double - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single - { input : /\b([\d]+)\b/g, output : '$1' }, // Numbers - { input : /#(.*?)(
|<\/P>)/g, output : '#$1$2' }, // Directives and Includes - { input : /(\$[\w\.]*)/g, output : '$1' }, // vars - { input : /(_[\w\.]*)/g, output : '$1' }, // underscored word - { input : /(\@[\w\.]*)/g, output : '$1' }, // Macros - { input : /\b(Abs|ACos|AdlibDisable|AdlibEnable|Asc|AscW|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|Binary|BinaryLen|BinaryMid|BinaryToString|BitAND|BitNOT|BitOR|BitSHIFT|BitXOR|BlockInput|Break|Call|CDTray|Ceiling|Chr|ChrW|ClipGet|ClipPut|ConsoleRead|ConsoleWrite|ConsoleWriteError|ControlClick|ControlCommand|ControlDisable|ControlEnable|ControlFocus|ControlGetFocus|ControlGetHandle|ControlGetPos|ControlGetText|ControlHide|ControlListView|ControlMove|ControlSend|ControlSetText|ControlShow|Cos|Dec|DirCopy|DirCreate|DirGetSize|DirMove|DirRemove|DllCall|DllCall|DllClose|DllOpen|DllStructCreate|DllStructGetData|DllStructGetPtr|DllStructGetSize|DllStructSetData|DriveGetDrive|DriveGetFileSystem|DriveGetLabel|DriveGetSerial|DriveGetType|DriveMapAdd|DriveMapDel|DriveMapGet|DriveSetLabel|DriveSpaceFree|DriveSpaceTotal|DriveStatus|EnvGet|EnvSet|EnvUpdate|Eval|Execute|Exp|FileChangeDir|FileClose|FileCopy|FileCreateNTFS|FileCreateShortcut|FileDelete|FileExists|FileFindFirstFile|FileFindNextFile|FileGetAttrib|FileGetLongName|FileGetShortcut|FileGetShortName|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileOpen|FileOpenDialog|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileSaveDialog|FileSelectFolder|FileSetAttrib|FileSetTime|FileWrite|FileWriteLine|Floor|FtpSetProxy|GuiCreate|GuiCtrlCreateAvi|GuiCtrlCreateButton|GuiCtrlCreateCheckbox|GuiCtrlCreateCombo|GuiCtrlCreateContextMenu|GuiCtrlCreateDate|GuiCtrlCreateDummy|GuiCtrlCreateEdit|GuiCtrlCreateGraphic|GuiCtrlCreateGroup|GuiCtrlCreateIcon|GuiCtrlCreateInput|GuiCtrlCreateLabel|GuiCtrlCreateList|GuiCtrlCreateListView|GuiCtrlCreateListViewItem|GuiCtrlCreateMenu|GuiCtrlCreateMenuItem|GuiCtrlCreateMonthCal|GuiCtrlCreateObj|GuiCtrlCreatePic|GuiCtrlCreateProgress|GuiCtrlCreateRadio|GuiCtrlCreateSlider|GuiCtrlCreateTab|GuiCtrlCreateTabItem|GuiCtrlCreateUpdown|GuiCtrlDelete|GuiCtrlGetHandle|GuiCtrlGetState|GuiCtrlRead|GuiCtrlRecvMsg|GuiCtrlSentMsg|GuiCtrlSendToDummy|GuiCtrlSetBkColor|GuiCtrlSetColor|GuiCtrlSetCursor|GuiCtrlSetData|GuiCtrlSetFont|GuiCtrlSetGraphic|GuiCtrlSetImage|GuiCtrlSetLimit|GuiCtrlSetOnEvent|GuiCtrlSetPos|GuiCtrlResizing|GuiCtrlSetState|GuiCtrlSetTip|GuiDelete|GuiGetCursorInfo|GuiGetMsg|GuiGetStyle|GuiRegisterMsg|GuiSetBkColor|GuiSetCoord|GuiSetCursor|GuiSetFont|GuiSetHelp|GuiSetIcon|GuiSetOnEvent|GuiSetStat|GuiSetStyle|GuiStartGroup|GuiSwitch|Hex|HotKeySet|HttpSetProxy|HWnd|InetGet|InetGetSize|IniDelete|IniRead|IniReadSection|IniReadSectionNames|IniRenameSection|IniWrite|IniWriteSection|InputBox|Int|IsAdmin|IsArray|IsBinary|IsBool|IsDeclared|IsDllStruct|IsFloat|IsHWnd|IsInt|IsKeyword|IsNumber|IsObj|IsString|Log|MemGetStats|Mod|MouseClick|MouseClickDrag|MouseDown|MouseGetCursor|MouseGetPos|MouseMove|MouseUp|MouseWheel|MsgBox|Number|ObjCreate|ObjEvent|ObjGet|ObjName|Ping|PixelCheckSum|PixelGetColor|PixelSearch|ProcessClose|ProcessExists|ProcessList|ProcessSetPriority|ProcessWait|ProcessWaitClose|ProgressOff|ProcessOn|ProgressSet|Random|RegDelete|RegEnumKey|RegEnumVal|RegRead|RegWrite|Round|Run|RunAsSet|RunWait|Send|SetError|SetExtended|ShellExecute|ShellExecuteWait|Shutdown|Sin|Sleep|SoundPlay|SoundSetWaveVolume|SplashImageOn|SplashOff|SplashTextOn|Sqrt|SRandom|StatusbarGetText|StderrRead|StdinWrite|StdoutRead|String|StringAddCR|StringCompare|StringFormat|StringInStr|StringIsAlNum|StringIsAlpha|StringIsASCII|StringIsDigit|StringIsFloat|StringIsInt|StringIsLower|StringIsSpace|StringIsUpper|StringIsXDigit|StringLeft|StringLen|StringLower|StringMid|StringRegExp|StringRegExpReplace|StringReplace|StringRight|StringSplit|StringStripCR|StringStripWS|StringToBinary|StringTrimLeft|StringTrimRight|StringUpper|Tan|TCPAccept|TCPCloseSocket|TCPConnect|TCPListen|TCPNameToIP|TCPrecv|TCPSend|TCPShutdown|TCPStartup|TimerDiff|TimerInit|ToolTip|TrayCreateItem|TrayCreateMenu|TrayGetMenu|TrayGetMsg|TrayItemDelete|TrayItemGetHandle|TrayItemGetState|TrayItemGetText|TrayItemSetOnEvent|TrayItemSetState|TrayItemSetText|TraySetClick|TraySetIcon|TraySetOnEvent|TraySetPauseIcon|TraySetState|TraySetToolTip|TrayTip|UBound|UDPBind|UDPCloseSocket|UDPOpen|UDPRecv|UDPSend|WinActivate|WinActive|WinClose|WinExists|WinFlash|WinGetCaretPos|WinGetClassList|WinGetClientSize|WinGetHandle|WinGetPos|WinGetProcess|WinGetState|WinGetText|WinGetTitle|WinKill|WinList|WinMenuSelectItem|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinSetOnTop|WinSetState|WinSetTitle|WinSetTrans|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/g, output : '$1' } ,// reserved words - { input : /\B;(.*?)(
|<\/P>)/g, output : ';$1$2' }, // comments - { input : /#CS(.*?)#CE/g, output : '#CS$1#CE' } // Block Comments -] - -Language.snippets = [] - -Language.complete = [ -{ input : '\'',output : '\'$0\'' }, -{ input : '"', output : '"$0"' }, -{ input : '(', output : '\($0\)' }, -{ input : '[', output : '\[$0\]' }, -{ input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/csharp.css b/gulliver/thirdparty/codepress/languages/csharp.css deleted file mode 100755 index 6415d6550..000000000 --- a/gulliver/thirdparty/codepress/languages/csharp.css +++ /dev/null @@ -1,9 +0,0 @@ -/* - * CodePress color styles for Java syntax highlighting - * By Edwin de Jonge - */ - -b {color:#7F0055;font-weight:bold;font-style:normal;} /* reserved words */ -a {color:#2A0088;font-weight:bold;font-style:normal;} /* types */ -i, i b, i s {color:#3F7F5F;font-weight:bold;} /* comments */ -s, s b {color:#2A00FF;font-weight:normal;} /* strings */ \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/csharp.js b/gulliver/thirdparty/codepress/languages/csharp.js deleted file mode 100755 index 20fdd91ee..000000000 --- a/gulliver/thirdparty/codepress/languages/csharp.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - * CodePress regular expressions for C# syntax highlighting - * By Edwin de Jonge - */ - -Language.syntax = [ // C# - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /\b(abstract|as|base|break|case|catch|checked|continue|default|delegate|do|else|event|explicit|extern|false|finally|fixed|for|foreach|get|goto|if|implicit|in|interface|internal|is|lock|namespace|new|null|object|operator|out|override|params|partial|private|protected|public|readonly|ref|return|set|sealed|sizeof|static|stackalloc|switch|this|throw|true|try|typeof|unchecked|unsafe|using|value|virtual|while)\b/g, output : '$1' }, // reserved words - { input : /\b(bool|byte|char|class|double|float|int|interface|long|string|struct|void)\b/g, output : '$1' }, // types - { input : /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */ -]; - -Language.snippets = []; - -Language.complete = [ // Auto complete only for 1 character - {input : '\'',output : '\'$0\'' }, - {input : '"', output : '"$0"' }, - {input : '(', output : '\($0\)' }, - {input : '[', output : '\[$0\]' }, - {input : '{', output : '{\n\t$0\n}' } -]; - -Language.shortcuts = []; \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/css.css b/gulliver/thirdparty/codepress/languages/css.css deleted file mode 100755 index 64778d203..000000000 --- a/gulliver/thirdparty/codepress/languages/css.css +++ /dev/null @@ -1,10 +0,0 @@ -/* - * CodePress color styles for CSS syntax highlighting - */ - -b, b a, b u {color:#000080;} /* tags, ids, classes */ -i, i b, i s, i a, i u {color:gray;} /* comments */ -s, s b {color:#a0a0dd;} /* parameters */ -a {color:#0000ff;} /* keys */ -u {color:red;} /* values */ - diff --git a/gulliver/thirdparty/codepress/languages/css.js b/gulliver/thirdparty/codepress/languages/css.js deleted file mode 100755 index 00dcce0b0..000000000 --- a/gulliver/thirdparty/codepress/languages/css.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * CodePress regular expressions for CSS syntax highlighting - */ - -// CSS -Language.syntax = [ - { input : /(.*?){(.*?)}/g,output : '$1{$2}' }, // tags, ids, classes, values - { input : /([\w-]*?):([^\/])/g,output : '$1:$2' }, // keys - { input : /\((.*?)\)/g,output : '($1)' }, // parameters - { input : /\/\*(.*?)\*\//g,output : '/*$1*/'} // comments -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/generic.css b/gulliver/thirdparty/codepress/languages/generic.css deleted file mode 100755 index 3d52b6b00..000000000 --- a/gulliver/thirdparty/codepress/languages/generic.css +++ /dev/null @@ -1,9 +0,0 @@ -/* - * CodePress color styles for generic syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -u {color:darkblue;font-weight:bold;} /* special words */ -i, i b, i s, i u, i em {color:green;font-weight:normal;} /* comments */ -s, s b, s em {color:#2A00FF;font-weight:normal;} /* strings */ -em {font-weight:bold;} /* special chars */ \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/generic.js b/gulliver/thirdparty/codepress/languages/generic.js deleted file mode 100755 index 8289da083..000000000 --- a/gulliver/thirdparty/codepress/languages/generic.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - * CodePress regular expressions for generic syntax highlighting - */ - -// generic languages -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /\b(abstract|continue|for|new|switch|default|goto|boolean|do|if|private|this|break|double|protected|throw|byte|else|import|public|throws|case|return|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|const|float|while|function|label)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars; - { input : /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */ -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/html.css b/gulliver/thirdparty/codepress/languages/html.css deleted file mode 100755 index 35617cb63..000000000 --- a/gulliver/thirdparty/codepress/languages/html.css +++ /dev/null @@ -1,13 +0,0 @@ -/* - * CodePress color styles for HTML syntax highlighting - */ - -b {color:#000080;} /* tags */ -ins, ins b, ins s, ins em {color:gray;} /* comments */ -s, s b {color:#7777e4;} /* attribute values */ -a {color:green;} /* links */ -u {color:#E67300;} /* forms */ -big {color:#db0000;} /* images */ -em, em b {color:#800080;} /* style */ -strong {color:#800000;} /* script */ -tt i {color:darkblue;font-weight:bold;} /* script reserved words */ diff --git a/gulliver/thirdparty/codepress/languages/html.js b/gulliver/thirdparty/codepress/languages/html.js deleted file mode 100755 index 94469b448..000000000 --- a/gulliver/thirdparty/codepress/languages/html.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * CodePress regular expressions for HTML syntax highlighting - */ - -// HTML -Language.syntax = [ - { input : /(<[^!]*?>)/g, output : '$1' }, // all tags - { input : /(<a .*?>|<\/a>)/g, output : '$1' }, // links - { input : /(<img .*?>)/g, output : '$1' }, // images - { input : /(<\/?(button|textarea|form|input|select|option|label).*?>)/g, output : '$1' }, // forms - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, // style tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, // script tags - { input : /=(".*?")/g, output : '=$1' }, // atributes double quote - { input : /=('.*?')/g, output : '=$1' }, // atributes single quote - { input : /(<!--.*?-->.)/g, output : '$1' }, // comments - { input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' } // script reserved words -] - -Language.snippets = [ - { input : 'aref', output : '' }, - { input : 'h1', output : '

$0

' }, - { input : 'h2', output : '

$0

' }, - { input : 'h3', output : '

$0

' }, - { input : 'h4', output : '

$0

' }, - { input : 'h5', output : '
$0
' }, - { input : 'h6', output : '
$0
' }, - { input : 'html', output : '\n\t$0\n' }, - { input : 'head', output : '\n\t\n\t$0\n\t\n' }, - { input : 'img', output : '' }, - { input : 'input', output : '' }, - { input : 'label', output : '' }, - { input : 'legend', output : '\n\t$0\n' }, - { input : 'link', output : '' }, - { input : 'base', output : '' }, - { input : 'body', output : '\n\t$0\n' }, - { input : 'css', output : '' }, - { input : 'div', output : '
\n\t$0\n
' }, - { input : 'divid', output : '
\n\t\n
' }, - { input : 'dl', output : '
\n\t
\n\t\t$0\n\t
\n\t
\n
' }, - { input : 'fieldset', output : '
\n\t$0\n
' }, - { input : 'form', output : '
\n\t\n
' }, - { input : 'meta', output : '' }, - { input : 'p', output : '

$0

' }, - { input : 'script', output : '' }, - { input : 'scriptsrc', output : '' }, - { input : 'span', output : '$0' }, - { input : 'table', output : '\n\t\n\t\n
' }, - { input : 'style', output : '' } -] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/java.css b/gulliver/thirdparty/codepress/languages/java.css deleted file mode 100755 index 2339dedf5..000000000 --- a/gulliver/thirdparty/codepress/languages/java.css +++ /dev/null @@ -1,7 +0,0 @@ -/* - * CodePress color styles for Java syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;font-style:normal;} /* reserved words */ -i, i b, i s {color:#3F7F5F;font-weight:bold;} /* comments */ -s, s b {color:#2A00FF;font-weight:normal;} /* strings */ diff --git a/gulliver/thirdparty/codepress/languages/java.js b/gulliver/thirdparty/codepress/languages/java.js deleted file mode 100755 index 61e9a0673..000000000 --- a/gulliver/thirdparty/codepress/languages/java.js +++ /dev/null @@ -1,24 +0,0 @@ -/* - * CodePress regular expressions for Java syntax highlighting - */ - -// Java -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2'}, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, // strings single quote - { input : /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/g, output : '$1'}, // reserved words - { input : /([^:]|^)\/\/(.*?)(//$2$3'}, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' }// comments /* */ -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/javascript.css b/gulliver/thirdparty/codepress/languages/javascript.css deleted file mode 100755 index 8cb9092de..000000000 --- a/gulliver/thirdparty/codepress/languages/javascript.css +++ /dev/null @@ -1,8 +0,0 @@ -/* - * CodePress color styles for JavaScript syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -u {color:darkblue;font-weight:bold;} /* special words */ -i, i b, i s, i u {color:green;font-weight:normal;} /* comments */ -s, s b, s u {color:#2A00FF;font-weight:normal;} /* strings */ diff --git a/gulliver/thirdparty/codepress/languages/javascript.js b/gulliver/thirdparty/codepress/languages/javascript.js deleted file mode 100755 index 08cdea42f..000000000 --- a/gulliver/thirdparty/codepress/languages/javascript.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * CodePress regular expressions for JavaScript syntax highlighting - */ - -// JavaScript -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /\b(break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' }, // reserved words - { input : /\b(alert|isNaN|parent|Array|parseFloat|parseInt|blur|clearTimeout|prompt|prototype|close|confirm|length|Date|location|Math|document|element|name|self|elements|setTimeout|navigator|status|String|escape|Number|submit|eval|Object|event|onblur|focus|onerror|onfocus|onclick|top|onload|toString|onunload|unescape|open|valueOf|window|onmouseover)\b/g, output : '$1' }, // special words - { input : /([^:]|^)\/\/(.*?)(//$2$3' }, // comments // - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' } // comments /* */ -] - -Language.snippets = [ - { input : 'dw', output : 'document.write(\'$0\');' }, - { input : 'getid', output : 'document.getElementById(\'$0\')' }, - { input : 'fun', output : 'function $0(){\n\t\n}' }, - { input : 'func', output : 'function $0(){\n\t\n}' } -] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/perl.css b/gulliver/thirdparty/codepress/languages/perl.css deleted file mode 100755 index d9bce85c5..000000000 --- a/gulliver/thirdparty/codepress/languages/perl.css +++ /dev/null @@ -1,11 +0,0 @@ -/* - * CodePress color styles for Perl syntax highlighting - * By J. Nick Koston - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -i, i b, i s, i em, i a, i u {color:gray;font-weight:normal;} /* comments */ -s, s b, s a, s em, s u {color:#2A00FF;font-weight:normal;} /* strings */ -a {color:#006700;font-weight:bold;} /* variables */ -em {color:darkblue;font-weight:bold;} /* functions */ -u {font-weight:bold;} /* special chars */ \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/perl.js b/gulliver/thirdparty/codepress/languages/perl.js deleted file mode 100755 index 5026e5d03..000000000 --- a/gulliver/thirdparty/codepress/languages/perl.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - * CodePress regular expressions for Perl syntax highlighting - * By J. Nick Koston - */ - -// Perl -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /([\$\@\%][\w\.]*)/g, output : '$1' }, // vars - { input : /(sub\s+)([\w\.]*)/g, output : '$1$2' }, // functions - { input : /\b(abs|accept|alarm|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|connect|continue|cos|crypt|dbmclose|dbmopen|defined|delete|die|do|dump|each|else|elsif|endgrent|endhostent|endnetent|endprotoent|endpwent|eof|eval|exec|exists|exit|fcntl|fileno|find|flock|for|foreach|fork|format|formlinegetc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyaddr|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|goto|grep|hex|hostname|if|import|index|int|ioctl|join|keys|kill|last|lc|lcfirst|length|link|listen|LoadExternals|local|localtime|log|lstat|map|mkdir|msgctl|msgget|msgrcv|msgsnd|my|next|no|oct|open|opendir|ordpack|package|pipe|pop|pos|print|printf|push|pwd|qq|quotemeta|qw|rand|read|readdir|readlink|recv|redo|ref|rename|require|reset|return|reverse|rewinddir|rindex|rmdir|scalar|seek|seekdir|select|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|stty|study|sub|substr|symlink|syscall|sysopen|sysread|system|syswritetell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unless|unlink|until|unpack|unshift|untie|use|utime|values|vec|waitpid|wantarray|warn|while|write)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars - { input : /#(.*?)(
|<\/P>)/g, output : '#$1$2' } // comments -] - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/php.css b/gulliver/thirdparty/codepress/languages/php.css deleted file mode 100755 index b20a35cc8..000000000 --- a/gulliver/thirdparty/codepress/languages/php.css +++ /dev/null @@ -1,12 +0,0 @@ -/* - * CodePress color styles for PHP syntax highlighting - */ - -b {color:#000080;} /* tags */ -big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u {color:gray;font-weight:normal;} /* comments */ -s, s b, strong s u, strong s cite {color:#5656fa;font-weight:normal;} /* attributes and strings */ -strong a, strong a u {color:#006700;font-weight:bold;} /* variables */ -em {color:#800080;font-style:normal;} /* style */ -ins {color:#800000;} /* script */ -strong u {color:#7F0055;font-weight:bold;} /* reserved words */ -cite, s cite {color:red;font-weight:bold;} /* */ diff --git a/gulliver/thirdparty/codepress/languages/php.js b/gulliver/thirdparty/codepress/languages/php.js deleted file mode 100755 index c7640ba1b..000000000 --- a/gulliver/thirdparty/codepress/languages/php.js +++ /dev/null @@ -1,61 +0,0 @@ -/* - * CodePress regular expressions for PHP syntax highlighting - */ - -// PHP -Language.syntax = [ - { input : /(<[^!\?]*?>)/g, output : '$1' }, // all tags - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, // style tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, // script tags - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, // strings single quote - { input : /(<\?)/g, output : '$1' }, // ' }, // .*?> - { input : /(<\?php|<\?=|<\?|\?>)/g, output : '$1' }, // php tags - { input : /(\$[\w\.]*)/g, output : '$1' }, // vars - { input : /\b(false|true|and|or|xor|__FILE__|exception|__LINE__|array|as|break|case|class|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|for|foreach|function|global|if|include|include_once|isset|list|new|print|require|require_once|return|static|switch|unset|use|while|__FUNCTION__|__CLASS__|__METHOD__|final|php_user_filter|interface|implements|extends|public|private|protected|abstract|clone|try|catch|throw|this)\b/g, output : '$1' }, // reserved words - { input : /([^:])\/\/(.*?)(//$2$3' }, // php comments // - { input : /([^:])#(.*?)(#$2$3' }, // php comments # - { input : /\/\*(.*?)\*\//g, output : '/*$1*/' }, // php comments /* */ - { input : /(<!--.*?-->.)/g, output : '$1' } // html comments -] - -Language.snippets = [ - { input : 'if', output : 'if($0){\n\t\n}' }, - { input : 'ifelse', output : 'if($0){\n\t\n}\nelse{\n\t\n}' }, - { input : 'else', output : '}\nelse {\n\t' }, - { input : 'elseif', output : '}\nelseif($0) {\n\t' }, - { input : 'do', output : 'do{\n\t$0\n}\nwhile();' }, - { input : 'inc', output : 'include_once("$0");' }, - { input : 'fun', output : 'function $0(){\n\t\n}' }, - { input : 'func', output : 'function $0(){\n\t\n}' }, - { input : 'while', output : 'while($0){\n\t\n}' }, - { input : 'for', output : 'for($0,,){\n\t\n}' }, - { input : 'fore', output : 'foreach($0 as ){\n\t\n}' }, - { input : 'foreach', output : 'foreach($0 as ){\n\t\n}' }, - { input : 'echo', output : 'echo \'$0\';' }, - { input : 'switch', output : 'switch($0) {\n\tcase "": break;\n\tdefault: ;\n}' }, - { input : 'case', output : 'case "$0" : break;' }, - { input : 'ret0', output : 'return false;' }, - { input : 'retf', output : 'return false;' }, - { input : 'ret1', output : 'return true;' }, - { input : 'rett', output : 'return true;' }, - { input : 'ret', output : 'return $0;' }, - { input : 'def', output : 'define(\'$0\',\'\');' }, - { input : '' } -] - -Language.complete = [ - { input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [ - { input : '[space]', output : ' ' }, - { input : '[enter]', output : '
' } , - { input : '[j]', output : 'testing' }, - { input : '[7]', output : '&' } -] \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/ruby.css b/gulliver/thirdparty/codepress/languages/ruby.css deleted file mode 100755 index b23166b9c..000000000 --- a/gulliver/thirdparty/codepress/languages/ruby.css +++ /dev/null @@ -1,10 +0,0 @@ -/* - * CodePress color styles for Ruby syntax highlighting - */ - -b {color:#7F0055;font-weight:bold;} /* reserved words */ -i, i b, i s, i em, i a, i u {color:gray;font-weight:normal;} /* comments */ -s, s b, s a, s em, s u {color:#2A00FF;font-weight:normal;} /* strings */ -a {color:#006700;font-weight:bold;} /* variables */ -em {color:darkblue;font-weight:bold;} /* functions */ -u {font-weight:bold;} /* special chars */ \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/ruby.js b/gulliver/thirdparty/codepress/languages/ruby.js deleted file mode 100755 index 860f43381..000000000 --- a/gulliver/thirdparty/codepress/languages/ruby.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * CodePress regular expressions for Perl syntax highlighting - */ - -// Ruby -Language.syntax = [ - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, // strings double quote - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2' }, // strings single quote - { input : /([\$\@\%]+)([\w\.]*)/g, output : '$1$2' }, // vars - { input : /(def\s+)([\w\.]*)/g, output : '$1$2' }, // functions - { input : /\b(alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars - { input : /#(.*?)(
|<\/P>)/g, output : '#$1$2' } // comments -]; - -Language.snippets = [] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/sql.css b/gulliver/thirdparty/codepress/languages/sql.css deleted file mode 100755 index 17458c5a0..000000000 --- a/gulliver/thirdparty/codepress/languages/sql.css +++ /dev/null @@ -1,10 +0,0 @@ -/* - * CodePress color styles for SQL syntax highlighting - * By Merlin Moncure - */ - -b {color:#0000FF;font-style:normal;font-weight:bold;} /* reserved words */ -u {color:#FF0000;font-style:normal;} /* types */ -a {color:#CD6600;font-style:normal;font-weight:bold;} /* commands */ -i, i b, i u, i a, i s {color:#A9A9A9;font-weight:normal;font-style:italic;} /* comments */ -s, s b, s u, s a, s i {color:#2A00FF;font-weight:normal;} /* strings */ diff --git a/gulliver/thirdparty/codepress/languages/sql.js b/gulliver/thirdparty/codepress/languages/sql.js deleted file mode 100755 index 605c971a8..000000000 --- a/gulliver/thirdparty/codepress/languages/sql.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * CodePress regular expressions for SQL syntax highlighting - * By Merlin Moncure - */ - -// SQL -Language.syntax = [ - { input : /\'(.*?)(\')/g, output : '\'$1$2' }, // strings single quote - { input : /\b(add|after|aggregate|alias|all|and|as|authorization|between|by|cascade|cache|cache|called|case|check|column|comment|constraint|createdb|createuser|cycle|database|default|deferrable|deferred|diagnostics|distinct|domain|each|else|elseif|elsif|encrypted|except|exception|for|foreign|from|from|full|function|get|group|having|if|immediate|immutable|in|increment|initially|increment|index|inherits|inner|input|intersect|into|invoker|is|join|key|language|left|like|limit|local|loop|match|maxvalue|minvalue|natural|nextval|no|nocreatedb|nocreateuser|not|null|of|offset|oids|on|only|operator|or|order|outer|owner|partial|password|perform|plpgsql|primary|record|references|replace|restrict|return|returns|right|row|rule|schema|security|sequence|session|sql|stable|statistics|table|temp|temporary|then|time|to|transaction|trigger|type|unencrypted|union|unique|user|using|valid|value|values|view|volatile|when|where|with|without|zone)\b/gi, output : '$1' }, // reserved words - { input : /\b(bigint|bigserial|bit|boolean|box|bytea|char|character|cidr|circle|date|decimal|double|float4|float8|inet|int2|int4|int8|integer|interval|line|lseg|macaddr|money|numeric|oid|path|point|polygon|precision|real|refcursor|serial|serial4|serial8|smallint|text|timestamp|varbit|varchar)\b/gi, output : '$1' }, // types - { input : /\b(abort|alter|analyze|begin|checkpoint|close|cluster|comment|commit|copy|create|deallocate|declare|delete|drop|end|execute|explain|fetch|grant|insert|listen|load|lock|move|notify|prepare|reindex|reset|restart|revoke|rollback|select|set|show|start|truncate|unlisten|update)\b/gi, output : '$1' }, // commands - { input : /([^:]|^)\-\-(.*?)(--$2$3' } // comments // -] - -Language.snippets = [ - { input : 'select', output : 'select $0 from where ' } -] - -Language.complete = [ - { input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] - - - diff --git a/gulliver/thirdparty/codepress/languages/text.css b/gulliver/thirdparty/codepress/languages/text.css deleted file mode 100755 index 8e5ba28fc..000000000 --- a/gulliver/thirdparty/codepress/languages/text.css +++ /dev/null @@ -1,5 +0,0 @@ -/* - * CodePress color styles for Text syntax highlighting - */ - -/* do nothing as expected */ diff --git a/gulliver/thirdparty/codepress/languages/text.js b/gulliver/thirdparty/codepress/languages/text.js deleted file mode 100755 index 189543078..000000000 --- a/gulliver/thirdparty/codepress/languages/text.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - * CodePress regular expressions for Text syntax highlighting - */ - -// plain text -Language.syntax = [] -Language.snippets = [] -Language.complete = [] -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/vbscript.css b/gulliver/thirdparty/codepress/languages/vbscript.css deleted file mode 100755 index d65663b68..000000000 --- a/gulliver/thirdparty/codepress/languages/vbscript.css +++ /dev/null @@ -1,71 +0,0 @@ -/* - * CodePress color styles for ASP-VB syntax highlighting - * By Martin D. Kirk - */ - -/* tags */ -b { - color:#000080; -} -/* comments */ -big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u { - color:gray; - font-weight:normal; -} -/* ASP comments */ -strong dfn, strong dfn a,strong dfn var, strong dfn a u, strong dfn u{ - color:gray; - font-weight:normal; -} - /* attributes */ -s, s b, span s u, span s cite, strong span s { - color:#5656fa ; - font-weight:normal; -} - /* strings */ -strong s,strong s b, strong s u, strong s cite { - color:#009900; - font-weight:normal; -} -strong ins{ - color:#000000; - font-weight:bold; -} - /* Syntax */ -strong a, strong a u { - color:#0000FF; - font-weight:; -} - /* Native Keywords */ -strong u { - color:#990099; - font-weight:bold; -} -/* Numbers */ -strong var{ - color:#FF0000; -} -/* ASP Language */ -span{ - color:#990000; - font-weight:bold; -} -strong i,strong a i, strong u i { - color:#009999; -} -/* style */ -em { - color:#800080; - font-style:normal; -} - /* script */ -ins { - color:#800000; - font-weight:bold; -} - -/* */ -cite, s cite { - color:red; - font-weight:bold; -} \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/vbscript.js b/gulliver/thirdparty/codepress/languages/vbscript.js deleted file mode 100755 index 74395397e..000000000 --- a/gulliver/thirdparty/codepress/languages/vbscript.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - * CodePress regular expressions for ASP-vbscript syntax highlighting - */ - -// ASP VBScript -Language.syntax = [ -// all tags - { input : /(<[^!%|!%@]*?>)/g, output : '$1' }, -// style tags - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, -// script tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, -// strings "" and attributes - { input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2' }, -// ASP Comment - { input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, -// <%.* - { input : /(<%)/g, output : '$1' }, -// .*%> - { input : /(%>)/g, output : '$1' }, -// <%@...%> - { input : /(<%@)(.+?)(%>)/gi, output : '$1$2$3' }, -//Numbers - { input : /\b([\d]+)\b/g, output : '$1' }, -// Reserved Words 1 (Blue) - { input : /\b(And|As|ByRef|ByVal|Call|Case|Class|Const|Dim|Do|Each|Else|ElseIf|Empty|End|Eqv|Exit|False|For|Function)\b/gi, output : '$1' }, - { input : /\b(Get|GoTo|If|Imp|In|Is|Let|Loop|Me|Mod|Enum|New|Next|Not|Nothing|Null|On|Option|Or|Private|Public|ReDim|Rem)\b/gi, output : '$1' }, - { input : /\b(Resume|Select|Set|Stop|Sub|Then|To|True|Until|Wend|While|With|Xor|Execute|Randomize|Erase|ExecuteGlobal|Explicit|step)\b/gi, output : '$1' }, -// Reserved Words 2 (Purple) - { input : /\b(Abandon|Abs|AbsolutePage|AbsolutePosition|ActiveCommand|ActiveConnection|ActualSize|AddHeader|AddNew|AppendChunk)\b/gi, output : '$1' }, - { input : /\b(AppendToLog|Application|Array|Asc|Atn|Attributes|BeginTrans|BinaryRead|BinaryWrite|BOF|Bookmark|Boolean|Buffer|Byte)\b/gi, output : '$1' }, - { input : /\b(CacheControl|CacheSize|Cancel|CancelBatch|CancelUpdate|CBool|CByte|CCur|CDate|CDbl|Charset|Chr|CInt|Clear)\b/gi, output : '$1' }, - { input : /\b(ClientCertificate|CLng|Clone|Close|CodePage|CommandText|CommandType|CommandTimeout|CommitTrans|CompareBookmarks|ConnectionString|ConnectionTimeout)\b/gi, output : '$1' }, - { input : /\b(Contents|ContentType|Cookies|Cos|CreateObject|CreateParameter|CSng|CStr|CursorLocation|CursorType|DataMember|DataSource|Date|DateAdd|DateDiff)\b/gi, output : '$1' }, - { input : /\b(DatePart|DateSerial|DateValue|Day|DefaultDatabase|DefinedSize|Delete|Description|Double|EditMode|Eof|EOF|err|Error)\b/gi, output : '$1' }, - { input : /\b(Exp|Expires|ExpiresAbsolute|Filter|Find|Fix|Flush|Form|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent)\b/gi, output : '$1' }, - { input : /\b(GetChunk|GetLastError|GetRows|GetString|Global|HelpContext|HelpFile|Hex|Hour|HTMLEncode|IgnoreCase|Index|InStr|InStrRev)\b/gi, output : '$1' }, - { input : /\b(Int|Integer|IsArray|IsClientConnected|IsDate|IsolationLevel|Join|LBound|LCase|LCID|Left|Len|Lock|LockType|Log|Long|LTrim)\b/gi, output : '$1' }, - { input : /\b(MapPath|MarshalOptions|MaxRecords|Mid|Minute|Mode|Month|MonthName|Move|MoveFirst|MoveLast|MoveNext|MovePrevious|Name|NextRecordset)\b/gi, output : '$1' }, - { input : /\b(Now|Number|NumericScale|ObjectContext|Oct|Open|OpenSchema|OriginalValue|PageCount|PageSize|Pattern|PICS|Precision|Prepared|Property)\b/gi, output : '$1' }, - { input : /\b(Provider|QueryString|RecordCount|Redirect|RegExp|Remove|RemoveAll|Replace|Requery|Request|Response|Resync|Right|Rnd)\b/gi, output : '$1' }, - { input : /\b(RollbackTrans|RTrim|Save|ScriptTimeout|Second|Seek|Server|ServerVariables|Session|SessionID|SetAbort|SetComplete|Sgn)\b/gi, output : '$1' }, - { input : /\b(Sin|Size|Sort|Source|Space|Split|Sqr|State|StaticObjects|Status|StayInSync|StrComp|String|StrReverse|Supports|Tan|Time)\b/gi, output : '$1' }, - { input : /\b(Timeout|Timer|TimeSerial|TimeValue|TotalBytes|Transfer|Trim|Type|Type|UBound|UCase|UnderlyingValue|UnLock|Update|UpdateBatch)\b/gi, output : '$1' }, - { input : /\b(URLEncode|Value|Value|Version|Weekday|WeekdayName|Write|Year)\b/gi, output : '$1' }, -// Reserved Words 3 (Turquis) - { input : /\b(vbBlack|vbRed|vbGreen|vbYellow|vbBlue|vbMagenta|vbCyan|vbWhite|vbBinaryCompare|vbTextCompare)\b/gi, output : '$1' }, - { input : /\b(vbSunday|vbMonday|vbTuesday|vbWednesday|vbThursday|vbFriday|vbSaturday|vbUseSystemDayOfWeek)\b/gi, output : '$1' }, - { input : /\b(vbFirstJan1|vbFirstFourDays|vbFirstFullWeek|vbGeneralDate|vbLongDate|vbShortDate|vbLongTime|vbShortTime)\b/gi, output : '$1' }, - { input : /\b(vbObjectError|vbCr|VbCrLf|vbFormFeed|vbLf|vbNewLine|vbNullChar|vbNullString|vbTab|vbVerticalTab|vbUseDefault|vbTrue)\b/gi, output : '$1' }, - { input : /\b(vbFalse|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant)\b/gi, output : '$1' }, - { input : /\b(vbDataObject|vbDecimal|vbByte|vbArray)\b/gi, output : '$1' }, -// html comments - { input : /(<!--.*?-->.)/g, output : '$1' } -] - -Language.Functions = [ - // Output at index 0, must be the desired tagname surrounding a $1 - // Name is the index from the regex that marks the functionname - {input : /(function|sub)([ ]*?)(\w+)([ ]*?\()/gi , output : '$1', name : '$3'} -] - -Language.snippets = [ -//Conditional - { input : 'if', output : 'If $0 Then\n\t\nEnd If' }, - { input : 'ifelse', output : 'If $0 Then\n\t\n\nElse\n\t\nEnd If' }, - { input : 'case', output : 'Select Case $0\n\tCase ?\n\tCase Else\nEnd Select'}, -//Response - { input : 'rw', output : 'Response.Write( $0 )' }, - { input : 'resc', output : 'Response.Cookies( $0 )' }, - { input : 'resb', output : 'Response.Buffer'}, - { input : 'resflu', output : 'Response.Flush()'}, - { input : 'resend', output : 'Response.End'}, -//Request - { input : 'reqc', output : 'Request.Cookies( $0 )' }, - { input : 'rq', output : 'Request.Querystring("$0")' }, - { input : 'rf', output : 'Request.Form("$0")' }, -//FSO - { input : 'fso', output : 'Set fso = Server.CreateObject("Scripting.FileSystemObject")\n$0' }, - { input : 'setfo', output : 'Set fo = fso.getFolder($0)' }, - { input : 'setfi', output : 'Set fi = fso.getFile($0)' }, - { input : 'twr', output : 'Set f = fso.CreateTextFile($0,true)\'overwrite\nf.WriteLine()\nf.Close'}, - { input : 'tre', output : 'Set f = fso.OpenTextFile($0, 1)\nf.ReadAll\nf.Close'}, -//Server - { input : 'mapp', output : 'Server.Mappath($0)' }, -//Loops - { input : 'foreach', output : 'For Each $0 in ?\n\t\nNext' }, - { input : 'for', output : 'For $0 to ? step ?\n\t\nNext' }, - { input : 'do', output : 'Do While($0)\n\t\nLoop' }, - { input : 'untilrs', output : 'do until rs.eof\n\t\nrs.movenext\nloop' }, -//ADO - { input : 'adorec', output : 'Set rs = Server.CreateObject("ADODB.Recordset")' }, - { input : 'adocon', output : 'Set Conn = Server.CreateObject("ADODB.Connection")' }, - { input : 'adostr', output : 'Set oStr = Server.CreateObject("ADODB.Stream")' }, -//Http Request - { input : 'xmlhttp', output : 'Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")\nxmlHttp.open("GET", $0, false)\nxmlHttp.send()\n?=xmlHttp.responseText' }, - { input : 'xmldoc', output : 'Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")\nxmldoc.async=false\nxmldoc.load(request)'}, -//Functions - { input : 'func', output : 'Function $0()\n\t\n\nEnd Function'}, - { input : 'sub', output : 'Sub $0()\n\t\nEnd Sub'} - -] - -Language.complete = [ - //{ input : '\'', output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [ - { input : '[space]', output : ' ' }, - { input : '[enter]', output : '
' } , - { input : '[j]', output : 'testing' }, - { input : '[7]', output : '&' } -] \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/languages/xmlform.css b/gulliver/thirdparty/codepress/languages/xmlform.css deleted file mode 100755 index dc232cb0f..000000000 --- a/gulliver/thirdparty/codepress/languages/xmlform.css +++ /dev/null @@ -1,13 +0,0 @@ -/* - * CodePress color styles for HTML syntax highlighting - */ - -b {color:#000080;} /* tags */ -ins, ins b, ins s, ins em {color:gray;} /* comments */ -s, s b {color:red;} /* attribute values */ -a {color:green;} /* links */ -u {color:#E67300;} /* forms */ -big {color:#db0000;} /* images */ -em, em b {color:#800080;} /* style */ -strong {color:#800000;} /* script */ -tt i {color:darkblue;font-weight:bold;} /* script reserved words */ diff --git a/gulliver/thirdparty/codepress/languages/xmlform.js b/gulliver/thirdparty/codepress/languages/xmlform.js deleted file mode 100755 index e79a7f9e9..000000000 --- a/gulliver/thirdparty/codepress/languages/xmlform.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - * @author David Callizaya - * CodePress regular expressions for HTML syntax highlighting - */ - -// HTML -Language.syntax = [ - { input : /(<[^!]*?>)/g, output : '$1' }, // all tags - /*{ input : /(<a .*?>|<\/a>)/g, output : '$1' }, // links*/ - /*{ input : /(<img .*?>)/g, output : '$1' }, // images*/ - { input : /<(\/?([a-z_]\w*))/ig, output : '<$1' }, // forms - { input : /(<style.*?>)(.*?)(<\/style>)/g, output : '$1$2$3' }, // style tags - { input : /(<script.*?>)(.*?)(<\/script>)/g, output : '$1$2$3' }, // script tags - { input : /type(\s*)=(\s*)("(?:xmlform|grid|text|currency|percentage|password|textarea|title|subtitle|button|submit|reset|dropdown|yesno|listbox|checkbox|checkgroup|radiogroup|date|hidden|link|file|javascript)")/ig, output : 'type$1=$2$3' }, // atributes double quote - { input : /type(\s*)=(\s*)('(?:xmlform|grid|text|currency|percentage|password|textarea|title|subtitle|button|submit|reset|dropdown|yesno|listbox|checkbox|checkgroup|radiogroup|date|hidden|link|file|javascript)')/ig, output : 'type$1=$2$3' }, // atributes single quote - { input : /type(\s*)=(\s*)(".*?")/ig, output : 'type$1=$2$3' }, // Invalid type of field in double quote - { input : /type(\s*)=(\s*)('.*?')/ig, output : 'type$1=$2$3' }, // Invalid type of field in single quote - { input : /=(".*?")/g, output : '=$1' }, // atributes double quote - { input : /=('.*?')/g, output : '=$1' }, // atributes single quote - { input : /(<!--.*?-->.)/g, output : '$1' }, // comments - { input : /(<!\[CDATA\[.*?\]\]>.)/g, output : '$1' }, // comments - { input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '$1' } // script reserved words -] - -Language.snippets = [ - { input : 'aref', output : '' }, - { input : 'h1', output : '

$0

' }, - { input : 'h2', output : '

$0

' }, - { input : 'h3', output : '

$0

' }, - { input : 'h4', output : '

$0

' }, - { input : 'h5', output : '
$0
' }, - { input : 'h6', output : '
$0
' }, - { input : 'html', output : '\n\t$0\n' }, - { input : 'head', output : '\n\t\n\t$0\n\t\n' }, - { input : 'img', output : '' }, - { input : 'input', output : '' }, - { input : 'label', output : '' }, - { input : 'legend', output : '\n\t$0\n' }, - { input : 'link', output : '' }, - { input : 'base', output : '' }, - { input : 'body', output : '\n\t$0\n' }, - { input : 'css', output : '' }, - { input : 'div', output : '
\n\t$0\n
' }, - { input : 'divid', output : '
\n\t\n
' }, - { input : 'dl', output : '
\n\t
\n\t\t$0\n\t
\n\t
\n
' }, - { input : 'fieldset', output : '
\n\t$0\n
' }, - { input : 'form', output : '
\n\t\n
' }, - { input : 'meta', output : '' }, - { input : 'p', output : '

$0

' }, - { input : 'script', output : '' }, - { input : 'scriptsrc', output : '' }, - { input : 'span', output : '$0' }, - { input : 'table', output : '\n\t\n\t\n
' }, - { input : 'style', output : '' } -] - -Language.complete = [ - { input : '\'',output : '\'$0\'' }, - { input : '"', output : '"$0"' }, - { input : '(', output : '\($0\)' }, - { input : '[', output : '\[$0\]' }, - { input : '{', output : '{\n\t$0\n}' } -] - -Language.shortcuts = [] diff --git a/gulliver/thirdparty/codepress/languages/xsl.css b/gulliver/thirdparty/codepress/languages/xsl.css deleted file mode 100755 index 32634b6ca..000000000 --- a/gulliver/thirdparty/codepress/languages/xsl.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * CodePress color styles for HTML syntax highlighting - * By RJ Bruneel - */ - -b {color:#000080;} /* tags */ -ins, ins b, ins s, ins em {color:gray;} /* comments */ -s, s b {color:#7777e4;} /* attribute values */ -a {color:#E67300;} /* links */ -u {color:#CC66CC;} /* forms */ -big {color:#db0000;} /* images */ -em, em b {color:#800080;} /* style */ -strong {color:#800000;} /* script */ -tt i {color:darkblue;font-weight:bold;} /* script reserved words */ -xsl {color:green;} /* xsl */ diff --git a/gulliver/thirdparty/codepress/languages/xsl.js b/gulliver/thirdparty/codepress/languages/xsl.js deleted file mode 100755 index b23d3591f..000000000 --- a/gulliver/thirdparty/codepress/languages/xsl.js +++ /dev/null @@ -1,103 +0,0 @@ -/* - * CodePress regular expressions for XSL syntax highlighting - * By RJ Bruneel - */ - -Language.syntax = [ // XSL - { - input : /(<[^!]*?>)/g, - output : '$1' // all tags - },{ - input : /(<a.*?>|<\/a>)/g, - output : '$1' // links - },{ - input : /(<img .*?>)/g, - output : '$1' // images - },{ - input : /(<\/?(button|textarea|form|input|select|option|label).*?>)/g, - output : '$1' // forms - },{ - input : /(<style.*?>)(.*?)(<\/style>)/g, - output : '$1$2$3' // style tags - },{ - input : /(<script.*?>)(.*?)(<\/script>)/g, - output : '$1$2$3' // script tags - },{ - input : /(<xsl.*?>|<\/xsl.*?>)/g, - output : '$1' // xsl - },{ - input : /=(".*?")/g, - output : '=$1' // atributes double quote - },{ - input : /=('.*?')/g, - output : '=$1' // atributes single quote - },{ - input : /(<!--.*?-->.)/g, - output : '$1' // comments - },{ - input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, - output : '$1' // script reserved words - } -]; - -Language.snippets = [ - {input : 'aref', output : '' }, - {input : 'h1', output : '

$0

' }, - {input : 'h2', output : '

$0

' }, - {input : 'h3', output : '

$0

' }, - {input : 'h4', output : '

$0

' }, - {input : 'h5', output : '
$0
' }, - {input : 'h6', output : '
$0
' }, - {input : 'html', output : '\n\t$0\n' }, - {input : 'head', output : '\n\t\n\t$0\n\t\n' }, - {input : 'img', output : '' }, - {input : 'input', output : '' }, - {input : 'label', output : '' }, - {input : 'legend', output : '\n\t$0\n' }, - {input : 'link', output : '' }, - {input : 'base', output : '' }, - {input : 'body', output : '\n\t$0\n' }, - {input : 'css', output : '' }, - {input : 'div', output : '
\n\t$0\n
' }, - {input : 'divid', output : '
\n\t\n
' }, - {input : 'dl', output : '
\n\t
\n\t\t$0\n\t
\n\t
\n
' }, - {input : 'fieldset', output : '
\n\t$0\n
' }, - {input : 'form', output : '
\n\t\n
' }, - {input : 'meta', output : '' }, - {input : 'p', output : '

$0

' }, - {input : 'b', output : '$0' }, - {input : 'li', output : '
  • $0
  • ' }, - {input : 'ul', output : '
      $0
    ' }, - {input : 'ol', output : '
      $0
    ' }, - {input : 'strong', output : '$0' }, - {input : 'br', output : '
    ' }, - {input : 'script', output : '' }, - {input : 'scriptsrc', output : '' }, - {input : 'span', output : '$0' }, - {input : 'table', output : '\n\t\n\t\n
    ' }, - {input : 'style', output : '' }, - {input : 'xsl:stylesheet', output : '' }, - {input : 'xsl:template', output : '$0' }, - {input : 'xsl:for-each', output : '' }, - {input : 'xsl:choose', output : '$0<\xsl:choose>' }, - {input : 'xsl:param', output : '' }, - {input : 'xsl:variable', output : '' }, - {input : 'xsl:if', output : '' }, - {input : 'xsl:when', output : '' }, - {input : 'xsl:otherwise', output : '$0' }, - {input : 'xsl:attribute', output : '' }, - {input : 'xsl:value-of', output : '' }, - {input : 'xsl:with-param', output : '' }, - {input : 'xsl:call-template', output : '' } - -]; - -Language.complete = [ // Auto complete only for 1 character - {input : '\'',output : '\'$0\'' }, - {input : '"', output : '"$0"' }, - {input : '(', output : '\($0\)' }, - {input : '[', output : '\[$0\]' }, - {input : '{', output : '{\n\t$0\n}' } -]; - -Language.shortcuts = []; \ No newline at end of file diff --git a/gulliver/thirdparty/codepress/license.txt b/gulliver/thirdparty/codepress/license.txt deleted file mode 100755 index 81b55d91f..000000000 --- a/gulliver/thirdparty/codepress/license.txt +++ /dev/null @@ -1,458 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS diff --git a/rbac/engine/content/languages/labels.xml b/rbac/engine/content/languages/labels.xml deleted file mode 100755 index 908f20876..000000000 --- a/rbac/engine/content/languages/labels.xml +++ /dev/null @@ -1,172 +0,0 @@ - -xml destinado para los lenguages de los labels - - Autor - Author - Autor - - - Tipo - Type - Type - - - UID - UID - UID - - - Si - Yes - Si - - - No - No - No - - - Rol - Role - Rol - - - Subir - Up - Subir - - - Bajar - Down - Bajar - - - Ciudad - City - Ciudad - - - El usuario se encuentra inactivo - The user is currently inactive - Usuario eu inactivo - - - Contraseña incorrecta para el usuario - Incorrect Password for the user - Senha incorrecta do usurio - - - El usuario no esta registrado en el sistema - The User is not registered in the system - - - - La contraseña y la confirmacion deben ser iguales - The New Password and the Confirm Password must be equals - - - - Contraseña antigua incorrecta para el usuario - Incorrect Old Password for the user - - - - Ud. no puede eliminar un usuario que tiene tramites - You can't remove a user with one or more Applications - voce no pode remover - - - El usuario no tiene derecho de ingresar al sistema - User haven't rights to login this system - - - - El usuario no tiene derechos para ingresar a esta opcion - User haven't rights in this page - - - - El usuario no tiene derecho para iniciar un nuevo Tramite - User haven't rights to start a New Application - - - - Ya existe un usuario con el mismo Identificador de usuario - There is another user with the same User ID. - - - - Contraseña de inicio, cambiada correctamente - Password changed succesfully - - - - Contraseña de inicio, reiniciada correctamente - Password reseted succesfully - - - - Nuevo Empleado creado satisfactoriamente - New Employee created successfully - - - - Nuevo Cliente creado satisfactoriamente - New Client created successfully - Noivo cliente creado - - - - Página - Page - Page - - - - de - of - do - - - - Nombre - Name - Nome - - - - Nombre Servidor - Server Name - Nome Server - - - - Proveedor - Provider - Proveedor - - - - Roles - Roles - Roles - - - - Permisos - Permissions - Permisos - - - - Borrar - Delete - Supressão - - - - Sin registros - Records not found - UID_NO_RECORDS_FOUND - - \ No newline at end of file diff --git a/rbac/engine/content/languages/menus.xml b/rbac/engine/content/languages/menus.xml deleted file mode 100755 index 5edd81367..000000000 --- a/rbac/engine/content/languages/menus.xml +++ /dev/null @@ -1,64 +0,0 @@ -xml destinado para los lenguajes de los menus - - Mis datos - My info - - - - Usuarios - Users - - - - - Añadir Usuarios - Add Users - Adicionar Usuarios - - - - - Añadir Nueva Applicación (sistema) - Add New Application - Inserir Novo Application - - - - Añadir Fuente de Autenticación - New Authentication Source - Inserir Authentication - - - - Editar - Edit - Editar - - - - Probar Conexión - Test Conectivity - Testar Conexion - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/rbac/engine/content/messages.en b/rbac/engine/content/messages.en deleted file mode 100755 index a7abc63c4..000000000 --- a/rbac/engine/content/messages.en +++ /dev/null @@ -1,18 +0,0 @@ -The User "$USER" is currently inactive -Incorrect Password for the user "$USER" -The User "$USER" is not registered in the system -The New Password and the Confirm Password must be equals -Incorrect Old Password for the user "$USER" -You can't remove a user with one or more Applications -There is another user with the same User ID. -Password changed succesfully -Password reseted succesfully -New User created successfully -Applications -Roles from Application $STR_APP. -Permissions from Application $STR_APP. -Permissions from Role $STR_ROL in Application $STR_APP -There is another role with the same Code. -There is another application with the same Code. -There is another permission with the same Code. -User haven't rights to login this system. diff --git a/rbac/engine/content/messages.es b/rbac/engine/content/messages.es deleted file mode 100755 index 7cb4c12a7..000000000 --- a/rbac/engine/content/messages.es +++ /dev/null @@ -1,18 +0,0 @@ -El usuario "$USER" se encuentra inactivo -Clave de ingreso incorrecto para el usuario "$USER" -El usuario "$USER" no esta registrado en el sistema -El password nuevo y el de confirmacion deben ser iguales -Password antiguo incorrecto para el usuario "$USER" -Ud. no puede eliminar un usuario que tiene tramites -Ya existe un usuario con el mismo Identificador de usuario -Clave de inicio, cambiada correctamente -Clave de inicio, reiniciada correctamente -Nuevo Empleado creado satisfactoriamente -Aplicaciones -Roles de la Aplicación $STR_APP -Permisos de la Aplicación $STR_APP -Permisos del Rol $STR_APP en la Aplicación $STR_APP -Ya existe un Rol con el mismo código -Ya existe una Applicatión con el mismo código -Ya existe un Permiso con el mismo código -El usuario no tiene derechos para ejecutar esta aplicación diff --git a/rbac/engine/content/messages.po b/rbac/engine/content/messages.po deleted file mode 100755 index 35db689cd..000000000 --- a/rbac/engine/content/messages.po +++ /dev/null @@ -1,18 +0,0 @@ -El usuario "$USER" se encuentra inactivo -Clave de ingreso incorrecto para el usuario "$USER" -El usuario "$USER" no esta registrado en el sistema -El password nuevo y el de confirmacion deben ser iguales -Password antiguo incorrecto para el usuario "$USER" -Ud. no puede eliminar un usuario que tiene tramites -Ya existe un usuario con el mismo Identificador de usuario -Clave de inicio, cambiada correctamente -Clave de inicio, reiniciada correctamente -Nuevo Usuario creado satisfactoriamente -Applicaciones -Roles de la Aplicacion $STR_APP -Permisos de la Aplicaciones $STR_APP -Permisos del Rol $STR_ROL en $STR_APP -Ya existe un Rol con el mismo Codigo -Ya existe una Aplicacion con el mismo Codigo -Ya existe un Permiso con el mismo Codigo -El usuario no tiene derechos para ejecutar esta aplicacion \ No newline at end of file diff --git a/rbac/engine/content/rbac/myApp.cnt b/rbac/engine/content/rbac/myApp.cnt deleted file mode 100755 index 6d88fd964..000000000 --- a/rbac/engine/content/rbac/myApp.cnt +++ /dev/null @@ -1,26 +0,0 @@ -%??.name=myApp.cnt basedir=content//files generic Mis trmites - -%es.title -Administracin de usuarios -%es.body.header -
    .
    -%es.body - -%es.body.footer -
    -%en.title -User Manager -%en.body.header -
    .
    -%en.body - -%en.body.footer -
    -%po.title -User Administrator -%en.body.header -
    .
    -%en.body - -%en.body.footer -
    diff --git a/rbac/engine/data/mssql/insert.sql b/rbac/engine/data/mssql/insert.sql deleted file mode 100755 index ad4968644..000000000 --- a/rbac/engine/data/mssql/insert.sql +++ /dev/null @@ -1,64 +0,0 @@ -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000001','PM_LOGIN','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000002','PM_SETUP','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000003','PM_USERS','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000004','PM_FACTORY','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000005','PM_CASES','2007-08-03 12:24:36','2007-08-03 12:24:36',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000006','PM_ALLCASES','2008-04-30 00:00:00','2008-04-30 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000008','PM_REPORTS','2008-05-12 00:00:00','2008-05-12 00:00:00',0,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000007','PM_REASSIGNCASE','2008-05-02 18:16:29','2008-05-02 18:16:29',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000009','PM_SUPERVISOR','0000-00-00 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000010','PM_SETUP_ADVANCE','0000-00-00 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000011','PM_DASHBOARD','2009-02-18 00:00:00','2009-02-18 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000012','PM_WEBDAV','2009-08-21 00:00:00','2009-08-21 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000013','PM_DELETECASE','2009-10-12 00:00:00','0000-00-00 00:00:00',0,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000014','PM_EDITPERSONALINFO','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000015','PM_FOLDERS_VIEW','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000016','PM_FOLDERS_ADD_FOLDER','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002'); -INSERT INTO RBAC_PERMISSIONS VALUES ('00000000000000000000000000000017','PM_FOLDERS_ADD_FILE','2009-10-12 00:00:00','0000-00-00 00:00:00',1,'00000000000000000000000000000002'); - -INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000001','','00000000000000000000000000000001','RBAC_ADMIN','2007-07-31 19:10:22','2007-08-03 12:24:36',1); -INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000002','','00000000000000000000000000000002','PROCESSMAKER_ADMIN','2007-07-31 19:10:22','2007-08-03 12:24:36',1); -INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000003','','00000000000000000000000000000002','PROCESSMAKER_OPERATOR','2007-07-31 19:10:22','2007-08-03 12:24:36',1); -INSERT INTO RBAC_ROLES VALUES ('00000000000000000000000000000004','','00000000000000000000000000000002','PROCESSMAKER_MANAGER', '2010-03-29 09:14:15', '2010-03-29 09:19:53', 1); - -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000001'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000002'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000003'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000004'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000005'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000006'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000007'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000008'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000009'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000010'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000011'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000012'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000013'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000014'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000015'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000016'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000002','00000000000000000000000000000017'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000003','00000000000000000000000000000001'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000003','00000000000000000000000000000005'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000001'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000003'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000005'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000006'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000007'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000008'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000009'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000011'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000013'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000014'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000015'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000016'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000017'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000018'); -INSERT INTO RBAC_ROLES_PERMISSIONS VALUES ('00000000000000000000000000000004', '00000000000000000000000000000019'); - -INSERT INTO RBAC_SYSTEMS VALUES ('00000000000000000000000000000001','RBAC','2007-07-31 19:10:22','2007-08-03 12:24:36',1); -INSERT INTO RBAC_SYSTEMS VALUES ('00000000000000000000000000000002','PROCESSMAKER','2007-07-31 19:10:22','2007-08-03 12:24:36',1); - -INSERT INTO RBAC_USERS VALUES ('00000000000000000000000000000001','admin','21232f297a57a5a743894a0e4a801fc3','Administrator','','admin@processmaker.com','2020-01-01','2007-08-03 12:24:36','2008-02-13 07:24:07',1,'MYSQL','00000000000000000000000000000000','','','',''); - -INSERT INTO RBAC_USERS_ROLES VALUES ('00000000000000000000000000000001','00000000000000000000000000000002'); diff --git a/rbac/engine/data/mssql/schema.sql b/rbac/engine/data/mssql/schema.sql deleted file mode 100755 index 918be57b2..000000000 --- a/rbac/engine/data/mssql/schema.sql +++ /dev/null @@ -1,361 +0,0 @@ - -/* ---------------------------------------------------------------------- */ -/* PERMISSIONS */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_PERMISSIONS') -BEGIN - DECLARE @reftable_1 nvarchar(60), @constraintname_1 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_PERMISSIONS' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_1, @constraintname_1 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_1+' drop constraint '+@constraintname_1) - FETCH NEXT from refcursor into @reftable_1, @constraintname_1 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_PERMISSIONS] -END - - -CREATE TABLE [RBAC_PERMISSIONS] -( - [PER_UID] VARCHAR(32) default '' NOT NULL, - [PER_CODE] VARCHAR(64) default '' NOT NULL, - [PER_CREATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [PER_UPDATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [PER_STATUS] INT default 1 NOT NULL, - [PER_SYSTEM] VARCHAR(32) default '00000000000000000000000000000002' NOT NULL, - CONSTRAINT RBAC_PERMISSIONS_PK PRIMARY KEY ([PER_UID]) -); - -/* ---------------------------------------------------------------------- */ -/* ROLES */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_ROLES') -BEGIN - DECLARE @reftable_2 nvarchar(60), @constraintname_2 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'ROLES' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_2, @constraintname_2 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_2+' drop constraint '+@constraintname_2) - FETCH NEXT from refcursor into @reftable_2, @constraintname_2 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_ROLES] -END - - -CREATE TABLE [RBAC_ROLES] -( - [ROL_UID] VARCHAR(32) default '' NOT NULL, - [ROL_PARENT] VARCHAR(32) default '' NOT NULL, - [ROL_SYSTEM] VARCHAR(32) default '' NOT NULL, - [ROL_CODE] VARCHAR(32) default '' NOT NULL, - [ROL_CREATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [ROL_UPDATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [ROL_STATUS] INT default 1 NOT NULL, - CONSTRAINT RBAC_ROLES_PK PRIMARY KEY ([ROL_UID]) -); - -/* ---------------------------------------------------------------------- */ -/* ROLES_PERMISSIONS */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_ROLES_PERMISSIONS') -BEGIN - DECLARE @reftable_3 nvarchar(60), @constraintname_3 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_ROLES_PERMISSIONS' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_3, @constraintname_3 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_3+' drop constraint '+@constraintname_3) - FETCH NEXT from refcursor into @reftable_3, @constraintname_3 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_ROLES_PERMISSIONS] -END - - -CREATE TABLE [RBAC_ROLES_PERMISSIONS] -( - [ROL_UID] VARCHAR(32) default '' NOT NULL, - [PER_UID] VARCHAR(32) default '' NOT NULL, - CONSTRAINT RBAC_ROLES_PERMISSIONS_PK PRIMARY KEY ([ROL_UID],[PER_UID]) -); - -/* ---------------------------------------------------------------------- */ -/* SYSTEMS */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_SYSTEMS') -BEGIN - DECLARE @reftable_4 nvarchar(60), @constraintname_4 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_SYSTEMS' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_4, @constraintname_4 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_4+' drop constraint '+@constraintname_4) - FETCH NEXT from refcursor into @reftable_4, @constraintname_4 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_SYSTEMS] -END - - -CREATE TABLE [RBAC_SYSTEMS] -( - [SYS_UID] VARCHAR(32) default '' NOT NULL, - [SYS_CODE] VARCHAR(32) default '' NOT NULL, - [SYS_CREATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [SYS_UPDATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [SYS_STATUS] INT default 0 NOT NULL, - CONSTRAINT RBAC_SYSTEMS_PK PRIMARY KEY ([SYS_UID]) -); - -/* ---------------------------------------------------------------------- */ -/* RBAC_USERS */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_USERS') -BEGIN - DECLARE @reftable_5 nvarchar(60), @constraintname_5 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_USERS' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_5, @constraintname_5 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_5+' drop constraint '+@constraintname_5) - FETCH NEXT from refcursor into @reftable_5, @constraintname_5 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_USERS] -END - - -CREATE TABLE [RBAC_USERS] -( - [USR_UID] VARCHAR(32) default '' NOT NULL, - [USR_USERNAME] VARCHAR(100) default '' NOT NULL, - [USR_PASSWORD] VARCHAR(32) default '' NOT NULL, - [USR_FIRSTNAME] VARCHAR(50) default '' NOT NULL, - [USR_LASTNAME] VARCHAR(50) default '' NOT NULL, - [USR_EMAIL] VARCHAR(100) default '' NOT NULL, - [USR_DUE_DATE] CHAR(19) default '0000-00-00' NOT NULL, - [USR_CREATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [USR_UPDATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [USR_STATUS] INT default 1 NOT NULL, - [USR_AUTH_TYPE] VARCHAR(32) default '' NOT NULL, - [UID_AUTH_SOURCE] VARCHAR(32) default '' NOT NULL, - [USR_AUTH_USER_DN] VARCHAR(MAX) NULL, - [USR_AUTH_SUPERVISOR_DN] VARCHAR(255) default '' NOT NULL, - CONSTRAINT RBAC_USERS_PK PRIMARY KEY ([USR_UID]) -); - -/* ---------------------------------------------------------------------- */ -/* USERS_ROLES */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_USERS_ROLES') -BEGIN - DECLARE @reftable_6 nvarchar(60), @constraintname_6 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_USERS_ROLES' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_6, @constraintname_6 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_6+' drop constraint '+@constraintname_6) - FETCH NEXT from refcursor into @reftable_6, @constraintname_6 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_USERS_ROLES] -END - - -CREATE TABLE [RBAC_USERS_ROLES] -( - [USR_UID] VARCHAR(32) default '' NOT NULL, - [ROL_UID] VARCHAR(32) default '' NOT NULL, - CONSTRAINT RBAC_USERS_ROLES_PK PRIMARY KEY ([USR_UID],[ROL_UID]) -); - -/* ---------------------------------------------------------------------- */ -/* AUTHENTICATION_SOURCE */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_AUTHENTICATION_SOURCE') -BEGIN - DECLARE @reftable_7 nvarchar(60), @constraintname_7 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_AUTHENTICATION_SOURCE' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_7, @constraintname_7 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_7+' drop constraint '+@constraintname_7) - FETCH NEXT from refcursor into @reftable_7, @constraintname_7 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_AUTHENTICATION_SOURCE] -END - - -CREATE TABLE [RBAC_AUTHENTICATION_SOURCE] -( - [AUTH_SOURCE_UID] VARCHAR(32) default '' NOT NULL, - [AUTH_SOURCE_NAME] VARCHAR(50) default '' NOT NULL, - [AUTH_SOURCE_PROVIDER] VARCHAR(20) default '' NOT NULL, - [AUTH_SOURCE_SERVER_NAME] VARCHAR(50) default '' NOT NULL, - [AUTH_SOURCE_PORT] INT default 389 NULL, - [AUTH_SOURCE_ENABLED_TLS] INT default 0 NULL, - [AUTH_SOURCE_VERSION] VARCHAR(16) default '3' NOT NULL, - [AUTH_SOURCE_BASE_DN] VARCHAR(128) default '' NOT NULL, - [AUTH_ANONYMOUS] INT default 0 NULL, - [AUTH_SOURCE_SEARCH_USER] VARCHAR(128) default '' NOT NULL, - [AUTH_SOURCE_PASSWORD] VARCHAR(32) default '' NOT NULL, - [AUTH_SOURCE_ATTRIBUTES] VARCHAR(255) default '' NOT NULL, - [AUTH_SOURCE_OBJECT_CLASSES] VARCHAR(255) default '' NOT NULL, - [AUTH_SOURCE_DATA] TEXT NULL, - CONSTRAINT RBAC_AUTHENTICATION_SOURCE_PK PRIMARY KEY ([AUTH_SOURCE_UID]) -); - - -/* ---------------------------------------------------------------------- */ -/* USERS */ -/* ---------------------------------------------------------------------- */ - - -IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'RBAC_USERS') -BEGIN - DECLARE @reftable_8 nvarchar(60), @constraintname_8 nvarchar(60) - DECLARE refcursor CURSOR FOR - select reftables.name tablename, cons.name constraintname - from sysobjects tables, - sysobjects reftables, - sysobjects cons, - sysreferences ref - where tables.id = ref.rkeyid - and cons.id = ref.constid - and reftables.id = ref.fkeyid - and tables.name = 'RBAC_USERS' - OPEN refcursor - FETCH NEXT from refcursor into @reftable_8, @constraintname_8 - while @@FETCH_STATUS = 0 - BEGIN - exec ('alter table '+@reftable_8+' drop constraint '+@constraintname_8) - FETCH NEXT from refcursor into @reftable_8, @constraintname_8 - END - CLOSE refcursor - DEALLOCATE refcursor - DROP TABLE [RBAC_USERS] -END - -CREATE TABLE [RBAC_USERS] -( - [USR_UID] VARCHAR(32) default '' NOT NULL, - [USR_USERNAME] VARCHAR(100) default '' NOT NULL, - [USR_PASSWORD] VARCHAR(32) default '' NOT NULL, - [USR_FIRSTNAME] VARCHAR(50) default '' NOT NULL, - [USR_LASTNAME] VARCHAR(50) default '' NOT NULL, - [USR_EMAIL] VARCHAR(100) default '' NOT NULL, - [USR_DUE_DATE] CHAR(19) default '0000-00-00' NOT NULL, - [USR_CREATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [USR_UPDATE_DATE] CHAR(19) default '0000-00-00 00:00:00' NOT NULL, - [USR_STATUS] INT default 1 NOT NULL, - - [USR_AUTH_TYPE] VARCHAR(32) NOT NULL DEFAULT ('MSSQL'), - [UID_AUTH_SOURCE] VARCHAR(32) NOT NULL DEFAULT ('00000000000000000000000000000000'), - [USR_AUTH_USER_DN] VARCHAR(255) NOT NULL, - [USR_AUTH_SUPERVISOR_DN] VARCHAR(255) NULL, - - [USR_REPLACED_BY] varchar(32) NULL, - [USR_REPORTS_TO] varchar(32) NULL, - - - CONSTRAINT RBAC_USERS_PK PRIMARY KEY ([USR_UID]) -); - - - diff --git a/rbac/engine/data/mssql/sqldb.map b/rbac/engine/data/mssql/sqldb.map deleted file mode 100755 index ffa6fdeac..000000000 --- a/rbac/engine/data/mssql/sqldb.map +++ /dev/null @@ -1,2 +0,0 @@ -# Sqlfile -> Database map -schema.sql=rbac diff --git a/rbac/engine/data/oracle/create-db.sql b/rbac/engine/data/oracle/create-db.sql deleted file mode 100755 index 174843acc..000000000 --- a/rbac/engine/data/oracle/create-db.sql +++ /dev/null @@ -1,4 +0,0 @@ --- foreach ($databaseName in $databaseNames) --- drop database $databaseName; --- create database $databaseName; --- end diff --git a/rbac/engine/data/oracle/schema.sql b/rbac/engine/data/oracle/schema.sql deleted file mode 100755 index 913713729..000000000 --- a/rbac/engine/data/oracle/schema.sql +++ /dev/null @@ -1,127 +0,0 @@ - - -/* ----------------------------------------------------------------------- - PERMISSIONS - ----------------------------------------------------------------------- */ - -DROP TABLE "RBAC_PERMISSIONS" CASCADE CONSTRAINTS; - - -CREATE TABLE "RBAC_PERMISSIONS" -( - "PER_UID" VARCHAR2(32) default '' NOT NULL, - "PER_CODE" VARCHAR2(64) default '' NOT NULL, - "PER_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "PER_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "PER_STATUS" NUMBER default 1 NOT NULL -); - - ALTER TABLE "RBAC_PERMISSIONS" - ADD CONSTRAINT "PERMISSIONS_PK" - PRIMARY KEY ("PER_UID"); - - -/* ----------------------------------------------------------------------- - ROLES - ----------------------------------------------------------------------- */ - -DROP TABLE "RBAC_ROLES" CASCADE CONSTRAINTS; - - -CREATE TABLE "RBAC_ROLES" -( - "ROL_UID" VARCHAR2(32) default '' NOT NULL, - "ROL_PARENT" VARCHAR2(32) default '' NOT NULL, - "ROL_SYSTEM" VARCHAR2(32) default '' NOT NULL, - "ROL_CODE" VARCHAR2(32) default '' NOT NULL, - "ROL_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "ROL_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "ROL_STATUS" NUMBER default 1 NOT NULL -); - - ALTER TABLE "RBAC_ROLES" - ADD CONSTRAINT "ROLES_PK" - PRIMARY KEY ("ROL_UID"); - - -/* ----------------------------------------------------------------------- - ROLES_PERMISSIONS - ----------------------------------------------------------------------- */ - -DROP TABLE "RBAC_ROLES_PERMISSIONS" CASCADE CONSTRAINTS; - - -CREATE TABLE "RBAC_ROLES_PERMISSIONS" -( - "ROL_UID" VARCHAR2(32) default '' NOT NULL, - "PER_UID" VARCHAR2(32) default '' NOT NULL -); - - ALTER TABLE "RBAC_ROLES_PERMISSIONS" - ADD CONSTRAINT "RBAC_ROLES_PERMISSIONS_PK" - PRIMARY KEY ("ROL_UID","PER_UID"); - - -/* ----------------------------------------------------------------------- - SYSTEMS - ----------------------------------------------------------------------- */ - -DROP TABLE "RBAC_SYSTEMS" CASCADE CONSTRAINTS; - - -CREATE TABLE "RBAC_SYSTEMS" -( - "SYS_UID" VARCHAR2(32) default '' NOT NULL, - "SYS_CODE" VARCHAR2(32) default '' NOT NULL, - "SYS_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "SYS_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "SYS_STATUS" NUMBER default 0 NOT NULL -); - - ALTER TABLE "RBAC_SYSTEMS" - ADD CONSTRAINT "SYSTEMS_PK" - PRIMARY KEY ("SYS_UID"); - - -/* ----------------------------------------------------------------------- - USERS - ----------------------------------------------------------------------- */ - -DROP TABLE "RBAC_USERS" CASCADE CONSTRAINTS; - - -CREATE TABLE "RBAC_USERS" -( - "USR_UID" VARCHAR2(32) default '' NOT NULL, - "USR_USERNAME" VARCHAR2(100) default '' NOT NULL, - "USR_PASSWORD" VARCHAR2(32) default '' NOT NULL, - "USR_FIRSTNAME" VARCHAR2(50) default '' NOT NULL, - "USR_LASTNAME" VARCHAR2(50) default '' NOT NULL, - "USR_EMAIL" VARCHAR2(100) default '' NOT NULL, - "USR_DUE_DATE" DATE default '0000-00-00' NOT NULL, - "USR_CREATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "USR_UPDATE_DATE" DATE default '0000-00-00 00:00:00' NOT NULL, - "USR_STATUS" NUMBER default 1 NOT NULL -); - - ALTER TABLE "RBAC_USERS" - ADD CONSTRAINT "USERS_PK" - PRIMARY KEY ("USR_UID"); - - -/* ----------------------------------------------------------------------- - USERS_ROLES - ----------------------------------------------------------------------- */ - -DROP TABLE "RBAC_USERS_ROLES" CASCADE CONSTRAINTS; - - -CREATE TABLE "RBAC_USERS_ROLES" -( - "USR_UID" VARCHAR2(32) default '' NOT NULL, - "ROL_UID" VARCHAR2(32) default '' NOT NULL -); - - ALTER TABLE "RBAC_USERS_ROLES" - ADD CONSTRAINT "USERS_ROLES_PK" - PRIMARY KEY ("USR_UID","ROL_UID"); diff --git a/rbac/engine/data/oracle/sqldb.map b/rbac/engine/data/oracle/sqldb.map deleted file mode 100755 index ffa6fdeac..000000000 --- a/rbac/engine/data/oracle/sqldb.map +++ /dev/null @@ -1,2 +0,0 @@ -# Sqlfile -> Database map -schema.sql=rbac diff --git a/rbac/engine/data/pgsql/create-db.sql b/rbac/engine/data/pgsql/create-db.sql deleted file mode 100755 index 30b989c39..000000000 --- a/rbac/engine/data/pgsql/create-db.sql +++ /dev/null @@ -1,2 +0,0 @@ -drop database rbac; -create database rbac; diff --git a/rbac/engine/data/pgsql/sqldb.map b/rbac/engine/data/pgsql/sqldb.map deleted file mode 100755 index ffa6fdeac..000000000 --- a/rbac/engine/data/pgsql/sqldb.map +++ /dev/null @@ -1,2 +0,0 @@ -# Sqlfile -> Database map -schema.sql=rbac diff --git a/rbac/engine/db/dbmodule_processmaker.php b/rbac/engine/db/dbmodule_processmaker.php deleted file mode 100755 index 0ba587a02..000000000 --- a/rbac/engine/db/dbmodule_processmaker.php +++ /dev/null @@ -1,29 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - $DB_INDEX++; - $DB_MODULE[$DB_INDEX]['name'] = 'ProcessMaker'; - $DB_MODULE[$DB_INDEX]['type'] = 'multiple'; - $DB_MODULE[$DB_INDEX]['path'] = '/shared/workflow_data/sites/'; -?> \ No newline at end of file diff --git a/rbac/engine/includes/inc.application.php b/rbac/engine/includes/inc.application.php deleted file mode 100755 index fec753d80..000000000 --- a/rbac/engine/includes/inc.application.php +++ /dev/null @@ -1,118 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -class App -{ - function ForceLogin() - { - global $HTTP_SESSION_VARS; - global $G_MAIN_MENU; - global $G_SUB_MENU; - if( $HTTP_SESSION_VARS['LOGGED_IN'] == false) - { - header( "location: /sys/" . SYS_LANG . "/" . SYS_SKIN . "/login/login.html" ); - die(); - } - else - { - $cmptype = $HTTP_SESSION_VARS['USER_TYPE']; - switch( $cmptype ) - { - case 'BUYER': - $G_MAIN_MENU = "buyer"; - $G_SUB_MENU = ""; - break; - case 'PROVIDER': - $G_MAIN_MENU = "provider"; - $G_SUB_MENU = ""; - break; - case 'REINSURANCE': - $G_MAIN_MENU = "reinsurance"; - $G_SUB_MENU = ""; - break; - case 'ADMIN': - $G_MAIN_MENU = "admin"; - $G_SUB_MENU = ""; - break; - case '': - header( "location: /sys/" . SYS_LANG . "/" . SYS_SKIN . "/login/login.html" ); - die(); - break; - default: - $G_MAIN_MENU = "default"; - $G_SUB_MENU = ""; - break; - } - } - } - - function GetPartnerStatus() - { - global $HTTP_SESSION_VARS; - $slipid = $HTTP_SESSION_VARS['CURRENT_SLIP']; - $partnerid = $HTTP_SESSION_VARS['CURRENT_PARTNER']; - - $mdbc = new DBConnection(); - G::LoadClass( "slip" ); - $slip = new Slip; - $slip->SetTo( $mdbc ); - $slip->Load( $slipid ); - $partner = $slip->GetPartner( $partnerid ); - - $res = $partner->Fields['SLP_PARTNER_STATUS']; - unset( $partner ); - unset( $slip ); - unset( $mdbc ); - return $res; - } - - function SetPartnerStatus( $intStatus = 0 ) - { - global $HTTP_SESSION_VARS; - $slipid = $HTTP_SESSION_VARS['CURRENT_SLIP']; - $partnerid = $HTTP_SESSION_VARS['CURRENT_PARTNER']; - - $mdbc = new DBConnection(); - G::LoadClass( "slip" ); - $slip = new Slip; - $slip->SetTo( $mdbc ); - $slip->Load( $slipid ); - $partner = $slip->GetPartner( $partnerid ); - - $partner->Fields = NULL; - $partner->Fields['UID_SLIP'] = $slipid; - $partner->Fields['UID_REINSURANCE'] = $partnerid; - $partner->Fields['SLP_PARTNER_STATUS'] = $intStatus; - $partner->Fields['SLP_PARTNER_UPDATED'] = G::CurDate(); - $partner->Save(); - - unset( $partner ); - unset( $slip ); - unset( $mdbc ); - } - -} - -?> \ No newline at end of file diff --git a/rbac/engine/includes/inc.dynaForms.php b/rbac/engine/includes/inc.dynaForms.php deleted file mode 100755 index 19a0f86eb..000000000 --- a/rbac/engine/includes/inc.dynaForms.php +++ /dev/null @@ -1,224 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -class Node { - var $name = ""; - var $attribute = NULL; - var $value = NULL; - var $children = NULL; -} - -$header = ""; -$tree = NULL; - -function read_config_file(){ - global $home; - $directory = PATH_DYNAFORM; - $car = substr ($directory, strlen ($directory)-1, 1); - if ($car=='/' ) $directory = substr( $directory, 0, strlen($directory)- 1 ); - $home = $directory; - - global $showlang; - $showlang = "es,en"; -} - -function parseNodo1 ( $token ) { - //parse de en un nuevo nodo. - $nodo = new Node; - $nodo->children = NULL; - $tok = ""; $n = 0; - for ($i=0; $i - while ($bufIndex <= $size && $car !='>') { - $token .= $car; - $car = $buffer [$bufIndex++]; - } - if ($token[0] == "?") { - $header = $token; - return; - } - $nodo = parseNodo1 ($token); - - //SEGUNDO BUCLE buscar VALUE - $car = $buffer [$bufIndex++]; $token = ""; - while ($bufIndex <= $size && $car !='<') { - $token .= $car; - $car = $buffer [$bufIndex++]; - } - $nodo->value = trim($token); - - - //TERCER BUCLE buscar - $res = 0; - while ($res == 0) { - if ($car != "<") while ( ($car = trim( $buffer [$bufIndex++] )) == ""); - if ($car=="<") { - $res = 0; - $car = $buffer [$bufIndex++]; - //ADDCHILD nodo recien creado - if ($car != "/") { - $bufIndex --; - $n = count($nodo->children); - $nodo->children[$n] = getTag (); - } else $res = 1; - } - else die ("se esperaba '<' y se encontro $car"); - } - - //se supone que se ha leido "') { - $token .= $car; - $car = $buffer [$bufIndex++]; - } - if ( strcmp ($nodo->name, trim($token)) != 0) die ("no corresponde fin de tag </$token> con <" . $nodo->name. ">"); - - return $nodo; -} - -function parseFile ($filename) { - global $tree; - global $buffer; - global $bufIndex; - global $size; - - if (strlen($filename) <= 0) die ("invalid filename"); - - if ( ! file_exists ( $filename) ) die ("This file $filename does not exist"); - if ( ! is_file ( $filename) ) die ("$filename is not a file"); - - $size = filesize ($filename); - $fp = fopen ($filename, "rb"); - $i = 0; - - $aux = fread($fp, $size); - $buffer = ""; - for ($i = 0; $i < $size; $i++) { - if (!($aux[$i] == "\n" || $aux[$i] == "\r" || $aux[$i] == "\t")) $buffer .= $aux[$i]; - } - fclose ($fp); - $bufIndex = 0; - - $size = strlen ($buffer); - - while ( $bufIndex <= $size ) { - $car = $buffer [$bufIndex++]; - if ($car == '<' ) - $tree = getTag(); - } -} - - - -function saveXml(){ - global $tree; - global $header; - global $filename; - global $HTTP_POST_VARS; - global $curDir; - global $onlyName; - - //crear el archivo Xml -// print "$filename
    "; - - $fp = fopen ($filename, "w+"); - fputs ($fp,"<$header>\n"); - - $aux = explode ( '/', $filename); - $onlyName = $aux[count($aux)-1]; - $curDir = $HTTP_POST_VARS['curDir']; - - fputs ($fp,"$tree->value\n"); - - for ($i = 0; $i < count($tree->children); $i++) { - $nodo = $tree->children[$i]; - - fputs ($fp,"<$nodo->name "); - if ( is_array ($nodo->attribute) ) - foreach ( $nodo->attribute as $attr=>$attrValue ) - fputs ($fp,"$attr=\"$attrValue\" "); - fputs ($fp,">\n"); - - //si es un dropdown-SQL la sentencia select va como valor del nodo - if (strlen ($nodo->value) > 0) { - fputs ($fp,"$nodo->value\n"); - } - - for ($j = 0; $j < count($nodo->children); $j++) { - $lang = $nodo->children[$j]; - fputs ($fp, " <$lang->name>$lang->value"); - - //si tiene etiquetas del tipo option - if (is_array($lang->children)) { - fputs ($fp, "\n"); - for ($k = 0; $k < count($lang->children); $k++) { - $option = $lang->children[$k]; - fputs ($fp, "\n"); - } - } //if tiene etiquetas del tipo opcion. - fputs ($fp, "name>\n"); - - } //for j - fputs ($fp,"name>\n"); - - } //for i - fputs ($fp,"\n"); - fclose ($fp); -} - -?> diff --git a/rbac/engine/menus/backApp.php b/rbac/engine/menus/backApp.php deleted file mode 100755 index b5ba507a4..000000000 --- a/rbac/engine/menus/backApp.php +++ /dev/null @@ -1,42 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $G_BACK_PAGE; - -$G_TMP_MENU->AddRawOption( $G_BACK_PAGE); - -switch ( SYS_LANG ) { - case "es" : - $G_TMP_MENU->Labels = Array ( - "Retornar al trámite" - ); - break; - default : - $G_TMP_MENU->Labels = Array ( - "Back to Application" - ); -} -?> diff --git a/rbac/engine/menus/cancel.php b/rbac/engine/menus/cancel.php deleted file mode 100755 index 23fccebec..000000000 --- a/rbac/engine/menus/cancel.php +++ /dev/null @@ -1,47 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $G_BACK_PAGE; - -$G_TMP_MENU->AddRawOption( $G_BACK_PAGE); - -switch ( SYS_LANG ) { - case "es" : - $G_TMP_MENU->Labels = Array ( - "Cancelar" - ); - break; - case "po" : - $G_TMP_MENU->Labels = Array ( - "Cancelar" - ); - break; - default : - $G_TMP_MENU->Labels = Array ( - "Cancel" - ); -} -?> diff --git a/rbac/engine/menus/rbac.appEdit.php b/rbac/engine/menus/rbac.appEdit.php deleted file mode 100755 index 65c314f8a..000000000 --- a/rbac/engine/menus/rbac.appEdit.php +++ /dev/null @@ -1,64 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $HTTP_SESSION_VARS; -$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION']; - -$G_TMP_MENU->AddIdRawOption( "OP1", "rbac/appList.html" ); -$G_TMP_MENU->AddIdRawOption( "OP2", "rbac/appDel.html" ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "Cancelar", - "Eliminar Applicación" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "Cancelar", - "Eliminar Application" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "Cancel", - "Remove Application" - ); - break; -} - -//si no hay nada relacionado a esta aplicación se puede BORRAR!! -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -//G::LoadClassRBAC ("applications"); -$obj = New RBAC_Application; -$obj->SetTo ($dbc); -$sw = $obj->canRemoveApplication ($appid); -if ($sw > 0) - $G_TMP_MENU->disableOptionId ("OP2"); - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.appView.php b/rbac/engine/menus/rbac.appView.php deleted file mode 100755 index 0beb33598..000000000 --- a/rbac/engine/menus/rbac.appView.php +++ /dev/null @@ -1,57 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $HTTP_SESSION_VARS; - -$G_TMP_MENU->AddIdRawOption( "OP1", "rbac/roleList.html" ); -$G_TMP_MENU->AddIdRawOption( "OP2", "rbac/permList.html" ); -$G_TMP_MENU->AddIdRawOption( "OP3", "rbac/appList.html" ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "Ver Roles", - "Ver Permisos", - "Lista de Aplicaciones" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "Ver Roles", - "Ver Permisos", - "Lista de Aplicaciones" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "View Roles", - "View Permissions", - "Applications List" - ); - break; -} -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.application.php b/rbac/engine/menus/rbac.application.php deleted file mode 100755 index a2d9100c9..000000000 --- a/rbac/engine/menus/rbac.application.php +++ /dev/null @@ -1,34 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $canCreateApp; - -$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_NEW_APPLICATION'), "rbac/appNew.html" ); - -if ( $canCreateApp != 1 ) - $G_TMP_MENU->DisableOptionPos (0); - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.authSource.php b/rbac/engine/menus/rbac.authSource.php deleted file mode 100755 index e69b85a68..000000000 --- a/rbac/engine/menus/rbac.authSource.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $canCreateApp; - -$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_EDIT'), "rbac/authEdit.html" ); -$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_TEST'), "rbac/authTest.html" ); -$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_ADD_USERS'), "rbac/authAddUser.html" ); - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.authentication.php b/rbac/engine/menus/rbac.authentication.php deleted file mode 100755 index 13624a6cb..000000000 --- a/rbac/engine/menus/rbac.authentication.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $canCreateApp; - -$G_TMP_MENU->AddOption( G::LoadMenuXml ('ID_NEW_AUTH_SOURCE'), "rbac/authNew.html" ); - -if ( $canCreateApp != 1 ) - $G_TMP_MENU->DisableOptionPos (0); -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.login.php b/rbac/engine/menus/rbac.login.php deleted file mode 100755 index 7c27aad20..000000000 --- a/rbac/engine/menus/rbac.login.php +++ /dev/null @@ -1,54 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; - -$G_TMP_MENU->AddRawOption( "login/login.html" ); -$G_TMP_MENU->AddRawOption( "login/dbInfo.html" ); - - -switch( SYS_LANG ) -{ -case 'po': - $G_TMP_MENU->Labels = array( - "login", - "about" - ); - break; -case 'es': - $G_TMP_MENU->Labels = array( - "Iniciar Sesión", - "acerca de" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "login", - "about" - ); - break; -} - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.permission.php b/rbac/engine/menus/rbac.permission.php deleted file mode 100755 index 2894cc0ce..000000000 --- a/rbac/engine/menus/rbac.permission.php +++ /dev/null @@ -1,48 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; - -$G_TMP_MENU->AddRawOption( "rbac/permNew.html" ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "Añadir Nuevo Permiso" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "Inserir Novo Permisio" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "Add New Permission" - ); - break; -} -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.php b/rbac/engine/menus/rbac.php deleted file mode 100755 index d2102f273..000000000 --- a/rbac/engine/menus/rbac.php +++ /dev/null @@ -1,66 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; - -$G_TMP_MENU->AddRawOption( "rbac/userList.html" ); -$G_TMP_MENU->AddRawOption( "rbac/appList.html" ); -$G_TMP_MENU->AddRawOption( "rbac/authenticationList.html" ); -$G_TMP_MENU->AddRawOption( "rbac/dbInfo.html" ); -$G_TMP_MENU->AddRawOption( "login/login.html" ); - - -switch( SYS_LANG ) -{ -case 'po': - $G_TMP_MENU->Labels = array( - "Usuarios", - "Applicaciones", - "Authentication Sources", - "Info Database", - "Saír do Sistema" - ); - break; -case 'es': - $G_TMP_MENU->Labels = array( - "Usuarios", - "Applicaciones", - "Fuentes de Autenticación", - "Información de BD", - "Salir del Sistema" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "Users", - "Applications", - "Authentication Sources", - "DB Info", - "Logout" - ); - break; -} - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.role.php b/rbac/engine/menus/rbac.role.php deleted file mode 100755 index 396d12ce1..000000000 --- a/rbac/engine/menus/rbac.role.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; - -$G_TMP_MENU->AddIdRawOption( "OP1", "rbac/roleNew.html" ); -$G_TMP_MENU->AddIdRawOption( "OP2", "rbac/roleList.html" ); -$G_TMP_MENU->AddIdRawOption( "OP3", "rbac/permList.html" ); -$G_TMP_MENU->AddIdRawOption( "OP4", "rbac/appList.html" ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "Añadir Nuevo Rol", - "Ver Roles", - "Ver Permisos", - "Lista de Aplicaciones" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "Inserir Novo Rol", - "Ver Roles", - "Ver Permisos", - "Lista de Aplicaciones" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "Add New Role", - "View Roles", - "View Permissions", - "Applications List" - ); - break; -} - -global $canCreateRole; -if ($canCreateRole != 1) - $G_TMP_MENU->DisableOptionID ("OP1"); - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.user.php b/rbac/engine/menus/rbac.user.php deleted file mode 100755 index 4df7f0501..000000000 --- a/rbac/engine/menus/rbac.user.php +++ /dev/null @@ -1,52 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; -global $canCreateUsers; - -$G_TMP_MENU->AddRawOption( "rbac/userNew.html" ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "Añadir Nuevo Usuario" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "Inserir Novo Usuario" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "Add New User" - ); - break; -} - -if ($canCreateUsers != 1 ) - $G_TMP_MENU->DisableOptionPos(0); -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.userEdit.php b/rbac/engine/menus/rbac.userEdit.php deleted file mode 100755 index 350d0f02d..000000000 --- a/rbac/engine/menus/rbac.userEdit.php +++ /dev/null @@ -1,69 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; - -$G_TMP_MENU->AddIdRawOption("OP2b", "rbac/userChangeLdap.html" ); -$G_TMP_MENU->AddIdRawOption("OP2c", "rbac/userTestLdap.html" ); -$G_TMP_MENU->AddIdRawOption("OP4", "Javascript:go();", 'absolute' ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "LDAP/AD", - 'Test Login', - "Asignar Roles" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "LDAP/AD", - 'Test Login', - "Asignar Roles" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "LDAP/AD", - 'Test Login', - "Assign Role" - ); - break; -} - -global $access; -global $useLdap; - -if ($access != 1) { - $G_TMP_MENU->DisableOptionId ("OP4"); -} - -if ( ! $useLdap ) { - $G_TMP_MENU->DisableOptionId ("OP2b"); - $G_TMP_MENU->DisableOptionId ("OP2c"); -} - -?> \ No newline at end of file diff --git a/rbac/engine/menus/rbac.userView.php b/rbac/engine/menus/rbac.userView.php deleted file mode 100755 index 7953cb89e..000000000 --- a/rbac/engine/menus/rbac.userView.php +++ /dev/null @@ -1,85 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_MENU; - -$G_TMP_MENU->AddIdRawOption("OP1", "rbac/userEdit.html" ); -$G_TMP_MENU->AddIdRawOption("OP2", "rbac/userChangePwd.html" ); -$G_TMP_MENU->AddIdRawOption("OP2b", "rbac/userChangeLdap.html" ); -$G_TMP_MENU->AddIdRawOption("OP2c", "rbac/userTestLdap.html" ); -$G_TMP_MENU->AddIdRawOption("OP3", "rbac/userViewRole.html" ); -$G_TMP_MENU->AddIdRawOption("OP4", "rbac/userAssignRole.html" ); - -switch( SYS_LANG ) -{ -case 'es': - $G_TMP_MENU->Labels = array( - "Editar Usuario", - "Reiniciar Password", - "LDAP/AD", - 'Test Login', - "Ver Roles", - "Asignar Roles" - ); - break; -case 'po': - $G_TMP_MENU->Labels = array( - "Editar Usuario", - "Reiniciar Password", - "LDAP/AD", - 'Test Login', - "Ver Roles", - "Asignar Roles" - ); - break; -default: - $G_TMP_MENU->Labels = array( - "Edit User", - "Reset Password", - "LDAP/AD", - 'Test Login', - "View Roles", - "Assign Role" - ); - break; -} - -global $access; -global $useLdap; - -if ($access != 1) { - $G_TMP_MENU->DisableOptionId ("OP1"); - $G_TMP_MENU->DisableOptionId ("OP2"); - $G_TMP_MENU->DisableOptionId ("OP4"); -} - -if ( $useLdap ) - $G_TMP_MENU->DisableOptionId ("OP2"); -else { - $G_TMP_MENU->DisableOptionId ("OP2b"); - $G_TMP_MENU->DisableOptionId ("OP2c"); -} - -?> \ No newline at end of file diff --git a/rbac/engine/methods/controls/buscador2.php b/rbac/engine/methods/controls/buscador2.php deleted file mode 100755 index 9466b8641..000000000 --- a/rbac/engine/methods/controls/buscador2.php +++ /dev/null @@ -1,38 +0,0 @@ -demo de buscador
    -/** - * buscador2.php - * - * ProcessMaker Open Source Edition - * Copyright (C) 2004 - 2008 Colosa Inc.23 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -Execute ( $sql ); -?> - - - diff --git a/rbac/engine/methods/controls/calendar.js b/rbac/engine/methods/controls/calendar.js deleted file mode 100755 index 699b00378..000000000 --- a/rbac/engine/methods/controls/calendar.js +++ /dev/null @@ -1,162 +0,0 @@ -// Title: Tigra Calendar -// URL: http://www.softcomplex.com/products/tigra_calendar/ -// Version: 3.2 (European date format) -// Date: 10/14/2002 (mm/dd/yyyy) -// Feedback: feedback@softcomplex.com (specify product title in the subject) -// Note: Permission given to use this script in ANY kind of applications if -// header lines are left unchanged. -// Note: Script consists of two files: calendar?.js and calendar.html -// About us: Our company provides offshore IT consulting services. -// Contact us at sales@softcomplex.com if you have any programming task you -// want to be handled by professionals. Our typical hourly rate is $20. - -// if two digit year input dates after this year considered 20 century. -var NUM_CENTYEAR = 30; -// is time input control required by default -var BUL_TIMECOMPONENT = false; -// are year scrolling buttons required by default -var BUL_YEARSCROLL = true; - -var calendars = []; -var RE_NUM = /^\-?\d+$/; - -function calendar1(obj_target) { - - // assing methods - this.gen_date = cal_gen_date1; - this.gen_time = cal_gen_time1; - this.gen_tsmp = cal_gen_tsmp1; - this.prs_date = cal_prs_date1; - this.prs_time = cal_prs_time1; - this.prs_tsmp = cal_prs_tsmp1; - this.popup = cal_popup1; - this.fecha = "0"; - - // validate input parameters - if (!obj_target) - return cal_error("Error calling the calendar: no target control specified"); - if (obj_target.value == null) - return cal_error("Error calling the calendar: parameter specified is not valid tardet control"); - this.target = obj_target; - this.time_comp = BUL_TIMECOMPONENT; - this.year_scroll = BUL_YEARSCROLL; - - // register in global collections - this.id = calendars.length; - calendars[this.id] = this; -} - -function cal_popup1 (str_datetime) { - this.dt_current = this.prs_tsmp(str_datetime ? str_datetime : this.target.value); - if (!this.dt_current) return; - - var obj_calwindow = window.open( - 'calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id, - 'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+ - ',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes' - ); - obj_calwindow.opener = window; - obj_calwindow.focus(); - - - -} - -// timestamp generating function -function cal_gen_tsmp1 (dt_datetime) { - return(this.gen_date(dt_datetime) + ' ' + this.gen_time(dt_datetime)); -} - -// date generating function -function cal_gen_date1 (dt_datetime) { - return ( - (dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate() + "-" - + (dt_datetime.getMonth() < 9 ? '0' : '') + (dt_datetime.getMonth() + 1) + "-" - + dt_datetime.getFullYear() - ); -} -// time generating function -function cal_gen_time1 (dt_datetime) { - return ( - (dt_datetime.getHours() < 10 ? '0' : '') + dt_datetime.getHours() + ":" - + (dt_datetime.getMinutes() < 10 ? '0' : '') + (dt_datetime.getMinutes()) + ":" - + (dt_datetime.getSeconds() < 10 ? '0' : '') + (dt_datetime.getSeconds()) - ); -} - -// timestamp parsing function -function cal_prs_tsmp1 (str_datetime) { - // if no parameter specified return current timestamp - if (!str_datetime) - return (new Date()); - - // if positive integer treat as milliseconds from epoch - if (RE_NUM.exec(str_datetime)) - return new Date(str_datetime); - - // else treat as date in string format - var arr_datetime = str_datetime.split(' '); - return this.prs_time(arr_datetime[1], this.prs_date(arr_datetime[0])); -} - -// date parsing function -function cal_prs_date1 (str_date) { - - var arr_date = str_date.split('-'); - - if (arr_date.length != 3) return cal_error ("Invalid date format: '" + str_date + "'.\nFormat accepted is dd-mm-yyyy."); - if (!arr_date[0]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo day of month value can be found."); - if (!RE_NUM.exec(arr_date[0])) return cal_error ("Invalid day of month value: '" + arr_date[0] + "'.\nAllowed values are unsigned integers."); - if (!arr_date[1]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo month value can be found."); - if (!RE_NUM.exec(arr_date[1])) return cal_error ("Invalid month value: '" + arr_date[1] + "'.\nAllowed values are unsigned integers."); - if (!arr_date[2]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo year value can be found."); - if (!RE_NUM.exec(arr_date[2])) return cal_error ("Invalid year value: '" + arr_date[2] + "'.\nAllowed values are unsigned integers."); - - var dt_date = new Date(); - dt_date.setDate(1); - - if (arr_date[1] < 1 || arr_date[1] > 12) return cal_error ("Invalid month value: '" + arr_date[1] + "'.\nAllowed range is 01-12."); - dt_date.setMonth(arr_date[1]-1); - - if (arr_date[2] < 100) arr_date[2] = Number(arr_date[2]) + (arr_date[2] < NUM_CENTYEAR ? 2000 : 1900); - dt_date.setFullYear(arr_date[2]); - - var dt_numdays = new Date(arr_date[2], arr_date[1], 0); - dt_date.setDate(arr_date[0]); - if (dt_date.getMonth() != (arr_date[1]-1)) return cal_error ("Invalid day of month value: '" + arr_date[0] + "'.\nAllowed range is 01-"+dt_numdays.getDate()+"."); - - return (dt_date) -} - -// time parsing function -function cal_prs_time1 (str_time, dt_date) { - - if (!dt_date) return null; - var arr_time = String(str_time ? str_time : '').split(':'); - - if (!arr_time[0]) dt_date.setHours(0); - else if (RE_NUM.exec(arr_time[0])) - if (arr_time[0] < 24) dt_date.setHours(arr_time[0]); - else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed range is 00-23."); - else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed values are unsigned integers."); - - if (!arr_time[1]) dt_date.setMinutes(0); - else if (RE_NUM.exec(arr_time[1])) - if (arr_time[1] < 60) dt_date.setMinutes(arr_time[1]); - else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed range is 00-59."); - else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed values are unsigned integers."); - - if (!arr_time[2]) dt_date.setSeconds(0); - else if (RE_NUM.exec(arr_time[2])) - if (arr_time[2] < 60) dt_date.setSeconds(arr_time[2]); - else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed range is 00-59."); - else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed values are unsigned integers."); - - dt_date.setMilliseconds(0); - return dt_date; -} - -function cal_error (str_message) { - alert (str_message); - return null; -} diff --git a/rbac/engine/methods/controls/calendar.php b/rbac/engine/methods/controls/calendar.php deleted file mode 100755 index a10e176db..000000000 --- a/rbac/engine/methods/controls/calendar.php +++ /dev/null @@ -1,183 +0,0 @@ - - - -Select Date, Please. - - - - - - -
    - - - - -
    - - - -
    - - - diff --git a/rbac/engine/methods/controls/img/cal.gif b/rbac/engine/methods/controls/img/cal.gif deleted file mode 100755 index 8526cf5d1..000000000 Binary files a/rbac/engine/methods/controls/img/cal.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/logo.gif b/rbac/engine/methods/controls/img/logo.gif deleted file mode 100755 index 6b5397dd3..000000000 Binary files a/rbac/engine/methods/controls/img/logo.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/next.gif b/rbac/engine/methods/controls/img/next.gif deleted file mode 100755 index bf0215277..000000000 Binary files a/rbac/engine/methods/controls/img/next.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/next_year.gif b/rbac/engine/methods/controls/img/next_year.gif deleted file mode 100755 index ac12ea130..000000000 Binary files a/rbac/engine/methods/controls/img/next_year.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/pixel.gif b/rbac/engine/methods/controls/img/pixel.gif deleted file mode 100755 index 46a2cf086..000000000 Binary files a/rbac/engine/methods/controls/img/pixel.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/prev.gif b/rbac/engine/methods/controls/img/prev.gif deleted file mode 100755 index 211e1faba..000000000 Binary files a/rbac/engine/methods/controls/img/prev.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/prev_year.gif b/rbac/engine/methods/controls/img/prev_year.gif deleted file mode 100755 index d8145d598..000000000 Binary files a/rbac/engine/methods/controls/img/prev_year.gif and /dev/null differ diff --git a/rbac/engine/methods/controls/img/tc.gif b/rbac/engine/methods/controls/img/tc.gif deleted file mode 100755 index 576e14879..000000000 Binary files a/rbac/engine/methods/controls/img/tc.gif and /dev/null differ diff --git a/rbac/engine/methods/login/dbInfo.php b/rbac/engine/methods/login/dbInfo.php deleted file mode 100755 index 060957ca9..000000000 --- a/rbac/engine/methods/login/dbInfo.php +++ /dev/null @@ -1,89 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -function lookup($target) -{ - global $ntarget; - $msg = $target . ' => '; - //if( eregi('[a-zA-Z]', $target) ) - if( preg_match('[a-zA-Z]', $target) ) //Made compatible to PHP 5.3 - $ntarget = gethostbyname($target); - else - $ntarget = gethostbyaddr($target); - $msg .= $ntarget; - return($msg); -} - - $G_MAIN_MENU = 'rbac.login'; - $G_MENU_SELECTED = 1; - - if (file_exists(PATH_METHODS . 'login/version-rbac.php')) - { - include('version-rbac.php'); - } - else { - define('RBAC_VERSION', 'Development Version'); - } - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $ses = new DBSession ($dbc); - $dset = $ses->execute ('SELECT VERSION() AS VERSION '); - $row = $dset->Read(); - - if (getenv('HTTP_CLIENT_IP')) { - $ip = getenv('HTTP_CLIENT_IP'); - } - elseif(getenv('HTTP_X_FORWARDED_FOR')) { - $ip = getenv('HTTP_X_FORWARDED_FOR'); - } else { - $ip = getenv('REMOTE_ADDR'); - } - - if ( file_exists ( '/etc/redhat-release' ) ) { - $fnewsize = filesize( '/etc/redhat-release' ); - $fp = fopen( '/etc/redhat-release' , 'r' ); - $redhat = fread( $fp, $fnewsize ); - fclose( $fp ); - } - - $Fields = $dbc->db->dsn; - $Fields['SYSTEM'] = $redhat; - $Fields['MYSQL'] = $row['VERSION']; - $Fields['PHP'] = phpversion(); - $Fields['FLUID'] = RBAC_VERSION; - $Fields['IP'] = lookup ($ip); - $Fields['ENVIRONMENT'] = SYS_SYS; - $Fields['SERVER_SOFTWARE'] = getenv('SERVER_SOFTWARE'); - $Fields['SERVER_NAME'] = getenv('SERVER_NAME'); - $Fields['SERVER_PROTOCOL'] = getenv('SERVER_PROTOCOL'); - $Fields['SERVER_PORT'] = getenv('SERVER_PORT'); - $Fields['REMOTE_HOST'] = getenv('REMOTE_HOST'); - $Fields['SERVER_ADDR'] = getenv('SERVER_ADDR'); - $Fields['HTTP_USER_AGENT'] = getenv('HTTP_USER_AGENT'); - $Fields['a'] = $dbc; - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo($dbc); - $G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/dbInfo', '', $Fields, 'appNew2'); - G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/login/enumerate.php b/rbac/engine/methods/login/enumerate.php deleted file mode 100755 index b27e02298..000000000 --- a/rbac/engine/methods/login/enumerate.php +++ /dev/null @@ -1,131 +0,0 @@ - -Execute ( "SHOW DATABASES; " ); - - $sites = array (); - $row = $dset->Read(); - while ( is_array ( $row ) ) { - $dbname = $row[Database]; - if ( substr ( $dbname,0,5) == 'rbac_' ) { - $sname = substr ( $dbname,5); - $sites[$sname]['rbac'] = 'Y'; - } - if ( substr ( $dbname,0,3) == 'wf_' ) { - $sname = substr ( $dbname,3); - $sites[$sname]['wf'] = 'Y'; - } - if ( substr ( $dbname,0,7) == 'report_' ) { - $sname = substr ( $dbname,7); - $sites[$sname]['report'] = 'Y'; - } - $row = $dset->Read(); - } - - $dynaPath = '/home/workflow/engine/xmlform/dynaform/'; - if ( $handle1 = opendir ( $dynaPath ) ) { - while ( false !== ($file1 = readdir($handle1) )) { - $dirSize = 0; $dirCant = 0; - if ( $file1 != '.' && $file1 != '..' && $handle2 = opendir ( $dynaPath . $file1 ) ) { - while ( false !== ($file2 = readdir($handle2) )) { - $dynaPath2 = $dynaPath . $file1 . '/' . $file2; - if ( is_dir( $dynaPath2) && $file2 != '.' && $file2 != '..' && $handle3 = opendir ( $dynaPath2 ) ) { - while ( false !== ($file3 = readdir($handle3) )) { - if ( $file3 != '.' && $file3 != '..' ) { - $dirSize += filesize ( $dynaPath. $file1.'/'.$file2.'/'.$file3 ); - $dirCant ++; - //print "$file1/$file2/$file3 $dirCant $dirSize
    "; - } - } - } - } - } - if ( $file1 != '.' && $file1 != '..' ) { - $dirSize = (int)($dirSize / 1024 ); - $sites[$file1]['dynaCant'] = $dirCant; - $sites[$file1]['dynaSize'] = $dirSize; - //print "$file1 $dirCant $dirSize Kb.
    "; - } - } - } - - foreach ( $sites as $key=>$val ) { - if ( $val['wf'] == 'Y' && $val['rbac'] == 'Y' ) { - print ""; - print "" . - ""; - - $dbc1 = new DBConnection (DB_HOST, 'root', '', 'wf_' . $key ); - $ses1 = new DBsession($dbc1); - $dset1 = $ses1->Execute ( "SELECT * FROM PROCESS; " ); - $row1 = $dset1->Read(); - while ( is_array ( $row1) ) { - print ""; - $ses2 = new DBsession($dbc1); - $dset2 = $ses2->Execute ( "SELECT count(*) as CANT FROM APPLICATION where APP_PROCESS = " . $row1[UID] ); - $row2 = $dset2->Read(); - print ""; - - $dynaPath = '/home/workflow/engine/xmlform/dynaform/' . $key . '/'. $row1[UID] . '/'; - //print_r ( $dynaPath); - $dirSize = 0; $dirCant = 0; - if ( is_dir ($dynaPath) && $handle1 = opendir ( $dynaPath ) ) { - while ( false !== ($file1 = readdir($handle1) )) { - if ( $file1 != '.' && $file1 != '..' ) { - $dirSize += (int) ( filesize ( $dynaPath. $file1 ) / 1024); - $dirCant ++; - //print "$file1 $dirCant $dirSize
    "; - } - } - } - //if ( is_dir ( $dynaPath) ) - // print $dynaPath; - print ""; - - print ""; - $row1 = $dset1->Read(); - } - print "
    $key " . - ($val[wf]=='Y' ? ' wf ' : ' - ') . ($val[rbac]=='Y' ? ' rbac ' : ' - ') . ($val[report]=='Y' ? ' report ' : ' - ') . - "  cases " . $val[dynaCant] . ' files   ' . - " " . $val[dynaSize] . " Kb.
    " . $row1[UID] .'. '. $row1[PRO_TITLE] . "" . $row1[PRO_STATUS] . "" . $row2[CANT] . " $dirCant $dirSize

    "; - } - } - - ; -?> \ No newline at end of file diff --git a/rbac/engine/methods/login/login.php b/rbac/engine/methods/login/login.php deleted file mode 100755 index 0a2af559f..000000000 --- a/rbac/engine/methods/login/login.php +++ /dev/null @@ -1,55 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -if (!isset($_SESSION['G_MESSAGE'])) -{ - $_SESSION['G_MESSAGE'] = ''; -} -if (!isset($_SESSION['G_MESSAGE_TYPE'])) -{ - $_SESSION['G_MESSAGE_TYPE'] = ''; -} - -$msg = $_SESSION['G_MESSAGE']; -$msgType = $_SESSION['G_MESSAGE_TYPE']; - -session_destroy(); -session_start(); - -$G_MAIN_MENU = 'rbac.login'; -$G_MENU_SELECTED = ''; -if (strlen($msg) > 0 ) -{ - $_SESSION['G_MESSAGE'] = $msg; -} -if (strlen($msgType) > 0 ) -{ - $_SESSION['G_MESSAGE_TYPE'] = $msgType; -} - -$G_PUBLISH = new Publisher; -$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/login', '', '', 'verify-login.php'); - -G::RenderPage( "publish" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/login/loginAjax.php b/rbac/engine/methods/login/loginAjax.php deleted file mode 100755 index a35d706f1..000000000 --- a/rbac/engine/methods/login/loginAjax.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -//G::LoadSystem('json'); -require_once(PATH_THIRDPARTY . 'pear/json/class.json.php'); -$json=new Services_JSON(); -$G_FORM=new form(G::getUIDName(urlDecode($_POST['form']))); -$G_FORM->id=urlDecode($_POST['form']); -$G_FORM->values=$_SESSION[$G_FORM->id]; - -$newValues=($json->decode(urlDecode(stripslashes($_POST['fields'])))); -//Resolve dependencies -//Returns an array ($dependentFields) with the names of the fields -//that depends of fields passed through AJAX ($_GET/$_POST) -$dependentFields=array(); -for($r=0;$rsetValues($newValues[$r]); - //Search dependent fields - foreach($newValues[$r] as $k => $v) { - $myDependentFields = explode( ',', $G_FORM->fields[$k]->dependentFields); - $dependentFields=array_merge($dependentFields, $myDependentFields); - } -} -$dependentFields=array_unique($dependentFields); - -//Parse and update the new content -$template = PATH_CORE . 'templates/xmlform.html'; -$newContent=$G_FORM->getFields($template); - -//Returns the dependentFields's content -$sendContent=array(); -$r=0; -foreach($dependentFields as $d) { - $sendContent[$r]->name=$d; - $sendContent[$r]->content=NULL; - foreach($G_FORM->fields[$d] as $attribute => $value) { - switch($attribute) { - case 'type': - $sendContent[$r]->content->{$attribute}=$value; break; - case 'options': - $sendContent[$r]->content->{$attribute}=toJSArray($value); break; - } - } - $sendContent[$r]->value=$G_FORM->values[$d]; - $r++; -} -echo($json->encode($sendContent)); - -function toJSArray($array) -{ - $result=array(); - foreach($array as $k => $v){ - $o=NULL; - $o->key=$k; - $o->value=$v; - $result[]=$o; - } - return $result; -} -?> \ No newline at end of file diff --git a/rbac/engine/methods/login/noViewPage.php b/rbac/engine/methods/login/noViewPage.php deleted file mode 100755 index 3a3e0aca0..000000000 --- a/rbac/engine/methods/login/noViewPage.php +++ /dev/null @@ -1,37 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MENU_SELECTED = 0; -$G_MAIN_MENU = "empty"; -$G_SUB_MENU = "empty"; - -$referer = $_SERVER['HTTP_REFERER']; -$dbc = new DBConnection; -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo( $dbc ); -$G_PUBLISH->AddContent( "xmlform", "xmlform", "login/noViewPage", "", NULL ); - -G::RenderPage( "publish" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/login/showDBFiles.php b/rbac/engine/methods/login/showDBFiles.php deleted file mode 100755 index d43e8cd92..000000000 --- a/rbac/engine/methods/login/showDBFiles.php +++ /dev/null @@ -1,34 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = 'rbac.login'; -$G_MENU_SELECTED = ''; - - -$G_PUBLISH = new Publisher; -$G_PUBLISH->AddContent('view', 'login/showDBFiles'); - -G::RenderPage( "publish" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/login/verify-login.php b/rbac/engine/methods/login/verify-login.php deleted file mode 100755 index 042254d62..000000000 --- a/rbac/engine/methods/login/verify-login.php +++ /dev/null @@ -1,85 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -if (defined('SYS_SYS')) $_SESSION['ENVIRONMENT']= SYS_SYS; -else $_SESSION['ENVIRONMENT']= 'vacio'; - -$frm = $_POST['form']; -$usr = strtolower(trim($frm['USER_NAME'])); -$pwd = trim($frm['USER_PASS']); - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$_SESSION['USER_LOGGED'] = 0; -$_SESSION['VALID_SESSION'] = session_id(); -$_SESSION['USER'] = $usr; - -$res = $RBAC->VerifyLogin($usr, $pwd); - -switch ($res) -{ - case -1://don't exist - G::SendMessageXml('ID_USER_NOT_REGISTERED', 'warning'); - break; - case -2://password incorrect - G::SendMessageXml('ID_WRONG_PASS', 'warning'); - break; - case -3: //inactive - case -4: //due - G::SendMessageXml('ID_USER_INACTIVE', 'warning'); - break; -} -if ($res < 0 ) -{ - header('location: login.html'); - die; -} - -$uid = $res; -$_SESSION['USER_LOGGED'] = $uid; -$res = $RBAC->userCanAccess('RBAC_LOGIN'); -if ($res != 1 ) -{ - G::SendMessageXml('ID_USER_HAVENT_RIGHTS_PAGE', 'error'); - header('location: login.html'); - die; -} - -$_SESSION['USER_NAME'] = $usr; - -$file = PATH_RBAC . PATH_SEP . 'class.authentication.php'; -require_once($file); -$obj = new authenticationSource; -$obj->SetTo($dbc); -$res = $obj->verifyStructures(); - -if ($RBAC->userCanAccess("RBAC_READONLY") == 1) -{ - header('location: ../rbac/userList'); -} -else -{ - header('location: ../rbac/appList'); -} -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/appDel.php b/rbac/engine/methods/rbac/appDel.php deleted file mode 100755 index 44de3f4ef..000000000 --- a/rbac/engine/methods/rbac/appDel.php +++ /dev/null @@ -1,36 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -//crear Objeto -G::LoadClassRBAC ("applications"); -$obj = new RBAC_Application; -$obj->SetTo ($dbc); -$obj->removeApplication ( $appid ); -header( "location: appList.html" ); -?> diff --git a/rbac/engine/methods/rbac/appEdit.php b/rbac/engine/methods/rbac/appEdit.php deleted file mode 100755 index 341f98c65..000000000 --- a/rbac/engine/methods/rbac/appEdit.php +++ /dev/null @@ -1,50 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -/** - * @package classes.model - */ - -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.appEdit"; -$G_MENU_SELECTED = 1; - -$appid = isset($_GET[0])?$_GET[0]:'';//$URI_VARS[0]; -$HTTP_SESSION_VARS['CURRENT_APPLICATION'] = $appid; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -G::LoadClassRBAC ("applications"); -$obj = new RBAC_Application; -$obj->SetTo ($dbc); -$obj->Load($appid); - -$obj->Fields['EDIT_ROLES'] = G::LoadMessageXml ('ID_ROLES'); -$obj->Fields['EDIT_PERMISSIONS'] = G::LoadMessageXml ('ID_PERMISSIONS'); -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/appEdit", "", $obj->Fields, "../appEdit2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/appEdit2.php b/rbac/engine/methods/rbac/appEdit2.php deleted file mode 100755 index f92878bbf..000000000 --- a/rbac/engine/methods/rbac/appEdit2.php +++ /dev/null @@ -1,50 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $HTTP_POST_VARS['form']; -$frm = G::PrepareFormArray( $frm ); - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION']; -$code = strtoupper( $frm['APP_CODE']); -$descrip = $frm['APP_DESCRIPTION']; - -//crear nueva applicacion -G::LoadClassRBAC ( "applications"); -$obj = new RBAC_Application; -$obj->SetTo( $dbc ); - -print "xx $res"; -$res = $obj->applicationCodeRepetido ( $code ); -if ($res != 0 && $res != $appid ) { - G::SendMessage ( 15, "error"); - header ("location: appList.php"); - die; -} -print "xx $res"; -$uid = $obj->editApplication( $appid, $code , $descrip ); -header( "location: appList.html" ); -?> diff --git a/rbac/engine/methods/rbac/appList.php b/rbac/engine/methods/rbac/appList.php deleted file mode 100755 index 7872ea833..000000000 --- a/rbac/engine/methods/rbac/appList.php +++ /dev/null @@ -1,64 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -/*class XmlForm_Field_Menu extends XmlForm_Field -{ - function render( $value = NULL ) - { - return "�asdsad"; - } -} -class filterForm extends form -{ - var $cols = 3; - var $type = 'filterform'; - var $ajaxServer = '...'; -} -class xmlMenu extends form -{ - var $type = 'xmlmenu'; -}*/ - G::LoadClass("dynaform"); - G::GenericForceLogin ('RBAC_LOGIN','login/noViewPage','login/login'); - $G_MAIN_MENU = "rbac"; - $G_SUB_MENU = "rbac.application"; - $G_MENU_SELECTED = 1; - - //$RBAC->userCanAccess("RBAC_LOGIN"); - //$RBAC->userCanAccess("RBAC_READONLY" ); - //$RBAC->userCanAccess("RBAC_CREATE_ROLE" ); - //$RBAC->userCanAccess("RBAC_CREATE_PERMISSION" ); - $canCreateApp = $RBAC->userCanAccess("RBAC_CREATE_APPLICATION" ); - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo ($dbc); - //$G_PUBLISH->AddContent ( "table", "paged-table", "rbac.applications.list", "rbac/myApp", "", "load"); - //$G_PUBLISH->AddContent ( "xmlform", "xmlmenu", "rbac/appMenu", "", "", "load"); - //$G_PUBLISH->AddContent ( "xmlform", "filterform", "rbac/applicationsList", "", "", "load"); - $G_PUBLISH->AddContent ( "xmlform", "pagedTable", "rbac/applicationsList", "", "", "", "../gulliver/pagedTableAjax.php"); - $content = ''; - G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/appNew.php b/rbac/engine/methods/rbac/appNew.php deleted file mode 100755 index 5a9941d5f..000000000 --- a/rbac/engine/methods/rbac/appNew.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_BACK_PAGE = "rbac/appList"; -$G_SUB_MENU = "cancel"; -$G_MENU_SELECTED = 1; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/appNew", "", '', "appNew2"); -$content = '';//'';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/appNew2.php b/rbac/engine/methods/rbac/appNew2.php deleted file mode 100755 index 41f96b18d..000000000 --- a/rbac/engine/methods/rbac/appNew2.php +++ /dev/null @@ -1,49 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -header( "location: appList.html" );die; -/*Falta revisar la clase RBAC_Application*/ -$frm = $_POST['form']; - -$code = strtoupper ( $frm['APP_CODE']); -$description = $frm['APP_DESCRIPTION']; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -//crear nueva aplicacion -G::LoadClassRBAC ('applications'); -$obj = new RBAC_Application; -$obj->SetTo( $dbc ); -$res = $obj->applicationCodeRepetido ( $code ); - -if ($res != 0 ) { - G::SendMessage ( 15, "error"); - header ("location: appNew.php"); - die; -} - -$appid = $obj->createApplication ($code, $description ); -$_SESSION['CURRENT_APPLICATION'] = $appid; - -header( "location: appList.html" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/appView.php b/rbac/engine/methods/rbac/appView.php deleted file mode 100755 index 75b91d446..000000000 --- a/rbac/engine/methods/rbac/appView.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_BACK_PAGE = "rbac/appList"; -$G_SUB_MENU = "cancel"; -$G_MENU_SELECTED = 1; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/appNew", "", "", "appNew2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authAddUser.php b/rbac/engine/methods/rbac/authAddUser.php deleted file mode 100755 index 9713f17d3..000000000 --- a/rbac/engine/methods/rbac/authAddUser.php +++ /dev/null @@ -1,49 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_SUB_MENU = 'rbac.authSource'; -$G_BACK_PAGE = 'rbac/authenticationList.html'; -$G_MENU_SELECTED = 2; -$G_SUB_MENU_SELECTED = 2; - -if (!isset($_GET['UID'])) -{ - $_GET['UID'] = ''; -} -$appid = $_GET['UID']; -if ($appid == '' && $_SESSION['CURRENT_AUTH_SOURCE'] != '') -{ - $appid = $_SESSION['CURRENT_AUTH_SOURCE']; -} -$_SESSION['CURRENT_AUTH_SOURCE'] = $appid; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -G::LoadClassRBAC('authentication'); -$Fields['authId'] = $appid; - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/authAddUser', '', $Fields); -G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authAjax.php b/rbac/engine/methods/rbac/authAjax.php deleted file mode 100755 index 39be5cbff..000000000 --- a/rbac/engine/methods/rbac/authAjax.php +++ /dev/null @@ -1,219 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - G::Loadinclude ('ajax'); - $function = get_ajax_value ( 'function' ); - $searchText = get_ajax_value ( 'text' ); - - $userName = get_ajax_value ( 'userName' ); - $authSource = get_ajax_value ( 'authSource' ); - $dn = get_ajax_value ( 'dn' ); - $fullname = get_ajax_value ( 'fullname' ); - $email = get_ajax_value ( 'email' ); - $roles = get_ajax_value ( 'roles' ); - - switch ( $function ) { - case 'searchText' : searchText( $searchText ); - break; - case 'validUser' : validUser( $searchText ); - break; - case 'createUser' : createUser( $userName, $authSource, $dn, $fullname, $email, $roles ); - break; - } - -function createUser( $userName, $authSource, $dn, $fullname, $email, $roles ){ - global $DB_MODULE; // :( - G::LoadClassRBAC ('user'); - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $obj = new RBAC_User; - $obj->SetTo( $dbc ); - - //is ProcessMaker? - $isPM = false; - foreach ( $DB_MODULE as $index => $module ) { if ( $module = 'ProcessMaker' ) $isPM = true; } - if ( $isPM ) { - $dbcPM = new DBConnection(DB_HOST, DB_USER, DB_PASS, DB_NAME ); - $sesPM = new DBSession ( $dbcPM ); - } - - $res = $obj->UserNameRepetido( 0, $userName ); - if ( $res != 0 ) { - $result = "-1"; - } - else { - $aux = explode( ' ', $fullname ); - $last = str_replace ( $aux[0] . ' ', '', $fullname ); - $uid = $obj->createUser ( $last, /*mid*/'', $aux[0], $email); - $result = $obj->createUserName ($uid, $userName, 'LDAP'); - $obj->updateLDAP ( $uid, $authSource, $dn ); - $rol = explode ( ',', $roles ); - foreach ( $rol as $key => $val ) { - if ( $val != 0 ) - $obj->assignUserRole ( $uid, $val ); - } - - if ($isPM ) { - $sql = "insert into USER (UID, USR_USER_NAME, USR_LASTNAME, USR_MIDNAME, USR_FIRSTNAME, USR_EMAIL) VALUES ( " . - $uid . ", '" . $userName . "', '" . $last . "','', '". $aux[0] . "', '". $email. "' ) "; - //$f =fopen ( '/shared/security.log', "a+" );fwrite ( $f, date("Y-m-d h:i:s") . "$isPM $sql \n" ); fclose ($f); - $sesPM->Execute ( $sql ); - } - } - header("Content-Type: text/xml"); - print ''; - print ''; - print "$result"; - print ''; -} - -function validUser ( $userid) { - global $RBAC; - $res = $RBAC->UserNameRepetido( 0, $userid ); - - header("Content-Type: text/xml"); - print ''; - print ''; - print "$res"; - print ''; -/* - if ( $res == 0 ) { - print "valid user"; - } - else { - print "user already used"; - } - */ -} - -function searchText ( $searchText) { - global $_SESSION; - global $RBAC; - $curAuthSource = $_SESSION['CURRENT_AUTH_SOURCE']; - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - $tpl = new TemplatePower( PATH_TPL . 'authListUsers.html' ); - $tpl->prepare(); - - $tpl->assign( "STYLE_CSS" , ( defined ('STYLE_CSS') ? STYLE_CSS : 'simple' ) ); - $tpl->assign( "title" , 'Search Results' ); - - //authentication source - G::LoadClassRBAC ('authentication'); - $obj = new authenticationSource; - $obj->SetTo( $dbc ); - $data = $obj->searchUsers ( $curAuthSource , $searchText); - if ( $data['codError'] == 0 && isset ( $data['rows'] ) && !is_array( $data['rows'] ) ) { - $tpl->newBlock( "empty-rows" ); - $tpl->assign( "title" , 'Search Results' ); - $tpl->assign( "empty-rows-text" , 'no records found' ); - $tpl->printToScreen(); - die; - } - if ( $data['codError'] != 0 ) { - $tpl->newBlock( "error" ); - $tpl->assign( "title" , 'Log Error' ); - $tpl->assign( "text" , "" . $data['rows'] . "" ) ; - $tpl->printToScreen(); - die; - } - - //build the options to create...an user, list the applications and their roles.. - $ses = new DBSession ( $dbc ); - $ses2 = new DBSession ( $dbc ); - $dset = $ses->execute ( "SELECT * from APPLICATION where APP_CODE != 'RBAC' " ); - $appRow = $dset->Read(); - $checkboxs = "
    "; - $inputs = "
    @@validuser
     "; - $options = "" ; - $options .= ""; - while ( is_array ( $appRow ) ) { - $appid = $appRow['UID']; - $selectId = 'S-@@Y-'. $appid; - $dset2 = $ses2->execute ( 'SELECT * from ROLE where ROL_APPLICATION = ' . $appid ); - $rolRow = $dset2->Read(); - $selectEnabled = false; - if ( is_array ( $rolRow ) ) { - $options .= '
    ' . $appRow['APP_CODE'] . '
    '; - $options .= "\n
    "; - } - - $appRow = $dset->Read(); - } - $options .= '
    '; - - $i = 0; - if ( isset ( $data['rows'] ) ) - foreach ( $data['rows'] as $row ) { - - $tpl->newBlock( "users" ); - if ( ++$i % 2 == 0 ) - $tpl->assign( "class" , 'Row2' ); - else - $tpl->assign( "class" , 'Row1' ); - $tpl->assign( "index" , $i ); - $tpl->assign( "dn" , $row['dn'] ); - $tpl->assign( "name" , $row['attr']['givenName'] ); - $tpl->assign( "lastname" , $row['attr']['sn'] ); - $tpl->assign( "fullname" , $row['attr']['cn'] ); - $tpl->assign( "email" , $row['attr']['mail'] ); - $tpl->assign( "uid" , $row['attr']['uid'] ); - - //verificar uid - $userid = $row['attr']['uid']; - $res = $RBAC->UserNameRepetido( 0, $userid ); - - - $input = str_replace ( '@@Z', $userid, str_replace ( '@@X', $row['dn'], str_replace ( '@@Y', $i, $inputs) ) ); - $input = str_replace ( '@@validuser', ( $res == 0 ? "valid user" : "user already used"), $input ); - $checkbox = str_replace ( '@@X', $row['dn'], str_replace ( '@@Y', $i, $checkboxs) ); - $checkbox = str_replace ( '@@disabled', ( $res <> 0 ? 'disabled' : ''), $checkbox ); - $option = str_replace ( '@@X', $row['dn'], str_replace ( '@@Y', $i, $options) ); -// $option = str_replace ( '@@disabled', ( $res <> 0 ? 'disabled' : ''), $option ); - $tpl->assign( "checkbox" , $checkbox ); - $tpl->assign( "input" , $input ); - $tpl->assign( "options" , $option ); - } - $tpl->gotoBlock( "_ROOT" ); - $tpl->newBlock( "start-users" ); - $tpl->assign( "dummy" , 'dummy' ); - - $tpl->gotoBlock( "_ROOT" ); - $tpl->newBlock( "end-users" ); - $tpl->assign( "dummy" , 'dummy' ); - - $tpl->printToScreen(); - -} - - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authDel.php b/rbac/engine/methods/rbac/authDel.php deleted file mode 100755 index 62ee2fb6c..000000000 --- a/rbac/engine/methods/rbac/authDel.php +++ /dev/null @@ -1,31 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -G::LoadClassRBAC ('authentication'); -$obj = new authenticationSource; -$obj->SetTo($dbc); -$obj->removeSource($_GET['UID']); -header('location: authenticationList.html'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authEdit.php b/rbac/engine/methods/rbac/authEdit.php deleted file mode 100755 index 6bc9174fc..000000000 --- a/rbac/engine/methods/rbac/authEdit.php +++ /dev/null @@ -1,46 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_SUB_MENU = 'rbac.authSource'; -$G_BACK_PAGE = 'rbac/authenticationList.html'; -$G_MENU_SELECTED = 2; - -$appid = isset($_GET[0])?$_GET[0]:''; -if ( $appid == '' && $HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE'] != '' ) - $appid = $HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE']; - -$HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE'] = $appid; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -G::LoadClassRBAC('authentication'); -$obj = new authenticationSource; -$obj->SetTo ($dbc); -$obj->Load($appid); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( 'xmlform', 'xmlform', 'rbac/authNew', '', $obj->Fields, 'authEdit2'); -G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authEdit2.php b/rbac/engine/methods/rbac/authEdit2.php deleted file mode 100755 index 77a6ebc9f..000000000 --- a/rbac/engine/methods/rbac/authEdit2.php +++ /dev/null @@ -1,45 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$frm = $_POST['form']; - -$code = strtoupper ( $frm['APP_CODE']); -$description = $frm['APP_DESCRIPTION']; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -G::LoadClassRBAC('authentication'); -$obj = new authenticationSource; -$obj->SetTo($dbc); -$res = $obj->editSource($_SESSION['CURRENT_AUTH_SOURCE'], $frm); - -if ($res <= 0) -{ - G::SendMessageXml('ID_USER_HAVENT_RIGHTS_PAGE', 'error'); - header('location: authEdit'); - die; -} - -header('location: authTest.html'); -//header('location: authenticationList.html'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authNew.php b/rbac/engine/methods/rbac/authNew.php deleted file mode 100755 index 5949fd5d6..000000000 --- a/rbac/engine/methods/rbac/authNew.php +++ /dev/null @@ -1,45 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - G::GenericForceLogin ('RBAC_LOGIN','login/noViewPage','login/login'); - - $G_MAIN_MENU = "rbac"; - $G_BACK_PAGE = "rbac/authenticationList"; - $G_SUB_MENU = "cancel"; - $G_MENU_SELECTED = 1; - - $Fields['AUT_PROVIDER'] = 'adprovider'; - $Fields['AUT_ENABLED_TLS'] = '0'; - $Fields['AUT_PORT'] = '389'; - $Fields['AUT_SEARCH_ATTRIBUTES'] = "cn\nmail\nmsAMAccountName"; - $Fields['AUT_OBJECT_CLASSES'] = "user\ninetOrgPerson\nposixAccount"; - - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo ($dbc); - $G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/authNew", "", $Fields, "authNew2"); - G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authNew2.php b/rbac/engine/methods/rbac/authNew2.php deleted file mode 100755 index bb19071b3..000000000 --- a/rbac/engine/methods/rbac/authNew2.php +++ /dev/null @@ -1,47 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - $frm = $_POST['form']; - - $code = strtoupper ( $frm['APP_CODE']); - $description = $frm['APP_DESCRIPTION']; - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - //crear nueva authentication source - G::LoadClassRBAC ('authentication'); - $obj = new authenticationSource; - $obj->SetTo( $dbc ); - $res = $obj->newSource ( $frm ); - - if ($res <= 0 ) { - //G::SendMessage ( -$res, "error"); - header ("location: authNew"); - die; - } - $HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE'] = $res; - - header( "location: authenticationList.html" ); - -?> diff --git a/rbac/engine/methods/rbac/authTest.php b/rbac/engine/methods/rbac/authTest.php deleted file mode 100755 index 1da5ef498..000000000 --- a/rbac/engine/methods/rbac/authTest.php +++ /dev/null @@ -1,133 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_SUB_MENU = 'rbac.authSource'; -$G_BACK_PAGE = 'rbac/authenticationList.html'; -$G_MENU_SELECTED = 2; -$G_SUB_MENU_SELECTED = 1; - -$appid = isset($_GET[0])?$_GET[0]:'';//$URI_VARS[0]; -if ($appid == '' && $_SESSION['CURRENT_AUTH_SOURCE'] != '') -{ - $appid = $_SESSION['CURRENT_AUTH_SOURCE']; -} - -$_SESSION['CURRENT_AUTH_SOURCE'] = $appid; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -G::LoadClassRBAC('authentication'); -$obj = new authenticationSource; -$obj->SetTo($dbc); -$obj->Load($appid); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent('view', 'testAuthenticationSource'); -G::RenderPage( 'publish'); - -/* - require_once('Net/LDAP.php'); - $rootDn = 'OU=Ventas,DC=colosa,DC=net'; - $config = array( - 'dn' => 'scout@colosa.net', - 'password' => 'Colosa1', - 'host' => '192.168.0.50', - 'base' => $rootDn, - 'options' => array('LDAP_OPT_REFERRALS' => 0), - 'tls' => false, - 'port'=> 389 - ); - - $oLdap =& Net_LDAP::connect($config); - if (PEAR::isError($oLdap)) { - print ( $oLdap->message); - return $oLdap; - } - - - $sFilter = '(&(|(objectClass=user)(objectClass=inetOrgPerson)(objectClass=posixAccount))(|(cn=*a*)(mail=*a*)(sAMAccountName=*a*)))'; - $aParams = array( - 'scope' => 'sub', - 'attributes' => array('cn', 'dn', 'samaccountname'), - ); - - $oResult = $oLdap->search($rootDn, $sFilter, $aParams); - if (PEAR::isError($oResult)) { - print ( $oLdap->message); - return $oResult; - } - $aRet = array(); - foreach($oResult->entries() as $oEntry) { - $aAttr = $oEntry->attributes(); - $aAttr['dn'] = $oEntry->dn(); - $aRet[] = $aAttr; - } - - print_r ($aRet); - print '
    '; - -//ahora pedir todos los datos - //active directory - $aAttributes = array ('cn', 'samaccountname', 'givenname', 'sn', 'userprincipalname', 'telephonenumber'); - //ldap - //$aAttributes = array ('cn', 'uid', 'givenname', 'sn', 'mail', 'mobile'); - - $sFilter = '(objectClass=*)'; - $aParams = array( - 'scope' => 'base', - 'attributes' => $aAttributes, - ); - - $userDn = 'CN=Javier,OU=Ventas,DC=colosa,DC=net'; - $oResult = $oLdap->search($userDn, $sFilter, $aParams); - if (PEAR::isError($oResult)) { - print ( $oLdap->message); - return $oResult; - } - $aRet = array(); - foreach($oResult->entries() as $oEntry) { - $aAttr = $oEntry->attributes(); - $aAttr['dn'] = $oEntry->dn(); - $aRet[] = $aAttr; - } - print_r ($aRet); - print '
    '; - - $oLdap =& Net_LDAP::connect($config); - if (PEAR::isError($oLdap)) { - print ( $oLdap->message); - return $oLdap; - } - $res = $oLdap->reBind('scout@colosa.net', 'Colosa1'); - - if (PEAR::isError($res)) { - print ( $res->message); - return $res; - } - if ($res === true) { - print 'ok'; - } -*/ -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/authenticationList.php b/rbac/engine/methods/rbac/authenticationList.php deleted file mode 100755 index c47230729..000000000 --- a/rbac/engine/methods/rbac/authenticationList.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_SUB_MENU = 'rbac.authentication'; -$G_MENU_SELECTED = 2; -$canCreateApp = $RBAC->userCanAccess('RBAC_CREATE_APPLICATION' ); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->AddContent('xmlform', 'pagedTable', 'rbac/authenticationsList', '', array('DELETE' => G::LoadMessageXml('ID_DELETE')), ''); -G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/dbInfo.php b/rbac/engine/methods/rbac/dbInfo.php deleted file mode 100755 index cf86b1c7b..000000000 --- a/rbac/engine/methods/rbac/dbInfo.php +++ /dev/null @@ -1,92 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - $G_MAIN_MENU = "rbac"; - $G_BACK_PAGE = "rbac/appList"; - $G_MENU_SELECTED = 3; - - if ( file_exists ( PATH_METHODS . 'login/version-rbac.php') ) { - include ( PATH_METHODS . 'login/version-rbac.php' ); - } - else { - define ( 'RBAC_VERSION', "Development Version" ); - } - - function lookup($target){ - global $ntarget; - $msg = "$target => "; - //if( eregi("[a-zA-Z]", $target) ) - if( preg_match("[a-zA-Z]", $target) ) //Made compatible to PHP 5.3 - $ntarget = gethostbyname($target); - else - $ntarget = gethostbyaddr($target); - $msg .= $ntarget; - return($msg); - } - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $ses = new DBSession ($dbc); - $dset = $ses->execute ("SELECT VERSION() AS VERSION "); - $row = $dset->Read(); - - if (getenv('HTTP_CLIENT_IP')) { - $ip = getenv('HTTP_CLIENT_IP'); - } - elseif(getenv('HTTP_X_FORWARDED_FOR')) { - $ip = getenv('HTTP_X_FORWARDED_FOR'); - } else { - $ip = getenv('REMOTE_ADDR'); - } - - if ( file_exists ( "/etc/redhat-release" ) ) { - $fnewsize = filesize( "/etc/redhat-release" ); - $fp = fopen( "/etc/redhat-release" , "r" ); - $redhat = fread( $fp, $fnewsize ); - fclose( $fp ); - } - - $Fields = $dbc->db->dsn; - $Fields['SYSTEM'] = $redhat; - $Fields['MYSQL'] = $row['VERSION']; - $Fields['PHP'] = phpversion(); - $Fields['FLUID'] = RBAC_VERSION; - $Fields['IP'] = lookup ($ip); - $Fields['ENVIRONMENT'] = SYS_SYS; - $Fields['SERVER_SOFTWARE'] = getenv('SERVER_SOFTWARE'); - $Fields['SERVER_NAME'] = getenv('SERVER_NAME'); - $Fields['SERVER_PROTOCOL'] = getenv('SERVER_PROTOCOL'); - $Fields['SERVER_PORT'] = getenv('SERVER_PORT' ); - $Fields['REMOTE_HOST'] = getenv('REMOTE_HOST'); - $Fields['SERVER_ADDR'] = getenv('SERVER_ADDR'); - $Fields['HTTP_USER_AGENT'] = getenv('HTTP_USER_AGENT'); - - - $Fields['a'] = $dbc; - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo ($dbc); - $G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/dbInfo", "", $Fields, "appNew2"); - $content = '';//'';//G::LoadContent( "rbac/myApp" ); - G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadAuthSource.php b/rbac/engine/methods/rbac/loadAuthSource.php deleted file mode 100755 index 3627bb012..000000000 --- a/rbac/engine/methods/rbac/loadAuthSource.php +++ /dev/null @@ -1,27 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$_SESSION['CURRENT_AUTH_SOURCE'] = $_GET['UID']; -header('location: authEdit.htm'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadPermView.php b/rbac/engine/methods/rbac/loadPermView.php deleted file mode 100755 index 80b6e9dc2..000000000 --- a/rbac/engine/methods/rbac/loadPermView.php +++ /dev/null @@ -1,28 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -if ($_GET['UID'] != "") - $_SESSION['CURRENT_APPLICATION'] = isset($_GET['UID'])?$_GET['UID']:'';//$URI_VARS[0]; -header ("location: permList.htm"); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadRoleProp.php b/rbac/engine/methods/rbac/loadRoleProp.php deleted file mode 100755 index af9186db3..000000000 --- a/rbac/engine/methods/rbac/loadRoleProp.php +++ /dev/null @@ -1,35 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$_SESSION['CURRENT_ROLE'] = $_GET['ROL_UID']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); -$ses = new DBSession; -$ses->SetTo ($dbc); -$dset = $ses->Execute('SELECT ROL_APPLICATION FROM USER_ROLE LEFT JOIN ROLE ON (ROL_UID = UID) WHERE ROL_UID = ' . $_SESSION['CURRENT_ROLE']); -$row = $dset->Read(); -$_SESSION['CURRENT_APPLICATION'] = $row['ROL_APPLICATION']; - -header('location: userRoleProp.htm'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadRoleProp2.php b/rbac/engine/methods/rbac/loadRoleProp2.php deleted file mode 100755 index cbcb9553b..000000000 --- a/rbac/engine/methods/rbac/loadRoleProp2.php +++ /dev/null @@ -1,40 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$rolid = isset($_GET['ROL_UID']) ? $_GET['ROL_UID']:''; -if ($rolid != "") - $_SESSION['CURRENT_ROLE'] = $rolid; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$ses = new DBSession; -$ses->SetTo ($dbc); - -$sql = "select ROL_APPLICATION FROM USER_ROLE LEFT JOIN ROLE ON (ROL_UID = UID) WHERE ROL_UID = $rolid "; -$dset = $ses->Execute ($sql); -$row = $dset->Read(); -if (is_array($row) ) - $_SESSION['CURRENT_APPLICATION'] = $row['ROL_APPLICATION']; -header ("location: roleProp.htm"); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadRoleView.php b/rbac/engine/methods/rbac/loadRoleView.php deleted file mode 100755 index a2a30cd7c..000000000 --- a/rbac/engine/methods/rbac/loadRoleView.php +++ /dev/null @@ -1,28 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -if ($_GET['UID'] != "") - $_SESSION['CURRENT_APPLICATION'] = $_GET['UID']; -header('location: roleList.htm'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadUser.php b/rbac/engine/methods/rbac/loadUser.php deleted file mode 100755 index c2054af43..000000000 --- a/rbac/engine/methods/rbac/loadUser.php +++ /dev/null @@ -1,27 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$_SESSION['CURRENT_USER'] = $_GET['UID']; -header('location: userEdit.htm'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/loadUserRole.php b/rbac/engine/methods/rbac/loadUserRole.php deleted file mode 100755 index 596474bc5..000000000 --- a/rbac/engine/methods/rbac/loadUserRole.php +++ /dev/null @@ -1,29 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - $_GET['UID'] = (int)$_GET['UID']; - $_SESSION['CURRENT_USER'] = $_GET['UID']; - header('location: userEdit'); -// header('location: userViewRole'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/message.php b/rbac/engine/methods/rbac/message.php deleted file mode 100755 index e94a4593e..000000000 --- a/rbac/engine/methods/rbac/message.php +++ /dev/null @@ -1,31 +0,0 @@ - -/** - * message.php - * - * ProcessMaker Open Source Edition - * Copyright (C) 2004 - 2008 Colosa Inc.23 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - -
    - This test will connect to a mail server via SMTP, perform a simple Open Relay Test and verify the server has a reverse DNS (PTR) record.
    -   - -
    diff --git a/rbac/engine/methods/rbac/permDel.php b/rbac/engine/methods/rbac/permDel.php deleted file mode 100755 index 352426a0e..000000000 --- a/rbac/engine/methods/rbac/permDel.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$permid = isset($_GET['UID'])?$_GET['UID']:'';//$URI_VARS[0]; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -//crear Objeto Permission -G::LoadClassRBAC ("permissions"); -$obj = new RBAC_Permission; -$obj->SetTo ($dbc); -$obj->removePermission ( $permid ); - -header( "location: permList.html" ); -?> diff --git a/rbac/engine/methods/rbac/permEdit.php b/rbac/engine/methods/rbac/permEdit.php deleted file mode 100755 index 27124a4eb..000000000 --- a/rbac/engine/methods/rbac/permEdit.php +++ /dev/null @@ -1,48 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_BACK_PAGE = "rbac/permList"; -$G_SUB_MENU = "cancel"; -$G_MENU_SELECTED = 1; - -$uid = isset($_GET['UID'])?$_GET['UID']:'';//$URI_VARS[0]; -$_SESSION['CURRENT_PERM_PARENT'] = $uid; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -G::LoadClassRBAC ("permissions"); -$obj = new RBAC_Permission; -$obj->SetTo ($dbc); -$obj->Load($uid); - -$obj->Fields['UID'] = $_SESSION['CURRENT_APPLICATION']; -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/permEdit", "", $obj->Fields, "permEdit2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/permEdit2.php b/rbac/engine/methods/rbac/permEdit2.php deleted file mode 100755 index c1867e678..000000000 --- a/rbac/engine/methods/rbac/permEdit2.php +++ /dev/null @@ -1,48 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $_POST['form']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -$permid = $_SESSION['CURRENT_PERM_PARENT']; -$appid = $_SESSION['CURRENT_APPLICATION']; -$code = strtoupper( $frm['PRM_CODE']); -$descrip = $frm['PRM_DESCRIPTION']; - -//crear nuevo permiso -G::LoadClassRBAC ( "permissions"); -$obj = new RBAC_Permission; -$obj->SetTo( $dbc ); -$res = $obj->permissionCodeRepetido ( $code ); -if ($res != 0 && $res != $permid) { - G::SendMessage ( 16, "error"); - header ("location: permList.php"); - die; -} -$uid = $obj->editPermission( $permid, $appid, $code , $descrip ); -header( "location: permList.html" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/permList.php b/rbac/engine/methods/rbac/permList.php deleted file mode 100755 index 7eb602058..000000000 --- a/rbac/engine/methods/rbac/permList.php +++ /dev/null @@ -1,40 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.appView"; -$G_MENU_SELECTED = 1; - -$canCreatePerm = $RBAC->userCanAccess("RBAC_CREATE_PERMISSION" ); - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "view", "treePerm"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/permNew.php b/rbac/engine/methods/rbac/permNew.php deleted file mode 100755 index 23684c987..000000000 --- a/rbac/engine/methods/rbac/permNew.php +++ /dev/null @@ -1,56 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_BACK_PAGE = "rbac/permList"; -$G_SUB_MENU = "cancel"; -$G_MENU_SELECTED = 1; - -$permid = isset($_GET['UID'])?$_GET['UID']:'';//$URI_VARS[0]; -$HTTP_SESSION_VARS['CURRENT_PERM_PARENT'] = $permid; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); - -$fields['APPID'] = $_SESSION['CURRENT_APPLICATION']; -if ( PEAR_DATABASE == 'pgsql' ) { - $CONCAT1 = "APP_CODE || \" - \" || APP_DESCRIPTION "; - $CONCAT2 = "PRM_CODE || \" - \" || PRM_DESCRIPTION "; -} -else { - $CONCAT1 = "CONCAT(APP_CODE,\" - \",APP_DESCRIPTION) "; - $CONCAT2 = "CONCAT(PRM_CODE,\" - \",PRM_DESCRIPTION) "; -} -$fields['CONCAT1'] = $CONCAT1; -$fields['CONCAT2'] = $CONCAT2; -$fields['PERMID'] = $permid; - -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/permNew", "", $fields, "permNew2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/permNew2.php b/rbac/engine/methods/rbac/permNew2.php deleted file mode 100755 index 50fd2a5f9..000000000 --- a/rbac/engine/methods/rbac/permNew2.php +++ /dev/null @@ -1,48 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $_POST['form']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -$parent = $_SESSION['CURRENT_PERM_PARENT']; -$appid = $_SESSION['CURRENT_APPLICATION']; -$code = strtoupper( $frm['PRM_CODE']); -$descrip = $frm['PRM_DESCRIPTION']; - -//crear nuevo permiso -G::LoadClassRBAC ( "permissions"); -$obj = new RBAC_Permission; -$obj->SetTo( $dbc ); -$res = $obj->permissionCodeRepetido ( $code ); -if ($res != 0 ) { - G::SendMessage ( 16, "error"); - header ("location: permList.php"); - die; -} -$uid = $obj->createPermission( $parent, $appid, $code , $descrip ); -header( "location: permList.html" ); -?> diff --git a/rbac/engine/methods/rbac/roleDel.php b/rbac/engine/methods/rbac/roleDel.php deleted file mode 100755 index 2bdaf151f..000000000 --- a/rbac/engine/methods/rbac/roleDel.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$roleid = isset($_GET[0])?$_GET[0]:'';//$URI_VARS[0]; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -//crear Objeto Roles -G::LoadClassRBAC ("roles"); -$obj = new RBAC_Role; -$obj->SetTo ($dbc); -$obj->removeRole ( $roleid ); - -header( "location: roleList.html" ); -?> diff --git a/rbac/engine/methods/rbac/roleEdit.php b/rbac/engine/methods/rbac/roleEdit.php deleted file mode 100755 index 83b13a0fa..000000000 --- a/rbac/engine/methods/rbac/roleEdit.php +++ /dev/null @@ -1,52 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_BACK_PAGE = "rbac/roleList"; -$G_SUB_MENU = "cancel"; -$G_MENU_SELECTED = 1; - -$uid = isset($_GET[0])?$_GET[0]:'';//$URI_VARS[0]; -$_SESSION['CURRENT_ROLE_PARENT'] = $uid; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -G::LoadClassRBAC ("roles"); -$obj = new RBAC_Role; -$obj->SetTo ($dbc); -$obj->Load($uid); - -$obj->Fields['EDIT_ROLES'] = G::LoadMessageXml ('ID_ROLES'); -$obj->Fields['EDIT_PERMISSIONS'] = G::LoadMessageXml ('ID_PERMISSIONS'); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$fields = $obj->Fields; -$fields['CURRENT_APPLICATION'] = $_SESSION['CURRENT_APPLICATION']; -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/roleEdit", "", $fields, "roleEdit2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/roleEdit2.php b/rbac/engine/methods/rbac/roleEdit2.php deleted file mode 100755 index 0d4f3c238..000000000 --- a/rbac/engine/methods/rbac/roleEdit2.php +++ /dev/null @@ -1,47 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $_POST['form']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$roleid = $_SESSION['CURRENT_ROLE_PARENT']; -$appid = $_SESSION['CURRENT_APPLICATION']; -$code = strtoupper( $frm['ROL_CODE']); -$descrip = $frm['ROL_DESCRIPTION']; - -//crear nuevo rol -G::LoadClassRBAC ( "roles"); -$obj = new RBAC_Role; -$obj->SetTo( $dbc ); -$res = $obj->roleCodeRepetido ( $code ); -if ($res != 0 && $res != $roleid) { - G::SendMessage ( 14, "error"); - header ("location: roleList.php"); - die; -} -$uid = $obj->editRole( $roleid, $appid, $code , $descrip ); -header( "location: roleList.html" ); -?> diff --git a/rbac/engine/methods/rbac/roleList.php b/rbac/engine/methods/rbac/roleList.php deleted file mode 100755 index c8aee25c2..000000000 --- a/rbac/engine/methods/rbac/roleList.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.role"; -$G_MENU_SELECTED = 1; - -$canCreateRole = $RBAC->userCanAccess("RBAC_CREATE_ROLE" ); -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "view", "treeRole"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/roleNew.php b/rbac/engine/methods/rbac/roleNew.php deleted file mode 100755 index a3378881c..000000000 --- a/rbac/engine/methods/rbac/roleNew.php +++ /dev/null @@ -1,63 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_BACK_PAGE = "rbac/roleList"; -$G_SUB_MENU = "cancel"; -$G_MENU_SELECTED = 1; - -if (!isset($_GET[0])) { - $parent = "0"; - $postFile = "roleNew2"; -} -else { - $parent = isset($_GET[0])?$_GET[0]:'';//$URI_VARS[0]; - $postFile = "roleNew2"; -} - -$_SESSION ['CURRENT_ROLE_PARENT'] = $parent; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); - - if ( PEAR_DATABASE == 'pgsql' ) { - $concat1 = 'APP_CODE || " - " || APP_DESCRIPTION'; - $concat2 = 'ROL_CODE || " - " || ROL_DESCRIPTION'; - } - else { - $concat1 = 'CONCAT(APP_CODE," - ",APP_DESCRIPTION)'; - $concat2 = 'CONCAT(ROL_CODE," - ",ROL_DESCRIPTION)'; - } - -$fields['APPID'] = $_SESSION['CURRENT_APPLICATION']; -$fields['ROLID'] = $_SESSION['CURRENT_ROLE_PARENT']; -$fields['CONCAT1'] = $concat1; -$fields['CONCAT2'] = $concat2; -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/roleNew", "", $fields, $postFile ); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/roleNew2.php b/rbac/engine/methods/rbac/roleNew2.php deleted file mode 100755 index 903fc051b..000000000 --- a/rbac/engine/methods/rbac/roleNew2.php +++ /dev/null @@ -1,49 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $_POST['form']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -$parent = $_SESSION['CURRENT_ROLE_PARENT']; -$appid = $_SESSION['CURRENT_APPLICATION']; -$code = strtoupper( $frm['ROL_CODE']); -$descrip = $frm['ROL_DESCRIPTION']; - -//crear nuevo ROL -G::LoadClassRBAC ( "roles"); -$obj = new RBAC_Role; -$obj->SetTo( $dbc ); -$res = $obj->roleCodeRepetido( $code ); -if ($res != 0 ) { - G::SendMessage (14, "error"); - header ("location: roleList.php"); - die; -} - -$uid = $obj->createRole( $parent, $appid, $code , $descrip ); -header( "location: roleList.html" ); -?> diff --git a/rbac/engine/methods/rbac/roleProp.php b/rbac/engine/methods/rbac/roleProp.php deleted file mode 100755 index 6090d187e..000000000 --- a/rbac/engine/methods/rbac/roleProp.php +++ /dev/null @@ -1,56 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.appView"; -$G_MENU_SELECTED = 1; - -$permid = isset($_GET[0])?$_GET[0]:'';//$URI_VARS[0]; -$rolid = $_SESSION['CURRENT_ROLE']; - -G::LoadClassRBAC ( "roles" ); -G::LoadClassRBAC ( "user" ); -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -$canCreateRole = $RBAC->userCanAccess("RBAC_CREATE_PERMISSION" ); -$obj = New RBAC_role; -$obj->SetTo ($dbc); -$parents = $obj->GetAllParents($rolid); -$_SESSION['CURRENT_ROLE_PARENTS'] = $parents; - -if ( $permid != "" ) { - $obj->flipFlopRole($rolid, $permid); -} - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "view", "treePermRole"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/showFieldAjax.php b/rbac/engine/methods/rbac/showFieldAjax.php deleted file mode 100755 index a0f28d1a9..000000000 --- a/rbac/engine/methods/rbac/showFieldAjax.php +++ /dev/null @@ -1,206 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -global $HTTP_SESSION_VARS; -global $G_FORM; - -G::LoadInclude ( 'ajax' ); -/* -if(isset($HTTP_SESSION_VARS['CURRENT_APPLICATION'])){ -if ($HTTP_GET_VARS['__dynaform__'] == '') - $filename = $HTTP_SESSION_VARS['CURRENT_REQ_DYNAFORM_FILENAME']; -if ($HTTP_GET_VARS['__filename__'] != '') - $filename = $HTTP_GET_VARS['__filename__']; - -$Connection = new DBConnection; -$ses = new DBSession($Connection); - -if ($HTTP_GET_VARS['__dynaform__'] == '') { - $Dataset = $ses->Execute("SELECT UID FROM REQ_DYNAFORM WHERE REQ_FILENAME = '$filename' AND UID_PROCESS = '" . $HTTP_SESSION_VARS['PROCESS_GUID']."'"); - $Row = $Dataset->Read(); -} -else { - $Dataset = $ses->Execute('SELECT REQ_FILENAME FROM REQ_DYNAFORM WHERE UID = "' . $HTTP_GET_VARS['__dynaform__'].'"'); - $Row = $Dataset->Read(); - - $filename = $Row['REQ_FILENAME']; -} - -if ($HTTP_GET_VARS['__dynaform__'] == '') - $HTTP_SESSION_VARS['CURRENT_REQ_DYNAFORM'] = $Row['UID']; - -} -*/ - $filename = 'rbac/userAssignRole'; - - -$fieldName = get_ajax_value( 'field' ); -$fieldValue = get_ajax_value( 'value' ); -$fieldParent = get_ajax_value( 'parent' ); -$function = get_ajax_value( 'function' ); -$appid = get_ajax_value( 'application' ); -$Dynaform = get_ajax_value( 'Dynaform' ); -$InitValue = get_ajax_value( 'InitValue' ); - -switch ( $function ) { - case 'text' : fillText( $fieldName, $fieldParent, $fieldValue, $appid, $filename ); break; - case 'dropdown' : fillDropdown( $fieldName, $fieldParent, $fieldValue, $appid, $filename,$InitValue ); break; - default : echo'none'; -} -function fillCaption ( $fieldName,$fieldParent, $valueRecived, $appid, $filename) { - $options = reload( $fieldName,$fieldParent, $valueRecived, $appid,$filename ); - header("Content-Type: text/xml"); - print ' - - ' . $value . ' - '; -// ' . utf8_encode($value) . ' -} -function fillText ( $fieldName,$fieldParent, $valueRecived, $appid, $filename) { - $options = reload( $fieldName,$fieldParent, $valueRecived, $appid,$filename ); - $value = "_vacio"; - if(is_array($options)) - foreach($options as $key => $val){ - $value = $val; - } - header("Content-Type: text/xml"); - print ' - - ' . $value . ' - '; - -// '.utf8_encode($value).' - -} - -function fillDropdown ( $fieldName,$fieldParent, $valueRecived, $appid,$filename, $InitValue ) { - - global $HTTP_SESSION_VARS; - $options = reload( $fieldName,$fieldParent, $valueRecived, $appid,$filename); - if(is_array($options)) - foreach($options as $key => $val){ - $value .= '' . $val .' '; -// $value .= ''.utf8_encode($val) .' '; - } - if($value == ""){ - $value = "_vacio"; - }else{ - if($InitValue == 'true'){ - if(isset($HTTP_SESSION_VARS['INIT_VALUES'][$fieldName])){ -// $value .= '' . utf8_encode($HTTP_SESSION_VARS['INIT_VALUES'][$fieldName]) .' '; - $value .= '' . $HTTP_SESSION_VARS['INIT_VALUES'][$fieldName] .' '; - } - } - } - //$value = ''.$HTTP_SESSION_VARS['INIT_VALUES'][$fieldName].' '; - //$value = 'HOLA '; - //header("Content-Type: text/xml"); - //header("Content-type: text/xml;charset=UTF-8"); - header('Content-Type: text/xml; charset=UTF-8'); - print ''; - print ''.$value.''; - - - -} - - function LoadOptions( $stQry , $dbc ) - { - - $stQry = str_replace("''''", "''", $stQry); - - //cuando la conexion es normal... se intenta realizar el query - $dses = new DBSession; - $dses->SetTo( $dbc ); - $dses->UseDB( DB_NAME ); - $dset = $dses->Execute($stQry, false, 3 ); - $data = $dset->ReadAbsolute(); - - while( $data ) - { - $key = $data[0]; - $val = $data[1]; - $result[$key] = $val; - $data = $dset->ReadAbsolute(); - } - return $result; - } - - - -function reload( $fieldName,$fieldParent, $valueRecived, $appid, $filename){ - global $HTTP_SESSION_VARS; - $G_FORM = new Form; - G::LoadSystem("xmlform"); - G::LoadClass("dynaform"); - $fieldNew[$fieldParent] = $valueRecived; - $Connection = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );; - $ses = new DBSession($Connection); - $xml = new Xmlform; - $vars = explode('][',$fieldName); - if(is_array($vars)){ - $cant = count($vars); - $fieldName = $vars[$cant-1]; - if ($cant > 1) - $filename = $vars[0]; - } - $vars2 = explode('][',$fieldParent); - if(is_array($vars2)){ - $cant2 = count($vars2); - $fieldParent = $vars2[$cant2-1]; - - } - $v = $filename; - $xml->home = PATH_XMLFORM; - - $fieldXmlform = $xml->parseXmlformToArray ($v); - - $fieldNew[$fieldParent] = $fieldXmlform[$fieldName][defaultvalue]; - if($valueRecived != '') $fieldNew[$fieldParent] = $valueRecived; - $qry = stripslashes($fieldXmlform[$fieldName][Sql]); - $fieldNew[$fieldParent] = $fieldXmlform[$fieldName][defaultvalue]; - if($valueRecived != '') $fieldNew[$fieldParent] = $valueRecived; - - if($qry != ''){ - $conexion = $fieldXmlform[$fieldName][sqlconnection]; - G::LoadClass('dynaform'); - $myDyna = new Dynaform($Connection); - $fieldsBase = array(); - - if ($HTTP_SESSION_VARS['CURRENT_APPLICATION'] != "0") - $fieldsBase = $myDyna->getFieldsDefaultDynaform( $appid, 0 ); - if ( $appid != "" ) { - $Fields = G::array_merges ( $fieldsBase, $fieldNew ); - $qry = $myDyna->replaceTextWithFields($qry, $Fields); - } - else - $qry = "Select '1', 'dynamically filled' "; - - - eval ( '$Result = "$qry "; ' ); - $options = LoadOptions ( $Result , $Connection ); - } - return $options; -} -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userAssignRole.php b/rbac/engine/methods/rbac/userAssignRole.php deleted file mode 100755 index af139d8cb..000000000 --- a/rbac/engine/methods/rbac/userAssignRole.php +++ /dev/null @@ -1,70 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -//$G_MAIN_MENU = 'rbac'; -//$G_SUB_MENU = 'rbac.userView'; -//$G_MENU_SELECTED = 0; -//$G_SUB_MENU_SELECTED = 3; - -unset($_SESSION['CURRENT_APPLICATION']); -G::LoadClassRBAC('user'); -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - -$obj = new RBAC_user; -$obj->SetTo($dbc); -$access = $RBAC->userCanAccess('RBAC_CREATE_USERS'); - -$obj->SetTo($dbc); -$obj->Load($_SESSION['CURRENT_USER']); -$useLdap = $obj->Fields['USR_USE_LDAP'] == 'Y'; - -$ses = new DBSession; -$ses->SetTo ($dbc); - -$stQry = 'SELECT ROL_APPLICATION FROM USER_ROLE LEFT JOIN ROLE AS R ON (ROL_UID = R.UID) WHERE USR_UID = ' . $_SESSION['CURRENT_USER']; -$dset = $ses->Execute($stQry); -$row = $dset->Read(); -$inApps = '(0'; -while (is_array($row)) -{ - $inApps .= ', ' . (int)$row['ROL_APPLICATION']; - $row = $dset->Read(); -} -$inApps .= ')'; -$obj->Fields['INAPPS'] = $inApps; - -$stQry = 'SELECT COUNT(*) AS CANT FROM APPLICATION WHERE UID NOT IN ' . $inApps; -$dset = $ses->Execute($stQry); -$row = $dset->Read(); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); - -if ( $row['CANT'] > 0 ) - $G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/userAssignRole', '', $obj->Fields, 'userAssignRole2'); -else - $G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/noMoreRolesAvailable', '', $obj->Fields, 'userViewRole'); - -G::RenderPage( 'publish', 'blank'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userAssignRole2.php b/rbac/engine/methods/rbac/userAssignRole2.php deleted file mode 100755 index 01437ba28..000000000 --- a/rbac/engine/methods/rbac/userAssignRole2.php +++ /dev/null @@ -1,37 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$frm = $_POST['form']; -$rolid = $frm['USR_ROLE']; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -G::LoadClassRBAC('user'); -$obj = new RBAC_User; -$obj->SetTo($dbc); -$obj->assignUserRole($_SESSION['CURRENT_USER'], $rolid); -//header('location: userViewRole.html'); -?> - \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userChangeLdap.php b/rbac/engine/methods/rbac/userChangeLdap.php deleted file mode 100755 index 0a0dcb18e..000000000 --- a/rbac/engine/methods/rbac/userChangeLdap.php +++ /dev/null @@ -1,51 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - $G_MAIN_MENU = "rbac"; - $G_SUB_MENU = "rbac.userEdit"; - $G_MENU_SELECTED = 0; - - $uid = $HTTP_SESSION_VARS['CURRENT_USER']; - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $ses = new DBSession ( $dbc ); - - $stQry = "SELECT UID, USR_USE_LDAP FROM USERS where UID = $uid "; - $dset = $ses->Execute ( $stQry ); - $row = $dset->Read(); - $useLdap = $row['USR_USE_LDAP'] == 'Y'; - - $access = $RBAC->userCanAccess ("RBAC_CREATE_USERS"); - - G::LoadClassRBAC ("user"); - $obj = new RBAC_User; - $obj->SetTo ($dbc); - $obj->Load ($uid); - - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo ($dbc); - $G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/userChangeLdap", "", $obj->Fields, "userChangeLdap2"); - G::RenderPage( "publish" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userChangeLdap2.php b/rbac/engine/methods/rbac/userChangeLdap2.php deleted file mode 100755 index 722178124..000000000 --- a/rbac/engine/methods/rbac/userChangeLdap2.php +++ /dev/null @@ -1,44 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $_POST['form']; -//$frm = G::PrepareFormArray( $frm ); - -$use = $frm['USR_USE_LDAP']; -$source = $frm['USR_LDAP_SOURCE']; -$dn = $frm['USR_LDAP_DN']; - -$uid = $HTTP_SESSION_VARS['CURRENT_USER']; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - -G::LoadClassRBAC ('user'); -$obj = new RBAC_User; -$obj->SetTo( $dbc ); - -$obj->updateLDAP( $uid, $source, $dn, $use ); - -header( "location: userEdit.html" ); -?> diff --git a/rbac/engine/methods/rbac/userChangePwd.php b/rbac/engine/methods/rbac/userChangePwd.php deleted file mode 100755 index f28bc74ff..000000000 --- a/rbac/engine/methods/rbac/userChangePwd.php +++ /dev/null @@ -1,41 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_SUB_MENU = 'rbac.userView'; -$G_MENU_SELECTED = 0; -$G_SUB_MENU_SELECTED = 1; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); -$access = $RBAC->userCanAccess('RBAC_CREATE_USERS'); - -G::LoadClassRBAC('user'); -$obj = new RBAC_User; -$obj->SetTo($dbc); -$obj->Load($_SESSION['CURRENT_USER']); -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo($dbc); -$G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/userChangePwd', '', $obj->Fields, 'userChangePwd2'); -G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userChangePwd2.php b/rbac/engine/methods/rbac/userChangePwd2.php deleted file mode 100755 index 789e3cf7f..000000000 --- a/rbac/engine/methods/rbac/userChangePwd2.php +++ /dev/null @@ -1,43 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - $frm = $_POST['form']; - $pass1 = $frm['PASSWORD']; - $pass2 = $frm['PASSWORD2']; - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - G::LoadClassRBAC('user'); - $obj = new RBAC_User; - $obj->SetTo($dbc); - if ($pass1 != $pass2) - { - G::SendMessage(3, 'error'); - header('location: userChangePwd.php'); - die; - } - $obj->SetTo($dbc); - $obj->changePassword($_SESSION['CURRENT_USER'], $pass1); - header('location: userEdit.html'); - //header('location: userViewRole.html'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userEdit.php b/rbac/engine/methods/rbac/userEdit.php deleted file mode 100755 index 2ad36976f..000000000 --- a/rbac/engine/methods/rbac/userEdit.php +++ /dev/null @@ -1,155 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - G::GenericForceLogin ('RBAC_LOGIN','login/noViewPage','login/login'); - - $G_MAIN_MENU = 'rbac'; - $G_SUB_MENU = 'rbac.userEdit'; - $G_MENU_SELECTED = 0; - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - $ses = new DBSession($dbc); - - $dset = $ses->Execute('SELECT UID, USR_USE_LDAP FROM USERS where UID = ' . $_SESSION['CURRENT_USER']); - $row = $dset->Read(); - $useLdap = $row['USR_USE_LDAP'] == 'Y'; - $access = $RBAC->userCanAccess ('RBAC_CREATE_USERS'); - - G::LoadClassRBAC('user'); - $obj = new RBAC_User; - $obj->SetTo($dbc); - $obj->Load($_SESSION['CURRENT_USER']); - - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo ($dbc); - $G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/userEdit', '', $obj->Fields, 'userEdit2'); - $G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/userChangePwd', '', $obj->Fields, 'userChangePwd2'); - $G_PUBLISH->AddContent('xmlform', 'pagedTable', 'rbac/usersRolesList', '', array('CURRENT_USER' => $_SESSION['CURRENT_USER']), ''); - - G::RenderPage('publish'); -?> - \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userEdit2.php b/rbac/engine/methods/rbac/userEdit2.php deleted file mode 100755 index 48c900f00..000000000 --- a/rbac/engine/methods/rbac/userEdit2.php +++ /dev/null @@ -1,98 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - $frm = $_POST['form']; - $first = strtoupper ($frm['USR_LASTNAME']); - $mid = strtoupper ($frm['USR_MIDNAME']); - $names = strtoupper ($frm['USR_FIRSTNAME']); - if (!isset($frm['USR_EMAIL'])) - { - $frm['USR_EMAIL'] = ''; - } - if (!isset($frm['USR_PHONE'])) - { - $frm['USR_PHONE'] = ''; - } - if (!isset($frm['USR_CELLULAR'])) - { - $frm['USR_CELLULAR'] = ''; - } - if (!isset($frm['USR_FAX'])) - { - $frm['USR_FAX'] = ''; - } - if (!isset($frm['USR_POBOX'])) - { - $frm['USR_POBOX'] = ''; - } - if (!isset($frm['USR_USERNAME'])) - { - $frm['USR_USERNAME'] = ''; - } - if (!isset($frm['USR_STATUS'])) - { - $frm['USR_STATUS'] = ''; - } - if (!isset($frm['USR_DUE_DATE'])) - { - $frm['USR_DUE_DATE'] = ''; - } - if (!isset($frm['USR_USE_LDAP'])) - { - $frm['USR_USE_LDAP'] = ''; - } - $email = $frm['USR_EMAIL']; - $phone = $frm['USR_PHONE']; - $cell = $frm['USR_CELLULAR']; - $fax = $frm['USR_FAX']; - $pobox = $frm['USR_POBOX']; - $userID = $frm['USR_USERNAME']; - $status = $frm['USR_STATUS']; - $due = $frm['USR_DUE_DATE']; - $useLdap = $frm['USR_USE_LDAP']; - $uid = $_SESSION['CURRENT_USER']; - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - - G::LoadClassRBAC ('user'); - $obj = new RBAC_User; - $obj->SetTo($dbc); - $repId = $obj->UserNameRepetido($uid, $userID); - if ($repId != 0 ) - { - G::SendMessage (6, 'error'); - header('location: userEdit.php'); - die; - } - - $obj->SetTo($dbc); - $obj->SetToRBAC(DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - $uid = $obj->editUser($uid, $first, $mid, $names, $email, '', '', '', '', $userID, $status, $due, '', '', ''); - $obj->Load( $uid ); - if ( $obj->Fields['USR_USE_LDAP'] != $useLdap ) - { - $obj->updateLDAP( $uid, $obj->Fields['USR_LDAP_SOURCE'] , $obj->Fields['USR_LDAP_DN'] , $useLdap ); - } - header('location: userEdit.html'); - //header('location: userViewRole.html'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userList.php b/rbac/engine/methods/rbac/userList.php deleted file mode 100755 index 2bd57ba3c..000000000 --- a/rbac/engine/methods/rbac/userList.php +++ /dev/null @@ -1,44 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - G::GenericForceLogin ('RBAC_LOGIN','login/noViewPage','login/login'); - - $userID = isset ( $_SESSION ['USER_LOGGED'] ) ? $_SESSION ['USER_LOGGED'] : ''; - $G_MAIN_MENU = "rbac"; - $G_SUB_MENU = "rbac.user"; - $G_MENU_SELECTED = 0; - - $canCreateUsers = $RBAC->userCanAccess("RBAC_CREATE_USERS" ); - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - $G_PUBLISH = new Publisher; - $G_PUBLISH->SetTo ($dbc); - //$G_PUBLISH->AddContent ( "table", "paged-table", "rbac.users.list", "rbac/myApp", "", "load"); - $fields['CURRENT_USER'] = '';//"WHERE USR_UID = 1";//$HTTP_SESSION_VARS['CURRENT_USER']; - $G_PUBLISH->AddContent ( "xmlform", "pagedTable", "rbac/usersList", "", $fields, ""); - $content = '';//'';//G::LoadContent( "rbac/myApp" ); - G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userNew.php b/rbac/engine/methods/rbac/userNew.php deleted file mode 100755 index 39ca35297..000000000 --- a/rbac/engine/methods/rbac/userNew.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_BACK_PAGE = 'rbac/userList'; -$G_SUB_MENU = 'cancel'; -$G_MENU_SELECTED = 0; - -$G_PUBLISH = new Publisher; -$G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/userNew', '', '', 'userNew2'); -G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userNew2.php b/rbac/engine/methods/rbac/userNew2.php deleted file mode 100755 index 002c6ae8a..000000000 --- a/rbac/engine/methods/rbac/userNew2.php +++ /dev/null @@ -1,75 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$frm = $_POST['form']; -if (!isset($frm['USR_FIRSTNAME'])) -{ - $frm['USR_FIRSTNAME'] = ''; -} -if (!isset($frm['USR_MIDNAME'])) -{ - $frm['USR_MIDNAME'] = ''; -} -if (!isset($frm['USR_NAMES'])) -{ - $frm['USR_NAMES'] = ''; -} -if (!isset($frm['USR_EMAIL'])) -{ - $frm['USR_EMAIL'] = ''; -} -if (!isset($frm['USR_PHONE'])) -{ - $frm['USR_PHONE'] = ''; -} -if (!isset($frm['USR_CELLULAR'])) -{ - $frm['USR_CELLULAR'] = ''; -} -if (!isset($frm['USR_FAX'])) -{ - $frm['USR_FAX'] = ''; -} -if (!isset($frm['USR_POBOX'])) -{ - $frm['USR_POBOX'] = ''; -} -$first = strtoupper ($frm['USR_FIRSTNAME']); -$mid = strtoupper ($frm['USR_MIDNAME']); -$names = strtoupper ($frm['USR_NAMES']); -$email = $frm['USR_EMAIL']; -$phone = $frm['USR_PHONE']; -$cell = $frm['USR_CELLULAR']; -$fax = $frm['USR_FAX']; -$pobox = $frm['USR_POBOX']; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - -G::LoadClassRBAC ('user'); -$obj = new RBAC_User; -$obj->SetTo($dbc); -$uid = $obj->createUser ($first, $mid, $names, $email, $phone, $cell, $fax, $pobox); -$_SESSION['CURRENT_USER'] = $uid; - -header('location: userNew3.html'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userNew3.php b/rbac/engine/methods/rbac/userNew3.php deleted file mode 100755 index ad95f43be..000000000 --- a/rbac/engine/methods/rbac/userNew3.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$G_MAIN_MENU = 'rbac'; -$G_BACK_PAGE = 'rbac/userList'; -$G_SUB_MENU = 'cancel'; -$G_MENU_SELECTED = 0; - -$G_PUBLISH = new Publisher; -$G_PUBLISH->AddContent('xmlform', 'xmlform', 'rbac/userNewPwd', '', '', 'userNew4'); -G::RenderPage( 'publish'); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userNew4.php b/rbac/engine/methods/rbac/userNew4.php deleted file mode 100755 index 74749a32a..000000000 --- a/rbac/engine/methods/rbac/userNew4.php +++ /dev/null @@ -1,56 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -$frm = $_POST['form']; -$user = $frm['USR_USERNAME']; -$pass1 = $frm['USR_PASSWORD']; -$pass2 = $frm['USR_PASSWORD2']; -$uid = $_SESSION['CURRENT_USER']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - -G::LoadClassRBAC ('user'); -$obj = new RBAC_User; -$obj->SetTo($dbc); -$repId = $obj->UserNameRepetido($uid, $user); - -if ($repId != 0) -{ - G::SendMessage(6, 'error'); - header('location: userNew3.php'); - die; -} - -if ($pass1 != $pass2) -{ - G::SendMessage(3, 'error'); - header('location: userNew3.php'); - die; -} - -$obj->SetTo($dbc); -$obj->createUserName($uid, $user, $pass1); - -header('location: userList.html'); -?> diff --git a/rbac/engine/methods/rbac/userRoleDel.php b/rbac/engine/methods/rbac/userRoleDel.php deleted file mode 100755 index 66b1ff165..000000000 --- a/rbac/engine/methods/rbac/userRoleDel.php +++ /dev/null @@ -1,38 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - $roleid = isset($_GET['r'])?$_GET['r']: ''; - $uid = $HTTP_SESSION_VARS['CURRENT_USER']; - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - //crear Objeto Roles - G::LoadClassRBAC ("user"); - $obj = new RBAC_User; - $obj->SetTo ($dbc); - $obj->removeUserRole( $uid, $roleid ); - - header( "location: userEdit.html" ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userRoleProp.php b/rbac/engine/methods/rbac/userRoleProp.php deleted file mode 100755 index 0a80b7e4a..000000000 --- a/rbac/engine/methods/rbac/userRoleProp.php +++ /dev/null @@ -1,57 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = 'rbac'; -$G_SUB_MENU = 'rbac.userView'; -$G_MENU_SELECTED = 0; -$G_SUB_MENU_SELECTED = 2; - -//$permid = $URI_VARS[0]; -$rolid = $_SESSION['CURRENT_ROLE']; - -G::LoadClassRBAC ('roles'); -G::LoadClassRBAC ('user'); -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - -$obj = new RBAC_user; -$obj->SetTo ($dbc); -$access = $RBAC->userCanAccess('RBAC_CREATE_USERS'); -//$accessChangeRole = 0; - -$obj = New RBAC_role; -$obj->SetTo ($dbc); -$parents = $obj->GetAllParents($rolid); -$_SESSION['CURRENT_ROLE_PARENTS'] = $parents; - -/*if ( $permid != '' ) { - $obj->flipFlopRole($rolid, $permid); -}*/ - -$G_PUBLISH = new Publisher; -//$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( 'view', 'treePermRole'); -//$content = G::LoadContent( 'rbac/myApp' ); -G::RenderPage( 'publish' ); -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userTestLdap.php b/rbac/engine/methods/rbac/userTestLdap.php deleted file mode 100755 index 0132787cd..000000000 --- a/rbac/engine/methods/rbac/userTestLdap.php +++ /dev/null @@ -1,55 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.userView"; -$G_MENU_SELECTED = 0; - -$uid = $HTTP_SESSION_VARS['CURRENT_USER']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -$ses = new DBSession ( $dbc ); - -$stQry = "SELECT UID, USR_USE_LDAP FROM USERS where UID = $uid "; - -$dset = $ses->Execute ( $stQry ); -$row = $dset->Read(); -$useLdap = $row['USR_USE_LDAP'] == 'Y'; - -$access = $RBAC->userCanAccess ("RBAC_CREATE_USERS"); - -G::LoadClassRBAC ("user"); -$obj = new RBAC_User; -$obj->SetTo ($dbc); -$obj->Load ($uid); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/userTestLdap", "", $obj->Fields, "userTestLdap"); -$G_PUBLISH->AddContent ( "view", "testAuthenticationUser" ); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userTestLdap2.php b/rbac/engine/methods/rbac/userTestLdap2.php deleted file mode 100755 index 2b3481b91..000000000 --- a/rbac/engine/methods/rbac/userTestLdap2.php +++ /dev/null @@ -1,62 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$frm = $HTTP_POST_VARS['form']; -$frm = G::PrepareFormArray( $frm ); - -$password = $frm['PASS']; - -$uid = $HTTP_SESSION_VARS['CURRENT_USER']; -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -$ses = new DBSession ( $dbc ); - - -G::LoadClassRBAC ('user'); -$obj = new RBAC_User; -$obj->SetTo( $dbc ); - -//$obj->updateLDAP( $uid, $source, $dn, $use ); - -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.userView"; -$G_MENU_SELECTED = 0; - -$uid = $HTTP_SESSION_VARS['CURRENT_USER']; - -$access = $RBAC->userCanAccess ("RBAC_CREATE_USERS"); - -G::LoadClassRBAC ("user"); -$obj = new RBAC_User; -$obj->SetTo ($dbc); -$obj->Load ($uid); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "xmlform", "rbac/userTestLdap", "", $obj->Fields, "userTest2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - - -?> diff --git a/rbac/engine/methods/rbac/userView.php b/rbac/engine/methods/rbac/userView.php deleted file mode 100755 index eb19b5e29..000000000 --- a/rbac/engine/methods/rbac/userView.php +++ /dev/null @@ -1,47 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -$G_MAIN_MENU = "rbac"; -$G_SUB_MENU = "rbac.userView"; -$G_MENU_SELECTED = 0; - -$uid = $HTTP_SESSION_VARS['CURRENT_USER']; -G::LoadClassRBAC ("user"); -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -$obj = new RBAC_user; - -$obj->SetTo ($dbc); -$access = $RBAC->userCanAccess ("RBAC_CREATE_USERS" ); - -$obj->SetTo ($dbc); -$obj->Load ($uid); - -$G_PUBLISH = new Publisher; -$G_PUBLISH->SetTo ($dbc); -$G_PUBLISH->AddContent ( "xmlform", "view", "rbac/userView", "", $obj->Fields, "userNew2"); -$content = '';//G::LoadContent( "rbac/myApp" ); -G::RenderPage( "publish" ); - -?> \ No newline at end of file diff --git a/rbac/engine/methods/rbac/userViewRole.php b/rbac/engine/methods/rbac/userViewRole.php deleted file mode 100755 index 621ccc83e..000000000 --- a/rbac/engine/methods/rbac/userViewRole.php +++ /dev/null @@ -1,52 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - G::GenericForceLogin ('RBAC_LOGIN','login/noViewPage','login/login'); - - $G_MAIN_MENU = 'rbac'; - $G_SUB_MENU = 'rbac.userView'; - $G_MENU_SELECTED = 0; - $G_SUB_MENU_SELECTED = 2; - -//$uid = $_SESSION['CURRENT_USER']; - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); -/*$ses = new DBSession ( $dbc ); - -$stQry = 'SELECT UID, USR_USE_LDAP FROM USERS where UID = ' . $uid; -$dset = $ses->Execute ( $stQry ); -$row = $dset->Read(); -$useLdap = $row['USR_USE_LDAP'] == 'Y';*/ - -$access = $RBAC->userCanAccess ('RBAC_CREATE_USERS' ); - -$G_PUBLISH = new Publisher; -//$G_PUBLISH->SetTo ($dbc); -//$G_PUBLISH->AddContent ( 'table', 'paged-table', 'rbac.users.role', 'rbac/myApp', '', ''); -//$content = G::LoadContent( 'rbac/myApp' ); -$G_PUBLISH->AddContent('xmlform', 'pagedTable', 'rbac/usersRolesList', '', array('CURRENT_USER' => $_SESSION['CURRENT_USER']), ''); -G::RenderPage( 'publish'); - -?> \ No newline at end of file diff --git a/rbac/engine/pre_processor.php b/rbac/engine/pre_processor.php deleted file mode 100755 index 643ba4422..000000000 --- a/rbac/engine/pre_processor.php +++ /dev/null @@ -1,202 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -define ( 'PEAR_DB', '1' ); -define ( 'PEAR_DATABASE', 'mysql'); - - -//***************** Application specific Directories & Paths ************************** - // This is defined in sysGeneric: - //define('PATH_DATA', '/shared/rbac/'); - //define('PATH_DATA_SITE', PATH_DATA . 'sites/' . SYS_SYS . '/'); - - // Application's General Paths - define( 'PATH_CORE', PATH_HOME . 'engine' . PATH_SEP ); - define( 'PATH_SKINS', PATH_CORE . 'skins' . PATH_SEP ); - define( 'PATH_METHODS', PATH_CORE . 'methods' . PATH_SEP ); - define( 'PATH_XMLFORM', PATH_CORE . 'xmlform' . PATH_SEP ); - -// Other Paths -define( 'PATH_DB' , PATH_HOME . 'engine' . PATH_SEP . 'db' . PATH_SEP); -define( 'PATH_RTFDOCS' , PATH_CORE . 'rtf_templates' . PATH_SEP ); -define( 'PATH_HTMLMAIL', PATH_CORE . 'html_templates' . PATH_SEP ); -define( 'PATH_TPL' , PATH_CORE . 'templates' . PATH_SEP ); -define( 'PATH_DYNAFORM', PATH_XMLFORM . 'dynaform' . PATH_SEP ); -define( 'PATH_DYNACONT', PATH_CORE . 'content' . PATH_SEP . 'dynaform' . PATH_SEP ); -define( 'SYS_UPLOAD_PATH', PATH_HOME . "public_html/files/" ); -define( 'PATH_UPLOAD', PATH_HTML . "/" . "files" ); - -//***************** Call Gulliver Classes ************************** - - G::LoadSystem('dbconnection'); - G::LoadSystem('dbsession'); - G::LoadSystem('dbrecordset'); - G::LoadSystem('dbtable'); - - require_once(PATH_THIRDPARTY . 'pear/json/class.json.php'); - require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php'); - G::LoadSystem('xmlDocument'); - G::LoadSystem('xmlform'); - G::LoadSystem('form'); - G::LoadSystem('menu'); -// G::LoadSystem('content'); - G::LoadSystem('table'); - G::LoadSystem('publisher'); - G::LoadSystem('templatePower'); - - G::LoadSystem('headPublisher'); - $oHeadPublisher =& headPublisher::getSingleton(); - -/* Setup ... */ - //global $G_STRINGS; -// $languageDir = glob( G::ExpandPath('content') . 'languages/*.xml' ); -// foreach($languageDir as $languageFile) { -// G::loadLanguageFile ($languageFile); -// } - - define('TIMEOUT_RESPONSE', 100 ); - - define( 'APPLICATION_CODE', 'ProcessMaker' ); //to login like workflow system - -if ( defined('SYS_TEMP') && SYS_TEMP != '') { - if ( file_exists( PATH_DB . 'db_' . SYS_TEMP . '.php' )) { - require_once( PATH_DB . 'db_' . SYS_TEMP . '.php' ); - define ( SYS_SYS, SYS_TEMP ); - } - else { - $sysParts = explode('-',SYS_TEMP); - if ( count($sysParts) == 3) { - $fileName = 'dbmodule_'.$sysParts[1].'.php'; - $DB_INDEX = 0; - $DB_MODULE = array(); - - if ( !file_exists( PATH_DB . $fileName)) { - header ("location: /errors/error701.php"); - die; - } - require_once ( PATH_DB . $fileName ); - $moduleName = $DB_MODULE[$DB_INDEX]['name']; - $modulePath = $DB_MODULE[$DB_INDEX]['path']; - $moduleType = $DB_MODULE[$DB_INDEX]['type']; - if ( !file_exists( $modulePath )) { - header ("location: /errors/error704.php"); die; - } - if ( $moduleType == 'single-file' ) { - $workspaceDB = $modulePath. 'db_'. $sysParts[2] . '.php'; - } - else { - $workspaceDB = $modulePath. $sysParts[2] . '/db.php'; - } - if ( !file_exists( $workspaceDB )) { - header ("location: /errors/error704.php"); die; - } - require_once( $workspaceDB ) ; - define ( 'SYS_SYS', $sysParts[2]); - } - else { - header ("location: /errors/error701.php"); - die; - } - } -} -else { - require_once( PATH_METHODS . "login/showDBFiles.php" ) ; - die(); -} - -G::LoadSystem( 'rbac' ); //to enable rbac - -//***************** Other global definitions ************************** -$G_CONTENT = NULL; -$G_MESSAGE = ""; -$G_MESSAGE_TYPE = "info"; -$G_MENU_SELECTED = -1; -$G_MAIN_MENU = "default"; -$G_APPLICATION_CODE = "RBAC"; //to enable rbac -$RBAC = new rbac; //to enable rbac - -/* -if (defined('SYS_SYS')){ - if ( $HTTP_SESSION_VARS['ENVIRONMENT'] != '' && -// $HTTP_SESSION_VARS['ENVIRONMENT'] != 'vacio' && - SYS_SYS != 'vacio' && - SYS_SYS != $HTTP_SESSION_VARS['ENVIRONMENT'] ) { - $HTTP_SESSION_VARS['ENVIRONMENT'] = SYS_SYS; - header ("location: /sys".SYS_SYS."/" . SYS_LANG . "/" . SYS_SKIN . "/login/login.html"); - die; - } -} -else{ //cuando no esta definido - if ( $HTTP_SESSION_VARS['ENVIRONMENT'] != '' && - $HTTP_SESSION_VARS['ENVIRONMENT'] != 'vacio' && - SYS_SYS != 'vacio' && - SYS_SYS != $HTTP_SESSION_VARS['ENVIRONMENT'] ) { - $HTTP_SESSION_VARS['ENVIRONMENT'] = SYS_SYS; - header ("location: /sys/" . SYS_LANG . "/" . SYS_SKIN . "/login/login.html"); - die; - } -} -*/ - - -//***************** Session Initializations **************************/ - ini_alter( 'session.auto_start', '1' ); - // This feature has been DEPRECATED as of PHP 5.3.0. default value Off - // ini_alter( 'register_globals', 'Off' ); - session_start(); - ob_start(); - -//*********Log Handler************* -// logPage ( $URL , SYS_CURRENT_PARMS); - - -//*********jump to php file in methods directory ************* - $phpFile = G::ExpandPath('methods') . SYS_COLLECTION . "/" . SYS_TARGET.'.php'; - if ( substr(SYS_COLLECTION , 0,8) === 'gulliver' ) { - $phpFile = PATH_GULLIVER_HOME . 'methods/' . substr( SYS_COLLECTION , 8) . - SYS_TARGET.'.php'; - } else { - if ( ! file_exists( $phpFile ) ) { - header ("location: /errors/error404.php"); - die; - } - } - -//***************** Headers ************************** -if ( ! defined('EXECUTE_BY_CRON') ) { - header("Expires: Tue, 19 Jan 1999 04:30:00 GMT"); - header("Last-Modified: Tue, 19 Jan 1999 04:30:00 GMT"); - header('Cache-Control: no-cache, must-revalidate, post-check=0,pre-check=0 '); - //header("Cache-Control: max-age=0"); - header('P3P: CP="CAO PSA OUR"'); - require_once( $phpFile ); - if ( defined('SKIP_HEADERS') ) { - header("Expires: " . gmdate("D, d M Y H:i:s", mktime( 0,0,0,date('m'),date('d'),date('Y') + 1) ) . " GMT"); - header('Cache-Control: public'); - header('Pragma: '); - } - ob_end_flush(); -} -?> \ No newline at end of file diff --git a/rbac/engine/tables/rbac.applications.list.php b/rbac/engine/tables/rbac.applications.list.php deleted file mode 100755 index 81008b8b0..000000000 --- a/rbac/engine/tables/rbac.applications.list.php +++ /dev/null @@ -1,82 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_TABLE; -global $G_TMP_TARGET; -global $HTTP_SESSION_VARS; -global $canCreateApp; //verificar si tiene permiso para editar una APLICACION - - -$lang = SYS_LANG; - -switch( $lang ) -{ -case 'po': - $Labels = array( - "ID", - "Cdigo", - "Descripcion", - "Roles", - "Permisos", - ); - break; -case 'es': - $Labels = array( - "ID", - "Cdigo", - "Descripcin", - "Roles", - "Permisos", - ); - break; -default: - $Labels = array( - "ID", - "Code", - "Description", - "Roles", - "Permissions", - ); - break; -} - -$canEdit = ( $canCreateApp == 1? "link" : "text" ); - -$stQry = "SELECT *, '$Labels[3]' as ROL_UID, '$Labels[4]' AS PRM_UID " . - "FROM APPLICATION AS A ORDER BY UID"; - -$G_TMP_TABLE->SetSource( $stQry, "" ); -$G_TMP_TABLE->WhereClause = ""; - -$G_TMP_TABLE->AddRawColumn( "text", "UID", "center", 35, $G_TMP_TARGET, "&UID" ); -$G_TMP_TABLE->AddRawColumn( $canEdit, "APP_CODE", "left", 110, "appEdit", "&UID" ); -$G_TMP_TABLE->AddRawColumn( "text", "APP_DESCRIPTION", "left", 270 ); -$G_TMP_TABLE->AddRawColumn( "link", "ROL_UID", "center", 80, "loadRoleView", "&UID" ); -$G_TMP_TABLE->AddRawColumn( "link", "PRM_UID", "center", 90, "loadPermView", "&UID" ); - -$G_TMP_TABLE->Labels = $Labels; - - -?> \ No newline at end of file diff --git a/rbac/engine/tables/rbac.authentication.list.php b/rbac/engine/tables/rbac.authentication.list.php deleted file mode 100755 index 7cf7c2aab..000000000 --- a/rbac/engine/tables/rbac.authentication.list.php +++ /dev/null @@ -1,42 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_TABLE; -global $HTTP_SESSION_VARS; - -$stQry = "SELECT * " . - "FROM AUTHENTICATION_SOURCES ORDER BY AUT_UID"; - -$G_TMP_TABLE->SetSource( $stQry, "" ); -$G_TMP_TABLE->WhereClause = ""; - -$G_TMP_TABLE->AddColumn( G::LoadMessageXml ("ID_UID"), "link", "AUT_UID", "center", 35, 'loadAuthSource', "&AUT_UID" ); -$G_TMP_TABLE->AddColumn( G::LoadMessageXml ("ID_NAME"), "link", "AUT_NAME", "left", 200, 'loadAuthSource', "&AUT_UID" ); -$G_TMP_TABLE->AddColumn( G::LoadMessageXml ("ID_SERVER_NAME"),"text", "AUT_SERVER_NAME", "left", 100 ); -$G_TMP_TABLE->AddColumn( G::LoadMessageXml ("ID_PROVIDER"), "text", "AUT_PROVIDER", "center", 90 ); -$G_TMP_TABLE->AddRawColumn( "image", "/images/trash.gif","center", 90, "authDel", "&AUT_UID" ); -//$G_TMP_TABLE->AddColumn( G::LoadMessageXml ("ID_UID"), "link", "PRM_UID", "center", 90 , "loadPermView", "&UID" ); - -?> \ No newline at end of file diff --git a/rbac/engine/tables/rbac.permissions.list.php b/rbac/engine/tables/rbac.permissions.list.php deleted file mode 100755 index e58fcafcf..000000000 --- a/rbac/engine/tables/rbac.permissions.list.php +++ /dev/null @@ -1,68 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_TABLE; -global $G_TMP_TARGET; -global $HTTP_SESSION_VARS; - -$lang = SYS_LANG; -$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION']; - -$stQry = "SELECT * " . - "FROM PERMISSION AS P WHERE PRM_APPLICATION = $appid"; - -$G_TMP_TABLE->SetSource( $stQry, "" ); -$G_TMP_TABLE->WhereClause = ""; - -$G_TMP_TABLE->AddRawColumn( "link", "UID", "center", 60, $G_TMP_TARGET, "&UID" ); -$G_TMP_TABLE->AddRawColumn( "link", "PRM_CODE", "left", 200, $G_TMP_TARGET, "&UID" ); -$G_TMP_TABLE->AddRawColumn( "text", "PRM_DESCRIPTION", "left", 200 ); - -switch( $lang ) -{ -case 'po': - $G_TMP_TABLE->Labels = array( - "ID", - "Cdigo", - "Descripcion" - ); - break; -case 'es': - $G_TMP_TABLE->Labels = array( - "ID", - "Cdigo", - "Descripcin" - ); - break; -default: - $G_TMP_TABLE->Labels = array( - "ID", - "Code", - "Description" - ); - break; -} - -?> \ No newline at end of file diff --git a/rbac/engine/tables/rbac.roles.list.php b/rbac/engine/tables/rbac.roles.list.php deleted file mode 100755 index 963d87475..000000000 --- a/rbac/engine/tables/rbac.roles.list.php +++ /dev/null @@ -1,71 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_TABLE; -global $G_TMP_TARGET; -global $HTTP_SESSION_VARS; - -$lang = SYS_LANG; - -$stQry = "SELECT * " . - "FROM ROLE AS R left JOIN APPLICATION AS A ON (ROL_APPLICATION = A.UID ) "; - -$G_TMP_TABLE->SetSource( $stQry, "" ); -$G_TMP_TABLE->WhereClause = ""; - -$G_TMP_TABLE->AddRawColumn( "text", "UID", "center" , 60 ); -$G_TMP_TABLE->AddRawColumn( "text", "APP_CODE", "left", 150 ); -$G_TMP_TABLE->AddRawColumn( "text", "ROL_CODE", "left", 200 ); -$G_TMP_TABLE->AddRawColumn( "text", "ROL_DESCRIPTION", "left", 200 ); - -switch( $lang ) -{ -case 'po': - $G_TMP_TABLE->Labels = array( - "ID", - "Application", - "Cdigo", - "Descripcion" - ); - break; -case 'es': - $G_TMP_TABLE->Labels = array( - "ID", - "Applicacin", - "Cdigo", - "Descripcin" - ); - break; -default: - $G_TMP_TABLE->Labels = array( - "ID", - "Application", - "Code", - "Description" - ); - break; -} - -?> \ No newline at end of file diff --git a/rbac/engine/tables/rbac.users.list.php b/rbac/engine/tables/rbac.users.list.php deleted file mode 100755 index 726401ce5..000000000 --- a/rbac/engine/tables/rbac.users.list.php +++ /dev/null @@ -1,78 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_TABLE; -global $G_TMP_TARGET; -global $HTTP_SESSION_VARS; - -$lang = SYS_LANG; - - -$stQry = "SELECT UID, USR_USERNAME, USR_USE_LDAP, " . - "CONCAT(USR_LASTNAME,' ',USR_MIDNAME,' ',USR_FIRSTNAME) AS USR_NAME, " . - "USR_EMAIL, USR_CREATE_DATE, USR_DUE_DATE, USR_STATUS " . - "FROM USERS AS U ORDER BY UID"; - - -$G_TMP_TABLE->SetSource( $stQry, "" ); -$G_TMP_TABLE->WhereClause = ""; - -$G_TMP_TABLE->AddRawColumn( "link", "UID", "center", 45, "loadUser", "&UID" ); -$G_TMP_TABLE->AddRawColumn( "link", "USR_USERNAME", "left", 110, "loadUserRole", "&UID" ); -$G_TMP_TABLE->AddRawColumn( "text", "USR_NAME" , "left", 220 ); -$G_TMP_TABLE->AddRawColumn( "text", "USR_EMAIL", "left", 80 ); -$G_TMP_TABLE->AddRawColumn( "text", "USR_STATUS", "center", 80 ); -//$G_TMP_TABLE->AddRawColumn( "text", "USR_CREATE_DATE","center",100 ); -$G_TMP_TABLE->AddRawColumn( "text", "USR_USE_LDAP","center",60 ); -$G_TMP_TABLE->AddRawColumn( "text", "USR_DUE_DATE","center",100 ); -// $G_TMP_TABLE->AddRawColumn("jslink", "DELETEBID", "center", 50,"DeleteDraftBid","&JOBID",'','',false); - -switch( $lang ) -{ -case 'es': - $G_TMP_TABLE->Labels = array( - "ID", - "Nombre de Usuario", - "Nombre completo", - "Email", - "Estado", - 'LDAP/AD', - "Fecha Venc." - ); - break; -default: - $G_TMP_TABLE->Labels = array( - "ID", - "User Name", - "Full Name", - "Email", - "Status", - 'LDAP/AD', //"Creation Date", - "Due Date" - ); - break; -} - -?> \ No newline at end of file diff --git a/rbac/engine/tables/rbac.users.role.php b/rbac/engine/tables/rbac.users.role.php deleted file mode 100755 index 1a9d9eea3..000000000 --- a/rbac/engine/tables/rbac.users.role.php +++ /dev/null @@ -1,89 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -global $G_TMP_TABLE; -global $G_TMP_TARGET; -global $HTTP_SESSION_VARS; -global $access; - -$lang = SYS_LANG; -$uid = $HTTP_SESSION_VARS['CURRENT_USER']; - -$stQry = "SELECT " . - "USR_USERNAME FROM USERS WHERE UID = $uid"; - - -$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); -$ses = new DBSession ( $dbc ); -$dset = $ses->Execute ( $stQry ); -$row = $dset->Read( ); - -$stQry = "SELECT " . - "USR_USERNAME, APP_CODE, ROL_UID, USR_UID, " . - "ROL_CODE, ROL_DESCRIPTION, ROL_APPLICATION " . - " FROM USER_ROLE AS A LEFT JOIN USERS AS U ON (USR_UID = U.UID) " . - " LEFT JOIN ROLE AS R ON (ROL_UID = R.UID) " . - " LEFT JOIN APPLICATION AS P ON (ROL_APPLICATION = P.UID) " . - " WHERE USR_UID = $uid"; - -$G_TMP_TABLE->SetSource( $stQry, "" ); -$G_TMP_TABLE->WhereClause = ""; -$G_TMP_TABLE->title = "user: " . $row['USR_USERNAME']; - -$G_TMP_TABLE->AddRawColumn( "text", "APP_CODE", "left", 120 ); -$G_TMP_TABLE->AddRawColumn( "link", "ROL_CODE", "left", 120, "loadRoleProp", "&ROL_UID" ); -$G_TMP_TABLE->AddRawColumn( "text", "ROL_DESCRIPTION","left", 180 ); -if ($access == 1) - $G_TMP_TABLE->AddRawColumn( "image", "/images/trash.gif","center", 90, "userRoleDel", "&ROL_UID" ); - -switch( $lang ) -{ -case 'po': - $G_TMP_TABLE->Labels = array( - "Application", - "Rol Code", - "Rol Descripcion", - "Quitar Rol" - ); - break; -case 'es': - $G_TMP_TABLE->Labels = array( - "Aplicacin", - "Cdigo de Rol", - "Descripcion de Rol", - "Quitar Rol" - ); - break; -default: - $G_TMP_TABLE->Labels = array( - "Application", - "Role Code", - "Role Description", - "Remove Rol" - ); - break; -} - -?> \ No newline at end of file diff --git a/rbac/engine/templates/authListUsers.html b/rbac/engine/templates/authListUsers.html deleted file mode 100755 index 6e575bbb6..000000000 --- a/rbac/engine/templates/authListUsers.html +++ /dev/null @@ -1,71 +0,0 @@ -
    - - - -
    - - - - - - -
    {title} -
    - - -
    {text}

    -
    - - - - - - \n"; - $tpl->assign( "href" , (ENABLE_ENCRYPT=='yes'?str_replace(G::encrypt('sys' . SYS_SYS, URL_KEY), SYS_SYS, G::encryptUrl(urldecode(SYS_CURRENT_URI), URL_KEY)):SYS_CURRENT_URI) . "?order=" . $G_TABLE->Columns[$intPos]['Name']."&page=".$pa."&label=true" ); - $Fields['headers'][] = $header; - } - else - { - $tpl->assign( "href" , '' ); - $res = "\n"; - } - } - //end grid titles - - if ( $G_TABLE->rows_per_page == '' ) $G_TABLE->rows_per_page = 25; - if ($cuenta >= $G_TABLE->rows_per_page) - $lastrow = $G_TABLE->rows_per_page; - else - $lastrow = $cuenta; - - while ( $G_TABLE->CurRow() < $lastrow ) - { - $G_TABLE->Read(); - $class = ( $G_TABLE->CurRow() % 2 == 0 ? "Row1" : "Row2" ); - - $tpl->newBlock( "row" ); - $tpl->assign( "class" , $class ); - for ( $ncount=0 ; $ncount < $G_TABLE->ColumnCount() ; $ncount++ ) - { - $tpl->newBlock( "field" ); - $col = $G_TABLE->Columns[$ncount]["Align"]; - $tpl->assign( "align" , ( $col <> '' ? " align=\"$col\"" : 'x' ) ); - $tpl->assign( "value" , $G_TABLE->RenderColumn( $ncount, '', '',0, 0) ); - } - } - - if( $curpage > 1 ) { - $firstUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=1'; - $prevpage = $curpage - 1; - $prevUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=' . $prevpage; - $tpl->assign( "firstUrl" , $firstUrl ); - $tpl->assign( "prevUrl" , $prevUrl ); - $first = "<<"; - $prev = "<"; - } - else - { - $tpl->assign( "firstOff" , 1 ); - $tpl->assign( "prevOff" , 1 ); - $first = "<<"; - $prev = "<"; - } - - - $tpl->gotoBlock( "_ROOT" ); - if ( $totpages !=1 ) $tpl->newBlock( "paging" ); - $tpl->assign( "first" , $first ); - $tpl->assign( "prev" , $prev ); - - $tpl->assign( "curPage" , '' . G::LoadMessageXml('ID_PAGE') . ' ' . $curpage . ' ' . G::LoadMessageXml('ID_OF') . ' ' . $totpages . ' ' . ''); - - if( $curpage < $totpages ) { - $lastUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=' . $totpages; - $nextpage = $curpage + 1; - $nextUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=' . $nextpage; - $next = ">"; - $last = ">>"; - } - else - { - $next = ">"; - $last = ">>"; - } - $tpl->assign( "next" , $next ); - $tpl->assign( "last" , $last ); - $tpl->assign( "columnCount", $G_TABLE->ColumnCount() ); - - if( $totpages > 1 ) - { - // --------- codigo para colocar numeros de paginas --------- - $ncount = 1; - $inicio=$HTTP_SESSION_VARS['COMIENZO']; - $fin=$HTTP_SESSION_VARS['FINAL']; - // echo "Inicio:".$inicio." fin".$fin; - - for( $ncount = $inicio; $ncount <= $fin-1; $ncount++ ) - { - if($ncount>=1 && $ncount<=$totpages) - { - if( $ncount <= $totpages ) $pagesEnum .= "   "; - $pagesEnum .= ""; - $pagesEnum .= $ncount; - $pagesEnum .= ""; - } - } - $pagesEnum .="   "; - $tpl->assign("pagesEnum", $pagesEnum); - } - - if ( $lastrow == 0 ) { - $tpl->gotoBlock( "_ROOT" ); - $tpl->newBlock( 'norecords' ); - $tpl->assign( "noRecordsFound", G::LoadMessageXml('ID_NO_RECORDS_FOUND') ); - $tpl->assign( "columnCount", $G_TABLE->ColumnCount()); - } - - if ( $lastrow > $G_TABLE->rows_per_page * 0.66 ) { - $tpl->gotoBlock( "_ROOT" ); - $tpl->newBlock( "bottomFooter" ); - $tpl->assign( "columnCount", $G_TABLE->ColumnCount() + 1); - $tpl->assign( "first" , $first ); - $tpl->assign( "prev" , $prev ); - $tpl->assign( "next" , $next ); - $tpl->assign( "last" , $last ); - $tpl->assign("pagesEnum", $pagesEnum); - } - $tpl->gotoBlock( "_ROOT" ); - $tpl->printToScreen(); - ?> \ No newline at end of file diff --git a/rbac/engine/templates/popupMenu.html b/rbac/engine/templates/popupMenu.html deleted file mode 100755 index 1cbe08d4d..000000000 --- a/rbac/engine/templates/popupMenu.html +++ /dev/null @@ -1,33 +0,0 @@ -{if $printJSFile} -function popupMenu_{$form->name}( target ) -{literal} -{ - try { - var menu = new leimnud.module.app.menuRight(); - menu.make({ - target: target, - menu:[ - {/literal} - {php}$this->assign('firstfield', true);{/php} - {foreach from=$form->fields item=field key=name} - {if $field->type==='popupoption'} - {if !$firstfield},{/if} - {$field->getEvents()} - {php}$this->assign('firstfield', false);{/php} - {/if} - {/foreach} - {literal} - ], - parent:leimnud - }); - } catch (e) { - } -} -{/literal} -{* Javascript TAGs *} - {foreach from=$form->fields item=field key=name} - {if $field->type==='javascript'} - {$field->render('',$form)} - {/if} - {/foreach} -{/if} \ No newline at end of file diff --git a/rbac/engine/templates/publish.php b/rbac/engine/templates/publish.php deleted file mode 100755 index b307d6edd..000000000 --- a/rbac/engine/templates/publish.php +++ /dev/null @@ -1,53 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - global $G_PUBLISH; - global $G_CONTENT; - global $G_FORM; - global $G_TABLE; - global $RBAC; - if ( !is_object( $G_PUBLISH ) ) die ("Publisher object is required by this template!"); -?> -
    - - - - - - -
    {title} -
    - - -
    {empty-rows-text}

    -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    User{title} User IdRoles{title}
    {index}{dn}
    {fullname} ( {email} )
    {checkbox}{input}{options}
     
    -
    - diff --git a/rbac/engine/templates/filterform.html b/rbac/engine/templates/filterform.html deleted file mode 100755 index 4f903f1d3..000000000 --- a/rbac/engine/templates/filterform.html +++ /dev/null @@ -1,111 +0,0 @@ -{if $printTemplate} -{* this is the xmlform template *} - - - - - - -{/if} -{if $printJSFile} -var form_{$form->id}; -var i; -function loadForm_{$form->id}(ajaxServer) -{literal}{{/literal} -if (typeof(G_Form)==='undefined') return alert('form.js was not loaded'); - form_{$form->id}=new G_Form(document.getElementById('form[{$form->id}]'),'{$form->id}'); - var myForm=form_{$form->id}; - myForm.ajaxServer=ajaxServer; - {foreach from=$form->fields item=field key=name} - i = myForm.aElements.length; - {if ($field->type==='dropdown')} - myForm.aElements[i] = new G_DropDown(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='text')} - myForm.aElements[i] = new G_Text(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='percentage')} - myForm.aElements[i] = new G_Percentage(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='currency')} - myForm.aElements[i] = new G_Currency(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='date')} - myForm.aElements[i] = new G_Date(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='grid')} - myForm.aElements[i] = new G_Grid(myForm, '{$name}'); - grid_{$field->id}(myForm.aElements[i]); - {$field->attachEvents("myForm.aElements[i].element")} - {else} - var element = getField("{$name}"); - {$field->attachEvents("element")} - {/if} - {/foreach} - {foreach from=$form->fields item=field key=name} - {if isset($field->dependentFields) && ($field->dependentFields!='')} - {if ($field->type==='dropdown')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='text')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='percentage')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='currency')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {/if} - {/if} - {/foreach} -{literal}}{/literal} -{/if} -{if $printJavaScript} -leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');{literal}}{/literal}); -{/if} \ No newline at end of file diff --git a/rbac/engine/templates/formFilter.html b/rbac/engine/templates/formFilter.html deleted file mode 100755 index e0d860aa1..000000000 --- a/rbac/engine/templates/formFilter.html +++ /dev/null @@ -1,113 +0,0 @@ -{if $printTemplate} -{* this is the xmlform template *} - - - - -
    -{if isset($form->title) && $form->title !=='' } - - - - -
    {$form->title}
    -{/if} - -{assign name='colCounter' value='0'} -{foreach from=$form->fields item=field} -{if ($field->type==='title')} - - - - {assign name='colCounter' value='0'} -{elseif ($field->type==='subtitle')} - - - - {assign name='colCounter' value='0'} -{elseif ($field->type==='button') || ($field->type==='submit') || ($field->type==='reset')} - - - - {assign name='colCounter' value='0'} -{elseif ($field->type==='grid')} - - - - {assign name='colCounter' value='0'} -{elseif ($field->type==='javascript')} - -{elseif ($field->type==='phpvariable')} -{elseif ($field->type==='private')} -{elseif ($field->type==='')} -{else} - {if $colCounter==0} {/if} - {assign name='colCounter' value=`($colCounter+1) % $form->cols`} - - - {if $colCounter==0} {/if} -{/if} -{/foreach} -
    {$field->field}
    {$field->field}
    {$field->field}
    {$field->field}
    {$field->label}{$field->field}
    -
    -{/if} -{if $printJSFile} -var form_{$form->id}; -var i; -function loadForm_{$form->id}(ajaxServer) -{literal}{{/literal} -if (typeof(G_Form)==='undefined') return alert('form.js was not loaded'); - form_{$form->id}=new G_Form(document.getElementById('{$form->id}'),'{$form->id}'); - var myForm=form_{$form->id}; - myForm.ajaxServer=ajaxServer; - {foreach from=$form->fields item=field key=name} - i = myForm.aElements.length; - {if ($field->type==='dropdown')} - myForm.aElements[i] = new G_DropDown(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='text')} - myForm.aElements[i] = new G_Text(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='percentage')} - myForm.aElements[i] = new G_Percentage(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='currency')} - myForm.aElements[i] = new G_Currency(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='date')} - myForm.aElements[i] = new G_Date(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='grid')} - myForm.aElements[i] = new G_Grid(myForm, '{$name}'); - grid_{$field->id}(myForm.aElements[i]); - {$field->attachEvents("myForm.aElements[i].element")} - {else} - var element = getField("{$name}"); - {$field->attachEvents("element")} - {/if} - {/foreach} - {foreach from=$form->fields item=field key=name} - {if isset($field->dependentFields) && ($field->dependentFields!='')} - {if ($field->type==='dropdown')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='text')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='percentage')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='currency')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {/if} - {/if} - {/foreach} -{literal}}{/literal} -{/if} -{if $printJavaScript} -leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');{literal}}{/literal}); -{/if} \ No newline at end of file diff --git a/rbac/engine/templates/grid.html b/rbac/engine/templates/grid.html deleted file mode 100755 index f9208a093..000000000 --- a/rbac/engine/templates/grid.html +++ /dev/null @@ -1,107 +0,0 @@ -{if $printTemplate} -{* this is the grid template *} - - -
    - - - - -
    {$form->label} -
    - - - -{foreach from=$form->fields item=field} - -{/foreach} - -{literal} -{section name=row loop=$form_rows} -{if ($smarty.section.row.index==0)} - -{else} - -{/if} - -{/literal} -{foreach from=$form->fields item=field} - -{/foreach} -{if ($form->deleteRow) } - -{/if} -{if ($form->editRow)} - -{/if} -{literal} - -{/section} -{* TOTALIZABLE ROW *} - - -{/literal} -{foreach from=$form->fields item=field} - -{/foreach} -{literal} - -{/literal} -
    #{$field->label}
    {$smarty.section.row.index+1} {$field->field}edit
    - {if isset($field->function) && $field->function!=='' } - {if $field->function=='sum'} - Σ = 0 - {elseif $field->function=='avg'} - ¯X = 0 - {/if} - {/if} -
    -{if ($form->addRow) } - - - - -
    -{/if} -
    -{/if} -{if $printJSFile} -function grid_{$form->id}(myGrid) -{literal}{{/literal} - {* setFunctions: Define the aggregate functions *} - {php}$this->assign('firstfield', true);{/php} - myGrid.setFunctions([ - {foreach from=$form->fields item=field name=foreachField} - {if isset($field->function)&& $field->function!==''} - {if !$firstfield},{/if} - {literal}{{/literal}sFieldName: '{$field->name}', sFunction: '{$field->function}'{literal}}{/literal} - {php}$this->assign('firstfield', false);{/php} - {/if} - {/foreach} - ]); - {* setFormulas: Define the customs formulas *} - {php}$this->assign('firstfield', true);{/php} - myGrid.setFormulas([ - {foreach from=$form->fields item=field name=foreachField} - {if isset($field->formula)} - {foreach from=$field->dependentOf() item=dependentOf name=foreachDependent} - {if !$firstfield},{/if} - {literal}{{/literal} sDependentOf: '{$dependentOf}', sFieldName: '{$field->name}', sFormula: '{$field->formula}'{literal}}{/literal} - {php}$this->assign('firstfield', false);{/php} - {/foreach} - {/if} - {/foreach} - ]); - {* setFields: Define the controles's javascript *} - {php}$this->assign('firstfield', true);{/php} - myGrid.setFields([ - {foreach from=$form->fields item=field name=foreachField} - {if !$firstfield},{/if} - {literal}{{/literal}sFieldName: '{$field->name}', sType: '{$field->type}', oProperties:{$field->getAttributes()}, oEvents:{$field->getEvents()}{literal}}{/literal} - {php}$this->assign('firstfield', false);{/php} - {/foreach} - ]); -{literal}}{/literal} -{/if} -{if $printJavaScript} -{/if} \ No newline at end of file diff --git a/rbac/engine/templates/login/showDBFiles.php b/rbac/engine/templates/login/showDBFiles.php deleted file mode 100755 index 89cab1860..000000000 --- a/rbac/engine/templates/login/showDBFiles.php +++ /dev/null @@ -1,116 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - $path = PATH_DB; - //using the opendir function - if ( ! $dir_handle = @opendir( PATH_DB )) - { - header ("location: /errors/error704.php"); - die; - } - - G::LoadSystem('inputfilter'); - $filter = new InputFilter(); - - echo ""; - echo ""; - echo ""; - $curPage = getenv( "REQUEST_URI" ); - $curPage = $filter->xssFilterHard($curPage,"url"); - //running the while loop - $first = 0; - while ($file = readdir($dir_handle)) - { - if ( substr($file,0,3) == 'db_' ) { - if ( $first == 0 ) { - echo ""; - - $second = 0; - if ( ! $dir_handle = @opendir( PATH_DB )) - { - header ("location: /errors/error704.php"); - die; - } - - $DB_INDEX = 0; - $DB_MODULE = array(); - - while ($file = readdir($dir_handle)) - { - if ( substr($file,0,9) == 'dbmodule_' ) { - $module = substr ( substr($file,0, strlen($file)-4) , 9 ); - require_once ( PATH_DB . $file ); - $moduleName = $DB_MODULE[$DB_INDEX]['name']; - echo ""; - } - } - //closing the directory - closedir($dir_handle); - - print "
    Please select a valid workspace to continue
    "; - $first = 1; - } - $name = substr ( substr($file,0, strlen($file)-4) , 3 ); - $link = str_replace ( "/sys/", "/sys$name/" , $curPage ); - echo ""; - } - } - //closing the directory - closedir($dir_handle); - if ( $first != 0 ) print "
    RBAC built-in workspaces
  • $name

  • "; - - if ( $DB_MODULE[$DB_INDEX]['type'] == 'single-file' ) { - $third = 0; - if ( ! $module_handle = @opendir( $DB_MODULE[$DB_INDEX]['path'] )) { - echo ( 'error in this path ' . $DB_MODULE[$DB_INDEX]['path'] ); - } - else { - while ($moduleFile = readdir($module_handle)) { - if ( substr($moduleFile,0,3) == 'db_' ) { - $name = substr ( substr($moduleFile,0, strlen($moduleFile)-4) , 3 ); - $link = str_replace ( "/sys/", "/sys-$module-$name/" , $curPage ); - echo ""; - } - } - } - } - else { - $third = 0; - if ( ! $module_handle = @opendir( $DB_MODULE[$DB_INDEX]['path'] )) { - echo ( "" ); - } - else { - while ($moduleFile = readdir($module_handle)) { - $dbFile = $DB_MODULE[$DB_INDEX]['path'] . $moduleFile . '/db.php'; - if ( file_exists ($dbFile) && substr($moduleFile,0,1) != '.' ) { - $name = $moduleFile; - $link = str_replace ( "/sys/", "/sys-$module-$name/" , $curPage ); - echo ""; - } - } - } - } - print "
    RBAC Module : $moduleName
  • $name
  • Path invalid: " . $DB_MODULE[$DB_INDEX]['path'] ."
  • $name

  • "; - -?> \ No newline at end of file diff --git a/rbac/engine/templates/paged-table.html b/rbac/engine/templates/paged-table.html deleted file mode 100755 index 77ef0bec0..000000000 --- a/rbac/engine/templates/paged-table.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    - {title} - - - - -
    {content}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {header}
    {value}
      - {noRecordsFound}
      -
    - - - - - -
    -
    - -
    - \ No newline at end of file diff --git a/rbac/engine/templates/paged-table.php b/rbac/engine/templates/paged-table.php deleted file mode 100755 index aa8b4a032..000000000 --- a/rbac/engine/templates/paged-table.php +++ /dev/null @@ -1,221 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - global $G_TABLE; - global $G_CONTENT; - global $HTTP_SESSION_VARS; - global $HTTP_GET_VARS; - if ( !is_object( $G_TABLE ) ) die ("Table object is required!"); - - - $G_TABLE->GetSource(); - - //will use the templatePower class to render the table - // G::LoadClass ('templatePower'); - $tpl = new TemplatePower( PATH_TPL . 'paged-table.html' ); - $tpl->prepare(); - $tpl->assign( "STYLE_CSS" , STYLE_CSS ); - $tpl->assign( "title" , $G_TABLE->title ); - - $orderpag = $HTTP_GET_VARS['order']; - if($orderpag=="") { - $orcad=""; - } - else { - $orcad=$orderpag; - } - - $curpage = $HTTP_GET_VARS['page']; - if( $curpage == "" ) $curpage = 1; - $res=(round(($curpage)/20)*20)+1; - if ($res>$curpage) - $HTTP_SESSION_VARS['COMIENZO'] = $res-20; - else - $HTTP_SESSION_VARS['COMIENZO']=$res; - - $HTTP_SESSION_VARS['FINAL']=$HTTP_SESSION_VARS['COMIENZO']+20; - - $totpages = 0; - - $HTTP_SESSION_VARS['TP'] = $G_TABLE->TotalCount(); - $tcount = $HTTP_SESSION_VARS['TP']; - $totpages = $HTTP_SESSION_VARS['TP']; - - $totpages = $totpages / $G_TABLE->rows_per_page; - $totpages = round( $totpages, 0); - - if( ($totpages * $G_TABLE->rows_per_page) < $tcount ) $totpages++; - if ($totpages == 0 ) $curpage = 0; - $ntotwidth="0"; - for( $ncount=0 ; $ncount < $G_TABLE->ColumnCount() ; $ncount++ ) - { - $ntotwidth += $G_TABLE->Columns[$ncount]['Width']; - } - - $firstrow = (($curpage-1) * $G_TABLE->rows_per_page) + 1; - $lastrow = $firstrow + $G_TABLE->rows_per_page - 1; - - $cuenta=$G_TABLE->Count(); - - if( $lastrow > $cuenta ) $lastrow = $cuenta; - - for( $ncount=0 ; $ncount < $G_TABLE->ColumnCount() ; $ncount++ ) - { - $pa =1 ;$intPos=$ncount; $strClass = "tblHeader"; - $col = $G_TABLE->Columns[$intPos]; - $order = !($col["Type"] == "image" || $col["Type"] == "jsimglink"); - - - - $tpl->newBlock( "headers" ); - $tpl->assign( "width" , ( $col["Width"] > 0 ? " style=\"width:" . $col["Width"] . ";\"" : '' ) ); - $tpl->assign( "header" , ( $G_TABLE->Labels[$intPos] ) ); - if( $G_TABLE->_ordered == true && $order ) - { - $res = "
    0) $res .= " style=\"width:" . $col["Width"] . ";\""; - $res .= ">"; - $res .= "" . $G_TABLE->Labels[$intPos] . ""; - $res .= " 0) $res .= " style=\"width:" . $col["Width"] . ";\""; - $res .= ">"; - $res .= $G_TABLE->Labels[$intPos] . "
    -' . G::capitalize($_SESSION['G_MESSAGE_TYPE']) . ' : ' . $_SESSION['G_MESSAGE']); - unset($_SESSION['G_MESSAGE_TYPE']); - unset($_SESSION['G_MESSAGE']); - } - if( is_array( $G_PUBLISH->Parts ) ) - { - $nplim = count( $G_PUBLISH->Parts ); - for( $npcount = 0; $npcount < $nplim; $npcount++ ) - { - print( "\n\n\n" ); - } - } -?> -
    \n" ); - if (isset($RBAC->userObj)) - $G_PUBLISH->RenderContent( $npcount, ($RBAC->userCanAccess('WF_SHOW_XMLFORM_NAME')==1?true:false) ); - else - $G_PUBLISH->RenderContent( $npcount ); - print( "
    diff --git a/rbac/engine/templates/testAuthenticationSource.html b/rbac/engine/templates/testAuthenticationSource.html deleted file mode 100755 index 231054607..000000000 --- a/rbac/engine/templates/testAuthenticationSource.html +++ /dev/null @@ -1,17 +0,0 @@ - - - "; - for ( $j = 0; $j < $i; $j ++) print ""; - print ""; - print ""; - - } - - function walkLevel ( $level, $label, $parent ) { - global $collapsed; - global $appid; - global $dbc; - - $sql = "SELECT UID, PRM_CODE, PRM_DESCRIPTION from PERMISSION WHERE PRM_APPLICATION = $appid AND PRM_PARENT = " . $parent ; - $ses = new DBSession ($dbc); - $dset = $ses->Execute ($sql); - $row = $dset->Read(); - $c = 1; - while ( is_array ($row) ) { - - if ($label === "*" ) - { $label = ""; $locLabel = $c; } - else - $locLabel = $label . "." . $c; - - showLevel ( $level , $locLabel, $row['PRM_CODE'], $row['PRM_DESCRIPTION'], $row['UID'] ); - - walkLevel ( $level + 1, $locLabel, $row['UID']); - $c++; - $row = $dset->Read(); - } - } -?> - -
    - - - - - - - - -
    Testing Log
    - - -
    - {text}
    -
    \ No newline at end of file diff --git a/rbac/engine/templates/testAuthenticationSource.php b/rbac/engine/templates/testAuthenticationSource.php deleted file mode 100755 index af7d92ceb..000000000 --- a/rbac/engine/templates/testAuthenticationSource.php +++ /dev/null @@ -1,256 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - G::LoadSystem('inputfilter'); - $filter = new InputFilter(); - $HTTP_SESSION_VARS = $filter->xssFilterHard($HTTP_SESSION_VARS); - - global $G_TABLE; - global $G_CONTENT; - global $HTTP_SESSION_VARS; - - $tpl = new TemplatePower( PATH_TPL . 'testAuthenticationSource.html' ); - $tpl->prepare(); - $tpl->assign('STYLE_CSS' , (defined('STYLE_CSS') ? STYLE_CSS : '')); - $tpl->assign('title' , $G_TABLE->title ); - - $curAuthSource = $HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE']; - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME ); - - //crear nueva authentication source - G::LoadClassRBAC ('authentication'); - $obj = new authenticationSource; - $obj->SetTo( $dbc ); - $res = $obj->testSource ( $curAuthSource ); -//print ""; - - foreach ( $res as $line ) { - if ( stristr ($line, 'error' ) !== false ) $line = "" . $line . ''; - if ( stristr ($line, 'sucess' ) !== false ) $line = "" . $line . ''; - - $tpl->newBlock( "lines" ); - $tpl->assign( "text" , $line ); - } - $tpl->gotoBlock( "_ROOT" ); - $tpl->printToScreen(); - //die; - - - - - - - - - - require_once('Net/LDAP.php'); - $rootDn = 'OU=Ventas,DC=colosa,DC=net'; - $config = array( - 'dn' => 'scout@colosa.net', - 'password' => 'Colosa1', - 'host' => '192.168.0.50', - 'base' => $rootDn, - 'options' => array('LDAP_OPT_REFERRALS' => 0), - 'tls' => false, - 'port'=> 389 - ); - - $oLdap =& Net_LDAP::connect($config); - if (PEAR::isError($oLdap)) { - print ( $oLdap->message); - return $oLdap; - } - - - $sFilter = '(&(|(objectClass=user)(objectClass=inetOrgPerson)(objectClass=posixAccount))(|(cn=*a*)(mail=*a*)(sAMAccountName=*a*)))'; - $aParams = array( - 'scope' => 'sub', - 'attributes' => array('cn', 'dn', 'samaccountname'), - ); - - $oResult = $oLdap->search($rootDn, $sFilter, $aParams); - if (PEAR::isError($oResult)) { - $oLdap->message = $filter->xssFilterHard($oLdap->message); - print ( $oLdap->message); - return $oResult; - } -/* - $aRow = array(); - foreach($oResult->entries() as $oEntry) { - $aAttr = $oEntry->attributes(); - $aAttr['dn'] = $oEntry->dn(); - $aRow[] = $aAttr; - } -*/ - print_r ($aRow); - print "
    "; -/* -//ahora pedir todos los datos - //active directory - $aAttributes = array ("cn", "samaccountname", "givenname", "sn", "userprincipalname", "telephonenumber"); - //ldap - //$aAttributes = array ("cn", "uid", "givenname", "sn", "mail", "mobile"); - - $sFilter = '(objectClass=*)'; - $aParams = array( - 'scope' => 'base', - 'attributes' => $aAttributes, - ); - - $userDn = "CN=Javier,OU=Ventas,DC=colosa,DC=net"; - $oResult = $oLdap->search($userDn, $sFilter, $aParams); - if (PEAR::isError($oResult)) { - print ( $oLdap->message); - return $oResult; - } - $aRet = array(); - foreach($oResult->entries() as $oEntry) { - $aAttr = $oEntry->attributes(); - $aAttr['dn'] = $oEntry->dn(); - $aRet[] = $aAttr; - } - print_r ($aRet); - print "
    "; - - $oLdap =& Net_LDAP::connect($config); - if (PEAR::isError($oLdap)) { - print ( $oLdap->message); - return $oLdap; - } - $res = $oLdap->reBind('scout@colosa.net', 'Colosa1'); - - if (PEAR::isError($res)) { - print ( $res->message); - return $res; - } - if ($res === true) { - print 'ok'; - } - -*/ - $tpl->newBlock( "headers" ); - $tpl->assign( "width" , ( $col["Width"] > 0 ? " style=\"width:" . $col["Width"] . ";\"" : '' ) ); - - $iCurRow = 0; - foreach($oResult->entries() as $oEntry) { - $aAttr = $oEntry->attributes(); - print_r ($aAttr); - $aAttr['dn'] = $oEntry->dn(); - $class = ( ++$iCurRow % 2 == 0 ? "Row1" : "Row2" ); - - $tpl->newBlock( "row" ); - $tpl->assign( "class" , $class ); - for ( $ncount=0 ; $ncount < 1 ; $ncount++ ) - { - $tpl->newBlock( "field" ); - $col = 1; - $tpl->assign( "align" , ( $col <> '' ? " align=\"$col\"" : 'x' ) ); - $tpl->assign( "value" , $aAttr['dn'] ); - } - } - - if( $curpage > 1 ) { - $firstUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=1'; - $prevpage = $curpage - 1; - $prevUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=' . $prevpage; - $tpl->assign( "firstUrl" , $firstUrl ); - $tpl->assign( "prevUrl" , $prevUrl ); - $first = "<<"; - $prev = "<"; - } - else - { - $tpl->assign( "firstOff" , 1 ); - $tpl->assign( "prevOff" , 1 ); - $first = "<<"; - $prev = "<"; - } - - - $tpl->gotoBlock( "_ROOT" ); - if ( $totpages !=1 ) $tpl->newBlock( "paging" ); - $tpl->assign( "first" , $first ); - $tpl->assign( "prev" , $prev ); - - $tpl->assign( "curPage" , '' . G::LoadMessageXml('ID_PAGE') . ' ' . $curpage . ' ' . G::LoadMessageXml('ID_OF') . ' ' . $totpages . ' ' . ''); - - if( $curpage < $totpages ) { - $lastUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=' . $totpages; - $nextpage = $curpage + 1; - $nextUrl = SYS_CURRENT_URI . '?order=' . $orcad . '&page=' . $nextpage; - $next = ">"; - $last = ">>"; - } - else - { - $next = ">"; - $last = ">>"; - } - $tpl->assign( "next" , $next ); - $tpl->assign( "last" , $last ); - $tpl->assign( "columnCount", 1 ); - - if( $totpages > 1 ) - { - // --------- codigo para colocar numeros de paginas --------- - $ncount = 1; - $inicio=$HTTP_SESSION_VARS['COMIENZO']; - $fin=$HTTP_SESSION_VARS['FINAL']; - // echo "Inicio:".$inicio." fin".$fin; - - for( $ncount = $inicio; $ncount <= $fin-1; $ncount++ ) - { - if($ncount>=1 && $ncount<=$totpages) - { - if( $ncount <= $totpages ) $pagesEnum .= "   "; - $pagesEnum .= ""; - $pagesEnum .= $ncount; - $pagesEnum .= ""; - } - } - $pagesEnum .="   "; - $tpl->assign("pagesEnum", $pagesEnum); - } - - if ( $lastrow == 0 ) { - $tpl->gotoBlock( "_ROOT" ); - $tpl->newBlock( 'norecords' ); - $tpl->assign( "noRecordsFound", G::LoadMessageXml('ID_NO_RECORDS_FOUND') ); - $tpl->assign( "columnCount", 1 ); - } - - if ( $lastrow > 25 * 0.66 ) { - $tpl->gotoBlock( "_ROOT" ); - $tpl->newBlock( "bottomFooter" ); - $tpl->assign( "columnCount", 1 + 1); - $tpl->assign( "first" , $first ); - $tpl->assign( "prev" , $prev ); - $tpl->assign( "next" , $next ); - $tpl->assign( "last" , $last ); - $tpl->assign("pagesEnum", $pagesEnum); - } - $tpl->gotoBlock( "_ROOT" ); - $tpl->printToScreen(); - ?> \ No newline at end of file diff --git a/rbac/engine/templates/toolbar.html b/rbac/engine/templates/toolbar.html deleted file mode 100755 index fcc19d336..000000000 --- a/rbac/engine/templates/toolbar.html +++ /dev/null @@ -1,21 +0,0 @@ -{if $printTemplate} -{* this is the xmlform template *} - - -{* LEFT MENU *} - - -
    -{/if} \ No newline at end of file diff --git a/rbac/engine/templates/treePermRole.php b/rbac/engine/templates/treePermRole.php deleted file mode 100755 index da4fc3d66..000000000 --- a/rbac/engine/templates/treePermRole.php +++ /dev/null @@ -1,173 +0,0 @@ -. - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - - global $G_TABLE; - //global $G_CONTENT; - //global $_SESSION; - global $collapsed; - global $URI_VARS; - - global $pathViewChart; - global $appid; - global $rolid; - global $parents; - //global $dbc; - global $ses; - global $accessChangeRole; - - $appid = $_SESSION['CURRENT_APPLICATION']; - $rolid = $_SESSION['CURRENT_ROLE']; - $parents = $_SESSION['CURRENT_ROLE_PARENTS']; - - //$pathViewChart = "../"; - //$nodo = $URI_VARS[0]; - //if ($nodo == "") - $pathViewChart = ""; - - //Obtener nombre de la applicacion - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - G::LoadClassRBAC ('applications'); - G::LoadClassRBAC ('roles'); - $obj = new RBAC_Application; - $obj->SetTo ($dbc); - $obj->Load ($appid); - $_SESSION['STR_APP'] = $obj->Fields['APP_CODE'];; - $obj = new RBAC_Role; - $obj->SetTo($dbc); - $obj->Load($rolid); - $_SESSION['STR_ROL'] = $obj->Fields['ROL_CODE']; - - //$appCode = G::LoadMessage (13); - //print "
    $appCode
    "; - - $ses = new DBSession; - $ses->SetTo ($dbc); - - $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME); - $ses = new DBSession; - $ses->SetTo($dbc); - - function showLevel ( $i, $label1, $texto1, $texto2, $uid) { - global $pathViewChart; - global $collapsed; - global $rolid; - global $parents; - global $dbc; - global $ses; - global $canCreateRole; - - $MAX_LEVEL = 10; - - $sql = "SELECT count(*) AS CANT from ROLE_PERMISSION WHERE ROL_UID in ($parents ) AND PRM_UID = $uid"; - $dset = $ses->Execute($sql); - $row2 = $dset->Read(); - $rolStatus = $row2['CANT']; - if ($rolStatus == 1 ) { - $icon = "btnYellow"; - $rolStatus = 2; //permiso heredado por roles superiores - } - else { - $sql = "SELECT count(*) AS CANT from ROLE_PERMISSION WHERE ROL_UID = $rolid AND PRM_UID = $uid"; - $dset = $ses->Execute($sql); - $row2 = $dset->Read(); - $rolStatus = $row2['CANT']; - - $icon = "btnRed"; - if ( $rolStatus != 0 ) $icon = "btnGreen"; - } - - $link = ""; - if ($rolStatus != 2 ) { - $link = ""; - if ($canCreateRole == 1) $link = ""; - $link .= ""; - if ($canCreateRole == 1) $link .= ""; - } - print "
      " . $link . " "; - //print $label . " "; - print " $texto1 $texto2 "; - - print "
    - - - - - - -
    - - - - - - - - - - - - - - - -
    -
    diff --git a/rbac/engine/templates/xmlform.html b/rbac/engine/templates/xmlform.html deleted file mode 100755 index 0f4267e66..000000000 --- a/rbac/engine/templates/xmlform.html +++ /dev/null @@ -1,123 +0,0 @@ -{if $printTemplate} -{* this is the xmlform template *} -
    - - - -
    -{if isset($form->title) && $form->title !=='' } - - - - -
    {$form->title}
    -{/if} - -{foreach from=$form->fields item=field} -{if ($field->type==='title')} - - - -{elseif ($field->type==='subtitle')} - - - -{elseif ($field->type==='button') || ($field->type==='submit') || ($field->type==='reset')} - - - -{elseif ($field->type==='grid')} - - - -{elseif ($field->type==='javascript')} - -{elseif ($field->type==='phpvariable')} -{elseif ($field->type==='private')} -{elseif ($field->type==='hidden')} - - - -{elseif ($field->type==='')} -{elseif ($field->withoutLabel)} - - - -{else} - - - - -{/if} -{/foreach} -
    {$field->field}
    {$field->field}
    {$field->field}
    {$field->field}
    {$field->field}
    {$field->field}
    {$field->label}{$field->withoutLabel}{$field->field}
    -
    -{/if} -{if $printJSFile} -var form_{$form->id}; -var i; -function loadForm_{$form->id}(ajaxServer) -{literal}{{/literal} -if (typeof(G_Form)==='undefined') return alert('form.js was not loaded'); - form_{$form->id}=new G_Form(document.getElementById('{$form->id}'),'{$form->id}'); - var myForm=form_{$form->id}; - myForm.ajaxServer=ajaxServer; - {if isset($form->ajaxSubmit) && ($form->ajaxSubmit)} - {literal} - var sub = new leimnud.module.app.submit({ - form : myForm.element - }); - sub.sendObj = false; - {/literal} - {/if} - {foreach from=$form->fields item=field key=name} - i = myForm.aElements.length; - {if ($field->type==='dropdown')} - myForm.aElements[i] = new G_DropDown(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='text')} - myForm.aElements[i] = new G_Text(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='percentage')} - myForm.aElements[i] = new G_Percentage(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='currency')} - myForm.aElements[i] = new G_Currency(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='date')} - myForm.aElements[i] = new G_Date(myForm, myForm.element.elements['form[{$name}]'],'{$name}'); - myForm.aElements[i].setAttributes({$field->getAttributes()}); - {$field->attachEvents("myForm.aElements[i].element")} - {elseif ($field->type==='grid')} - myForm.aElements[i] = new G_Grid(myForm, '{$name}'); - grid_{$field->id}(myForm.aElements[i]); - {$field->attachEvents("myForm.aElements[i].element")} - {else} - var element = getField("{$name}"); - {$field->attachEvents("element")} - {/if} - {/foreach} - {foreach from=$form->fields item=field key=name} - {if isset($field->dependentFields) && ($field->dependentFields!='')} - {if ($field->type==='dropdown')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='text')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='percentage')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {elseif ($field->type==='currency')} - myForm.getElementByName('{$name}').setDependentFields('{$field->dependentFields}'); - {/if} - {/if} - {/foreach} -{literal}}{/literal} -{/if} -{if $printJavaScript} -leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');{literal}}{/literal}); -{/if} \ No newline at end of file diff --git a/rbac/engine/templates/xmlmenu.html b/rbac/engine/templates/xmlmenu.html deleted file mode 100755 index 28c5344f9..000000000 --- a/rbac/engine/templates/xmlmenu.html +++ /dev/null @@ -1,77 +0,0 @@ -{if $printTemplate} -{* this is the xmlform template *} - - -{* LEFT MENU *} - -{* CENTER MENU *} - -{* RIGHT MENU *} - - -
    - - - -{foreach from=$form->fields item=field} -{if (strcasecmp($field->colAlign,'right')===0)} -{if ($field->type==='javascript')} - {$field->field} -{elseif ($field->type==='phpvariable')} -{elseif ($field->type==='private')} -{elseif ($field->type==='')} -{else} -{* elseif ($field->type==='link') || ($field->type==='menu') *} - -{/if} -{/if} -{/foreach} - -
    -
    -{/if} \ No newline at end of file diff --git a/rbac/engine/xmlform/login.html b/rbac/engine/xmlform/login.html deleted file mode 100755 index 93c2cc693..000000000 --- a/rbac/engine/xmlform/login.html +++ /dev/null @@ -1,33 +0,0 @@ -
    - - - - - - - - - - -
    WARNING: Smarty error: unable to read resource: "/home/julio/newgulliver/trunk/rbac/engine/templates/form.html"
    File: /home/julio/newgulliver/trunk/gulliver/thirdparty/smarty/libs/Smarty.class.php
    1092 -     */
    -
    -
    1093 -    function trigger_error($error_msg, $error_type = E_USER_WARNING)
    -
    -
    1094 -    {
    -
    -
    1095 -        trigger_error("Smarty error: $error_msg", $error_type);
    -
    -
    1096 -    }
    -
    -
    1097 -
    -
    -
    1098 -
    -
    -

    \ No newline at end of file diff --git a/rbac/engine/xmlform/login/login.es b/rbac/engine/xmlform/login/login.es deleted file mode 100755 index 25afce9a3..000000000 --- a/rbac/engine/xmlform/login/login.es +++ /dev/null @@ -1,39 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:5:{s:4:"name";s:9:"login.xml";s:7:"version";s:3:"1.0";s:7:"basedir";s:0:"";s:12:"xmlform_type";s:6:"NORMAL";s:5:"width";s:5:"400px";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:5:"TITLE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:5:"title";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:5:"Login";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"Login";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:9:"USER_NAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"30";s:9:"maxlength";s:2:"32";s:8:"validate";s:7:"Alpha10";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:7:"Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:4:"User";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:9:"USER_PASS";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:3:{s:4:"type";s:8:"password";s:4:"size";s:2:"30";s:9:"maxlength";s:2:"32";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:16:"Clave de Ingreso";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Password";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:8:"Ingresar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"Login";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:28:"bjlLWDFaNmlvSsKwWDNaK2I3YUts";' ); -$this->name = unserialize( 's:9:"login.xml";' ); -$this->version = unserialize( 's:3:"1.0";' ); -$this->fields = unserialize( 'a:4:{s:5:"TITLE";O:19:"xmlform_field_title":8:{s:4:"name";s:5:"TITLE";s:4:"type";s:5:"title";s:5:"label";s:5:"Login";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:9:"USER_NAME";O:18:"xmlform_field_text":22:{s:4:"name";s:9:"USER_NAME";s:4:"type";s:4:"text";s:5:"label";s:7:"Usuario";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"30";s:8:"validate";s:7:"Alpha10";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"32";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:9:"USER_PASS";O:22:"xmlform_field_password":12:{s:4:"name";s:9:"USER_PASS";s:4:"type";s:8:"password";s:5:"label";s:16:"Clave de Ingreso";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"30";s:9:"maxLength";s:2:"32";s:8:"required";b:0;s:8:"readOnly";b:0;s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:8:"Ingresar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:5:"400px";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:65:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/login/login.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:66:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/login/login.xml";' ); -$this->scriptFile = unserialize( 's:35:"/shared/rbac/xmlform/login/login.js";' ); -$this->scriptURL = unserialize( 's:22:"/jsform/login/login.js";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/login/login.xml b/rbac/engine/xmlform/login/login.xml deleted file mode 100755 index 5d3d73b8b..000000000 --- a/rbac/engine/xmlform/login/login.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - <es>Login</es> - <en>Login</en> - - - Usuario - User - - - Clave de Ingreso - Password - - - Ingresar - Login - - \ No newline at end of file diff --git a/rbac/engine/xmlform/login/noViewPage.xml b/rbac/engine/xmlform/login/noViewPage.xml deleted file mode 100755 index 5adf1b5ae..000000000 --- a/rbac/engine/xmlform/login/noViewPage.xml +++ /dev/null @@ -1,19 +0,0 @@ - -Login to system - - - <es>You don't have permission</es> - <en>You don't have permission</en> - - - - The user account which you are currently logged in does not have security privileges to view this page - The user account which you are currently logged in does not have security privileges to view this page - - - - Please press the 'back' button to continue working with this system. - Por favor presione el boton Regresar. - - - diff --git a/rbac/engine/xmlform/login/nologin.xml b/rbac/engine/xmlform/login/nologin.xml deleted file mode 100755 index 20149dc6e..000000000 --- a/rbac/engine/xmlform/login/nologin.xml +++ /dev/null @@ -1,28 +0,0 @@ - -Login to system - - - [CDATA] -

    Your session has expired.
    - [/CDATA] - [CDATA] -
    Your session has expired.
    - [/CDATA]
    - - - - - Your session has timed out due to inactivity - Your session has timed out due to inactivity - - - - Please log in again to continue working with this system. - Please log in again to continue working with this system. - - - - Ingresar - Login - - diff --git a/rbac/engine/xmlform/rbac/appEdit.xml b/rbac/engine/xmlform/rbac/appEdit.xml deleted file mode 100755 index dd49c1ae4..000000000 --- a/rbac/engine/xmlform/rbac/appEdit.xml +++ /dev/null @@ -1,58 +0,0 @@ - -form - - Editar Aplicacin - Edit Application - Editar Aplicacin - - - - Cdigo de Aplicacin: - Application Code: - Application Rol: - - - - Descripcin: - Description: - Descripcion: - - - - Editar Roles: - Edit Roles: - Editar Roles: - - - - Editar Permisos: - Edit Permissions: - Editar Permisos: - - - - Continuar - Continue - Continuar - - - $lan = SYS_LANG; - - - - - function btnClick() { - if (cod.value == "") {cod.focus(); alert ( msgEmptyField ); return} - if (des.value == "") {des.focus(); alert ( msgEmptyField ); return} - - document.webform.submit(); - }; - - top.document.body.onload=function(){ - cod = top.document.webform.elements ["form[APP_CODE]"]; - des = top.document.webform.elements ["form[APP_DESCRIPTION]"]; - - } - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/appMenu.xml b/rbac/engine/xmlform/rbac/appMenu.xml deleted file mode 100755 index db71de498..000000000 --- a/rbac/engine/xmlform/rbac/appMenu.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - Buscar - Search - - -function showHideFilterForm() -{ - if (document.getElementById('applicationsListCriteria').style.display==='none') - document.getElementById('applicationsListCriteria').style.display = ''; - else - document.getElementById('applicationsListCriteria').style.display = 'none'; -} - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/appNew.es b/rbac/engine/xmlform/rbac/appNew.es deleted file mode 100755 index 3e74f2409..000000000 --- a/rbac/engine/xmlform/rbac/appNew.es +++ /dev/null @@ -1,72 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:5:"form -";s:10:"attributes";a:3:{s:4:"name";s:4:"rbac";s:7:"basedir";s:0:"";s:5:"width";s:3:"400";}s:8:"children";a:16:{i:0;O:8:"xml_node":5:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:5:"title";s:5:"group";s:1:"6";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:23:"Crear Aplicación Nueva";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:22:"Create new Application";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:23:"Crear Aplicación Nueva";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:8:"APP_CODE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:7:"Alpha10";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:23:"Código de Aplicación:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:17:"Application Code:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:16:"Application Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:15:"APP_DESCRIPTION";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"35";s:9:"maxlength";s:3:"120";s:8:"validate";s:1:"4";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:13:"Descripción:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:12:"Description:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:12:"Descripcion:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:8;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:6:"button";s:7:"onclick";s:19:"btnClick(this.form)";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:12;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:14;O:8:"xml_node":5:{s:4:"name";s:10:"JavaScript";s:4:"type";s:8:"complete";s:5:"value";s:301:" - - function btnClick(form) { - var cod = form.elements[\'form[APP_CODE]\']; - var des = form.elements[\'form[APP_DESCRIPTION]\']; - if (cod.value == "") {cod.focus(); alert ( msgEmptyField ); return} - if (des.value == "") {des.focus(); alert ( msgEmptyField ); return} - - form.submit(); - }; - -";s:10:"attributes";a:1:{s:4:"type";s:10:"javascript";}s:8:"children";a:0:{}}i:15;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:28:"cGNXUnoxwrBVcEtDKzJhaWI3YUts";' ); -$this->name = unserialize( 's:4:"rbac";' ); -$this->version = unserialize( 's:3:"0.3";' ); -$this->fields = unserialize( 'a:5:{s:11:"DYNA_HEADER";O:19:"xmlform_field_title":8:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:5:"title";s:5:"label";s:23:"Crear Aplicación Nueva";s:5:"owner";N;s:5:"group";s:1:"6";s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:8:"APP_CODE";O:18:"xmlform_field_text":22:{s:4:"name";s:8:"APP_CODE";s:4:"type";s:4:"text";s:5:"label";s:23:"Código de Aplicación:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:7:"Alpha10";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:15:"APP_DESCRIPTION";O:18:"xmlform_field_text":22:{s:4:"name";s:15:"APP_DESCRIPTION";s:4:"type";s:4:"text";s:5:"label";s:13:"Descripción:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"35";s:8:"validate";s:1:"4";s:4:"mask";s:0:"";s:9:"maxLength";s:3:"120";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_button":9:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"button";s:5:"label";s:9:"Continuar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:7:"onclick";s:19:"btnClick(this.form)";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:10:"JavaScript";O:24:"xmlform_field_javascript":7:{s:4:"name";s:10:"JavaScript";s:4:"type";s:10:"javascript";s:5:"label";s:0:"";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"code";s:301:" - - function btnClick(form) { - var cod = form.elements[\'form[APP_CODE]\']; - var des = form.elements[\'form[APP_DESCRIPTION]\']; - if (cod.value == "") {cod.focus(); alert ( msgEmptyField ); return} - if (des.value == "") {des.focus(); alert ( msgEmptyField ); return} - - form.submit(); - }; - -";}}' ); -$this->width = unserialize( 's:3:"400";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:65:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/appNew.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:66:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/appNew.xml";' ); -$this->scriptFile = unserialize( 's:35:"/shared/rbac/xmlform/rbac/appNew.js";' ); -$this->scriptURL = unserialize( 's:22:"/jsform/rbac/appNew.js";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/appNew.xml b/rbac/engine/xmlform/rbac/appNew.xml deleted file mode 100755 index 18dc684d7..000000000 --- a/rbac/engine/xmlform/rbac/appNew.xml +++ /dev/null @@ -1,41 +0,0 @@ - -form - - Crear Aplicación Nueva - Create new Application - Crear Aplicación Nueva - - - - - Código de Aplicación: - Application Code: - Application Rol: - - - - Descripción: - Description: - Descripcion: - - - - - Continuar - Continue - Continuar - - - - - function btnClick(form) { - var cod = form.elements['form[APP_CODE]']; - var des = form.elements['form[APP_DESCRIPTION]']; - if (cod.value == "") {cod.focus(); alert ( msgEmptyField ); return} - if (des.value == "") {des.focus(); alert ( msgEmptyField ); return} - - form.submit(); - }; - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/applicationsList.html b/rbac/engine/xmlform/rbac/applicationsList.html deleted file mode 100755 index eb01c1c7e..000000000 --- a/rbac/engine/xmlform/rbac/applicationsList.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/rbac/engine/xmlform/rbac/applicationsList.xml b/rbac/engine/xmlform/rbac/applicationsList.xml deleted file mode 100755 index 45bac321f..000000000 --- a/rbac/engine/xmlform/rbac/applicationsList.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - ID - ID - - - - Código - Code - - - - Descripción - Description - - - - Roles - Roles - - - - Permisos - Permissions - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/applicationsListCriteria.xml b/rbac/engine/xmlform/rbac/applicationsListCriteria.xml deleted file mode 100755 index b084135c9..000000000 --- a/rbac/engine/xmlform/rbac/applicationsListCriteria.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - UID - UID - - - - CÓDIGO - CODE - - - - DESCRIPCIÓN - DESCRIPTION - - - - Filtrar - Apply Filter - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authAddUser.es b/rbac/engine/xmlform/rbac/authAddUser.es deleted file mode 100755 index db0710845..000000000 --- a/rbac/engine/xmlform/rbac/authAddUser.es +++ /dev/null @@ -1,21 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:0:"";s:10:"attributes";a:4:{s:4:"name";s:4:"rbac";s:7:"basedir";s:0:"";s:5:"width";s:3:"400";s:15:"enable_template";s:1:"1";}s:8:"children";a:4:{i:0;O:8:"xml_node":5:{s:4:"name";s:3:"abc";s:4:"type";s:4:"open";s:5:"value";s:0:"";s:10:"attributes";a:4:{s:4:"type";s:5:"title";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:1:"4";}s:8:"children";a:3:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:40:"Buscar Usuarios en LDAP/Active Directory";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:37:"Search Users in LDAP/Active Directory";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:40:"Buscar Usuarios en LDAP/Active Directory";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:8:"USR_NAME";s:4:"type";s:4:"open";s:5:"value";s:0:"";s:10:"attributes";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"35";s:9:"maxlength";s:2:"40";s:8:"validate";s:1:"4";s:5:"group";s:1:"2";}s:8:"children";a:3:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:7:"Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:5:"Nome:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:2;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:0:"";s:10:"attributes";a:2:{s:4:"type";s:6:"button";s:7:"onclick";s:14:"searchUsers();";}s:8:"children";a:3:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:6:"Buscar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:6:"Search";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Pesquisar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"JS";s:4:"type";s:4:"open";s:5:"value";s:513:"function searchUsers(){ var searchText = getField(\'USR_NAME\'); var div = getField (\'DIV_USER_LIST\'); ajax_init(\'authAjax\', \'DIV_USER_LIST\', \'function=searchText&text=\' + searchText.value, myEmptyCallback, false);}function setRowClass (theRow, thePointerClass){ if (thePointerClass == \'\' || typeof(theRow.className) == \'undefined\') { return false; } theRow.className = thePointerClass; return true;}function saveAddUsers (){ var inputs=document.getElementsByTagName("input"); for(var i=0; i";s:10:"attributes";a:1:{s:4:"type";s:10:"javascript";}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:42:"cGNXUnoxwrBVcWFUWXRaWFJ5cWllNUbCsGxvTTg___";' ); -$this->name = unserialize( 's:4:"rbac";' ); -$this->fields = unserialize( 'a:4:{s:3:"abc";O:19:"xmlform_field_title":8:{s:4:"name";s:3:"abc";s:4:"type";s:5:"title";s:5:"label";s:40:"Buscar Usuarios en LDAP/Active Directory";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:8:"USR_NAME";O:18:"xmlform_field_text":22:{s:4:"name";s:8:"USR_NAME";s:4:"type";s:4:"text";s:5:"label";s:7:"Nombre:";s:5:"owner";N;s:5:"group";s:1:"2";s:4:"mode";s:4:"edit";s:4:"size";s:2:"35";s:8:"validate";s:1:"4";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"40";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_button":9:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"button";s:5:"label";s:6:"Buscar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:7:"onclick";s:14:"searchUsers();";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:2:"JS";O:24:"xmlform_field_javascript":7:{s:4:"name";s:2:"JS";s:4:"type";s:10:"javascript";s:5:"label";s:0:"";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"code";s:513:"function searchUsers(){ var searchText = getField(\'USR_NAME\'); var div = getField (\'DIV_USER_LIST\'); ajax_init(\'authAjax\', \'DIV_USER_LIST\', \'function=searchText&text=\' + searchText.value, myEmptyCallback, false);}function setRowClass (theRow, thePointerClass){ if (thePointerClass == \'\' || typeof(theRow.className) == \'undefined\') { return false; } theRow.className = thePointerClass; return true;}function saveAddUsers (){ var inputs=document.getElementsByTagName("input"); for(var i=0; i";}}' ); -$this->width = unserialize( 's:3:"400";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:4:"Form";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:70:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/authAddUser.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:71:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/authAddUser.xml";' ); -$this->scriptFile = unserialize( 's:75:"/home/santos/newgulliver/trunk/rbac/public_html/xmlform/rbac/authAddUser.js";' ); -$this->scriptURL = unserialize( 's:28:"/xmlform/rbac/authAddUser.js";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authAddUser.html b/rbac/engine/xmlform/rbac/authAddUser.html deleted file mode 100755 index 83bca8e31..000000000 --- a/rbac/engine/xmlform/rbac/authAddUser.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - -
    - - - - - - - - - - - -
    {$form.abc}
    {$USR_NAME}{$form.USR_NAME}
    {$form.BSUBMIT}
    -
    -
    -
    -
    -{$form.JS} diff --git a/rbac/engine/xmlform/rbac/authAddUser.xml b/rbac/engine/xmlform/rbac/authAddUser.xml deleted file mode 100755 index 6941aa1ee..000000000 --- a/rbac/engine/xmlform/rbac/authAddUser.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - Buscar Usuarios en LDAP/Active Directory - Search Users in LDAP/Active Directory - Buscar Usuarios en LDAP/Active Directory - - - Nombre: - Name: - Nome: - - - Buscar - Search - Pesquisar - - - 0 ) { - divId.innerHTML = " user " + existsObj.value + " created"; - checkbox.disabled = true; - } - else { - divId.innerHTML = "error creating user"; - checkbox.checked = false; - checkbox.disabled = false; - } - } - } - } -} - -function flipCheckbox(id) -{ - var obj = getField ('C-'+id); - if ( obj.disabled == false ) - obj.checked = true; - -/* var obj = getField (id); - obj.checked = true;*/ -} - -function emptyDropdowns(id) -{ - var selects=document.getElementsByTagName("select"); - for ( var j=0; j - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authNew.es b/rbac/engine/xmlform/rbac/authNew.es deleted file mode 100755 index f4ff55de6..000000000 --- a/rbac/engine/xmlform/rbac/authNew.es +++ /dev/null @@ -1,103 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:3:{s:4:"name";s:11:"authNew.xml";s:7:"basedir";s:0:"";s:5:"width";s:3:"600";}s:8:"children";a:24:{i:0;O:8:"xml_node":5:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:5:"title";s:5:"group";s:1:"6";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:30:"Crear Fuente de Autenticación";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:28:"Create Authentication Source";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:25:"Crear Fonte Autenticacion";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:8:"AUT_NAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"50";s:8:"validate";s:5:"Alpha";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:6:"Nombre";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:4:"Name";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:4:"Nome";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:15:"AUT_SERVER_NAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"50";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:8:"Servidor";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:58:"Server Name|The host name or IP address of the LDAP server";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:11:"Server Name";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:8:"AUT_PORT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"10";s:9:"maxlength";s:1:"5";s:8:"validate";s:3:"Int";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:6:"Puerto";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:47:"Port|The port of the LDAP server (default: 389)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:6:"Puerto";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:12:"AUT_PROVIDER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:8:"dropdown";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:4:"open";s:5:"value";s:28:"Authentication Provider - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:16:"Active Directory";s:10:"attributes";a:1:{s:4:"name";s:16:"Active Directory";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:4:"LDAP";s:10:"attributes";a:1:{s:4:"name";s:4:"LDAP";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:4:"open";s:5:"value";s:28:"Authentication Provider - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:16:"Active Directory";s:10:"attributes";a:1:{s:4:"name";s:16:"Active Directory";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:4:"LDAP";s:10:"attributes";a:1:{s:4:"name";s:4:"LDAP";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:4:"open";s:5:"value";s:28:"Authentication Provider - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:16:"Active Directory";s:10:"attributes";a:1:{s:4:"name";s:16:"Active Directory";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:4:"LDAP";s:10:"attributes";a:1:{s:4:"name";s:4:"LDAP";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:15:"AUT_ENABLED_TLS";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:8:"dropdown";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:4:"open";s:5:"value";s:116:"Habilitar TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:2:"No";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:2:"Si";s:10:"attributes";a:1:{s:4:"name";s:1:"1";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:4:"open";s:5:"value";s:113:"Enable TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:2:"No";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:3:"Yes";s:10:"attributes";a:1:{s:4:"name";s:1:"1";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:4:"open";s:5:"value";s:116:"Habilitar TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:2:"No";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:3:"Sim";s:10:"attributes";a:1:{s:4:"name";s:1:"1";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:12;O:8:"xml_node":5:{s:4:"name";s:11:"AUT_BASE_DN";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"35";s:9:"maxlength";s:2:"49";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:94:"Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:94:"Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:94:"Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:14;O:8:"xml_node":5:{s:4:"name";s:15:"AUT_SEARCH_USER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:9:"maxlength";s:2:"20";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:170:"Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:170:"Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:170:"Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:15;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:16;O:8:"xml_node":5:{s:4:"name";s:19:"AUT_SEARCH_PASSWORD";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:8:"password";s:4:"size";s:2:"20";s:9:"maxlength";s:2:"20";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:94:"Search Password|The password for the user account in the LDAP directory that performs searches";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:94:"Search Password|The password for the user account in the LDAP directory that performs searches";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:94:"Search Password|The password for the user account in the LDAP directory that performs searches";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:17;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:18;O:8:"xml_node":5:{s:4:"name";s:21:"AUT_SEARCH_ATTRIBUTES";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:8:"textarea";s:4:"cols";s:2:"40";s:4:"rows";s:1:"5";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:125:"Search Attributes
    The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:125:"Search Attributes
    The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:125:"Search Attributes
    The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:19;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:20;O:8:"xml_node":5:{s:4:"name";s:18:"AUT_OBJECT_CLASSES";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:8:"textarea";s:4:"cols";s:2:"40";s:4:"rows";s:1:"5";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:121:"Object Classes
    The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:121:"Object Classes
    The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:121:"Object Classes
    The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount)";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:21;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:22;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:23;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:0:"";' ); -$this->name = unserialize( 's:11:"authNew.xml";' ); -$this->version = unserialize( 's:3:"0.3";' ); -$this->fields = unserialize( 'a:12:{s:11:"DYNA_HEADER";O:19:"xmlform_field_title":8:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:5:"title";s:5:"label";s:30:"Crear Fuente de Autenticación";s:5:"owner";N;s:5:"group";s:1:"6";s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:8:"AUT_NAME";O:18:"xmlform_field_text":22:{s:4:"name";s:8:"AUT_NAME";s:4:"type";s:4:"text";s:5:"label";s:6:"Nombre";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"50";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:15:"AUT_SERVER_NAME";O:18:"xmlform_field_text":22:{s:4:"name";s:15:"AUT_SERVER_NAME";s:4:"type";s:4:"text";s:5:"label";s:8:"Servidor";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"50";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:8:"AUT_PORT";O:18:"xmlform_field_text":22:{s:4:"name";s:8:"AUT_PORT";s:4:"type";s:4:"text";s:5:"label";s:6:"Puerto";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"10";s:8:"validate";s:3:"Int";s:4:"mask";s:0:"";s:9:"maxLength";s:1:"5";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:12:"AUT_PROVIDER";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:12:"AUT_PROVIDER";s:4:"type";s:8:"dropdown";s:5:"label";s:28:"Authentication Provider - ";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:2:{s:16:"Active Directory";s:16:"Active Directory";s:4:"LDAP";s:4:"LDAP";}s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:2:{s:16:"Active Directory";s:16:"Active Directory";s:4:"LDAP";s:4:"LDAP";}}s:15:"AUT_ENABLED_TLS";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:15:"AUT_ENABLED_TLS";s:4:"type";s:8:"dropdown";s:5:"label";s:116:"Habilitar TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - ";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:2:{i:0;s:2:"No";i:1;s:2:"Si";}s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:2:{i:0;s:2:"No";i:1;s:2:"Si";}}s:11:"AUT_BASE_DN";O:18:"xmlform_field_text":22:{s:4:"name";s:11:"AUT_BASE_DN";s:4:"type";s:4:"text";s:5:"label";s:94:"Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com)";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"35";s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"49";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:15:"AUT_SEARCH_USER";O:18:"xmlform_field_text":22:{s:4:"name";s:15:"AUT_SEARCH_USER";s:4:"type";s:4:"text";s:5:"label";s:170:"Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com)";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"20";s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"20";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:19:"AUT_SEARCH_PASSWORD";O:22:"xmlform_field_password":12:{s:4:"name";s:19:"AUT_SEARCH_PASSWORD";s:4:"type";s:8:"password";s:5:"label";s:94:"Search Password|The password for the user account in the LDAP directory that performs searches";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"20";s:9:"maxLength";s:2:"20";s:8:"required";b:0;s:8:"readOnly";b:0;s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:21:"AUT_SEARCH_ATTRIBUTES";O:22:"xmlform_field_textarea":11:{s:4:"name";s:21:"AUT_SEARCH_ATTRIBUTES";s:4:"type";s:8:"textarea";s:5:"label";s:125:"Search Attributes
    The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail)";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"rows";s:1:"5";s:4:"cols";s:2:"40";s:8:"required";b:0;s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:18:"AUT_OBJECT_CLASSES";O:22:"xmlform_field_textarea":11:{s:4:"name";s:18:"AUT_OBJECT_CLASSES";s:4:"type";s:8:"textarea";s:5:"label";s:121:"Object Classes
    The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount)";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"rows";s:1:"5";s:4:"cols";s:2:"40";s:8:"required";b:0;s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:9:"Continuar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:3:"600";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:66:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/authNew.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:67:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/authNew.xml";' ); -$this->scriptFile = unserialize( 's:0:"";' ); -$this->scriptURL = unserialize( 's:0:"";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authNew.xml b/rbac/engine/xmlform/rbac/authNew.xml deleted file mode 100755 index 9255fbb92..000000000 --- a/rbac/engine/xmlform/rbac/authNew.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - Crear Fuente de Autenticación - Create Authentication Source - Crear Fonte Autenticacion - - - Nombre - Name - Nome - - - Servidor - Server Name|The host name or IP address of the LDAP server - Server Name - - - Puerto - Port|The port of the LDAP server (default: 389) - Puerto - - - Authentication Provider - - - - Authentication Provider - - - - Authentication Provider - - - - - - Habilitar TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - - - - Enable TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - - - - Habilitar TLS|Whether to use Transaction Layer Security (TLS), which encrypts traffic to and from the LDAP server - - - - - - Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com) - Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com) - Base DN|The location in the LDAP directory to start searching from (CN=Users,DC=mycorp,DC=com) - - - Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com) - Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com) - Search User|The user account in the LDAP directory to perform searches in the LDAP directory as (such as CN=searchUser,CN=Users,DC=mycorp,DC=com or searchUser@mycorp.com) - - - Search Password|The password for the user account in the LDAP directory that performs searches - Search Password|The password for the user account in the LDAP directory that performs searches - Search Password|The password for the user account in the LDAP directory that performs searches - - - Search Attributes <br>The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail) - Search Attributes <br>The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail) - Search Attributes <br>The LDAP attributes to use to search for users when given their name (one per line, examples: cn, mail) - - - Object Classes <br>The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount) - Object Classes <br>The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount) - Object Classes <br>The LDAP object classes to search for users (one per line, example: user, inetOrgPerson, posixAccount) - - - Continuar - Continue - Continuar - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authenticationList.xml b/rbac/engine/xmlform/rbac/authenticationList.xml deleted file mode 100755 index 5b3f285f0..000000000 --- a/rbac/engine/xmlform/rbac/authenticationList.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - ID - ID - - - ID_NAME - ID_NAME - - - ID_SERVER_NAME - ID_SERVER_NAME - - - ID_PROVIDER - ID_PROVIDER - - - - - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authenticationsList.es b/rbac/engine/xmlform/rbac/authenticationsList.es deleted file mode 100755 index ec41971e7..000000000 --- a/rbac/engine/xmlform/rbac/authenticationsList.es +++ /dev/null @@ -1,44 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:4:{s:4:"type";s:9:"pagetable";s:3:"sql";s:77:"SELECT *, @@DELETE as AUT_DELETE FROM AUTHENTICATION_SOURCES ORDER BY AUT_UID";s:13:"sqlConnection";s:4:"RBAC";s:9:"deleteRow";s:1:"0";}s:8:"children";a:11:{i:0;O:8:"xml_node":5:{s:4:"name";s:7:"AUT_UID";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:3:{s:4:"type";s:4:"link";s:5:"value";s:9:"@&AUT_UID";s:4:"link";s:32:"loadAuthSource.php?UID=@&AUT_UID";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:2:"ID";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:2:"ID";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:8:"AUT_NAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:3:{s:4:"type";s:4:"link";s:5:"value";s:10:"@&AUT_NAME";s:4:"link";s:32:"loadAuthSource.php?UID=@&AUT_UID";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:7:"ID_NAME";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:7:"ID_NAME";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:15:"AUT_SERVER_NAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:4:"text";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:14:"ID_SERVER_NAME";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:14:"ID_SERVER_NAME";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:12:"AUT_PROVIDER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:4:"text";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:11:"ID_PROVIDER";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:11:"ID_PROVIDER";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:10:"AUT_DELETE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:3:{s:4:"type";s:4:"link";s:5:"value";s:12:"@#AUT_DELETE";s:4:"link";s:25:"authDel.php?UID=@&AUT_UID";}s:8:"children";a:5:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:0:"";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:0:"";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:58:"cGNXUnoxwrBVcWFUWTJawrBoM3BpYTVwcmNvZGFQMkpubXFGN280WjA___";' ); -$this->name = unserialize( 's:0:"";' ); -$this->version = unserialize( 's:3:"0.3";' ); -$this->fields = unserialize( 'a:5:{s:7:"AUT_UID";O:18:"xmlform_field_link":10:{s:4:"name";s:7:"AUT_UID";s:4:"type";s:4:"link";s:5:"label";s:2:"ID";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"link";s:32:"loadAuthSource.php?UID=@&AUT_UID";s:5:"value";s:9:"@&AUT_UID";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:8:"AUT_NAME";O:18:"xmlform_field_link":10:{s:4:"name";s:8:"AUT_NAME";s:4:"type";s:4:"link";s:5:"label";s:7:"ID_NAME";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"link";s:32:"loadAuthSource.php?UID=@&AUT_UID";s:5:"value";s:10:"@&AUT_NAME";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:15:"AUT_SERVER_NAME";O:18:"xmlform_field_text":22:{s:4:"name";s:15:"AUT_SERVER_NAME";s:4:"type";s:4:"text";s:5:"label";s:14:"ID_SERVER_NAME";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";i:15;s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";i:15;s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:12:"AUT_PROVIDER";O:18:"xmlform_field_text":22:{s:4:"name";s:12:"AUT_PROVIDER";s:4:"type";s:4:"text";s:5:"label";s:11:"ID_PROVIDER";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";i:15;s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";i:15;s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:10:"AUT_DELETE";O:18:"xmlform_field_link":10:{s:4:"name";s:10:"AUT_DELETE";s:4:"type";s:4:"link";s:5:"label";s:0:"";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"link";s:25:"authDel.php?UID=@&AUT_UID";s:5:"value";s:12:"@#AUT_DELETE";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 'i:600;' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:79:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/authentications_list.es";' ); -$this->type = unserialize( 's:9:"pagetable";' ); -$this->fileName = unserialize( 's:80:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/authentications_list.xml";' ); -$this->scriptFile = unserialize( 's:84:"/home/santos/newgulliver/trunk/rbac/public_html/xmlform/rbac/authentications_list.js";' ); -$this->scriptURL = unserialize( 's:37:"/xmlform/rbac/authentications_list.js";' ); -$this->sql = unserialize( 's:77:"SELECT *, @@DELETE as AUT_DELETE FROM AUTHENTICATION_SOURCES ORDER BY AUT_UID";' ); -$this->sqlConnection = unserialize( 's:4:"RBAC";' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/authenticationsList.xml b/rbac/engine/xmlform/rbac/authenticationsList.xml deleted file mode 100755 index 5b3f285f0..000000000 --- a/rbac/engine/xmlform/rbac/authenticationsList.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - ID - ID - - - ID_NAME - ID_NAME - - - ID_SERVER_NAME - ID_SERVER_NAME - - - ID_PROVIDER - ID_PROVIDER - - - - - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/dbInfo.es b/rbac/engine/xmlform/rbac/dbInfo.es deleted file mode 100755 index 7e76dab2d..000000000 --- a/rbac/engine/xmlform/rbac/dbInfo.es +++ /dev/null @@ -1,98 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:3:{s:4:"name";s:10:"dbInfo.xml";s:7:"basedir";s:0:"";s:5:"width";s:3:"450";}s:8:"children";a:30:{i:0;O:8:"xml_node":5:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:5:"title";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:37:"Information about Database Connection";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:37:"Information about Database Connection";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:37:"Information about Database Connection";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:5:"FLUID";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:7:"caption";s:5:"group";s:1:"5";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rbac";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rbac";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rbac";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:6:"REDHAT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:5:"Linux";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"Linux";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:21:"Introduce translation";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:15:"SERVER_SOFTWARE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:12:"Servidor WEB";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:10:"Web Server";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:21:"Introduce translation";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:5:"MYSQL";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:5:"MySql";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"MySql";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:21:"Introduce translation";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:3:"PHP";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:3:"PHP";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:3:"PHP";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:3:"PHP";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:12;O:8:"xml_node":5:{s:4:"name";s:11:"SERVER_NAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:7:"caption";s:5:"group";s:1:"4";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:18:"Nombre de Servidor";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:11:"Server Name";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:11:"Server Name";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:14;O:8:"xml_node":5:{s:4:"name";s:11:"SERVER_ADDR";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:21:"Direccion IP Servidor";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:17:"Server IP Address";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:17:"Server IP Address";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:15;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:16;O:8:"xml_node":5:{s:4:"name";s:15:"HTTP_USER_AGENT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:21:"Navegador del Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:14:"User"s Browser";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:14:"User"s Browser";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:17;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:18;O:8:"xml_node":5:{s:4:"name";s:2:"IP";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:22:"IP Address del Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:17:"User"s Ip Address";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"fa";s:4:"type";s:8:"complete";s:5:"value";s:17:"User"s Ip Address";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:19;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:20;O:8:"xml_node":5:{s:4:"name";s:7:"phptype";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:7:"caption";s:5:"group";s:1:"5";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:8:"phptype:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"phptype:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:8:"phptype:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:21;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:22;O:8:"xml_node":5:{s:4:"name";s:8:"database";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"database:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:9:"database:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"database:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:23;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:24;O:8:"xml_node":5:{s:4:"name";s:8:"username";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"username:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:9:"username:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"username:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:25;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:26;O:8:"xml_node":5:{s:4:"name";s:8:"protocol";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"protocol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:9:"protocol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"protocol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:27;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:28;O:8:"xml_node":5:{s:4:"name";s:8:"hostspec";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:7:"caption";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:5:"host:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"host:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:5:"host:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:29;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:0:"";' ); -$this->name = unserialize( 's:10:"dbInfo.xml";' ); -$this->version = unserialize( 's:3:"0.3";' ); -$this->fields = unserialize( 'a:15:{s:11:"DYNA_HEADER";O:19:"xmlform_field_title":8:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:5:"title";s:5:"label";s:37:"Information about Database Connection";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:5:"FLUID";O:21:"xmlform_field_caption":10:{s:4:"name";s:5:"FLUID";s:4:"type";s:7:"caption";s:5:"label";s:4:"Rbac";s:5:"owner";N;s:5:"group";s:1:"5";s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:6:"REDHAT";O:21:"xmlform_field_caption":10:{s:4:"name";s:6:"REDHAT";s:4:"type";s:7:"caption";s:5:"label";s:5:"Linux";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:15:"SERVER_SOFTWARE";O:21:"xmlform_field_caption":10:{s:4:"name";s:15:"SERVER_SOFTWARE";s:4:"type";s:7:"caption";s:5:"label";s:12:"Servidor WEB";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:5:"MYSQL";O:21:"xmlform_field_caption":10:{s:4:"name";s:5:"MYSQL";s:4:"type";s:7:"caption";s:5:"label";s:5:"MySql";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:3:"PHP";O:21:"xmlform_field_caption":10:{s:4:"name";s:3:"PHP";s:4:"type";s:7:"caption";s:5:"label";s:3:"PHP";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:11:"SERVER_NAME";O:21:"xmlform_field_caption":10:{s:4:"name";s:11:"SERVER_NAME";s:4:"type";s:7:"caption";s:5:"label";s:18:"Nombre de Servidor";s:5:"owner";N;s:5:"group";s:1:"4";s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:11:"SERVER_ADDR";O:21:"xmlform_field_caption":10:{s:4:"name";s:11:"SERVER_ADDR";s:4:"type";s:7:"caption";s:5:"label";s:21:"Direccion IP Servidor";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:15:"HTTP_USER_AGENT";O:21:"xmlform_field_caption":10:{s:4:"name";s:15:"HTTP_USER_AGENT";s:4:"type";s:7:"caption";s:5:"label";s:21:"Navegador del Usuario";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:2:"IP";O:21:"xmlform_field_caption":10:{s:4:"name";s:2:"IP";s:4:"type";s:7:"caption";s:5:"label";s:22:"IP Address del Usuario";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:7:"phptype";O:21:"xmlform_field_caption":10:{s:4:"name";s:7:"phptype";s:4:"type";s:7:"caption";s:5:"label";s:8:"phptype:";s:5:"owner";N;s:5:"group";s:1:"5";s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:8:"database";O:21:"xmlform_field_caption":10:{s:4:"name";s:8:"database";s:4:"type";s:7:"caption";s:5:"label";s:9:"database:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:8:"username";O:21:"xmlform_field_caption":10:{s:4:"name";s:8:"username";s:4:"type";s:7:"caption";s:5:"label";s:9:"username:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:8:"protocol";O:21:"xmlform_field_caption":10:{s:4:"name";s:8:"protocol";s:4:"type";s:7:"caption";s:5:"label";s:9:"protocol:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:8:"hostspec";O:21:"xmlform_field_caption":10:{s:4:"name";s:8:"hostspec";s:4:"type";s:7:"caption";s:5:"label";s:5:"host:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:13:"sqlconnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:3:"450";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:65:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/dbInfo.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:66:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/dbInfo.xml";' ); -$this->scriptFile = unserialize( 's:0:"";' ); -$this->scriptURL = unserialize( 's:0:"";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/dbInfo.xml b/rbac/engine/xmlform/rbac/dbInfo.xml deleted file mode 100755 index d53981af2..000000000 --- a/rbac/engine/xmlform/rbac/dbInfo.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - Information about Database Connection - Information about Database Connection - Information about Database Connection - - - Rbac - Rbac - Rbac - - - Sistema Operativo - Operating System - Sistema Operativo - - - - Servidor WEB - Web Server - Introduce translation - - - MySql - MySql - Introduce translation - - - PHP - PHP - PHP - - - Nombre de Servidor - Server Name - Server Name - - - Direccion IP Servidor - Server IP Address - Server IP Address - - - Navegador del Usuario - User"s Browser - User"s Browser - - - IP Address del Usuario - User"s Ip Address - User"s Ip Address - - - phptype: - phptype: - phptype: - - - database: - database: - database: - - - username: - username: - username: - - - protocol: - protocol: - protocol: - - - host: - host: - host: - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/noMoreRolesAvailable.xml b/rbac/engine/xmlform/rbac/noMoreRolesAvailable.xml deleted file mode 100755 index 5de1e4ef0..000000000 --- a/rbac/engine/xmlform/rbac/noMoreRolesAvailable.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - Asignar Rol a un Usuario - Assign Role to User - Asignar Rol a un usuario - - - No hay mas roles disponibles - There are no more roles available - No hay mas roles disponibles - - - Continuar - Continue - Continuar - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/permEdit.xml b/rbac/engine/xmlform/rbac/permEdit.xml deleted file mode 100755 index 425e9a0ba..000000000 --- a/rbac/engine/xmlform/rbac/permEdit.xml +++ /dev/null @@ -1,38 +0,0 @@ - -form - - Editar Permiso - Edit Permission - Editar Permiso - - - - - select UID, APP_CODE FROM APPLICATION WHERE UID = @#UID - Applicación: - Application: - Applicacion: - - - - Código: - Code: - Codigo: - - - - Descripción: - Description: - Descripcion: - - - - - Continuar - Continue - Continuar - - - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/permNew.xml b/rbac/engine/xmlform/rbac/permNew.xml deleted file mode 100755 index 668f6aabd..000000000 --- a/rbac/engine/xmlform/rbac/permNew.xml +++ /dev/null @@ -1,47 +0,0 @@ - -form - - Crear Nuevo Permiso - Create new Permission - Crear Permiso Nuevo - - - - select UID, @#CONCAT1 FROM APPLICATION WHERE UID = @#APPID - Applicación: - Application: - Applicacion: - - - - select UID, @#CONCAT2 from PERMISSION where UID = @#PERMID - Rol Superior: - Upper Role: - Role Superior: - - - - Código: - Code: - Codigo: - - - - Descripción: - Description: - Descripcion: - - - - - Continuar - Continue - Continuar - - - - - - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/roleEdit.es b/rbac/engine/xmlform/rbac/roleEdit.es deleted file mode 100755 index 2e5fcfbec..000000000 --- a/rbac/engine/xmlform/rbac/roleEdit.es +++ /dev/null @@ -1,56 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:3:{s:4:"name";s:4:"rbac";s:7:"basedir";s:0:"";s:5:"width";s:3:"400";}s:8:"children";a:17:{i:0;O:8:"xml_node":5:{s:4:"name";s:10:"DYNA_HEADE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:5:"title";s:5:"group";s:1:"7";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:10:"Editar Rol";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:9:"Edit Role";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:8:"Edit Rol";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:15:"ROL_APPLICATION";s:4:"type";s:4:"open";s:5:"value";s:77:" - select UID, APP_CODE from APPLICATION where UID = @@CURRENT_APPLICATION - ";s:10:"attributes";a:3:{s:4:"type";s:8:"dropdown";s:13:"sqlconnection";s:1:"2";s:4:"mode";s:4:"view";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:12:"Aplicación:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:12:"Application:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:11:"Aplicacion:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:8:"ROL_CODE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:1:"4";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:15:"Código de Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:10:"Role Code:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:11:"Codigo Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:9;O:8:"xml_node":5:{s:4:"name";s:15:"ROL_DESCRIPTION";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"35";s:9:"maxlength";s:3:"120";s:8:"validate";s:1:"4";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:13:"Descripción:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:12:"Description:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:12:"Descripcion:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:10;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:12;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:14;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:15;O:8:"xml_node":5:{s:4:"name";s:19:"CURRENT_APPLICATION";s:4:"type";s:8:"complete";s:5:"value";s:0:"";s:10:"attributes";a:1:{s:4:"type";s:0:"";}s:8:"children";a:0:{}}i:16;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:0:"";' ); -$this->name = unserialize( 's:4:"rbac";' ); -$this->version = unserialize( 's:3:"0.3";' ); -$this->fields = unserialize( 'a:6:{s:10:"DYNA_HEADE";O:19:"xmlform_field_title":8:{s:4:"name";s:10:"DYNA_HEADE";s:4:"type";s:5:"title";s:5:"label";s:10:"Editar Rol";s:5:"owner";N;s:5:"group";s:1:"7";s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:15:"ROL_APPLICATION";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:15:"ROL_APPLICATION";s:4:"type";s:8:"dropdown";s:5:"label";s:12:"Aplicación:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"view";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:0:{}s:13:"sqlConnection";s:1:"2";s:3:"sql";s:74:"select UID, APP_CODE from APPLICATION where UID = @@CURRENT_APPLICATION - ";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:8:"ROL_CODE";O:18:"xmlform_field_text":22:{s:4:"name";s:8:"ROL_CODE";s:4:"type";s:4:"text";s:5:"label";s:15:"Código de Rol:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:1:"4";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:15:"ROL_DESCRIPTION";O:18:"xmlform_field_text":22:{s:4:"name";s:15:"ROL_DESCRIPTION";s:4:"type";s:4:"text";s:5:"label";s:13:"Descripción:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"35";s:8:"validate";s:1:"4";s:4:"mask";s:0:"";s:9:"maxLength";s:3:"120";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:9:"Continuar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:19:"CURRENT_APPLICATION";O:13:"xmlform_field":8:{s:4:"name";s:19:"CURRENT_APPLICATION";s:4:"type";s:0:"";s:5:"label";N;s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:3:"400";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:67:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/roleEdit.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:68:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/roleEdit.xml";' ); -$this->scriptFile = unserialize( 's:0:"";' ); -$this->scriptURL = unserialize( 's:0:"";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/roleEdit.xml b/rbac/engine/xmlform/rbac/roleEdit.xml deleted file mode 100755 index 757e3b558..000000000 --- a/rbac/engine/xmlform/rbac/roleEdit.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - Editar Rol - Edit Role - Edit Rol - - - - select UID, APP_CODE from APPLICATION where UID = @@CURRENT_APPLICATION - Aplicación: - Application: - Aplicacion: - - - - Código de Rol: - Role Code: - Codigo Rol: - - - - Descripción: - Description: - Descripcion: - - - - Continuar - Continue - Continuar - - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/roleNew.xml b/rbac/engine/xmlform/rbac/roleNew.xml deleted file mode 100755 index 0eabc1d54..000000000 --- a/rbac/engine/xmlform/rbac/roleNew.xml +++ /dev/null @@ -1,52 +0,0 @@ - -form - - - Crear un Rol - Create a Role - Crear a Rol - - - - select UID, @#CONCAT1 from APPLICATION where UID = @@APPID - Aplicación: - Application: - Aplicacion: - - - - select UID, @#CONCAT2 from ROLE where UID = @@ROLID - Rol Superior: - Upper Role: - Role Superior: - - - - Código de Rol: - Role Code: - Codigo Rol: - - - - Descripción: - Description: - Descripcion: - - - - - - - - - Continuar - Continue - Continuar - - - - global $HTTP_SESSION_VARS; - $appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION']; - $rolid = $HTTP_SESSION_VARS['CURRENT_ROLE_PARENT']; - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userAssignRole.en b/rbac/engine/xmlform/rbac/userAssignRole.en deleted file mode 100755 index ef12781fc..000000000 --- a/rbac/engine/xmlform/rbac/userAssignRole.en +++ /dev/null @@ -1,57 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:3:{s:4:"name";s:18:"userAssignRole.xml";s:7:"basedir";s:0:"";s:5:"width";s:3:"400";}s:8:"children";a:14:{i:0;O:8:"xml_node":5:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:5:"title";s:5:"group";s:1:"5";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:24:"Asignar Rol a un Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:19:"Assign Role to User";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:24:"Asignar Rol a un usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:8:"USR_NAME";s:4:"type";s:4:"open";s:5:"value";s:59:" - SELECT UID, USR_USERNAME FROM USERS WHERE UID = @@UID - ";s:10:"attributes";a:2:{s:4:"type";s:8:"dropdown";s:13:"sqlconnection";s:4:"RBAC";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:8:"Usuario:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"User:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:8:"Usuario:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:15:"USR_APPLICATION";s:4:"type";s:4:"open";s:5:"value";s:69:" - SELECT UID, APP_CODE FROM APPLICATION WHERE UID NOT IN @#INAPPS - ";s:10:"attributes";a:3:{s:4:"type";s:8:"dropdown";s:15:"dependentfields";s:8:"USR_ROLE";s:13:"sqlconnection";s:4:"RBAC";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:4:"open";s:5:"value";s:12:"Aplicación:";s:10:"attributes";a:0:{}s:8:"children";a:1:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:18:"select application";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:4:"open";s:5:"value";s:12:"Application:";s:10:"attributes";a:0:{}s:8:"children";a:1:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:18:"select application";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:4:"open";s:5:"value";s:11:"Aplicacion:";s:10:"attributes";a:0:{}s:8:"children";a:1:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:18:"select application";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:8:"USR_ROLE";s:4:"type";s:4:"open";s:5:"value";s:78:" - SELECT UID, ROL_CODE FROM ROLE WHERE ROL_APPLICATION = @#USR_APPLICATION - ";s:10:"attributes";a:2:{s:4:"type";s:8:"dropdown";s:13:"sqlconnection";s:4:"RBAC";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"Role:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:3:"UID";s:4:"type";s:8:"complete";s:5:"value";s:1:" -";s:10:"attributes";a:1:{s:4:"type";s:11:"phpvariable";}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:12;O:8:"xml_node":5:{s:4:"name";s:6:"INAPPS";s:4:"type";s:8:"complete";s:5:"value";s:1:" -";s:10:"attributes";a:1:{s:4:"type";s:11:"phpvariable";}s:8:"children";a:0:{}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:0:"";' ); -$this->name = unserialize( 's:18:"userAssignRole.xml";' ); -$this->fields = unserialize( 'a:7:{s:11:"DYNA_HEADER";O:19:"xmlform_field_title":8:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:5:"title";s:5:"label";s:19:"Assign Role to User";s:5:"owner";N;s:5:"group";s:1:"5";s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:8:"USR_NAME";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:8:"USR_NAME";s:4:"type";s:8:"dropdown";s:5:"label";s:5:"User:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:0:{}s:13:"sqlConnection";s:4:"RBAC";s:3:"sql";s:56:"SELECT UID, USR_USERNAME FROM USERS WHERE UID = @@UID - ";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:15:"USR_APPLICATION";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:15:"USR_APPLICATION";s:4:"type";s:8:"dropdown";s:5:"label";s:12:"Application:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:8:"USR_ROLE";s:8:"readonly";b:0;s:6:"option";a:1:{i:0;s:18:"select application";}s:13:"sqlConnection";s:4:"RBAC";s:3:"sql";s:66:"SELECT UID, APP_CODE FROM APPLICATION WHERE UID NOT IN @#INAPPS - ";s:9:"sqlOption";a:0:{}s:7:"options";a:1:{i:0;s:18:"select application";}}s:8:"USR_ROLE";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:8:"USR_ROLE";s:4:"type";s:8:"dropdown";s:5:"label";s:5:"Role:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:0:{}s:13:"sqlConnection";s:4:"RBAC";s:3:"sql";s:75:"SELECT UID, ROL_CODE FROM ROLE WHERE ROL_APPLICATION = @#USR_APPLICATION - ";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:8:"Continue";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:3:"UID";O:13:"xmlform_field":8:{s:4:"name";s:3:"UID";s:4:"type";s:11:"phpvariable";s:5:"label";N;s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:6:"INAPPS";O:13:"xmlform_field":8:{s:4:"name";s:6:"INAPPS";s:4:"type";s:11:"phpvariable";s:5:"label";N;s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:3:"400";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:73:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userAssignRole.en";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:74:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userAssignRole.xml";' ); -$this->scriptFile = unserialize( 's:0:"";' ); -$this->scriptURL = unserialize( 's:0:"";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userAssignRole.es b/rbac/engine/xmlform/rbac/userAssignRole.es deleted file mode 100755 index 3510ebc85..000000000 --- a/rbac/engine/xmlform/rbac/userAssignRole.es +++ /dev/null @@ -1,57 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:3:{s:4:"name";s:18:"userAssignRole.xml";s:7:"basedir";s:0:"";s:5:"width";s:3:"400";}s:8:"children";a:14:{i:0;O:8:"xml_node":5:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:2:{s:4:"type";s:5:"title";s:5:"group";s:1:"5";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:24:"Asignar Rol a un Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:19:"Assign Role to User";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:24:"Asignar Rol a un usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:8:"USR_NAME";s:4:"type";s:4:"open";s:5:"value";s:59:" - SELECT UID, USR_USERNAME FROM USERS WHERE UID = @@UID - ";s:10:"attributes";a:2:{s:4:"type";s:8:"dropdown";s:13:"sqlconnection";s:4:"RBAC";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:8:"Usuario:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"User:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:8:"Usuario:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:15:"USR_APPLICATION";s:4:"type";s:4:"open";s:5:"value";s:69:" - SELECT UID, APP_CODE FROM APPLICATION WHERE UID NOT IN @#INAPPS - ";s:10:"attributes";a:3:{s:4:"type";s:8:"dropdown";s:15:"dependentfields";s:8:"USR_ROLE";s:13:"sqlconnection";s:4:"RBAC";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:4:"open";s:5:"value";s:12:"Aplicación:";s:10:"attributes";a:0:{}s:8:"children";a:1:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:18:"select application";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:4:"open";s:5:"value";s:12:"Application:";s:10:"attributes";a:0:{}s:8:"children";a:1:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:18:"select application";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:4:"open";s:5:"value";s:11:"Aplicacion:";s:10:"attributes";a:0:{}s:8:"children";a:1:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:18:"select application";s:10:"attributes";a:1:{s:4:"name";s:1:"0";}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:8:"USR_ROLE";s:4:"type";s:4:"open";s:5:"value";s:78:" - SELECT UID, ROL_CODE FROM ROLE WHERE ROL_APPLICATION = @#USR_APPLICATION - ";s:10:"attributes";a:2:{s:4:"type";s:8:"dropdown";s:13:"sqlconnection";s:4:"RBAC";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:5:"Role:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:4:"Rol:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:3:"UID";s:4:"type";s:8:"complete";s:5:"value";s:1:" -";s:10:"attributes";a:1:{s:4:"type";s:11:"phpvariable";}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:12;O:8:"xml_node":5:{s:4:"name";s:6:"INAPPS";s:4:"type";s:8:"complete";s:5:"value";s:1:" -";s:10:"attributes";a:1:{s:4:"type";s:11:"phpvariable";}s:8:"children";a:0:{}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:46:"cGNXUnoxwrBvcDVYaXRhVGczcHlueEtEWm1KR28yWnc___";' ); -$this->name = unserialize( 's:18:"userAssignRole.xml";' ); -$this->fields = unserialize( 'a:7:{s:11:"DYNA_HEADER";O:19:"xmlform_field_title":8:{s:4:"name";s:11:"DYNA_HEADER";s:4:"type";s:5:"title";s:5:"label";s:24:"Asignar Rol a un Usuario";s:5:"owner";N;s:5:"group";s:1:"5";s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:8:"USR_NAME";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:8:"USR_NAME";s:4:"type";s:8:"dropdown";s:5:"label";s:8:"Usuario:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:0:{}s:13:"sqlConnection";s:4:"RBAC";s:3:"sql";s:56:"SELECT UID, USR_USERNAME FROM USERS WHERE UID = @@UID - ";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:15:"USR_APPLICATION";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:15:"USR_APPLICATION";s:4:"type";s:8:"dropdown";s:5:"label";s:12:"Aplicación:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:8:"USR_ROLE";s:8:"readonly";b:0;s:6:"option";a:1:{i:0;s:18:"select application";}s:13:"sqlConnection";s:4:"RBAC";s:3:"sql";s:66:"SELECT UID, APP_CODE FROM APPLICATION WHERE UID NOT IN @#INAPPS - ";s:9:"sqlOption";a:0:{}s:7:"options";a:1:{i:0;s:18:"select application";}}s:8:"USR_ROLE";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:8:"USR_ROLE";s:4:"type";s:8:"dropdown";s:5:"label";s:4:"Rol:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:0:{}s:13:"sqlConnection";s:4:"RBAC";s:3:"sql";s:75:"SELECT UID, ROL_CODE FROM ROLE WHERE ROL_APPLICATION = @#USR_APPLICATION - ";s:9:"sqlOption";a:0:{}s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:9:"Continuar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:3:"UID";O:13:"xmlform_field":8:{s:4:"name";s:3:"UID";s:4:"type";s:11:"phpvariable";s:5:"label";N;s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:6:"INAPPS";O:13:"xmlform_field":8:{s:4:"name";s:6:"INAPPS";s:4:"type";s:11:"phpvariable";s:5:"label";N;s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:3:"400";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:73:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userAssignRole.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:74:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userAssignRole.xml";' ); -$this->scriptFile = unserialize( 's:78:"/home/santos/newgulliver/trunk/rbac/public_html/xmlform/rbac/userAssignRole.js";' ); -$this->scriptURL = unserialize( 's:31:"/xmlform/rbac/userAssignRole.js";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userAssignRole.xml b/rbac/engine/xmlform/rbac/userAssignRole.xml deleted file mode 100755 index d6159aa0b..000000000 --- a/rbac/engine/xmlform/rbac/userAssignRole.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - Asignar Rol a un Usuario - Assign Role to User - Asignar Rol a un usuario - - - SELECT UID, USR_USERNAME FROM USERS WHERE UID = @@UID - Usuario: - User: - Usuario: - - - SELECT UID, APP_CODE FROM APPLICATION WHERE UID NOT IN @#INAPPS - Aplicación: - Application: - Aplicacion: - - - SELECT UID, ROL_CODE FROM ROLE WHERE ROL_APPLICATION = @#USR_APPLICATION - Rol: - Role: - Rol: - - - Continuar - Continue - Continuar - - - - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userAssignRole3.xml b/rbac/engine/xmlform/rbac/userAssignRole3.xml deleted file mode 100755 index c318a6bdb..000000000 --- a/rbac/engine/xmlform/rbac/userAssignRole3.xml +++ /dev/null @@ -1,45 +0,0 @@ - -form - - [CDATA] -
    Asignar Rol a un Usuario
    - [/CDATA]
    - [CDATA] -
    Assign Role to User.
    - [/CDATA]
    - [CDATA] -
    Asignar Rol a un usuario
    - [/CDATA]
    -
    - - - - Nombre de Usuario: - User Id: - Nome do Usuario: - - - - Aplicacin: - Application: - Aplicacion: - - - - select UID, ROL_CODE from ROLE where ROL_APPLICATION = $appid - Rol: - Role: - Rol: - - - - - Continuar: - Continue: - Continuar: - - - - global $appid; - -
    \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userChangeLdap.xml b/rbac/engine/xmlform/rbac/userChangeLdap.xml deleted file mode 100755 index 10bcc53bd..000000000 --- a/rbac/engine/xmlform/rbac/userChangeLdap.xml +++ /dev/null @@ -1,53 +0,0 @@ - -form - - - Editar propiedades de authenticacion - Edit Authentication Properties - Editar propiedades de authenticacion - - - - Enable LDAP/AD - - - - Enable LDAP/AD: - - - - Enable LDAP/AD: - - - - - - -select * from AUTHENTICATION_SOURCES - Fuente de Autenticacion: - - - Authentication Source: - - - Authentication Source: - - - - - - DN Usuario: - DN User: - DN User: - - - - Continuar: - Continue: - Continuar: - - - - $lan = SYS_LANG; - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userChangePwd.xml b/rbac/engine/xmlform/rbac/userChangePwd.xml deleted file mode 100755 index b2cc92bde..000000000 --- a/rbac/engine/xmlform/rbac/userChangePwd.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - Reinicio de Password - Reset Password - Reiniciar password - - - Identificador de Usuario: - User ID: - Nome do usuario: - - - Password: - Password: - Password: - - - Confirmación: - Confirmation: - Confirmacion: - - - Continuar - Continue - Continuar - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userEdit.es b/rbac/engine/xmlform/rbac/userEdit.es deleted file mode 100755 index a03fbbc34..000000000 --- a/rbac/engine/xmlform/rbac/userEdit.es +++ /dev/null @@ -1,98 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:2:{s:4:"name";s:12:"userEdit.xml";s:7:"basedir";s:0:"";}s:8:"children";a:20:{i:0;O:8:"xml_node":5:{s:4:"name";s:3:"abc";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:5:"title";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:23:"Editar Datos de Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:14:"Edit User Info";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:20:"Editar datos do user";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:13:"USR_FIRSTNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:5:"Alpha";s:5:"group";s:1:"8";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:7:"Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:11:"First Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:6:"Nomes:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:11:"USR_MIDNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:5:"Alpha";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:15:"Segundo Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:12:"Middle Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:15:"Segundo Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:12:"USR_LASTNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:5:"Alpha";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Apellido:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:10:"Last Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Apellido:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:9:"USR_EMAIL";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:20:"Correo Electrónico:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:7:"E-Mail:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:19:"Correo Electronico:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:12:"USR_USERNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"32";s:8:"validate";s:5:"Alpha";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:25:"Identificador de Usuario:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:10:"User Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:16:"Nome do Usuario:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:12;O:8:"xml_node":5:{s:4:"name";s:10:"USR_STATUS";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:8:"dropdown";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:4:"open";s:5:"value";s:19:"Estado Actual: - ";s:10:"attributes";a:0:{}s:8:"children";a:12:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:6:"Activo";s:10:"attributes";a:1:{s:4:"name";s:6:"ACTIVE";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:8:"Inactivo";s:10:"attributes";a:1:{s:4:"name";s:8:"INACTIVE";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:9:"Vacación";s:10:"attributes";a:1:{s:4:"name";s:8:"VACATION";}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:9;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:7:"Cerrado";s:10:"attributes";a:1:{s:4:"name";s:5:"CLOSE";}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:4:"open";s:5:"value";s:20:"Current Status: - ";s:10:"attributes";a:0:{}s:8:"children";a:12:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:6:"Active";s:10:"attributes";a:1:{s:4:"name";s:6:"ACTIVE";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:8:"Inactive";s:10:"attributes";a:1:{s:4:"name";s:8:"INACTIVE";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:8:"Vacation";s:10:"attributes";a:1:{s:4:"name";s:8:"VACATION";}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:9;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:5:"Close";s:10:"attributes";a:1:{s:4:"name";s:5:"CLOSE";}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:4:"open";s:5:"value";s:19:"Estado Actual: - ";s:10:"attributes";a:0:{}s:8:"children";a:12:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:6:"Activo";s:10:"attributes";a:1:{s:4:"name";s:6:"ACTIVE";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:8:"Inactivo";s:10:"attributes";a:1:{s:4:"name";s:8:"INACTIVE";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:9:"Vacación";s:10:"attributes";a:1:{s:4:"name";s:8:"VACATION";}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:9;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:7:"Cerrado";s:10:"attributes";a:1:{s:4:"name";s:5:"CLOSE";}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:13;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:14;O:8:"xml_node":5:{s:4:"name";s:12:"USR_DUE_DATE";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:4:"date";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:21:"Fecha de Vencimiento:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:9:"Due Date:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:19:"Fecha de Caducidad:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:15;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:16;O:8:"xml_node":5:{s:4:"name";s:12:"USR_USE_LDAP";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:8:"dropdown";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:4:"open";s:5:"value";s:19:"Enable LDAP/AD - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:6:"Enable";s:10:"attributes";a:1:{s:4:"name";s:1:"Y";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:7:"Disable";s:10:"attributes";a:1:{s:4:"name";s:1:"N";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:4:"open";s:5:"value";s:20:"Enable LDAP/AD: - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:6:"Enable";s:10:"attributes";a:1:{s:4:"name";s:1:"Y";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:7:"Disable";s:10:"attributes";a:1:{s:4:"name";s:1:"N";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:4:"open";s:5:"value";s:20:"Enable LDAP/AD: - ";s:10:"attributes";a:0:{}s:8:"children";a:6:{i:0;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:6:"Enable";s:10:"attributes";a:1:{s:4:"name";s:1:"Y";}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:4:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:6:"option";s:4:"type";s:8:"complete";s:5:"value";s:7:"Disable";s:10:"attributes";a:1:{s:4:"name";s:1:"N";}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:17;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:18;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:19;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:32:"cGNXUnoxwrBvcDVYaXVaWFc2V094MzUw";' ); -$this->name = unserialize( 's:12:"userEdit.xml";' ); -$this->fields = unserialize( 'a:10:{s:3:"abc";O:19:"xmlform_field_title":8:{s:4:"name";s:3:"abc";s:4:"type";s:5:"title";s:5:"label";s:23:"Editar Datos de Usuario";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:13:"USR_FIRSTNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:13:"USR_FIRSTNAME";s:4:"type";s:4:"text";s:5:"label";s:7:"Nombre:";s:5:"owner";N;s:5:"group";s:1:"8";s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:11:"USR_MIDNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:11:"USR_MIDNAME";s:4:"type";s:4:"text";s:5:"label";s:15:"Segundo Nombre:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:12:"USR_LASTNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:12:"USR_LASTNAME";s:4:"type";s:4:"text";s:5:"label";s:9:"Apellido:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:9:"USR_EMAIL";O:18:"xmlform_field_text":22:{s:4:"name";s:9:"USR_EMAIL";s:4:"type";s:4:"text";s:5:"label";s:20:"Correo Electrónico:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:12:"USR_USERNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:12:"USR_USERNAME";s:4:"type";s:4:"text";s:5:"label";s:25:"Identificador de Usuario:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"32";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:10:"USR_STATUS";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:10:"USR_STATUS";s:4:"type";s:8:"dropdown";s:5:"label";s:19:"Estado Actual: - ";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:4:{s:6:"ACTIVE";s:6:"Activo";s:8:"INACTIVE";s:8:"Inactivo";s:8:"VACATION";s:9:"Vacación";s:5:"CLOSE";s:7:"Cerrado";}s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:4:{s:6:"ACTIVE";s:6:"Activo";s:8:"INACTIVE";s:8:"Inactivo";s:8:"VACATION";s:9:"Vacación";s:5:"CLOSE";s:7:"Cerrado";}}s:12:"USR_DUE_DATE";O:18:"xmlform_field_date":17:{s:4:"name";s:12:"USR_DUE_DATE";s:4:"type";s:4:"date";s:5:"label";s:21:"Fecha de Vencimiento:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";i:15;s:8:"validate";s:3:"Any";s:4:"mask";s:10:"dd-mm-YYYY";s:11:"initialYear";i:0;s:9:"finalYear";i:0;s:12:"defaultValue";s:10:"0000-00-00";s:6:"format";s:5:"Y-m-d";s:8:"required";b:0;s:8:"readOnly";b:0;s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:12:"USR_USE_LDAP";O:22:"xmlform_field_dropdown":15:{s:4:"name";s:12:"USR_USE_LDAP";s:4:"type";s:8:"dropdown";s:5:"label";s:19:"Enable LDAP/AD - ";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:8:"readonly";b:0;s:6:"option";a:2:{s:1:"Y";s:6:"Enable";s:1:"N";s:7:"Disable";}s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"options";a:2:{s:1:"Y";s:6:"Enable";s:1:"N";s:7:"Disable";}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:9:"Continuar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 'i:600;' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:67:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userEdit.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:68:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userEdit.xml";' ); -$this->scriptFile = unserialize( 's:72:"/home/santos/newgulliver/trunk/rbac/public_html/xmlform/rbac/userEdit.js";' ); -$this->scriptURL = unserialize( 's:25:"/xmlform/rbac/userEdit.js";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userEdit.xml b/rbac/engine/xmlform/rbac/userEdit.xml deleted file mode 100755 index d973d83fe..000000000 --- a/rbac/engine/xmlform/rbac/userEdit.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - Editar Datos de Usuario - Edit User Info - Editar datos do user - - - Nombre: - First Name: - Nomes: - - - Segundo Nombre: - Middle Name: - Segundo Nombre: - - - Apellido: - Last Name: - Apellido: - - - Correo Electrónico: - E-Mail: - Correo Electronico: - - - Identificador de Usuario: - User Name: - Nome do Usuario: - - - Estado Actual: - - - - - - Current Status: - - - - - - Estado Actual: - - - - - - - - Fecha de Vencimiento: - Due Date: - Fecha de Caducidad: - - - Enable LDAP/AD - - - - Enable LDAP/AD: - - - - Enable LDAP/AD: - - - - - - Continuar - Continue - Continuar - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userNew.es b/rbac/engine/xmlform/rbac/userNew.es deleted file mode 100755 index 772926604..000000000 --- a/rbac/engine/xmlform/rbac/userNew.es +++ /dev/null @@ -1,53 +0,0 @@ -tree = unserialize( 'O:8:"xml_node":5:{s:4:"name";s:8:"dynaForm";s:4:"type";s:4:"open";s:5:"value";s:1:" -";s:10:"attributes";a:3:{s:4:"name";s:11:"userNew.xml";s:7:"basedir";s:0:"";s:5:"width";s:3:"400";}s:8:"children";a:12:{i:0;O:8:"xml_node":5:{s:4:"name";s:3:"abc";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:5:"title";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:19:"Crear Nuevo Usuario";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:15:"Create new User";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:17:"Inserir Novo user";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:13:"USR_FIRSTNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:5:"Alpha";s:5:"group";s:1:"8";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:7:"Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:11:"First Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:6:"Nomes:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:3;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:11:"USR_MIDNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:5:"Alpha";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:15:"Segundo Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:12:"Middle Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:15:"Segundo Nombre:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:12:"USR_LASTNAME";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:5:"Alpha";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Apellido:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:10:"Last Name:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Apellido:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:8;O:8:"xml_node":5:{s:4:"name";s:9:"USR_EMAIL";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"24";s:8:"validate";s:3:"Any";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:20:"Correo Electrónico:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:7:"E-Mail:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:19:"Correo Electronico:";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:9;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:10;O:8:"xml_node":5:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:4:"open";s:5:"value";s:3:" - ";s:10:"attributes";a:1:{s:4:"type";s:6:"submit";}s:8:"children";a:8:{i:0;O:8:"xml_node":5:{s:4:"name";s:2:"es";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:1;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:2;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:3;O:8:"xml_node":5:{s:4:"name";s:2:"en";s:4:"type";s:8:"complete";s:5:"value";s:8:"Continue";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:4;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:5;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:2:" ";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:6;O:8:"xml_node":5:{s:4:"name";s:2:"po";s:4:"type";s:8:"complete";s:5:"value";s:9:"Continuar";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}i:7;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}i:11;O:8:"xml_node":5:{s:4:"name";s:0:"";s:4:"type";s:5:"cdata";s:5:"value";s:1:" -";s:10:"attributes";a:0:{}s:8:"children";a:0:{}}}}' ); -$this->id = unserialize( 's:0:"";' ); -$this->name = unserialize( 's:11:"userNew.xml";' ); -$this->version = unserialize( 's:3:"0.3";' ); -$this->fields = unserialize( 'a:6:{s:3:"abc";O:19:"xmlform_field_title":8:{s:4:"name";s:3:"abc";s:4:"type";s:5:"title";s:5:"label";s:19:"Crear Nuevo Usuario";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}s:13:"USR_FIRSTNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:13:"USR_FIRSTNAME";s:4:"type";s:4:"text";s:5:"label";s:7:"Nombre:";s:5:"owner";N;s:5:"group";s:1:"8";s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:11:"USR_MIDNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:11:"USR_MIDNAME";s:4:"type";s:4:"text";s:5:"label";s:15:"Segundo Nombre:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:12:"USR_LASTNAME";O:18:"xmlform_field_text":22:{s:4:"name";s:12:"USR_LASTNAME";s:4:"type";s:4:"text";s:5:"label";s:9:"Apellido:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:5:"Alpha";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:9:"USR_EMAIL";O:18:"xmlform_field_text":22:{s:4:"name";s:9:"USR_EMAIL";s:4:"type";s:4:"text";s:5:"label";s:20:"Correo Electrónico:";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:4:"size";s:2:"25";s:8:"validate";s:3:"Any";s:4:"mask";s:0:"";s:9:"maxLength";s:2:"24";s:12:"defaultValue";s:0:"";s:8:"required";b:0;s:15:"dependentFields";s:0:"";s:9:"linkField";s:0:"";s:5:"strTo";s:0:"";s:8:"readOnly";b:0;s:13:"sqlConnection";i:0;s:3:"sql";s:0:"";s:9:"sqlOption";a:0:{}s:7:"formula";s:0:"";s:8:"function";s:0:"";s:7:"options";a:0:{}}s:7:"BSUBMIT";O:20:"xmlform_field_submit":8:{s:4:"name";s:7:"BSUBMIT";s:4:"type";s:6:"submit";s:5:"label";s:9:"Continuar";s:5:"owner";N;s:5:"group";i:0;s:4:"mode";s:4:"edit";s:3:"sql";s:0:"";s:7:"options";a:0:{}}}' ); -$this->width = unserialize( 's:3:"400";' ); -$this->height = unserialize( 'i:600;' ); -$this->title = unserialize( 's:0:"";' ); -$this->home = unserialize( 's:51:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/";' ); -$this->parsedFile = unserialize( 's:66:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userNew.es";' ); -$this->type = unserialize( 's:7:"xmlform";' ); -$this->fileName = unserialize( 's:67:"/home/santos/newgulliver/trunk/rbac/engine/xmlform/rbac/userNew.xml";' ); -$this->scriptFile = unserialize( 's:0:"";' ); -$this->scriptURL = unserialize( 's:0:"";' ); -$this->sql = unserialize( 'N;' ); -$this->sqlConnection = unserialize( 'N;' ); -$this->values = unserialize( 'N;' ); -$this->action = unserialize( 's:0:"";' ); -$this->ajaxServer = unserialize( 's:0:"";' ); -$this->enableTemplate = unserialize( 'b:0;' ); -?> \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userNew.xml b/rbac/engine/xmlform/rbac/userNew.xml deleted file mode 100755 index 469780ce2..000000000 --- a/rbac/engine/xmlform/rbac/userNew.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - Crear Nuevo Usuario - Create new User - Inserir Novo user - - - Nombre: - First Name: - Nomes: - - - Segundo Nombre: - Middle Name: - Segundo Nombre: - - - Apellido: - Last Name: - Apellido: - - - Correo Electrónico: - E-Mail: - Correo Electronico: - - - Continuar - Continue - Continuar - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userNewPwd.xml b/rbac/engine/xmlform/rbac/userNewPwd.xml deleted file mode 100755 index f3ffac1a8..000000000 --- a/rbac/engine/xmlform/rbac/userNewPwd.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - Crear Usuario y password - Create new Username and Password - Inserir Novo user - - - Identificador de Usuario: - User ID: - Nome do usuario: - - - Password: - Password: - Password: - - - Confirmación: - Confirmation: - Confirmacion: - - - Continuar - Continue - Continuar - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userTestLdap.xml b/rbac/engine/xmlform/rbac/userTestLdap.xml deleted file mode 100755 index b656e822e..000000000 --- a/rbac/engine/xmlform/rbac/userTestLdap.xml +++ /dev/null @@ -1,26 +0,0 @@ - -form - - - Probar conexin con LDAP/AD - Test your LDAP/AD Login - Probar conexin con LDAP/AD - - -< PASS type="password" group ='3' size="20" maxlength="20" > - Contrasea - Password: - Senha: - - - - - Continuar: - Continue: - Continuar: - - - - $lan = SYS_LANG; - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/userView.xml b/rbac/engine/xmlform/rbac/userView.xml deleted file mode 100755 index d921a5389..000000000 --- a/rbac/engine/xmlform/rbac/userView.xml +++ /dev/null @@ -1,73 +0,0 @@ - -form - - [CDATA] -
    Crear Nuevo Usuario
    - [/CDATA]
    - [CDATA] -
    Create new User.
    - [/CDATA]
    - [CDATA] -
    Inserir Novo user
    - [/CDATA]
    -
    - - - - Primer Apellido: - First Name: - Primer Apellido: - - - - Segundo Apellido: - Middle Name: - Segundo Apellido: - - - - Nombres: - Last Name: - Nomes: - - - - Correo Electrnico: - Email: - Correo Electronico: - - - - - Nmero de Telfono: - Phone Number: - Telefono: - - - - Nmero de Celular: - Cellular Number: - Celular: - - - - Fax: - Fax: - Fax: - - - - Casilla: - PO BOX: - Casilla: - - - - Continuar - Continue - Continuar - - - $lan = SYS_LANG; - -
    \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/usersList.xml b/rbac/engine/xmlform/rbac/usersList.xml deleted file mode 100755 index 27f9b45c1..000000000 --- a/rbac/engine/xmlform/rbac/usersList.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - UID - UID - - - Username - Username - - - Full Name - Full Name - - - E-Mail - E-Mail - - - Status - Status - - - LDAP/AD - LDAP/AD - - - Due Date - Due Date - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/usersListFilter.xml b/rbac/engine/xmlform/rbac/usersListFilter.xml deleted file mode 100755 index 030ce0a55..000000000 --- a/rbac/engine/xmlform/rbac/usersListFilter.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - UID - UID - - - - Nombre - Name - - - - eMail - eMail - - - - Estado Actual: - - - - - - - Current Status: - - - - - - - Estado Actual: - - - - - - - - - - Filtrar - Apply Filter - - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/usersListMenu.xml b/rbac/engine/xmlform/rbac/usersListMenu.xml deleted file mode 100755 index 98a5fe48e..000000000 --- a/rbac/engine/xmlform/rbac/usersListMenu.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - Buscar - Search - - -function showHideFilterForm() -{ - if (document.getElementById('usersListFilter').style.display==='none') - document.getElementById('usersListFilter').style.display = ''; - else - document.getElementById('usersListFilter').style.display = 'none'; -} - - \ No newline at end of file diff --git a/rbac/engine/xmlform/rbac/usersRolesList.xml b/rbac/engine/xmlform/rbac/usersRolesList.xml deleted file mode 100755 index 463b45094..000000000 --- a/rbac/engine/xmlform/rbac/usersRolesList.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - Application - Application - - - Rol Code - Rol Code - - - Rol Description - Rol Description - - - - Eliminar - Delete - - - \ No newline at end of file diff --git a/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php b/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php deleted file mode 100644 index d5d7ece33..000000000 --- a/tests/automated/gulliver/system/classXmlForm_Field_HTMLTest.php +++ /dev/null @@ -1,85 +0,0 @@ -'input'); - $fieldNode = new Xml_Node('testField', 'type', 'value', $attributes); - $this->object = new XmlForm_Field_HTML($fieldNode); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown() - { - } - - /** - * This is the default method to test, if the class still having - * the same number of methods. - */ - public function testNumberOfMethodsInThisClass() - { - $methods = get_class_methods('XmlForm_Field_HTML'); $this->assertTrue( count($methods) == 25); - } - - /** - * @covers XmlForm_Field_HTML::render - * @todo Implement testrender(). - */ - public function testrender() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('render', $methods ), 'exists method render' ); - $r = new ReflectionMethod('XmlForm_Field_HTML', 'render'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'value'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'owner'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == true); - $this->assertTrue( $params[1]->getDefaultValue() == ''); - } - - /** - * @covers XmlForm_Field_HTML::attachEvents - * @todo Implement testattachEvents(). - */ - public function testattachEvents() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('attachEvents', $methods ), 'exists method attachEvents' ); - $r = new ReflectionMethod('XmlForm_Field_HTML', 'attachEvents'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'element'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - } diff --git a/tests/automated/gulliver/system/classtestToolsTest.php b/tests/automated/gulliver/system/classtestToolsTest.php deleted file mode 100644 index dbff79df2..000000000 --- a/tests/automated/gulliver/system/classtestToolsTest.php +++ /dev/null @@ -1,185 +0,0 @@ -object = new testTools(); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown() - { - } - - /** - * This is the default method to test, if the class still having - * the same number of methods. - */ - public function testNumberOfMethodsInThisClass() - { - $methods = get_class_methods('testTools'); $this->assertTrue( count($methods) == 7); - } - - /** - * @covers testTools::importDB - * @todo Implement testimportDB(). - */ - public function testimportDB() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('importDB', $methods ), 'exists method importDB' ); - $r = new ReflectionMethod('testTools', 'importDB'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'host'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'user'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - $this->assertTrue( $params[2]->getName() == 'password'); - $this->assertTrue( $params[2]->isArray() == false); - $this->assertTrue( $params[2]->isOptional () == false); - $this->assertTrue( $params[3]->getName() == 'database'); - $this->assertTrue( $params[3]->isArray() == false); - $this->assertTrue( $params[3]->isOptional () == false); - $this->assertTrue( $params[4]->getName() == 'importFile'); - $this->assertTrue( $params[4]->isArray() == false); - $this->assertTrue( $params[4]->isOptional () == false); - } - - /** - * @covers testTools::importLocalDB - * @todo Implement testimportLocalDB(). - */ - public function testimportLocalDB() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('importLocalDB', $methods ), 'exists method importLocalDB' ); - $r = new ReflectionMethod('testTools', 'importLocalDB'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'importFile'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers testTools::callMethod - * @todo Implement testcallMethod(). - */ - public function testcallMethod() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('callMethod', $methods ), 'exists method callMethod' ); - $r = new ReflectionMethod('testTools', 'callMethod'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'methodFile'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'GET'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - $this->assertTrue( $params[2]->getName() == 'POST'); - $this->assertTrue( $params[2]->isArray() == false); - $this->assertTrue( $params[2]->isOptional () == false); - $this->assertTrue( $params[3]->getName() == 'SESSION'); - $this->assertTrue( $params[3]->isArray() == false); - $this->assertTrue( $params[3]->isOptional () == false); - } - - /** - * @covers testTools::arrayAppend - * @todo Implement testarrayAppend(). - */ - public function testarrayAppend() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' ); - $r = new ReflectionMethod('testTools', 'arrayAppend'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'to'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'appendFrom'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - } - - /** - * @covers testTools::arrayDelete - * @todo Implement testarrayDelete(). - */ - public function testarrayDelete() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('arrayDelete', $methods ), 'exists method arrayDelete' ); - $r = new ReflectionMethod('testTools', 'arrayDelete'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'array'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers testTools::replaceVariables - * @todo Implement testreplaceVariables(). - */ - public function testreplaceVariables() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('replaceVariables', $methods ), 'exists method replaceVariables' ); - $r = new ReflectionMethod('testTools', 'replaceVariables'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'Fields'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'ExternalVariables'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == true); - $this->assertTrue( $params[1]->getDefaultValue() == Array()); - } - - /** - * @covers testTools::findValue - * @todo Implement testfindValue(). - */ - public function testfindValue() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('findValue', $methods ), 'exists method findValue' ); - $r = new ReflectionMethod('testTools', 'findValue'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'value'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'obj'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - } - - } diff --git a/tests/automated/gulliver/system/classymlDomainTest.php b/tests/automated/gulliver/system/classymlDomainTest.php deleted file mode 100644 index ee11cb1ad..000000000 --- a/tests/automated/gulliver/system/classymlDomainTest.php +++ /dev/null @@ -1,223 +0,0 @@ -object = new ymlDomain(); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - */ - protected function tearDown() - { - } - - /** - * This is the default method to test, if the class still having - * the same number of methods. - */ - public function testNumberOfMethodsInThisClass() - { - $methods = get_class_methods('ymlDomain'); $this->assertTrue( count($methods) == 11); - } - - /** - * @covers ymlDomain::ymlDomain - * @todo Implement testymlDomain(). - */ - public function testymlDomain() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('ymlDomain', $methods ), 'exists method ymlDomain' ); - $r = new ReflectionMethod('ymlDomain', 'ymlDomain'); - $params = $r->getParameters(); - } - - /** - * @covers ymlDomain::addDomain - * @todo Implement testaddDomain(). - */ - public function testaddDomain() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('addDomain', $methods ), 'exists method addDomain' ); - $r = new ReflectionMethod('ymlDomain', 'addDomain'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'domainName'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers ymlDomain::addDomainValue - * @todo Implement testaddDomainValue(). - */ - public function testaddDomainValue() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('addDomainValue', $methods ), 'exists method addDomainValue' ); - $r = new ReflectionMethod('ymlDomain', 'addDomainValue'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'domainName'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'value'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - } - - /** - * @covers ymlDomain::exists - * @todo Implement testexists(). - */ - public function testexists() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('exists', $methods ), 'exists method exists' ); - $r = new ReflectionMethod('ymlDomain', 'exists'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'domainName'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers ymlDomain::get - * @todo Implement testget(). - */ - public function testget() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('get', $methods ), 'exists method get' ); - $r = new ReflectionMethod('ymlDomain', 'get'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'resource'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers ymlDomain::name2keys - * @todo Implement testname2keys(). - */ - public function testname2keys() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('name2keys', $methods ), 'exists method name2keys' ); - $r = new ReflectionMethod('ymlDomain', 'name2keys'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'resource'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers ymlDomain::load - * @todo Implement testload(). - */ - public function testload() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('load', $methods ), 'exists method load' ); - $r = new ReflectionMethod('ymlDomain', 'load'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'resource'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers ymlDomain::find - * @todo Implement testfind(). - */ - public function testfind() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('find', $methods ), 'exists method find' ); - $r = new ReflectionMethod('ymlDomain', 'find'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'nodesKey'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'where'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - } - - /** - * @covers ymlDomain::getNode - * @todo Implement testgetNode(). - */ - public function testgetNode() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('getNode', $methods ), 'exists method getNode' ); - $r = new ReflectionMethod('ymlDomain', 'getNode'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'nodeKey'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'from'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - } - - /** - * @covers ymlDomain::plainArray - * @todo Implement testplainArray(). - */ - public function testplainArray() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('plainArray', $methods ), 'exists method plainArray' ); - $r = new ReflectionMethod('ymlDomain', 'plainArray'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'array'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - } - - /** - * @covers ymlDomain::arrayAppend - * @todo Implement testarrayAppend(). - */ - public function testarrayAppend() - { - $methods = get_class_methods($this->object); - $this->assertTrue( in_array('arrayAppend', $methods ), 'exists method arrayAppend' ); - $r = new ReflectionMethod('ymlDomain', 'arrayAppend'); - $params = $r->getParameters(); - $this->assertTrue( $params[0]->getName() == 'to'); - $this->assertTrue( $params[0]->isArray() == false); - $this->assertTrue( $params[0]->isOptional () == false); - $this->assertTrue( $params[1]->getName() == 'appendFrom'); - $this->assertTrue( $params[1]->isArray() == false); - $this->assertTrue( $params[1]->isOptional () == false); - } - - } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 057c78711..c54e11d21 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -113,7 +113,6 @@ Bootstrap::registerClass('DBTable', PATH_GULLIVER . "class.dbtable.php"); Bootstrap::registerClass('xmlMenu', PATH_GULLIVER . "class.xmlMenu.php"); Bootstrap::registerClass('XmlForm_Field_FastSearch', PATH_GULLIVER . "class.xmlformExtension.php"); Bootstrap::registerClass('XmlForm_Field_XmlMenu', PATH_GULLIVER . "class.xmlMenu.php"); -Bootstrap::registerClass('XmlForm_Field_HTML', PATH_GULLIVER . "class.dvEditor.php"); Bootstrap::registerClass('XmlForm_Field_WYSIWYG_EDITOR', PATH_GULLIVER . "class.wysiwygEditor.php"); Bootstrap::registerClass('Controller', PATH_GULLIVER . "class.controller.php"); Bootstrap::registerClass('HttpProxyController', PATH_GULLIVER . "class.httpProxyController.php"); diff --git a/workflow/engine/PmBootstrap.php b/workflow/engine/PmBootstrap.php index 836fd1845..5c690a36f 100644 --- a/workflow/engine/PmBootstrap.php +++ b/workflow/engine/PmBootstrap.php @@ -90,7 +90,6 @@ class PmBootstrap extends Bootstrap $this->autoloader->registerClass('form', PATH_GULLIVER . 'class.form'); $this->autoloader->registerClass('menu', PATH_GULLIVER . 'class.menu'); $this->autoloader->registerClass('xmlMenu', PATH_GULLIVER . 'class.xmlMenu'); - $this->autoloader->registerClass('dvEditor', PATH_GULLIVER . 'class.dvEditor'); $this->autoloader->registerClass('wysiwygEditor', PATH_GULLIVER . 'class.wysiwygEditor'); $this->autoloader->registerClass('Controller', PATH_GULLIVER . 'class.controller'); $this->autoloader->registerClass('HttpProxyController', PATH_GULLIVER . 'class.httpProxyController'); diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php index fba0df146..2f45fc895 100755 --- a/workflow/engine/bin/cron_single.php +++ b/workflow/engine/bin/cron_single.php @@ -82,7 +82,6 @@ try { G::LoadSystem('form'); G::LoadSystem('menu'); G::LoadSystem('xmlMenu'); - G::LoadSystem('dvEditor'); G::LoadSystem('table'); G::LoadSystem('pagedTable'); G::LoadSystem('httpProxyController'); diff --git a/workflow/engine/bin/reindex_solr.php b/workflow/engine/bin/reindex_solr.php index ec7a87211..21043b757 100644 --- a/workflow/engine/bin/reindex_solr.php +++ b/workflow/engine/bin/reindex_solr.php @@ -168,7 +168,6 @@ if (! defined ('PATH_HOME')) { G::LoadSystem ('form'); G::LoadSystem ('menu'); G::LoadSystem ("xmlMenu"); - G::LoadSystem ('dvEditor'); G::LoadSystem ('table'); G::LoadSystem ('pagedTable'); G::LoadClass ('system'); diff --git a/workflow/engine/bin/tasks/libraries.json b/workflow/engine/bin/tasks/libraries.json index 74a31e324..d302cbb06 100644 --- a/workflow/engine/bin/tasks/libraries.json +++ b/workflow/engine/bin/tasks/libraries.json @@ -26,24 +26,12 @@ "mini": "gulliver/js/common/core/webResource.js", "minify": true }, - { - "name": "dveditor", - "full": "gulliver/js/dveditor/core/dveditor.js", - "mini": "gulliver/js/dveditor/core/dveditor.js", - "minify": true - }, { "name": "tree", "full": "gulliver/js/common/tree/tree.js", "mini": "gulliver/js/common/tree/tree.js", "minify": true }, - { - "name": "json", - "full": "gulliver/js/json/core/json.js", - "mini": "gulliver/js/json/core/json.js", - "minify": true - }, { "name": "form", "full": "gulliver/js/form/core/form.js", diff --git a/workflow/engine/bin/verify_solr.php b/workflow/engine/bin/verify_solr.php index 1c5c872a7..7202178e0 100644 --- a/workflow/engine/bin/verify_solr.php +++ b/workflow/engine/bin/verify_solr.php @@ -93,7 +93,6 @@ if (! defined ('PATH_HOME')) { G::LoadSystem ('form'); G::LoadSystem ('menu'); G::LoadSystem ("xmlMenu"); - G::LoadSystem ('dvEditor'); G::LoadSystem ('table'); G::LoadSystem ('pagedTable'); G::LoadClass ('system'); diff --git a/workflow/engine/classes/class.dynaformEditor.php b/workflow/engine/classes/class.dynaformEditor.php index 4e975527c..5ce6ccce8 100755 --- a/workflow/engine/classes/class.dynaformEditor.php +++ b/workflow/engine/classes/class.dynaformEditor.php @@ -228,8 +228,6 @@ class dynaformEditor extends WebResource $G_PUBLISH->AddContent('panel-close'); $oHeadPublisher->addScriptFile("/js/maborak/core/maborak.loader.js",2); $oHeadPublisher->addScriptFile('/jscore/dynaformEditor/core/dynaformEditor.js'); - //$oHeadPublisher->addScriptFile('/js/dveditor/core/dveditor.js'); - //$oHeadPublisher->addScriptFile('/codepress/codepress.js',1); $oHeadPublisher->addScriptFile('/js/codemirrorOld/js/codemirror.js',1); diff --git a/workflow/engine/methods/cases/proxyDataCombobox.php b/workflow/engine/methods/cases/proxyDataCombobox.php index a0d65d2df..7c279d4d9 100755 --- a/workflow/engine/methods/cases/proxyDataCombobox.php +++ b/workflow/engine/methods/cases/proxyDataCombobox.php @@ -16,6 +16,7 @@ $G_FORM->parseFile($filename, SYS_LANG, true); G::LoadClass("case"); G::LoadClass("pmFunctions"); +G::LoadSystem('inputfilter'); //Load the variables $oCase = new Cases(); @@ -70,5 +71,5 @@ foreach ($aResult as $field) { } $response["records"] = $array; - -echo G::json_encode($response); +$filter = new InputFilter(); +echo G::json_encode($filter->xssFilterHard($response)); diff --git a/workflow/engine/methods/dbConnections/dbConnectionsAjax.php b/workflow/engine/methods/dbConnections/dbConnectionsAjax.php index 2325d37da..eb7670381 100755 --- a/workflow/engine/methods/dbConnections/dbConnectionsAjax.php +++ b/workflow/engine/methods/dbConnections/dbConnectionsAjax.php @@ -344,12 +344,14 @@ switch ($action) { break; case 'showEncodes': //G::LoadThirdParty( 'pear/json', 'class.json' ); - //$oJSON = new Services_JSON(); + //$oJSON = + G::LoadSystem('inputfilter'); + $filter = new InputFilter(); $engine = $_POST['engine']; if ($engine != "0") { $dbs = new dbConnections(); - echo Bootstrap::json_encode( $dbs->getEncondeList( $engine ) ); + echo Bootstrap::json_encode($dbs->getEncondeList($filter->xssFilterHard($engine))); } else { echo '[["0","..."]]'; diff --git a/workflow/engine/methods/setup/upgrade_SystemAjax.php b/workflow/engine/methods/setup/upgrade_SystemAjax.php index ba760dd99..937074e88 100755 --- a/workflow/engine/methods/setup/upgrade_SystemAjax.php +++ b/workflow/engine/methods/setup/upgrade_SystemAjax.php @@ -34,6 +34,7 @@ if (isset( $_POST['id'] )) G::LoadClass( 'languages' ); G::LoadSystem( 'database_mysql' ); +G::LoadSystem('inputfilter'); $aUpgradeData = unserialize( file_get_contents( PATH_DATA . 'log' . PATH_SEP . "upgrade.data.bin" ) ); $aWorkspaces = $aUpgradeData['workspaces']; @@ -60,7 +61,7 @@ if (is_array( $aWorkspaces ) && count( $aWorkspaces ) > 0) { print "
    "; print "
    "; print "
    "; - print "
    Upgrading the workspace $workspace| $id Remaining
    "; + print "
    Upgrading the workspace ".$filter->xssFilterHard($workspace)."| ".$filter->xssFilterHard($id)." Remaining
    "; file_put_contents( PATH_DATA . 'log' . PATH_SEP . "upgrade.data.bin", serialize( $aUpgradeData ) ); } else { print "
        "; diff --git a/workflow/engine/methods/users/users_Ajax.php b/workflow/engine/methods/users/users_Ajax.php index 889029897..14895ec0a 100644 --- a/workflow/engine/methods/users/users_Ajax.php +++ b/workflow/engine/methods/users/users_Ajax.php @@ -91,11 +91,11 @@ try { $oTasks = new Tasks(); switch ((int) $_POST['TU_RELATION']) { case 1: - echo $oTasks->assignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']); + echo htmlentities($oTasks->assignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']), ENT_QUOTES | ENT_HTML5, 'UTF-8'); G::auditlog("AssignUserTask","Assign a User to a Task -> ".$_POST['TAS_UID'].' User UID -> '.$_POST['USR_UID']); break; case 2: - echo $oTasks->assignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']); + echo htmlentities($oTasks->assignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']), ENT_QUOTES | ENT_HTML5, 'UTF-8'); G::auditlog("AssignGroupTask","Assign a Group to a Task -> ".$_POST['TAS_UID'].' User UID -> '.$_POST['USR_UID']); break; } diff --git a/workflow/engine/templates/cases/cases_Load.php b/workflow/engine/templates/cases/cases_Load.php index 29daf4d79..634248017 100755 --- a/workflow/engine/templates/cases/cases_Load.php +++ b/workflow/engine/templates/cases/cases_Load.php @@ -1,7 +1,6 @@ xssFilterHard($_POST['qs']); ?> - +