Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /home/h33678/data/www/old.zt-rada.gov.ua/modules-alien/ajaxfilemanager/client/js/lib/codepress/ drwxrwxrwx |
Viewing file: Select action/file-type: /* * CodePress - Real Time Syntax Highlighting Editor written in JavaScript - http://codepress.org/ * * Copyright (C) 2006 Fernando M.A.d.S. <fermads@gmail.com> * * 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 = function(obj, contentObserver) { var self = document.createElement('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.contentObserver = contentObserver; 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'; if(self.contentObserver){ self.pe = new PeriodicalExecuter(function(pe){ if(self.interrupt){pe.stop();return;} var crtCode = self.getCode(); if(!self.prevCode){ self.prevCode = crtCode; return;} if(self.prevCode != crtCode) self.contentObserver(); self.prevCode = crtCode; return; }, 0.2); } } ; self.close = function(){ self.interrupt = true; } ; self.edit = function(id,language) { if(id) self.textarea.value = document.getElementById(id).value; if(!self.textarea.disabled) return; self.language = language ? language : self.options.replace(/ ?codepress ?| ?readonly-on ?| ?autocomplete-off ?| ?linenumbers-off ?/g,''); if(!CodePress.languages[self.language]) self.language = 'generic'; 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.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; }; self.setCode = function(code) { self.textarea.disabled ? self.editor.setCode(code) : self.textarea.value = code; }; 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 = { css : 'CSS', generic : 'Generic', html : 'HTML', java : 'Java', javascript : 'JavaScript', perl : 'Perl', ruby : 'Ruby', php : 'PHP', text : 'Text', sql : 'SQL' }; CodePress.run = function() { s = document.getElementsByTagName('script'); for(var i=0,n=s.length;i<n;i++) { if(s[i].src.match('codepress.js')) { CodePress.path = s[i].src.replace('codepress.js',''); } } t = document.getElementsByTagName('textarea'); for(var i=0,n=t.length;i<n;i++) { if(t[i].className.match('codepress')) { id = t[i].id; t[i].id = id+'_cp'; eval(id+' = new CodePress(t[i])'); t[i].parentNode.insertBefore(eval(id), t[i]); } } } ; if(window.attachEvent) window.attachEvent('onload',CodePress.run); else window.addEventListener('DOMContentLoaded',CodePress.run,false); |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0368 ]-- |