phpfreechat-svn Mailing List for phpFreeChat (Page 25)
Status: Beta
Brought to you by:
kerphi
You can subscribe to this list here.
2006 |
Jan
|
Feb
(2) |
Mar
|
Apr
(61) |
May
(56) |
Jun
(96) |
Jul
(23) |
Aug
(62) |
Sep
(76) |
Oct
(48) |
Nov
(28) |
Dec
(28) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(31) |
Feb
(40) |
Mar
(29) |
Apr
(11) |
May
(6) |
Jun
(18) |
Jul
(18) |
Aug
(108) |
Sep
(24) |
Oct
(6) |
Nov
(21) |
Dec
|
2008 |
Jan
|
Feb
(1) |
Mar
(16) |
Apr
|
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(3) |
Dec
(2) |
2009 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(1) |
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ke...@us...> - 2006-08-01 21:28:25
|
Revision: 667 Author: kerphi Date: 2006-08-01 14:28:17 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=667&view=rev Log Message: ----------- 1.0-beta4 tag Added Paths: ----------- tags/1.0-beta4/ Copied: tags/1.0-beta4 (from rev 666, trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 20:50:45
|
Revision: 666 Author: kerphi Date: 2006-08-01 13:50:35 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=666&view=rev Log Message: ----------- cleanup Removed Paths: ------------- trunk/lib/pear/docs/ trunk/lib/pear/tests/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 20:49:28
|
Revision: 665 Author: kerphi Date: 2006-08-01 13:49:20 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=665&view=rev Log Message: ----------- remove the prototype referance Removed Paths: ------------- trunk/lib/javascript/prototype.js Deleted: trunk/lib/javascript/prototype.js =================================================================== --- trunk/lib/javascript/prototype.js 2006-08-01 19:06:23 UTC (rev 664) +++ trunk/lib/javascript/prototype.js 2006-08-01 20:49:20 UTC (rev 665) @@ -1,1781 +0,0 @@ -/* Prototype JavaScript framework, version 1.4.0 - * (c) 2005 Sam Stephenson <sa...@co...> - * - * Prototype is freely distributable under the terms of an MIT-style license. - * For details, see the Prototype web site: http://prototype.conio.net/ - * -/*--------------------------------------------------------------------------*/ - -var Prototype = { - Version: '1.4.0', - ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)', - - emptyFunction: function() {}, - K: function(x) {return x} -} - -var Class = { - create: function() { - return function() { - this.initialize.apply(this, arguments); - } - } -} - -var Abstract = new Object(); - -Object.extend = function(destination, source) { - for (property in source) { - destination[property] = source[property]; - } - return destination; -} - -Object.inspect = function(object) { - try { - if (object == undefined) return 'undefined'; - if (object == null) return 'null'; - return object.inspect ? object.inspect() : object.toString(); - } catch (e) { - if (e instanceof RangeError) return '...'; - throw e; - } -} - -Function.prototype.bind = function() { - var __method = this, args = $A(arguments), object = args.shift(); - return function() { - return __method.apply(object, args.concat($A(arguments))); - } -} - -Function.prototype.bindAsEventListener = function(object) { - var __method = this; - return function(event) { - return __method.call(object, event || window.event); - } -} - -Object.extend(Number.prototype, { - toColorPart: function() { - var digits = this.toString(16); - if (this < 16) return '0' + digits; - return digits; - }, - - succ: function() { - return this + 1; - }, - - times: function(iterator) { - $R(0, this, true).each(iterator); - return this; - } -}); - -var Try = { - these: function() { - var returnValue; - - for (var i = 0; i < arguments.length; i++) { - var lambda = arguments[i]; - try { - returnValue = lambda(); - break; - } catch (e) {} - } - - return returnValue; - } -} - -/*--------------------------------------------------------------------------*/ - -var PeriodicalExecuter = Class.create(); -PeriodicalExecuter.prototype = { - initialize: function(callback, frequency) { - this.callback = callback; - this.frequency = frequency; - this.currentlyExecuting = false; - - this.registerCallback(); - }, - - registerCallback: function() { - setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); - }, - - onTimerEvent: function() { - if (!this.currentlyExecuting) { - try { - this.currentlyExecuting = true; - this.callback(); - } finally { - this.currentlyExecuting = false; - } - } - } -} - -/*--------------------------------------------------------------------------*/ - -function $() { - var elements = new Array(); - - for (var i = 0; i < arguments.length; i++) { - var element = arguments[i]; - if (typeof element == 'string') - element = document.getElementById(element); - - if (arguments.length == 1) - return element; - - elements.push(element); - } - - return elements; -} -Object.extend(String.prototype, { - stripTags: function() { - return this.replace(/<\/?[^>]+>/gi, ''); - }, - - stripScripts: function() { - return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); - }, - - extractScripts: function() { - var matchAll = new RegExp(Prototype.ScriptFragment, 'img'); - var matchOne = new RegExp(Prototype.ScriptFragment, 'im'); - return (this.match(matchAll) || []).map(function(scriptTag) { - return (scriptTag.match(matchOne) || ['', ''])[1]; - }); - }, - - evalScripts: function() { - return this.extractScripts().map(eval); - }, - - escapeHTML: function() { - var div = document.createElement('div'); - var text = document.createTextNode(this); - div.appendChild(text); - return div.innerHTML; - }, - - unescapeHTML: function() { - var div = document.createElement('div'); - div.innerHTML = this.stripTags(); - return div.childNodes[0] ? div.childNodes[0].nodeValue : ''; - }, - - toQueryParams: function() { - var pairs = this.match(/^\??(.*)$/)[1].split('&'); - return pairs.inject({}, function(params, pairString) { - var pair = pairString.split('='); - params[pair[0]] = pair[1]; - return params; - }); - }, - - toArray: function() { - return this.split(''); - }, - - camelize: function() { - var oStringList = this.split('-'); - if (oStringList.length == 1) return oStringList[0]; - - var camelizedString = this.indexOf('-') == 0 - ? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) - : oStringList[0]; - - for (var i = 1, len = oStringList.length; i < len; i++) { - var s = oStringList[i]; - camelizedString += s.charAt(0).toUpperCase() + s.substring(1); - } - - return camelizedString; - }, - - inspect: function() { - return "'" + this.replace('\\', '\\\\').replace("'", '\\\'') + "'"; - } -}); - -String.prototype.parseQuery = String.prototype.toQueryParams; - -var $break = new Object(); -var $continue = new Object(); - -var Enumerable = { - each: function(iterator) { - var index = 0; - try { - this._each(function(value) { - try { - iterator(value, index++); - } catch (e) { - if (e != $continue) throw e; - } - }); - } catch (e) { - if (e != $break) throw e; - } - }, - - all: function(iterator) { - var result = true; - this.each(function(value, index) { - result = result && !!(iterator || Prototype.K)(value, index); - if (!result) throw $break; - }); - return result; - }, - - any: function(iterator) { - var result = true; - this.each(function(value, index) { - if (result = !!(iterator || Prototype.K)(value, index)) - throw $break; - }); - return result; - }, - - collect: function(iterator) { - var results = []; - this.each(function(value, index) { - results.push(iterator(value, index)); - }); - return results; - }, - - detect: function (iterator) { - var result; - this.each(function(value, index) { - if (iterator(value, index)) { - result = value; - throw $break; - } - }); - return result; - }, - - findAll: function(iterator) { - var results = []; - this.each(function(value, index) { - if (iterator(value, index)) - results.push(value); - }); - return results; - }, - - grep: function(pattern, iterator) { - var results = []; - this.each(function(value, index) { - var stringValue = value.toString(); - if (stringValue.match(pattern)) - results.push((iterator || Prototype.K)(value, index)); - }) - return results; - }, - - include: function(object) { - var found = false; - this.each(function(value) { - if (value == object) { - found = true; - throw $break; - } - }); - return found; - }, - - inject: function(memo, iterator) { - this.each(function(value, index) { - memo = iterator(memo, value, index); - }); - return memo; - }, - - invoke: function(method) { - var args = $A(arguments).slice(1); - return this.collect(function(value) { - return value[method].apply(value, args); - }); - }, - - max: function(iterator) { - var result; - this.each(function(value, index) { - value = (iterator || Prototype.K)(value, index); - if (value >= (result || value)) - result = value; - }); - return result; - }, - - min: function(iterator) { - var result; - this.each(function(value, index) { - value = (iterator || Prototype.K)(value, index); - if (value <= (result || value)) - result = value; - }); - return result; - }, - - partition: function(iterator) { - var trues = [], falses = []; - this.each(function(value, index) { - ((iterator || Prototype.K)(value, index) ? - trues : falses).push(value); - }); - return [trues, falses]; - }, - - pluck: function(property) { - var results = []; - this.each(function(value, index) { - results.push(value[property]); - }); - return results; - }, - - reject: function(iterator) { - var results = []; - this.each(function(value, index) { - if (!iterator(value, index)) - results.push(value); - }); - return results; - }, - - sortBy: function(iterator) { - return this.collect(function(value, index) { - return {value: value, criteria: iterator(value, index)}; - }).sort(function(left, right) { - var a = left.criteria, b = right.criteria; - return a < b ? -1 : a > b ? 1 : 0; - }).pluck('value'); - }, - - toArray: function() { - return this.collect(Prototype.K); - }, - - zip: function() { - var iterator = Prototype.K, args = $A(arguments); - if (typeof args.last() == 'function') - iterator = args.pop(); - - var collections = [this].concat(args).map($A); - return this.map(function(value, index) { - iterator(value = collections.pluck(index)); - return value; - }); - }, - - inspect: function() { - return '#<Enumerable:' + this.toArray().inspect() + '>'; - } -} - -Object.extend(Enumerable, { - map: Enumerable.collect, - find: Enumerable.detect, - select: Enumerable.findAll, - member: Enumerable.include, - entries: Enumerable.toArray -}); -var $A = Array.from = function(iterable) { - if (!iterable) return []; - if (iterable.toArray) { - return iterable.toArray(); - } else { - var results = []; - for (var i = 0; i < iterable.length; i++) - results.push(iterable[i]); - return results; - } -} - -Object.extend(Array.prototype, Enumerable); - -Array.prototype._reverse = Array.prototype.reverse; - -Object.extend(Array.prototype, { - _each: function(iterator) { - for (var i = 0; i < this.length; i++) - iterator(this[i]); - }, - - clear: function() { - this.length = 0; - return this; - }, - - first: function() { - return this[0]; - }, - - last: function() { - return this[this.length - 1]; - }, - - compact: function() { - return this.select(function(value) { - return value != undefined || value != null; - }); - }, - - flatten: function() { - return this.inject([], function(array, value) { - return array.concat(value.constructor == Array ? - value.flatten() : [value]); - }); - }, - - without: function() { - var values = $A(arguments); - return this.select(function(value) { - return !values.include(value); - }); - }, - - indexOf: function(object) { - for (var i = 0; i < this.length; i++) - if (this[i] == object) return i; - return -1; - }, - - reverse: function(inline) { - return (inline !== false ? this : this.toArray())._reverse(); - }, - - shift: function() { - var result = this[0]; - for (var i = 0; i < this.length - 1; i++) - this[i] = this[i + 1]; - this.length--; - return result; - }, - - inspect: function() { - return '[' + this.map(Object.inspect).join(', ') + ']'; - } -}); -var Hash = { - _each: function(iterator) { - for (key in this) { - var value = this[key]; - if (typeof value == 'function') continue; - - var pair = [key, value]; - pair.key = key; - pair.value = value; - iterator(pair); - } - }, - - keys: function() { - return this.pluck('key'); - }, - - values: function() { - return this.pluck('value'); - }, - - merge: function(hash) { - return $H(hash).inject($H(this), function(mergedHash, pair) { - mergedHash[pair.key] = pair.value; - return mergedHash; - }); - }, - - toQueryString: function() { - return this.map(function(pair) { - return pair.map(encodeURIComponent).join('='); - }).join('&'); - }, - - inspect: function() { - return '#<Hash:{' + this.map(function(pair) { - return pair.map(Object.inspect).join(': '); - }).join(', ') + '}>'; - } -} - -function $H(object) { - var hash = Object.extend({}, object || {}); - Object.extend(hash, Enumerable); - Object.extend(hash, Hash); - return hash; -} -ObjectRange = Class.create(); -Object.extend(ObjectRange.prototype, Enumerable); -Object.extend(ObjectRange.prototype, { - initialize: function(start, end, exclusive) { - this.start = start; - this.end = end; - this.exclusive = exclusive; - }, - - _each: function(iterator) { - var value = this.start; - do { - iterator(value); - value = value.succ(); - } while (this.include(value)); - }, - - include: function(value) { - if (value < this.start) - return false; - if (this.exclusive) - return value < this.end; - return value <= this.end; - } -}); - -var $R = function(start, end, exclusive) { - return new ObjectRange(start, end, exclusive); -} - -var Ajax = { - getTransport: function() { - return Try.these( - function() {return new ActiveXObject('Msxml2.XMLHTTP')}, - function() {return new ActiveXObject('Microsoft.XMLHTTP')}, - function() {return new XMLHttpRequest()} - ) || false; - }, - - activeRequestCount: 0 -} - -Ajax.Responders = { - responders: [], - - _each: function(iterator) { - this.responders._each(iterator); - }, - - register: function(responderToAdd) { - if (!this.include(responderToAdd)) - this.responders.push(responderToAdd); - }, - - unregister: function(responderToRemove) { - this.responders = this.responders.without(responderToRemove); - }, - - dispatch: function(callback, request, transport, json) { - this.each(function(responder) { - if (responder[callback] && typeof responder[callback] == 'function') { - try { - responder[callback].apply(responder, [request, transport, json]); - } catch (e) {} - } - }); - } -}; - -Object.extend(Ajax.Responders, Enumerable); - -Ajax.Responders.register({ - onCreate: function() { - Ajax.activeRequestCount++; - }, - - onComplete: function() { - Ajax.activeRequestCount--; - } -}); - -Ajax.Base = function() {}; -Ajax.Base.prototype = { - setOptions: function(options) { - this.options = { - method: 'post', - asynchronous: true, - parameters: '' - } - Object.extend(this.options, options || {}); - }, - - responseIsSuccess: function() { - return this.transport.status == undefined - || this.transport.status == 0 - || (this.transport.status >= 200 && this.transport.status < 300); - }, - - responseIsFailure: function() { - return !this.responseIsSuccess(); - } -} - -Ajax.Request = Class.create(); -Ajax.Request.Events = - ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete']; - -Ajax.Request.prototype = Object.extend(new Ajax.Base(), { - initialize: function(url, options) { - this.transport = Ajax.getTransport(); - this.setOptions(options); - this.request(url); - }, - - request: function(url) { - var parameters = this.options.parameters || ''; - if (parameters.length > 0) parameters += '&_='; - - try { - this.url = url; - if (this.options.method == 'get' && parameters.length > 0) - this.url += (this.url.match(/\?/) ? '&' : '?') + parameters; - - Ajax.Responders.dispatch('onCreate', this, this.transport); - - this.transport.open(this.options.method, this.url, - this.options.asynchronous); - - if (this.options.asynchronous) { - this.transport.onreadystatechange = this.onStateChange.bind(this); - setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); - } - - this.setRequestHeaders(); - - var body = this.options.postBody ? this.options.postBody : parameters; - this.transport.send(this.options.method == 'post' ? body : null); - - } catch (e) { - this.dispatchException(e); - } - }, - - setRequestHeaders: function() { - var requestHeaders = - ['X-Requested-With', 'XMLHttpRequest', - 'X-Prototype-Version', Prototype.Version]; - - if (this.options.method == 'post') { - requestHeaders.push('Content-type', - 'application/x-www-form-urlencoded'); - - /* Force "Connection: close" for Mozilla browsers to work around - * a bug where XMLHttpReqeuest sends an incorrect Content-length - * header. See Mozilla Bugzilla #246651. - */ - if (this.transport.overrideMimeType) - requestHeaders.push('Connection', 'close'); - } - - if (this.options.requestHeaders) - requestHeaders.push.apply(requestHeaders, this.options.requestHeaders); - - for (var i = 0; i < requestHeaders.length; i += 2) - this.transport.setRequestHeader(requestHeaders[i], requestHeaders[i+1]); - }, - - onStateChange: function() { - var readyState = this.transport.readyState; - if (readyState != 1) - this.respondToReadyState(this.transport.readyState); - }, - - header: function(name) { - try { - return this.transport.getResponseHeader(name); - } catch (e) {} - }, - - evalJSON: function() { - try { - return eval(this.header('X-JSON')); - } catch (e) {} - }, - - evalResponse: function() { - try { - return eval(this.transport.responseText); - } catch (e) { - this.dispatchException(e); - } - }, - - respondToReadyState: function(readyState) { - var event = Ajax.Request.Events[readyState]; - var transport = this.transport, json = this.evalJSON(); - - if (event == 'Complete') { - try { - (this.options['on' + this.transport.status] - || this.options['on' + (this.responseIsSuccess() ? 'Success' : 'Failure')] - || Prototype.emptyFunction)(transport, json); - } catch (e) { - this.dispatchException(e); - } - - if ((this.header('Content-type') || '').match(/^text\/javascript/i)) - this.evalResponse(); - } - - try { - (this.options['on' + event] || Prototype.emptyFunction)(transport, json); - Ajax.Responders.dispatch('on' + event, this, transport, json); - } catch (e) { - this.dispatchException(e); - } - - /* Avoid memory leak in MSIE: clean up the oncomplete event handler */ - if (event == 'Complete') - this.transport.onreadystatechange = Prototype.emptyFunction; - }, - - dispatchException: function(exception) { - (this.options.onException || Prototype.emptyFunction)(this, exception); - Ajax.Responders.dispatch('onException', this, exception); - } -}); - -Ajax.Updater = Class.create(); - -Object.extend(Object.extend(Ajax.Updater.prototype, Ajax.Request.prototype), { - initialize: function(container, url, options) { - this.containers = { - success: container.success ? $(container.success) : $(container), - failure: container.failure ? $(container.failure) : - (container.success ? null : $(container)) - } - - this.transport = Ajax.getTransport(); - this.setOptions(options); - - var onComplete = this.options.onComplete || Prototype.emptyFunction; - this.options.onComplete = (function(transport, object) { - this.updateContent(); - onComplete(transport, object); - }).bind(this); - - this.request(url); - }, - - updateContent: function() { - var receiver = this.responseIsSuccess() ? - this.containers.success : this.containers.failure; - var response = this.transport.responseText; - - if (!this.options.evalScripts) - response = response.stripScripts(); - - if (receiver) { - if (this.options.insertion) { - new this.options.insertion(receiver, response); - } else { - Element.update(receiver, response); - } - } - - if (this.responseIsSuccess()) { - if (this.onComplete) - setTimeout(this.onComplete.bind(this), 10); - } - } -}); - -Ajax.PeriodicalUpdater = Class.create(); -Ajax.PeriodicalUpdater.prototype = Object.extend(new Ajax.Base(), { - initialize: function(container, url, options) { - this.setOptions(options); - this.onComplete = this.options.onComplete; - - this.frequency = (this.options.frequency || 2); - this.decay = (this.options.decay || 1); - - this.updater = {}; - this.container = container; - this.url = url; - - this.start(); - }, - - start: function() { - this.options.onComplete = this.updateComplete.bind(this); - this.onTimerEvent(); - }, - - stop: function() { - this.updater.onComplete = undefined; - clearTimeout(this.timer); - (this.onComplete || Prototype.emptyFunction).apply(this, arguments); - }, - - updateComplete: function(request) { - if (this.options.decay) { - this.decay = (request.responseText == this.lastText ? - this.decay * this.options.decay : 1); - - this.lastText = request.responseText; - } - this.timer = setTimeout(this.onTimerEvent.bind(this), - this.decay * this.frequency * 1000); - }, - - onTimerEvent: function() { - this.updater = new Ajax.Updater(this.container, this.url, this.options); - } -}); -document.getElementsByClassName = function(className, parentElement) { - var children = ($(parentElement) || document.body).getElementsByTagName('*'); - return $A(children).inject([], function(elements, child) { - if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) - elements.push(child); - return elements; - }); -} - -/*--------------------------------------------------------------------------*/ - -if (!window.Element) { - var Element = new Object(); -} - -Object.extend(Element, { - visible: function(element) { - return $(element).style.display != 'none'; - }, - - toggle: function() { - for (var i = 0; i < arguments.length; i++) { - var element = $(arguments[i]); - Element[Element.visible(element) ? 'hide' : 'show'](element); - } - }, - - hide: function() { - for (var i = 0; i < arguments.length; i++) { - var element = $(arguments[i]); - element.style.display = 'none'; - } - }, - - show: function() { - for (var i = 0; i < arguments.length; i++) { - var element = $(arguments[i]); - element.style.display = ''; - } - }, - - remove: function(element) { - element = $(element); - element.parentNode.removeChild(element); - }, - - update: function(element, html) { - $(element).innerHTML = html.stripScripts(); - setTimeout(function() {html.evalScripts()}, 10); - }, - - getHeight: function(element) { - element = $(element); - return element.offsetHeight; - }, - - classNames: function(element) { - return new Element.ClassNames(element); - }, - - hasClassName: function(element, className) { - if (!(element = $(element))) return; - return Element.classNames(element).include(className); - }, - - addClassName: function(element, className) { - if (!(element = $(element))) return; - return Element.classNames(element).add(className); - }, - - removeClassName: function(element, className) { - if (!(element = $(element))) return; - return Element.classNames(element).remove(className); - }, - - // removes whitespace-only text node children - cleanWhitespace: function(element) { - element = $(element); - for (var i = 0; i < element.childNodes.length; i++) { - var node = element.childNodes[i]; - if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) - Element.remove(node); - } - }, - - empty: function(element) { - return $(element).innerHTML.match(/^\s*$/); - }, - - scrollTo: function(element) { - element = $(element); - var x = element.x ? element.x : element.offsetLeft, - y = element.y ? element.y : element.offsetTop; - window.scrollTo(x, y); - }, - - getStyle: function(element, style) { - element = $(element); - var value = element.style[style.camelize()]; - if (!value) { - if (document.defaultView && document.defaultView.getComputedStyle) { - var css = document.defaultView.getComputedStyle(element, null); - value = css ? css.getPropertyValue(style) : null; - } else if (element.currentStyle) { - value = element.currentStyle[style.camelize()]; - } - } - - if (window.opera && ['left', 'top', 'right', 'bottom'].include(style)) - if (Element.getStyle(element, 'position') == 'static') value = 'auto'; - - return value == 'auto' ? null : value; - }, - - setStyle: function(element, style) { - element = $(element); - for (name in style) - element.style[name.camelize()] = style[name]; - }, - - getDimensions: function(element) { - element = $(element); - if (Element.getStyle(element, 'display') != 'none') - return {width: element.offsetWidth, height: element.offsetHeight}; - - // All *Width and *Height properties give 0 on elements with display none, - // so enable the element temporarily - var els = element.style; - var originalVisibility = els.visibility; - var originalPosition = els.position; - els.visibility = 'hidden'; - els.position = 'absolute'; - els.display = ''; - var originalWidth = element.clientWidth; - var originalHeight = element.clientHeight; - els.display = 'none'; - els.position = originalPosition; - els.visibility = originalVisibility; - return {width: originalWidth, height: originalHeight}; - }, - - makePositioned: function(element) { - element = $(element); - var pos = Element.getStyle(element, 'position'); - if (pos == 'static' || !pos) { - element._madePositioned = true; - element.style.position = 'relative'; - // Opera returns the offset relative to the positioning context, when an - // element is position relative but top and left have not been defined - if (window.opera) { - element.style.top = 0; - element.style.left = 0; - } - } - }, - - undoPositioned: function(element) { - element = $(element); - if (element._madePositioned) { - element._madePositioned = undefined; - element.style.position = - element.style.top = - element.style.left = - element.style.bottom = - element.style.right = ''; - } - }, - - makeClipping: function(element) { - element = $(element); - if (element._overflow) return; - element._overflow = element.style.overflow; - if ((Element.getStyle(element, 'overflow') || 'visible') != 'hidden') - element.style.overflow = 'hidden'; - }, - - undoClipping: function(element) { - element = $(element); - if (element._overflow) return; - element.style.overflow = element._overflow; - element._overflow = undefined; - } -}); - -var Toggle = new Object(); -Toggle.display = Element.toggle; - -/*--------------------------------------------------------------------------*/ - -Abstract.Insertion = function(adjacency) { - this.adjacency = adjacency; -} - -Abstract.Insertion.prototype = { - initialize: function(element, content) { - this.element = $(element); - this.content = content.stripScripts(); - - if (this.adjacency && this.element.insertAdjacentHTML) { - try { - this.element.insertAdjacentHTML(this.adjacency, this.content); - } catch (e) { - if (this.element.tagName.toLowerCase() == 'tbody') { - this.insertContent(this.contentFromAnonymousTable()); - } else { - throw e; - } - } - } else { - this.range = this.element.ownerDocument.createRange(); - if (this.initializeRange) this.initializeRange(); - this.insertContent([this.range.createContextualFragment(this.content)]); - } - - setTimeout(function() {content.evalScripts()}, 10); - }, - - contentFromAnonymousTable: function() { - var div = document.createElement('div'); - div.innerHTML = '<table><tbody>' + this.content + '</tbody></table>'; - return $A(div.childNodes[0].childNodes[0].childNodes); - } -} - -var Insertion = new Object(); - -Insertion.Before = Class.create(); -Insertion.Before.prototype = Object.extend(new Abstract.Insertion('beforeBegin'), { - initializeRange: function() { - this.range.setStartBefore(this.element); - }, - - insertContent: function(fragments) { - fragments.each((function(fragment) { - this.element.parentNode.insertBefore(fragment, this.element); - }).bind(this)); - } -}); - -Insertion.Top = Class.create(); -Insertion.Top.prototype = Object.extend(new Abstract.Insertion('afterBegin'), { - initializeRange: function() { - this.range.selectNodeContents(this.element); - this.range.collapse(true); - }, - - insertContent: function(fragments) { - fragments.reverse(false).each((function(fragment) { - this.element.insertBefore(fragment, this.element.firstChild); - }).bind(this)); - } -}); - -Insertion.Bottom = Class.create(); -Insertion.Bottom.prototype = Object.extend(new Abstract.Insertion('beforeEnd'), { - initializeRange: function() { - this.range.selectNodeContents(this.element); - this.range.collapse(this.element); - }, - - insertContent: function(fragments) { - fragments.each((function(fragment) { - this.element.appendChild(fragment); - }).bind(this)); - } -}); - -Insertion.After = Class.create(); -Insertion.After.prototype = Object.extend(new Abstract.Insertion('afterEnd'), { - initializeRange: function() { - this.range.setStartAfter(this.element); - }, - - insertContent: function(fragments) { - fragments.each((function(fragment) { - this.element.parentNode.insertBefore(fragment, - this.element.nextSibling); - }).bind(this)); - } -}); - -/*--------------------------------------------------------------------------*/ - -Element.ClassNames = Class.create(); -Element.ClassNames.prototype = { - initialize: function(element) { - this.element = $(element); - }, - - _each: function(iterator) { - this.element.className.split(/\s+/).select(function(name) { - return name.length > 0; - })._each(iterator); - }, - - set: function(className) { - this.element.className = className; - }, - - add: function(classNameToAdd) { - if (this.include(classNameToAdd)) return; - this.set(this.toArray().concat(classNameToAdd).join(' ')); - }, - - remove: function(classNameToRemove) { - if (!this.include(classNameToRemove)) return; - this.set(this.select(function(className) { - return className != classNameToRemove; - }).join(' ')); - }, - - toString: function() { - return this.toArray().join(' '); - } -} - -Object.extend(Element.ClassNames.prototype, Enumerable); -var Field = { - clear: function() { - for (var i = 0; i < arguments.length; i++) - $(arguments[i]).value = ''; - }, - - focus: function(element) { - $(element).focus(); - }, - - present: function() { - for (var i = 0; i < arguments.length; i++) - if ($(arguments[i]).value == '') return false; - return true; - }, - - select: function(element) { - $(element).select(); - }, - - activate: function(element) { - element = $(element); - element.focus(); - if (element.select) - element.select(); - } -} - -/*--------------------------------------------------------------------------*/ - -var Form = { - serialize: function(form) { - var elements = Form.getElements($(form)); - var queryComponents = new Array(); - - for (var i = 0; i < elements.length; i++) { - var queryComponent = Form.Element.serialize(elements[i]); - if (queryComponent) - queryComponents.push(queryComponent); - } - - return queryComponents.join('&'); - }, - - getElements: function(form) { - form = $(form); - var elements = new Array(); - - for (tagName in Form.Element.Serializers) { - var tagElements = form.getElementsByTagName(tagName); - for (var j = 0; j < tagElements.length; j++) - elements.push(tagElements[j]); - } - return elements; - }, - - getInputs: function(form, typeName, name) { - form = $(form); - var inputs = form.getElementsByTagName('input'); - - if (!typeName && !name) - return inputs; - - var matchingInputs = new Array(); - for (var i = 0; i < inputs.length; i++) { - var input = inputs[i]; - if ((typeName && input.type != typeName) || - (name && input.name != name)) - continue; - matchingInputs.push(input); - } - - return matchingInputs; - }, - - disable: function(form) { - var elements = Form.getElements(form); - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - element.blur(); - element.disabled = 'true'; - } - }, - - enable: function(form) { - var elements = Form.getElements(form); - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - element.disabled = ''; - } - }, - - findFirstElement: function(form) { - return Form.getElements(form).find(function(element) { - return element.type != 'hidden' && !element.disabled && - ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); - }); - }, - - focusFirstElement: function(form) { - Field.activate(Form.findFirstElement(form)); - }, - - reset: function(form) { - $(form).reset(); - } -} - -Form.Element = { - serialize: function(element) { - element = $(element); - var method = element.tagName.toLowerCase(); - var parameter = Form.Element.Serializers[method](element); - - if (parameter) { - var key = encodeURIComponent(parameter[0]); - if (key.length == 0) return; - - if (parameter[1].constructor != Array) - parameter[1] = [parameter[1]]; - - return parameter[1].map(function(value) { - return key + '=' + encodeURIComponent(value); - }).join('&'); - } - }, - - getValue: function(element) { - element = $(element); - var method = element.tagName.toLowerCase(); - var parameter = Form.Element.Serializers[method](element); - - if (parameter) - return parameter[1]; - } -} - -Form.Element.Serializers = { - input: function(element) { - switch (element.type.toLowerCase()) { - case 'submit': - case 'hidden': - case 'password': - case 'text': - return Form.Element.Serializers.textarea(element); - case 'checkbox': - case 'radio': - return Form.Element.Serializers.inputSelector(element); - } - return false; - }, - - inputSelector: function(element) { - if (element.checked) - return [element.name, element.value]; - }, - - textarea: function(element) { - return [element.name, element.value]; - }, - - select: function(element) { - return Form.Element.Serializers[element.type == 'select-one' ? - 'selectOne' : 'selectMany'](element); - }, - - selectOne: function(element) { - var value = '', opt, index = element.selectedIndex; - if (index >= 0) { - opt = element.options[index]; - value = opt.value; - if (!value && !('value' in opt)) - value = opt.text; - } - return [element.name, value]; - }, - - selectMany: function(element) { - var value = new Array(); - for (var i = 0; i < element.length; i++) { - var opt = element.options[i]; - if (opt.selected) { - var optValue = opt.value; - if (!optValue && !('value' in opt)) - optValue = opt.text; - value.push(optValue); - } - } - return [element.name, value]; - } -} - -/*--------------------------------------------------------------------------*/ - -var $F = Form.Element.getValue; - -/*--------------------------------------------------------------------------*/ - -Abstract.TimedObserver = function() {} -Abstract.TimedObserver.prototype = { - initialize: function(element, frequency, callback) { - this.frequency = frequency; - this.element = $(element); - this.callback = callback; - - this.lastValue = this.getValue(); - this.registerCallback(); - }, - - registerCallback: function() { - setInterval(this.onTimerEvent.bind(this), this.frequency * 1000); - }, - - onTimerEvent: function() { - var value = this.getValue(); - if (this.lastValue != value) { - this.callback(this.element, value); - this.lastValue = value; - } - } -} - -Form.Element.Observer = Class.create(); -Form.Element.Observer.prototype = Object.extend(new Abstract.TimedObserver(), { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.Observer = Class.create(); -Form.Observer.prototype = Object.extend(new Abstract.TimedObserver(), { - getValue: function() { - return Form.serialize(this.element); - } -}); - -/*--------------------------------------------------------------------------*/ - -Abstract.EventObserver = function() {} -Abstract.EventObserver.prototype = { - initialize: function(element, callback) { - this.element = $(element); - this.callback = callback; - - this.lastValue = this.getValue(); - if (this.element.tagName.toLowerCase() == 'form') - this.registerFormCallbacks(); - else - this.registerCallback(this.element); - }, - - onElementEvent: function() { - var value = this.getValue(); - if (this.lastValue != value) { - this.callback(this.element, value); - this.lastValue = value; - } - }, - - registerFormCallbacks: function() { - var elements = Form.getElements(this.element); - for (var i = 0; i < elements.length; i++) - this.registerCallback(elements[i]); - }, - - registerCallback: function(element) { - if (element.type) { - switch (element.type.toLowerCase()) { - case 'checkbox': - case 'radio': - Event.observe(element, 'click', this.onElementEvent.bind(this)); - break; - case 'password': - case 'text': - case 'textarea': - case 'select-one': - case 'select-multiple': - Event.observe(element, 'change', this.onElementEvent.bind(this)); - break; - } - } - } -} - -Form.Element.EventObserver = Class.create(); -Form.Element.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), { - getValue: function() { - return Form.Element.getValue(this.element); - } -}); - -Form.EventObserver = Class.create(); -Form.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), { - getValue: function() { - return Form.serialize(this.element); - } -}); -if (!window.Event) { - var Event = new Object(); -} - -Object.extend(Event, { - KEY_BACKSPACE: 8, - KEY_TAB: 9, - KEY_RETURN: 13, - KEY_ESC: 27, - KEY_LEFT: 37, - KEY_UP: 38, - KEY_RIGHT: 39, - KEY_DOWN: 40, - KEY_DELETE: 46, - - element: function(event) { - return event.target || event.srcElement; - }, - - isLeftClick: function(event) { - return (((event.which) && (event.which == 1)) || - ((event.button) && (event.button == 1))); - }, - - pointerX: function(event) { - return event.pageX || (event.clientX + - (document.documentElement.scrollLeft || document.body.scrollLeft)); - }, - - pointerY: function(event) { - return event.pageY || (event.clientY + - (document.documentElement.scrollTop || document.body.scrollTop)); - }, - - stop: function(event) { - if (event.preventDefault) { - event.preventDefault(); - event.stopPropagation(); - } else { - event.returnValue = false; - event.cancelBubble = true; - } - }, - - // find the first node with the given tagName, starting from the - // node the event was triggered on; traverses the DOM upwards - findElement: function(event, tagName) { - var element = Event.element(event); - while (element.parentNode && (!element.tagName || - (element.tagName.toUpperCase() != tagName.toUpperCase()))) - element = element.parentNode; - return element; - }, - - observers: false, - - _observeAndCache: function(element, name, observer, useCapture) { - if (!this.observers) this.observers = []; - if (element.addEventListener) { - this.observers.push([element, name, observer, useCapture]); - element.addEventListener(name, observer, useCapture); - } else if (element.attachEvent) { - this.observers.push([element, name, observer, useCapture]); - element.attachEvent('on' + name, observer); - } - }, - - unloadCache: function() { - if (!Event.observers) return; - for (var i = 0; i < Event.observers.length; i++) { - Event.stopObserving.apply(this, Event.observers[i]); - Event.observers[i][0] = null; - } - Event.observers = false; - }, - - observe: function(element, name, observer, useCapture) { - var element = $(element); - useCapture = useCapture || false; - - if (name == 'keypress' && - (navigator.appVersion.match(/Konqueror|Safari|KHTML/) - || element.attachEvent)) - name = 'keydown'; - - this._observeAndCache(element, name, observer, useCapture); - }, - - stopObserving: function(element, name, observer, useCapture) { - var element = $(element); - useCapture = useCapture || false; - - if (name == 'keypress' && - (navigator.appVersion.match(/Konqueror|Safari|KHTML/) - || element.detachEvent)) - name = 'keydown'; - - if (element.removeEventListener) { - element.removeEventListener(name, observer, useCapture); - } else if (element.detachEvent) { - element.detachEvent('on' + name, observer); - } - } -}); - -/* prevent memory leaks in IE */ -Event.observe(window, 'unload', Event.unloadCache, false); -var Position = { - // set to true if needed, warning: firefox performance problems - // NOT neeeded for page scrolling, only if draggable contained in - // scrollable elements - includeScrollOffsets: false, - - // must be called before calling withinIncludingScrolloffset, every time the - // page is scrolled - prepare: function() { - this.deltaX = window.pageXOffset - || document.documentElement.scrollLeft - || document.body.scrollLeft - || 0; - this.deltaY = window.pageYOffset - || document.documentElement.scrollTop - || document.body.scrollTop - || 0; - }, - - realOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.scrollTop || 0; - valueL += element.scrollLeft || 0; - element = element.parentNode; - } while (element); - return [valueL, valueT]; - }, - - cumulativeOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return [valueL, valueT]; - }, - - positionedOffset: function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - element = element.offsetParent; - if (element) { - p = Element.getStyle(element, 'position'); - if (p == 'relative' || p == 'absolute') break; - } - } while (element); - return [valueL, valueT]; - }, - - offsetParent: function(element) { - if (element.offsetParent) return element.offsetParent; - if (element == document.body) return element; - - while ((element = element.parentNode) && element != document.body) - if (Element.getStyle(element, 'position') != 'static') - return element; - - return document.body; - }, - - // caches x/y coordinate pair to use with overlap - within: function(element, x, y) { - if (this.includeScrollOffsets) - return this.withinIncludingScrolloffsets(element, x, y); - this.xcomp = x; - this.ycomp = y; - this.offset = this.cumulativeOffset(element); - - return (y >= this.offset[1] && - y < this.offset[1] + element.offsetHeight && - x >= this.offset[0] && - x < this.offset[0] + element.offsetWidth); - }, - - withinIncludingScrolloffsets: function(element, x, y) { - var offsetcache = this.realOffset(element); - - this.xcomp = x + offsetcache[0] - this.deltaX; - this.ycomp = y + offsetcache[1] - this.deltaY; - this.offset = this.cumulativeOffset(element); - - return (this.ycomp >= this.offset[1] && - this.ycomp < this.offset[1] + element.offsetHeight && - this.xcomp >= this.offset[0] && - this.xcomp < this.offset[0] + element.offsetWidth); - }, - - // within must be called directly before - overlap: function(mode, element) { - if (!mode) return 0; - if (mode == 'vertical') - return ((this.offset[1] + element.offsetHeight) - this.ycomp) / - element.offsetHeight; - if (mode == 'horizontal') - return ((this.offset[0] + element.offsetWidth) - this.xcomp) / - element.offsetWidth; - }, - - clone: function(source, target) { - source = $(source); - target = $(target); - target.style.position = 'absolute'; - var offsets = this.cumulativeOffset(source); - target.style.top = offsets[1] + 'px'; - target.style.left = offsets[0] + 'px'; - target.style.width = source.offsetWidth + 'px'; - target.style.height = source.offsetHeight + 'px'; - }, - - page: function(forElement) { - var valueT = 0, valueL = 0; - - var element = forElement; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - - // Safari fix - if (element.offsetParent==document.body) - if (Element.getStyle(element,'position')=='absolute') break; - - } while (element = element.offsetParent); - - element = forElement; - do { - valueT -= element.scrollTop || 0; - valueL -= element.scrollLeft || 0; - } while (element = element.parentNode); - - return [valueL, valueT]; - }, - - clone: function(source, target) { - var options = Object.extend({ - setLeft: true, - setTop: true, - setWidth: true, - setHeight: true, - offsetTop: 0, - offsetLeft: 0 - }, arguments[2] || {}) - - // find page position of source - source = $(source); - var p = Position.page(source); - - // find coordinate system to use - target = $(target); - var delta = [0, 0]; - var parent = null; - // delta [0,0] will do fine with position: fixed elements, - // position:absolute needs offsetParent deltas - if (Element.getStyle(target,'position') == 'absolute') { - parent = Position.offsetParent(target); - delta = Position.page(parent); - } - - // correct by body offsets (fixes Safari) - if (parent == document.body) { - delta[0] -= document.body.offsetLeft; - delta[1] -= document.body.offsetTop; - } - - // set position - if(options.setLeft) target.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px'; - if(options.setTop) target.style.top = (p[1] - delta[1] + options.offsetTop) + 'px'; - if(options.setWidth) target.style.width = source.offsetWidth + 'px'; - if(options.setHeight) target.style.height = source.offsetHeight + 'px'; - }, - - absolutize: function(element) { - element = $(element); - if (element.style.position == 'absolute') return; - Position.prepare(); - - var offsets = Position.positionedOffset(element); - var top = offsets[1]; - var left = offsets[0]; - var width = element.clientWidth; - var height = element.clientHeight; - - element._originalLeft = left - parseFloat(element.style.left || 0); - element._originalTop = top - parseFloat(element.style.top || 0); - element._originalWidth = element.style.width; - element._originalHeight = element.style.height; - - element.style.position = 'absolute'; - element.style.top = top + 'px';; - element.style.left = left + 'px';; - element.style.width = width + 'px';; - element.style.height = height + 'px';; - }, - - relativize: function(element) { - element = $(element); - if (element.style.position == 'relative') return; - Position.prepare(); - - element.style.position = 'relative'; - var top = parseFloat(element.style.top || 0) - (element._originalTop || 0); - var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0); - - element.style.top = top + 'px'; - element.style.left = left + 'px'; - element.style.height = element._originalHeight; - element.style.width = element._originalWidth; - } -} - -// Safari returns margins on body which is incorrect if the child is absolutely -// positioned. For performance reasons, redefine Position.cumulativeOffset for -// KHTML/WebKit only. -if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) { - Position.cumulativeOffset = function(element) { - var valueT = 0, valueL = 0; - do { - valueT += element.offsetTop || 0; - valueL += element.offsetLeft || 0; - if (element.offsetParent == document.body) - if (Element.getStyle(element, 'position') == 'absolute') break; - - element = element.offsetParent; - } while (element); - - return [valueL, valueT]; - } -} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 19:06:52
|
Revision: 664 Author: kerphi Date: 2006-08-01 12:06:23 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=664&view=rev Log Message: ----------- remove the trace Modified Paths: -------------- trunk/src/commands/nick.class.php Modified: trunk/src/commands/nick.class.php =================================================================== --- trunk/src/commands/nick.class.php 2006-08-01 18:53:21 UTC (rev 663) +++ trunk/src/commands/nick.class.php 2006-08-01 19:06:23 UTC (rev 664) @@ -102,7 +102,6 @@ $u->active = true; $u->saveInCache(); - $xml_reponse->addScript("alert('TODO?! remove this unused code ?');"); $xml_reponse->addScript("pfc.handleResponse('nick', 'connected', '".$newnick."');"); if ($c->debug) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 18:53:38
|
Revision: 663 Author: kerphi Date: 2006-08-01 11:53:21 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=663&view=rev Log Message: ----------- prepare the 1.0-beta4 Modified Paths: -------------- trunk/version Modified: trunk/version =================================================================== --- trunk/version 2006-08-01 18:30:44 UTC (rev 662) +++ trunk/version 2006-08-01 18:53:21 UTC (rev 663) @@ -1 +1 @@ -1.0-beta3 \ No newline at end of file +1.0-beta4 \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 18:31:50
|
Revision: 662 Author: kerphi Date: 2006-08-01 11:30:44 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=662&view=rev Log Message: ----------- Refactoring + Bug fix: the shownotice parameter was broken, this refactoring fixes it. I moved the commands parameters list into a indexed array in order to be able to add a new parameter easily (example: the flag parameter for the notice command). Modified Paths: -------------- trunk/src/commands/asknick.class.php trunk/src/commands/ban.class.php trunk/src/commands/banlist.class.php trunk/src/commands/clear.class.php trunk/src/commands/connect.class.php trunk/src/commands/debug.class.php trunk/src/commands/deop.class.php trunk/src/commands/error.class.php trunk/src/commands/getnewmsg.class.php trunk/src/commands/getonlinenick.class.php trunk/src/commands/identify.class.php trunk/src/commands/init.class.php trunk/src/commands/join.class.php trunk/src/commands/kick.class.php trunk/src/commands/leave.class.php trunk/src/commands/me.class.php trunk/src/commands/nick.class.php trunk/src/commands/notice.class.php trunk/src/commands/op.class.php trunk/src/commands/privmsg.class.php trunk/src/commands/quit.class.php trunk/src/commands/rehash.class.php trunk/src/commands/send.class.php trunk/src/commands/unban.class.php trunk/src/commands/update.class.php trunk/src/commands/updatemynick.class.php trunk/src/pfccommand.class.php trunk/src/pfcproxycommand.class.php trunk/src/phpfreechat.class.php trunk/src/proxys/auth.class.php trunk/src/proxys/censor.class.php trunk/src/proxys/lock.class.php trunk/src/proxys/noflood.class.php Modified: trunk/src/commands/asknick.class.php =================================================================== --- trunk/src/commands/asknick.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/asknick.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_asknick extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -14,8 +20,10 @@ if ($c->frozen_nick) { // assign a random nick + $cmdp = $p; + $cmdp["param"] = $nicktochange."".rand(1,1000); $cmd =& pfcCommand::Factory("nick"); - $cmd->run($xml_reponse, $clientid, $nicktochange."".rand(1,1000)); + $cmd->run($xml_reponse, $cmdp); } else { Modified: trunk/src/commands/ban.class.php =================================================================== --- trunk/src/commands/ban.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/ban.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,7 +6,7 @@ { var $usage = "/ban {nickname}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { $c =& $this->c; $u =& $this->u; @@ -14,26 +14,27 @@ if (trim($param) == "") { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } $container =& $c->getContainerInstance(); - $nickid = $container->getNickId($param); + $nickid = $container->getNickId($p["param"]); if ($nickid != "undefined") { $cmdtoplay = $container->getMeta("cmdtoplay", "nickname", $nickid); $cmdtoplay = ($cmdtoplay == NULL) ? array() : unserialize($cmdtoplay); $cmdtmp = array("leave", /* cmdname */ - $recipientid,/* param */ - $sender, /* sender */ - $recipient, /* recipient */ - $recipientid,/* recipientid */ + $p["recipientid"],/* param */ + $p["sender"], /* sender */ + $p["recipient"], /* recipient */ + $p["recipientid"],/* recipientid */ ); //_pfc("banished from %s by %s", $recipient, $sender); $cmdtoplay[] = $cmdtmp; // ban the user from the current channel @@ -41,13 +42,13 @@ } // update the recipient banlist - $banlist = $container->getMeta("banlist_nickid", "channel", $recipientid); + $banlist = $container->getMeta("banlist_nickid", "channel", $p["recipientid"]); if ($banlist == NULL) $banlist = array(); else $banlist = unserialize($banlist); $banlist[] = $nickid; // append the nickid to the banlist - $container->setMeta(serialize($banlist), "banlist_nickid", "channel", $recipientid); + $container->setMeta(serialize($banlist), "banlist_nickid", "channel", $p["recipientid"]); } } Modified: trunk/src/commands/banlist.class.php =================================================================== --- trunk/src/commands/banlist.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/banlist.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -11,13 +11,13 @@ { var $desc = "This command list the banished users on the given channel"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { $c =& $this->c; $u =& $this->u; $container =& $c->getContainerInstance(); - $banlist = $container->getMeta("banlist_nickid", "channel", $recipientid); + $banlist = $container->getMeta("banlist_nickid", "channel", $p["recipientid"]); if ($banlist == NULL) $banlist = array(); else $banlist = unserialize($banlist); $msg = ""; $msg .= "<p>"._pfc("The banished user's id list is:")."</p>"; Modified: trunk/src/commands/clear.class.php =================================================================== --- trunk/src/commands/clear.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/clear.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,7 +4,7 @@ class pfcCommand_clear extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { $c =& $this->c; $u =& $this->u; Modified: trunk/src/commands/connect.class.php =================================================================== --- trunk/src/commands/connect.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/connect.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_connect extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -52,8 +58,6 @@ $container->setMeta($isadmin, "isadmin", "nickname", $nickid); // connect to the server $xml_reponse->addScript("pfc.handleResponse('connect', 'ok', '');"); - - return $clientid; } } Modified: trunk/src/commands/debug.class.php =================================================================== --- trunk/src/commands/debug.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/debug.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,12 +4,12 @@ class pfcCommand_debug extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { $c =& $this->c; $u =& $this->u; - if ($param == "userconfig") + if ($p["param"] == "userconfig") { $msg = ""; $msg .= var_export($u, true); @@ -17,14 +17,14 @@ $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ok', '".$msg."');"); } - if ($param == "globalconfig") + if ($p["param"] == "globalconfig") { $msg = ""; $msg .= var_export($c, true); $msg = str_replace("\n","",addslashes(nl2br($msg))); $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ok', '".$msg."');"); } - if ($param == "phpserver") + if ($p["param"] == "phpserver") { $msg = ""; $msg .= var_export($_SERVER, true); Modified: trunk/src/commands/deop.class.php =================================================================== --- trunk/src/commands/deop.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/deop.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,23 +6,24 @@ { var $usage = "/deop {nickname}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { $c =& $this->c; $u =& $this->u; - if (trim($param) == "") + if (trim($p["param"]) == "") { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } // just change the "isadmin" meta flag - $nicktodeop = trim($param); + $nicktodeop = trim($p["param"]); $container =& $c->getContainerInstance(); $nicktodeopid = $container->getNickId($nicktodeop); $container->setMeta(false, "isadmin", "nickname", $nicktodeopid); Modified: trunk/src/commands/error.class.php =================================================================== --- trunk/src/commands/error.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/error.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,9 +4,10 @@ class pfcCommand_error extends pfcCommand { - function run(&$xml_reponse, $clientid, $errors, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { $c =& $this->c; + $errors = $p["param"]; if (is_array($errors)) { $error_ids = ""; $error_str = ""; Modified: trunk/src/commands/getnewmsg.class.php =================================================================== --- trunk/src/commands/getnewmsg.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/getnewmsg.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,10 +4,15 @@ class pfcCommand_getnewmsg extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; - // do nothing if the recipient is not defined if ($recipient == "") return; Modified: trunk/src/commands/getonlinenick.class.php =================================================================== --- trunk/src/commands/getonlinenick.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/getonlinenick.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_getonlinenick extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $container =& $c->getContainerInstance(); @@ -14,8 +20,11 @@ if (isset($disconnected_users["nick"])) foreach ($disconnected_users["nick"] as $n) { + $cmdp = $p; + $cmdp["param"] = _pfc("%s quit (timeout)", $n); + $cmdp["flag"] = 2; $cmd =& pfcCommand::Factory("notice"); - $cmd->run($xml_reponse, $clientid, _pfc("%s quit (timeout)", $n), $sender, $recipient, $recipientid, 2); + $cmd->run($xml_reponse, $cmdp); } // get the cached nickname list Modified: trunk/src/commands/identify.class.php =================================================================== --- trunk/src/commands/identify.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/identify.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -31,8 +31,14 @@ { var $usage = "/identify {password}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; Modified: trunk/src/commands/init.class.php =================================================================== --- trunk/src/commands/init.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/init.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,13 +4,19 @@ class pfcCommand_init extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; $cmd =& pfcCommand::Factory("quit"); - $cmd->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $p); $u->destroy(); } Modified: trunk/src/commands/join.class.php =================================================================== --- trunk/src/commands/join.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/join.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,8 +6,14 @@ { var $usage = "/join {channelname}"; - function run(&$xml_reponse, $clientid, &$param, &$sender, &$recipient, &$recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -17,10 +23,11 @@ if ($channame == "") { - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } @@ -36,8 +43,13 @@ } // show a join message + $cmdp = $p; + $cmdp["param"] = _pfc("%s joins %s",$u->nick, $channame); + $cmdp["recipient"] = $chanrecip; + $cmdp["recipientid"] = $chanid; + $cmdp["flag"] = 2; $cmd =& pfcCommand::Factory("notice"); - $cmd->run($xml_reponse, $clientid, _pfc("%s joins %s",$u->nick, $channame), $sender, $chanrecip, $chanid, 1); + $cmd->run($xml_reponse, $cmdp); //$xml_reponse->addScript("alert('join: chan=".$channame.", from_id=".$from_id."');"); Modified: trunk/src/commands/kick.class.php =================================================================== --- trunk/src/commands/kick.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/kick.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,18 +6,25 @@ { var $usage = "/kick {nickname}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; if (trim($param) == "") { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } Modified: trunk/src/commands/leave.class.php =================================================================== --- trunk/src/commands/leave.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/leave.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,8 +6,14 @@ { var $usage = "/leave [{recipientid} {reason}]"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -54,10 +60,14 @@ if ($leavech) { // show a leave message with the showing the reason if present - $msg = _pfc("%s quit",$u->nick); - if ($reason != "") $msg .= " (".$reason.")"; + $cmdp = $p; + $cmdp["recipient"] = $leave_recip; + $cmdp["recipientid"] = $leave_id; + $cmdp["flag"] = 2; + $cmdp["param"] = _pfc("%s quit",$u->nick); + if ($reason != "") $cmdp["param"] .= " (".$reason.")"; $cmd =& pfcCommand::Factory("notice"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $leave_recip, $leave_id, 1); + $cmd->run($xml_reponse, $cmdp); } // remove the nickname from the channel/pv @@ -71,10 +81,11 @@ else { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); } } } Modified: trunk/src/commands/me.class.php =================================================================== --- trunk/src/commands/me.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/me.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_me extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; Modified: trunk/src/commands/nick.class.php =================================================================== --- trunk/src/commands/nick.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/nick.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,18 +6,25 @@ { var $usage = "/nick {newnickname}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; if (trim($param) == "") { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } @@ -61,12 +68,22 @@ $u->saveInCache(); // notify all the joined channels/privmsg + $cmdp = $p; + $cmdp["param"] = _pfc("%s changes his nickname to %s",$oldnick,$newnick); + $cmdp["flag"] = 1; $cmd =& pfcCommand::Factory("notice"); foreach($u->channels as $id => $chan) - $cmd->run($xml_reponse, $clientid, _pfc("%s changes his nickname to %s",$oldnick,$newnick), $sender, $chan["recipient"], $id, 1); + { + $cmdp["recipient"] = $chan["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } foreach( $u->privmsg as $id => $pv ) - $cmd->run($xml_reponse, $clientid, _pfc("%s changes his nickname to %s",$oldnick,$newnick), $sender, $pv["recipient"], $id, 1); - + { + $cmdp["recipient"] = $pv["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } $xml_reponse->addScript("pfc.handleResponse('nick', 'changed', '".$newnick."');"); } @@ -85,16 +102,7 @@ $u->active = true; $u->saveInCache(); - $xml_reponse->addScript("alert('join: u->nick=".$u->nick); - - /* - $cmd =& pfcCommand::Factory("notice"); - foreach($u->channels as $id => $chan) - $cmd->run($xml_reponse, $clientid, _pfc("%s is connected", $u->nick), $sender, $chan["recipient"], $id, 2); - foreach($u->privmsg as $id => $pv) - $cmd->run($xml_reponse, $clientid, _pfc("%s is connected", $u->nick), $sender, $pv["recipient"], $id, 2); - */ - + $xml_reponse->addScript("alert('TODO?! remove this unused code ?');"); $xml_reponse->addScript("pfc.handleResponse('nick', 'connected', '".$newnick."');"); if ($c->debug) Modified: trunk/src/commands/notice.class.php =================================================================== --- trunk/src/commands/notice.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/notice.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,19 +4,26 @@ class pfcCommand_notice extends pfcCommand { - function run(&$xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid, $flags = 3) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $msg = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $flag = isset($p["flag"]) ? $p["flag"] : 3; + $c =& $this->c; $u =& $this->u; - + if ($c->shownotice > 0 && - ($c->shownotice & $flags) == $flags) + ($c->shownotice & $flag) == $flag) { $container =& $c->getContainerInstance(); $msg = phpFreeChat::FilterSpecialChar($msg); $container->write($recipient, $u->nick, "notice", $msg); } - if ($c->debug) pxlog("/notice ".$msg." (flags=".$flags.")", "chat", $c->getId()); + if ($c->debug) pxlog("/notice ".$msg." (flag=".$flag.")", "chat", $c->getId()); } } Modified: trunk/src/commands/op.class.php =================================================================== --- trunk/src/commands/op.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/op.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,18 +6,25 @@ { var $usage = "/op {nickname}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; if (trim($param) == "") { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } Modified: trunk/src/commands/privmsg.class.php =================================================================== --- trunk/src/commands/privmsg.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/privmsg.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_privmsg extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; Modified: trunk/src/commands/quit.class.php =================================================================== --- trunk/src/commands/quit.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/quit.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_quit extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -21,15 +27,23 @@ foreach( $u->channels as $id => $chandetail ) if ($container->removeNick($chandetail["recipient"], $u->nick)) { + $cmdp = $p; + $cmdp["param"] = $id; + $cmdp["recipient"] = $chandetail["recipient"]; + $cmdp["recipientid"] = $id; $cmd =& pfcCommand::Factory("leave"); - $cmd->run($xml_reponse, $clientid, $id, $sender, $chandetail["recipient"], $id, 2); + $cmd->run($xml_reponse, $cmdp); } // from the private messages foreach( $u->privmsg as $id => $pvdetail ) if ($container->removeNick($pvdetail["recipient"], $u->nick)) { + $cmdp = $p; + $cmdp["param"] = $id; + $cmdp["recipient"] = $pvdetail["recipient"]; + $cmdp["recipientid"] = $id; $cmd =& pfcCommand::Factory("leave"); - $cmd->run($xml_reponse, $clientid, $id, $sender, $pvdetail["recipient"], $id, 2); + $cmd->run($xml_reponse, $cmdp); } // from the server $container->removeNick(NULL, $u->nick); Modified: trunk/src/commands/rehash.class.php =================================================================== --- trunk/src/commands/rehash.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/rehash.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -11,11 +11,19 @@ { var $desc = "This command deletes the cached configuration. Uses it to take into account new parameters."; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; - $destroyed = $c->destroyCache(); - $synchro = $c->synchronizeWithCache(); + // just destroy the cache + // do not synchronizeWithCache() because it will reload the same parameters as the current one + // the right way is to wait for the next page reload and the new parameters will be taken into account + $destroyed = $c->destroyCache(); if ($destroyed && $synchro) $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ko', '');"); Modified: trunk/src/commands/send.class.php =================================================================== --- trunk/src/commands/send.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/send.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_send extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; $nick = phpFreeChat::FilterSpecialChar($sender); @@ -15,8 +21,10 @@ // send an error because the current user is not connected if (!$u->active) { + $cmdp = $p; + $cmdp["param"] = _pfc("Your must be connected to send a message"); $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, _pfc("Your must be connected to send a message"), $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } @@ -38,8 +46,10 @@ if (!in_array($pvnickid, $onlineusers["nickid"])) { // send an error because the user is not online + $cmdp = $p; + $cmdp["param"] = _pfc("Can't send the message, %s is offline", $pvnick); $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, _pfc("Can't send the message, %s is offline", $pvnick), $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); $can_send = false; } } @@ -54,8 +64,10 @@ // an error occured, just ignore the message and display errors foreach($errors as $e) if ($c->debug) pxlog("error /send, user can't send a message -> nick=".$u->nick." err=".$e, "chat", $c->getId()); + $cmdp = $p; + $cmdp["param"] = $errors; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $errors, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); if (isset($errors[$c->prefix."handle"])) // the nick is empty so give it focus $xml_reponse->addScript("$('".$c->prefix."handle').focus();"); $can_send = false; Modified: trunk/src/commands/unban.class.php =================================================================== --- trunk/src/commands/unban.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/unban.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -6,8 +6,14 @@ { var $usage = "/unban {id}"; - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -16,10 +22,11 @@ if (trim($param) == "") { // error - $msg = _pfc("Missing parameter"); - $msg .= " (".$this->usage.")"; + $cmdp = $p; + $cmdp["param"] = _pfc("Missing parameter"); + $cmdp["param"] .= " (".$this->usage.")"; $cmd =& pfcCommand::Factory("error"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); return; } Modified: trunk/src/commands/update.class.php =================================================================== --- trunk/src/commands/update.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/update.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,35 +4,68 @@ class pfcCommand_update extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; // do not update if user isn't active (didn't connect) if ($u->active) - { + { + $cmdp = $p; // update the user nickname timestamp $cmd =& pfcCommand::Factory("updatemynick"); foreach( $u->channels as $id => $chan ) - $cmd->run($xml_reponse, $clientid, $param, $sender, $chan["recipient"], $id); + { + $cmdp["recipient"] = $chan["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } foreach( $u->privmsg as $id => $pv ) - $cmd->run($xml_reponse, $clientid, $param, $sender, $pv["recipient"], $id); - $cmd->run($xml_reponse, $clientid, $param, $sender, NULL, NULL); + { + $cmdp["recipient"] = $pv["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } + $cmdp["recipient"] = NULL; + $cmdp["recipientid"] = NULL; + $cmd->run($xml_reponse, $cmdp); // get other online users on each channels $cmd =& pfcCommand::Factory("getonlinenick"); foreach( $u->channels as $id => $chan ) - $cmd->run($xml_reponse, $clientid, $param, $sender, $chan["recipient"], $id); + { + $cmdp["recipient"] = $chan["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } foreach( $u->privmsg as $id => $pv ) - $cmd->run($xml_reponse, $clientid, $param, $sender, $pv["recipient"], $id); + { + $cmdp["recipient"] = $pv["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } // get new message posted on each channels $cmd =& pfcCommand::Factory("getnewmsg"); foreach( $u->channels as $id => $chan ) - $cmd->run($xml_reponse, $clientid, $param, $sender, $chan["recipient"], $id); + { + $cmdp["recipient"] = $chan["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } foreach( $u->privmsg as $id => $pv ) - $cmd->run($xml_reponse, $clientid, $param, $sender, $pv["recipient"], $id); + { + $cmdp["recipient"] = $pv["recipient"]; + $cmdp["recipientid"] = $id; + $cmd->run($xml_reponse, $cmdp); + } // take care to disconnect timeouted users on the server $container =& $c->getContainerInstance(); Modified: trunk/src/commands/updatemynick.class.php =================================================================== --- trunk/src/commands/updatemynick.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/commands/updatemynick.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -4,8 +4,14 @@ class pfcCommand_updatemynick extends pfcCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; Modified: trunk/src/pfccommand.class.php =================================================================== --- trunk/src/pfccommand.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/pfccommand.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -121,7 +121,7 @@ * Virtual methode which must be implemented by concrete commands * It is called by the phpFreeChat::HandleRequest function to execute the wanted command */ - function run(&$xml_reponse, $clientid, &$param, &$sender, &$recipient, &$recipientid) + function run(&$xml_reponse, $p) { die(_pfc("%s must be implemented", get_class($this)."::".__FUNCTION__)); } Modified: trunk/src/pfcproxycommand.class.php =================================================================== --- trunk/src/pfcproxycommand.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/pfcproxycommand.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -52,13 +52,6 @@ { $this->next = $cmd; } - - /* - function run(&$xml_reponse, $clientid, &$param, &$sender, &$recipient, &$recipientid) - { - die(_pfc("%s must be implemented", get_class($this)."::".__FUNCTION__)); - } - */ } ?> \ No newline at end of file Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/phpfreechat.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -375,10 +375,16 @@ // play the command $cmd =& pfcCommand::Factory($cmdtmp[0]); + $cmdp = array(); + $cmdp["clientid"] = $clientid; + $cmdp["param"] = $cmdtmp[1]; + $cmdp["sender"] = $cmdtmp[2]; + $cmdp["recipient"] = $cmdtmp[3]; + $cmdp["recipientid"] = $cmdtmp[4]; if ($c->debug) - $cmd->run($xml_reponse, $clientid, $cmdtmp[1], $cmdtmp[2], $cmdtmp[3], $cmdtmp[4]); + $cmd->run($xml_reponse, $cmdp); else - @$cmd->run($xml_reponse, $clientid, $cmdtmp[1], $cmdtmp[2], $cmdtmp[3], $cmdtmp[4]); + @$cmd->run($xml_reponse, $cmdp); // if the cmdtoplay is a 'leave' command, then show an alert to the kicked or banished user if ($cmdtmp[0] == "leave") @@ -395,28 +401,35 @@ $morecmd = (count($cmdtoplay) > 0); } - - - - - $cmd =& pfcCommand::Factory($rawcmd); + $cmdp = array(); + $cmdp["clientid"] = $clientid; + $cmdp["param"] = $param; + $cmdp["sender"] = $sender; + $cmdp["recipient"] = $recipient; + $cmdp["recipientid"] = $recipientid; if ($cmd != NULL) { // call the command if ($c->debug) - $cmd->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); else - @$cmd->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + @$cmd->run($xml_reponse, $cmdp); } else { $cmd =& pfcCommand::Factory("error"); + $cmdp = array(); + $cmdp["clientid"] = $clientid; + $cmdp["param"] = _pfc("Unknown command [%s]",stripslashes("/".$rawcmd." ".$param)); + $cmdp["sender"] = $sender; + $cmdp["recipient"] = $recipient; + $cmdp["recipientid"] = $recipientid; if ($c->debug) - $cmd->run($xml_reponse, $clientid, _pfc("Unknown command [%s]",stripslashes("/".$rawcmd." ".$param)), $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); else - @$cmd->run($xml_reponse, $clientid, _pfc("Unknown command [%s]",stripslashes("/".$rawcmd." ".$param)), $sender, $recipient, $recipientid); + @$cmd->run($xml_reponse, $cmdp); } // do not update twice @@ -428,10 +441,16 @@ // force an update just after a command is sent // thus the message user just poster is really fastly displayed $cmd =& pfcCommand::Factory("update"); + $cmdp = array(); + $cmdp["clientid"] = $clientid; + $cmdp["param"] = $param; + $cmdp["sender"] = $sender; + $cmdp["recipient"] = $recipient; + $cmdp["recipientid"] = $recipientid; if ($c->debug) - $cmd->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $cmd->run($xml_reponse, $cmdp); else - @$cmd->run($xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + @$cmd->run($xml_reponse, $cmdp); } if ($c->debug) Modified: trunk/src/proxys/auth.class.php =================================================================== --- trunk/src/proxys/auth.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/proxys/auth.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -30,8 +30,14 @@ */ class pfcProxyCommand_auth extends pfcProxyCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -93,7 +99,12 @@ } // forward the command to the next proxy or to the final command - $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $p["clientid"] = $clientid; + $p["param"] = $param; + $p["sender"] = $sender; + $p["recipient"] = $recipient; + $p["recipientid"] = $recipientid; + $this->next->run(&$xml_reponse, $p); } } Modified: trunk/src/proxys/censor.class.php =================================================================== --- trunk/src/proxys/censor.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/proxys/censor.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -30,8 +30,14 @@ */ class pfcProxyCommand_censor extends pfcProxyCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -52,7 +58,12 @@ } // forward the command to the next proxy or to the final command - $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $p["clientid"] = $clientid; + $p["param"] = $param; + $p["sender"] = $sender; + $p["recipient"] = $recipient; + $p["recipientid"] = $recipientid; + $this->next->run(&$xml_reponse, $p); } } Modified: trunk/src/proxys/lock.class.php =================================================================== --- trunk/src/proxys/lock.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/proxys/lock.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -30,8 +30,14 @@ */ class pfcProxyCommand_lock extends pfcProxyCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -43,7 +49,12 @@ else { // forward the command to the next proxy or to the final command - $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $p["clientid"] = $clientid; + $p["param"] = $param; + $p["sender"] = $sender; + $p["recipient"] = $recipient; + $p["recipientid"] = $recipientid; + $this->next->run(&$xml_reponse, $p); } } } Modified: trunk/src/proxys/noflood.class.php =================================================================== --- trunk/src/proxys/noflood.class.php 2006-08-01 18:03:47 UTC (rev 661) +++ trunk/src/proxys/noflood.class.php 2006-08-01 18:30:44 UTC (rev 662) @@ -30,8 +30,14 @@ */ class pfcProxyCommand_noflood extends pfcProxyCommand { - function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + function run(&$xml_reponse, $p) { + $clientid = $p["clientid"]; + $param = $p["param"]; + $sender = $p["sender"]; + $recipient = $p["recipient"]; + $recipientid = $p["recipientid"]; + $c =& $this->c; $u =& $this->u; @@ -52,18 +58,16 @@ if ($nbflood>$c->proxys_cfg[$this->proxyname]["limit"]) { - // kick the flooder + // warn the flooder $msg = _pfc("Please don't post so many message, flood is not tolerated"); $xml_reponse->addScript("alert('".addslashes($msg)."');"); - // @todo kick the user - - $msg = $recipientid." "; - $msg .=_pfc("kicked from %s by %s", $u->channels[$recipientid]["name"], "noflood"); + // kick the flooder + $cmdp = $p; + $cmdp["param"] = $recipientid." "; + $cmdp["param"] .=_pfc("kicked from %s by %s", $u->channels[$recipientid]["name"], "noflood"); $cmd =& pfcCommand::Factory("leave"); - $cmd->run($xml_reponse, $clientid, $msg, $sender, $recipient, $recipientid); - - + $cmd->run($xml_reponse, $cmdp); return; } @@ -73,7 +77,12 @@ } // forward the command to the next proxy or to the final command - $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + $p["clientid"] = $clientid; + $p["param"] = $param; + $p["sender"] = $sender; + $p["recipient"] = $recipient; + $p["recipientid"] = $recipientid; + $this->next->run(&$xml_reponse, $p); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 18:04:04
|
Revision: 661 Author: kerphi Date: 2006-08-01 11:03:47 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=661&view=rev Log Message: ----------- small doc update Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-08-01 18:01:18 UTC (rev 660) +++ trunk/src/pfcglobalconfig.class.php 2006-08-01 18:03:47 UTC (rev 661) @@ -60,7 +60,7 @@ var $start_minimized = false; var $height = "440px"; var $width = ""; - var $shownotice = 3; // show: 0 = nothing, 1 = just nickname changes, 2 = connect/quit, 3 = 1+2 + var $shownotice = 3; // show: 0 = nothing, 1 = just nickname changes, 2 = join/quit, 3 = 1+2 var $nickmarker = true; // show/hide nicknames colors var $clock = true; // show/hide dates and hours var $openlinknewwindow = true; // used to open the links in a new window This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-01 18:01:26
|
Revision: 660 Author: kerphi Date: 2006-08-01 11:01:18 -0700 (Tue, 01 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=660&view=rev Log Message: ----------- In the default chat index, everybody is admin in order to test easialy every chat features Modified Paths: -------------- trunk/index.php Modified: trunk/index.php =================================================================== --- trunk/index.php 2006-07-24 12:13:51 UTC (rev 659) +++ trunk/index.php 2006-08-01 18:01:18 UTC (rev 660) @@ -3,6 +3,7 @@ require_once dirname(__FILE__)."/src/phpfreechat.class.php"; $params = array(); $params["nick"] = "guest".rand(1,10); // setup the intitial nickname +$params["isadmin"] = true; // just for debug ;) $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat $chat = new phpFreeChat( $params ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-24 12:16:31
|
Revision: 659 Author: kerphi Date: 2006-07-24 05:13:51 -0700 (Mon, 24 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=659&view=rev Log Message: ----------- Add a new installer which downloads the archive from the net and unzip it localy (work in progress) Added Paths: ----------- trunk/contrib/pfcInstaller2/ trunk/contrib/pfcInstaller2/.channels/ trunk/contrib/pfcInstaller2/.channels/.alias/ trunk/contrib/pfcInstaller2/.channels/.alias/pear.txt trunk/contrib/pfcInstaller2/.channels/.alias/pecl.txt trunk/contrib/pfcInstaller2/.channels/__uri.reg trunk/contrib/pfcInstaller2/.channels/pear.php.net.reg trunk/contrib/pfcInstaller2/.channels/pecl.php.net.reg trunk/contrib/pfcInstaller2/.depdb trunk/contrib/pfcInstaller2/.depdblock trunk/contrib/pfcInstaller2/.filemap trunk/contrib/pfcInstaller2/.lock trunk/contrib/pfcInstaller2/.registry/ trunk/contrib/pfcInstaller2/.registry/.channel.__uri/ trunk/contrib/pfcInstaller2/.registry/.channel.pecl.php.net/ trunk/contrib/pfcInstaller2/.registry/archive_tar.reg trunk/contrib/pfcInstaller2/.registry/console_getopt.reg trunk/contrib/pfcInstaller2/.registry/mime_type.reg trunk/contrib/pfcInstaller2/.registry/net_socket.reg trunk/contrib/pfcInstaller2/.registry/net_url.reg trunk/contrib/pfcInstaller2/.registry/pear.reg trunk/contrib/pfcInstaller2/.registry/php_compat.reg trunk/contrib/pfcInstaller2/Archive/ trunk/contrib/pfcInstaller2/Archive/Tar.php trunk/contrib/pfcInstaller2/Console/ trunk/contrib/pfcInstaller2/Console/Getopt.php trunk/contrib/pfcInstaller2/MIME/ trunk/contrib/pfcInstaller2/MIME/Type/ trunk/contrib/pfcInstaller2/MIME/Type/Parameter.php trunk/contrib/pfcInstaller2/MIME/Type.php trunk/contrib/pfcInstaller2/Net/ trunk/contrib/pfcInstaller2/Net/Socket.php trunk/contrib/pfcInstaller2/Net/URL.php trunk/contrib/pfcInstaller2/OS/ trunk/contrib/pfcInstaller2/OS/Guess.php trunk/contrib/pfcInstaller2/PEAR/ trunk/contrib/pfcInstaller2/PEAR/Autoloader.php trunk/contrib/pfcInstaller2/PEAR/Builder.php trunk/contrib/pfcInstaller2/PEAR/ChannelFile/ trunk/contrib/pfcInstaller2/PEAR/ChannelFile/Parser.php trunk/contrib/pfcInstaller2/PEAR/ChannelFile.php trunk/contrib/pfcInstaller2/PEAR/Command/ trunk/contrib/pfcInstaller2/PEAR/Command/Auth.php trunk/contrib/pfcInstaller2/PEAR/Command/Auth.xml trunk/contrib/pfcInstaller2/PEAR/Command/Build.php trunk/contrib/pfcInstaller2/PEAR/Command/Build.xml trunk/contrib/pfcInstaller2/PEAR/Command/Channels.php trunk/contrib/pfcInstaller2/PEAR/Command/Channels.xml trunk/contrib/pfcInstaller2/PEAR/Command/Common.php trunk/contrib/pfcInstaller2/PEAR/Command/Config.php trunk/contrib/pfcInstaller2/PEAR/Command/Config.xml trunk/contrib/pfcInstaller2/PEAR/Command/Install.php trunk/contrib/pfcInstaller2/PEAR/Command/Install.xml trunk/contrib/pfcInstaller2/PEAR/Command/Mirror.php trunk/contrib/pfcInstaller2/PEAR/Command/Mirror.xml trunk/contrib/pfcInstaller2/PEAR/Command/Package.php trunk/contrib/pfcInstaller2/PEAR/Command/Package.xml trunk/contrib/pfcInstaller2/PEAR/Command/Pickle.php trunk/contrib/pfcInstaller2/PEAR/Command/Pickle.xml trunk/contrib/pfcInstaller2/PEAR/Command/Registry.php trunk/contrib/pfcInstaller2/PEAR/Command/Registry.xml trunk/contrib/pfcInstaller2/PEAR/Command/Remote.php trunk/contrib/pfcInstaller2/PEAR/Command/Remote.xml trunk/contrib/pfcInstaller2/PEAR/Command/Test.php trunk/contrib/pfcInstaller2/PEAR/Command/Test.xml trunk/contrib/pfcInstaller2/PEAR/Command.php trunk/contrib/pfcInstaller2/PEAR/Common.php trunk/contrib/pfcInstaller2/PEAR/Config.php trunk/contrib/pfcInstaller2/PEAR/Dependency.php trunk/contrib/pfcInstaller2/PEAR/Dependency2.php trunk/contrib/pfcInstaller2/PEAR/DependencyDB.php trunk/contrib/pfcInstaller2/PEAR/Downloader/ trunk/contrib/pfcInstaller2/PEAR/Downloader/Package.php trunk/contrib/pfcInstaller2/PEAR/Downloader.php trunk/contrib/pfcInstaller2/PEAR/ErrorStack.php trunk/contrib/pfcInstaller2/PEAR/Exception.php trunk/contrib/pfcInstaller2/PEAR/Frontend/ trunk/contrib/pfcInstaller2/PEAR/Frontend/CLI.php trunk/contrib/pfcInstaller2/PEAR/Frontend.php trunk/contrib/pfcInstaller2/PEAR/Installer/ trunk/contrib/pfcInstaller2/PEAR/Installer/Role/ trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Common.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Data.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Data.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Doc.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Doc.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Ext.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Ext.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Php.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Php.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Script.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Script.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Src.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Src.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Test.php trunk/contrib/pfcInstaller2/PEAR/Installer/Role/Test.xml trunk/contrib/pfcInstaller2/PEAR/Installer/Role.php trunk/contrib/pfcInstaller2/PEAR/Installer.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/ trunk/contrib/pfcInstaller2/PEAR/PackageFile/Generator/ trunk/contrib/pfcInstaller2/PEAR/PackageFile/Generator/v1.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/Generator/v2.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/Parser/ trunk/contrib/pfcInstaller2/PEAR/PackageFile/Parser/v1.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/Parser/v2.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/v1.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/v2/ trunk/contrib/pfcInstaller2/PEAR/PackageFile/v2/Validator.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/v2/rw.php trunk/contrib/pfcInstaller2/PEAR/PackageFile/v2.php trunk/contrib/pfcInstaller2/PEAR/PackageFile.php trunk/contrib/pfcInstaller2/PEAR/Packager.php trunk/contrib/pfcInstaller2/PEAR/REST/ trunk/contrib/pfcInstaller2/PEAR/REST/10.php trunk/contrib/pfcInstaller2/PEAR/REST/11.php trunk/contrib/pfcInstaller2/PEAR/REST.php trunk/contrib/pfcInstaller2/PEAR/Registry.php trunk/contrib/pfcInstaller2/PEAR/Remote.php trunk/contrib/pfcInstaller2/PEAR/RunTest.php trunk/contrib/pfcInstaller2/PEAR/Task/ trunk/contrib/pfcInstaller2/PEAR/Task/Common.php trunk/contrib/pfcInstaller2/PEAR/Task/Postinstallscript/ trunk/contrib/pfcInstaller2/PEAR/Task/Postinstallscript/rw.php trunk/contrib/pfcInstaller2/PEAR/Task/Postinstallscript.php trunk/contrib/pfcInstaller2/PEAR/Task/Replace/ trunk/contrib/pfcInstaller2/PEAR/Task/Replace/rw.php trunk/contrib/pfcInstaller2/PEAR/Task/Replace.php trunk/contrib/pfcInstaller2/PEAR/Task/Unixeol/ trunk/contrib/pfcInstaller2/PEAR/Task/Unixeol/rw.php trunk/contrib/pfcInstaller2/PEAR/Task/Unixeol.php trunk/contrib/pfcInstaller2/PEAR/Task/Windowseol/ trunk/contrib/pfcInstaller2/PEAR/Task/Windowseol/rw.php trunk/contrib/pfcInstaller2/PEAR/Task/Windowseol.php trunk/contrib/pfcInstaller2/PEAR/Validate.php trunk/contrib/pfcInstaller2/PEAR/Validator/ trunk/contrib/pfcInstaller2/PEAR/Validator/PECL.php trunk/contrib/pfcInstaller2/PEAR/XMLParser.php trunk/contrib/pfcInstaller2/PEAR.php trunk/contrib/pfcInstaller2/PHP/ trunk/contrib/pfcInstaller2/PHP/Compat/ trunk/contrib/pfcInstaller2/PHP/Compat/Components.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/ trunk/contrib/pfcInstaller2/PHP/Compat/Constant/DIRECTORY_SEPARATOR.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/E_STRICT.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/FILE.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/PATH_SEPARATOR.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/PHP_EOL.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/STD.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/T.php trunk/contrib/pfcInstaller2/PHP/Compat/Constant/UPLOAD_ERR.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_change_key_case.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_chunk.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_combine.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_diff_assoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_diff_key.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_diff_uassoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_diff_ukey.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_intersect_assoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_intersect_key.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_intersect_uassoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_intersect_ukey.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_key_exists.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_product.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_search.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_udiff.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_udiff_assoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_udiff_uassoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_uintersect.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_uintersect_assoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_uintersect_uassoc.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/array_walk_recursive.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/bcinvert.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/bcpowmod.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/call_user_func_array.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/clone.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/constant.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/convert_uudecode.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/convert_uuencode.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/debug_print_backtrace.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/file_get_contents.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/file_put_contents.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/floatval.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/fprintf.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/fputcsv.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/get_headers.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/get_include_path.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/html_entity_decode.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/htmlspecialchars_decode.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/http_build_query.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ibase_timefmt.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/idate.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/image_type_to_mime_type.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/inet_ntop.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/inet_pton.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ini_get_all.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/is_a.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/md5_file.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/mhash.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/mime_content_type.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ob_clean.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ob_flush.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ob_get_clean.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/ob_get_flush.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/pg_affected_rows.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/pg_escape_bytea.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/pg_unescape_bytea.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/php_strip_whitespace.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/restore_include_path.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/scandir.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/set_include_path.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/str_ireplace.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/str_rot13.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/str_shuffle.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/str_split.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/str_word_count.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/stripos.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/strpbrk.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/strripos.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/substr_compare.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/time_sleep_until.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/var_export.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/version_compare.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/vprintf.php trunk/contrib/pfcInstaller2/PHP/Compat/Function/vsprintf.php trunk/contrib/pfcInstaller2/PHP/Compat.php trunk/contrib/pfcInstaller2/System.php trunk/contrib/pfcInstaller2/bin/ trunk/contrib/pfcInstaller2/bin/pear trunk/contrib/pfcInstaller2/bin/peardev trunk/contrib/pfcInstaller2/bin/pecl trunk/contrib/pfcInstaller2/data/ trunk/contrib/pfcInstaller2/index.php trunk/contrib/pfcInstaller2/pear.sh trunk/contrib/pfcInstaller2/pearcmd.php trunk/contrib/pfcInstaller2/pearrc trunk/contrib/pfcInstaller2/peclcmd.php trunk/contrib/pfcInstaller2/tmp/ trunk/contrib/pfcInstaller2/tmp/cache/ trunk/contrib/pfcInstaller2/tmp/data/ trunk/contrib/pfcInstaller2/tmp/data/PEAR/ trunk/contrib/pfcInstaller2/tmp/data/PEAR/package.dtd trunk/contrib/pfcInstaller2/tmp/data/PEAR/template.spec trunk/contrib/pfcInstaller2/tmp/doc/ trunk/contrib/pfcInstaller2/tmp/docs/ trunk/contrib/pfcInstaller2/tmp/test/ Added: trunk/contrib/pfcInstaller2/.channels/.alias/pear.txt =================================================================== --- trunk/contrib/pfcInstaller2/.channels/.alias/pear.txt (rev 0) +++ trunk/contrib/pfcInstaller2/.channels/.alias/pear.txt 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +pear.php.net \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.channels/.alias/pecl.txt =================================================================== --- trunk/contrib/pfcInstaller2/.channels/.alias/pecl.txt (rev 0) +++ trunk/contrib/pfcInstaller2/.channels/.alias/pecl.txt 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +pecl.php.net \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.channels/__uri.reg =================================================================== --- trunk/contrib/pfcInstaller2/.channels/__uri.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.channels/__uri.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +a:4:{s:4:"name";s:5:"__uri";s:7:"servers";a:1:{s:7:"primary";a:1:{s:6:"xmlrpc";a:1:{s:8:"function";a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:4:"****";}}}}s:7:"summary";s:34:"Pseudo-channel for static packages";s:13:"_lastmodified";s:31:"Mon, 24 Jul 2006 13:38:39 +0200";} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.channels/pear.php.net.reg =================================================================== --- trunk/contrib/pfcInstaller2/.channels/pear.php.net.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.channels/pear.php.net.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +a:5:{s:4:"name";s:12:"pear.php.net";s:14:"suggestedalias";s:4:"pear";s:7:"summary";s:40:"PHP Extension and Application Repository";s:7:"servers";a:1:{s:7:"primary";a:2:{s:6:"xmlrpc";a:1:{s:8:"function";a:10:{i:0;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:9:"logintest";}i:1;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:26:"package.listLatestReleases";}i:2;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:15:"package.listAll";}i:3;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:12:"package.info";}i:4;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:22:"package.getDownloadURL";}i:5;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.1";}s:8:"_content";s:22:"package.getDownloadURL";}i:6;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:25:"package.getDepDownloadURL";}i:7;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.1";}s:8:"_content";s:25:"package.getDepDownloadURL";}i:8;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:14:"package.search";}i:9;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:15:"channel.listAll";}}}s:4:"rest";a:1:{s:7:"baseurl";a:2:{i:0;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.0";}s:8:"_content";s:25:"http://pear.php.net/rest/";}i:1;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.1";}s:8:"_content";s:25:"http://pear.php.net/rest/";}}}}}s:13:"_lastmodified";s:31:"Mon, 24 Jul 2006 13:38:39 +0200";} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.channels/pecl.php.net.reg =================================================================== --- trunk/contrib/pfcInstaller2/.channels/pecl.php.net.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.channels/pecl.php.net.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +a:6:{s:4:"name";s:12:"pecl.php.net";s:14:"suggestedalias";s:4:"pecl";s:7:"summary";s:31:"PHP Extension Community Library";s:7:"servers";a:1:{s:7:"primary";a:2:{s:6:"xmlrpc";a:1:{s:8:"function";a:10:{i:0;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:9:"logintest";}i:1;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:26:"package.listLatestReleases";}i:2;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:15:"package.listAll";}i:3;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:12:"package.info";}i:4;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:22:"package.getDownloadURL";}i:5;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.1";}s:8:"_content";s:22:"package.getDownloadURL";}i:6;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:25:"package.getDepDownloadURL";}i:7;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.1";}s:8:"_content";s:25:"package.getDepDownloadURL";}i:8;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:14:"package.search";}i:9;a:2:{s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}s:8:"_content";s:15:"channel.listAll";}}}s:4:"rest";a:1:{s:7:"baseurl";a:2:{i:0;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.0";}s:8:"_content";s:25:"http://pecl.php.net/rest/";}i:1;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.1";}s:8:"_content";s:25:"http://pecl.php.net/rest/";}}}}}s:15:"validatepackage";a:2:{s:8:"_content";s:19:"PEAR_Validator_PECL";s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}}s:13:"_lastmodified";s:31:"Mon, 24 Jul 2006 13:38:39 +0200";} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.depdb =================================================================== --- trunk/contrib/pfcInstaller2/.depdb (rev 0) +++ trunk/contrib/pfcInstaller2/.depdb 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +a:3:{s:8:"_version";s:3:"1.0";s:12:"dependencies";a:1:{s:12:"pear.php.net";a:2:{s:4:"pear";a:8:{i:0;a:3:{s:3:"dep";a:5:{s:4:"name";s:11:"Archive_Tar";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:3:"1.1";s:11:"recommended";s:5:"1.3.1";s:7:"exclude";s:5:"1.3.0";}s:4:"type";s:8:"required";s:5:"group";b:0;}i:1;a:3:{s:3:"dep";a:4:{s:4:"name";s:14:"Console_Getopt";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:3:"1.2";s:11:"recommended";s:3:"1.2";}s:4:"type";s:8:"required";s:5:"group";b:0;}i:2;a:3:{s:3:"dep";a:5:{s:4:"name";s:17:"PEAR_Frontend_Web";s:7:"channel";s:12:"pear.php.net";s:3:"max";s:5:"0.5.0";s:7:"exclude";s:5:"0.5.0";s:9:"conflicts";s:0:"";}s:4:"type";s:8:"required";s:5:"group";b:0;}i:3;a:3:{s:3:"dep";a:5:{s:4:"name";s:17:"PEAR_Frontend_Gtk";s:7:"channel";s:12:"pear.php.net";s:3:"max";s:5:"0.4.0";s:7:"exclude";s:5:"0.4.0";s:9:"conflicts";s:0:"";}s:4:"type";s:8:"required";s:5:"group";b:0;}i:4;a:3:{s:3:"dep";a:3:{s:4:"name";s:7:"XML_RPC";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:5:"1.4.0";}s:4:"type";s:8:"optional";s:5:"group";b:0;}i:5;a:3:{s:3:"dep";a:3:{s:4:"name";s:17:"PEAR_Frontend_Web";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:5:"0.5.0";}s:4:"type";s:8:"optional";s:5:"group";s:12:"webinstaller";}i:6;a:3:{s:3:"dep";a:3:{s:4:"name";s:17:"PEAR_Frontend_Gtk";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:5:"0.4.0";}s:4:"type";s:8:"optional";s:5:"group";s:12:"gtkinstaller";}i:7;a:3:{s:3:"dep";a:3:{s:4:"name";s:18:"PEAR_Frontend_Gtk2";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:5:"0.1.2";}s:4:"type";s:8:"optional";s:5:"group";s:13:"gtk2installer";}}s:9:"mime_type";a:2:{i:0;a:3:{s:3:"dep";a:3:{s:4:"name";s:4:"PEAR";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:5:"1.2.1";}s:4:"type";s:8:"required";s:5:"group";b:0;}i:1;a:3:{s:3:"dep";a:2:{s:4:"name";s:14:"System_Command";s:7:"channel";s:12:"pear.php.net";}s:4:"type";s:8:"optional";s:5:"group";b:0;}}}}s:8:"packages";a:1:{s:12:"pear.php.net";a:8:{s:11:"archive_tar";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:4:"pear";}}s:14:"console_getopt";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:4:"pear";}}s:17:"pear_frontend_web";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:4:"pear";}}s:17:"pear_frontend_gtk";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:4:"pear";}}s:7:"xml_rpc";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:4:"pear";}}s:18:"pear_frontend_gtk2";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:4:"pear";}}s:4:"pear";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:9:"mime_type";}}s:14:"system_command";a:1:{i:0;a:2:{s:7:"channel";s:12:"pear.php.net";s:7:"package";s:9:"mime_type";}}}}} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.depdblock =================================================================== Added: trunk/contrib/pfcInstaller2/.filemap =================================================================== --- trunk/contrib/pfcInstaller2/.filemap (rev 0) +++ trunk/contrib/pfcInstaller2/.filemap 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1 @@ +a:5:{s:3:"php";a:180:{s:18:"Console/Getopt.php";s:14:"console_getopt";s:15:"Archive/Tar.php";s:11:"archive_tar";s:12:"OS/Guess.php";s:4:"pear";s:27:"PEAR/ChannelFile/Parser.php";s:4:"pear";s:21:"PEAR/Command/Auth.xml";s:4:"pear";s:21:"PEAR/Command/Auth.php";s:4:"pear";s:22:"PEAR/Command/Build.xml";s:4:"pear";s:22:"PEAR/Command/Build.php";s:4:"pear";s:25:"PEAR/Command/Channels.xml";s:4:"pear";s:25:"PEAR/Command/Channels.php";s:4:"pear";s:23:"PEAR/Command/Common.php";s:4:"pear";s:23:"PEAR/Command/Config.xml";s:4:"pear";s:23:"PEAR/Command/Config.php";s:4:"pear";s:24:"PEAR/Command/Install.xml";s:4:"pear";s:24:"PEAR/Command/Install.php";s:4:"pear";s:23:"PEAR/Command/Mirror.xml";s:4:"pear";s:23:"PEAR/Command/Mirror.php";s:4:"pear";s:24:"PEAR/Command/Package.xml";s:4:"pear";s:24:"PEAR/Command/Package.php";s:4:"pear";s:23:"PEAR/Command/Pickle.xml";s:4:"pear";s:23:"PEAR/Command/Pickle.php";s:4:"pear";s:25:"PEAR/Command/Registry.xml";s:4:"pear";s:25:"PEAR/Command/Registry.php";s:4:"pear";s:23:"PEAR/Command/Remote.xml";s:4:"pear";s:23:"PEAR/Command/Remote.php";s:4:"pear";s:21:"PEAR/Command/Test.xml";s:4:"pear";s:21:"PEAR/Command/Test.php";s:4:"pear";s:27:"PEAR/Downloader/Package.php";s:4:"pear";s:21:"PEAR/Frontend/CLI.php";s:4:"pear";s:30:"PEAR/Installer/Role/Common.php";s:4:"pear";s:28:"PEAR/Installer/Role/Data.xml";s:4:"pear";s:28:"PEAR/Installer/Role/Data.php";s:4:"pear";s:27:"PEAR/Installer/Role/Doc.xml";s:4:"pear";s:27:"PEAR/Installer/Role/Doc.php";s:4:"pear";s:27:"PEAR/Installer/Role/Ext.xml";s:4:"pear";s:27:"PEAR/Installer/Role/Ext.php";s:4:"pear";s:27:"PEAR/Installer/Role/Php.xml";s:4:"pear";s:27:"PEAR/Installer/Role/Php.php";s:4:"pear";s:30:"PEAR/Installer/Role/Script.xml";s:4:"pear";s:30:"PEAR/Installer/Role/Script.php";s:4:"pear";s:27:"PEAR/Installer/Role/Src.xml";s:4:"pear";s:27:"PEAR/Installer/Role/Src.php";s:4:"pear";s:28:"PEAR/Installer/Role/Test.xml";s:4:"pear";s:28:"PEAR/Installer/Role/Test.php";s:4:"pear";s:23:"PEAR/Installer/Role.php";s:4:"pear";s:33:"PEAR/PackageFile/Generator/v1.php";s:4:"pear";s:33:"PEAR/PackageFile/Generator/v2.php";s:4:"pear";s:30:"PEAR/PackageFile/Parser/v1.php";s:4:"pear";s:30:"PEAR/PackageFile/Parser/v2.php";s:4:"pear";s:26:"PEAR/PackageFile/v2/rw.php";s:4:"pear";s:33:"PEAR/PackageFile/v2/Validator.php";s:4:"pear";s:23:"PEAR/PackageFile/v1.php";s:4:"pear";s:23:"PEAR/PackageFile/v2.php";s:4:"pear";s:16:"PEAR/REST/10.php";s:4:"pear";s:16:"PEAR/REST/11.php";s:4:"pear";s:34:"PEAR/Task/Postinstallscript/rw.php";s:4:"pear";s:24:"PEAR/Task/Replace/rw.php";s:4:"pear";s:24:"PEAR/Task/Unixeol/rw.php";s:4:"pear";s:27:"PEAR/Task/Windowseol/rw.php";s:4:"pear";s:20:"PEAR/Task/Common.php";s:4:"pear";s:31:"PEAR/Task/Postinstallscript.php";s:4:"pear";s:21:"PEAR/Task/Replace.php";s:4:"pear";s:21:"PEAR/Task/Unixeol.php";s:4:"pear";s:24:"PEAR/Task/Windowseol.php";s:4:"pear";s:23:"PEAR/Validator/PECL.php";s:4:"pear";s:19:"PEAR/Autoloader.php";s:4:"pear";s:16:"PEAR/Builder.php";s:4:"pear";s:20:"PEAR/ChannelFile.php";s:4:"pear";s:16:"PEAR/Command.php";s:4:"pear";s:15:"PEAR/Common.php";s:4:"pear";s:15:"PEAR/Config.php";s:4:"pear";s:19:"PEAR/Dependency.php";s:4:"pear";s:21:"PEAR/DependencyDB.php";s:4:"pear";s:20:"PEAR/Dependency2.php";s:4:"pear";s:19:"PEAR/Downloader.php";s:4:"pear";s:19:"PEAR/ErrorStack.php";s:4:"pear";s:18:"PEAR/Exception.php";s:4:"pear";s:17:"PEAR/Frontend.php";s:4:"pear";s:18:"PEAR/Installer.php";s:4:"pear";s:20:"PEAR/PackageFile.php";s:4:"pear";s:17:"PEAR/Packager.php";s:4:"pear";s:17:"PEAR/Registry.php";s:4:"pear";s:15:"PEAR/Remote.php";s:4:"pear";s:13:"PEAR/REST.php";s:4:"pear";s:16:"PEAR/RunTest.php";s:4:"pear";s:17:"PEAR/Validate.php";s:4:"pear";s:18:"PEAR/XMLParser.php";s:4:"pear";s:19:"scripts/pearcmd.php";s:4:"pear";s:19:"scripts/peclcmd.php";s:4:"pear";s:8:"PEAR.php";s:4:"pear";s:10:"System.php";s:4:"pear";s:11:"Net/URL.php";s:7:"net_url";s:14:"Net/Socket.php";s:10:"net_socket";s:13:"MIME/Type.php";s:9:"mime_type";s:23:"MIME/Type/Parameter.php";s:9:"mime_type";s:26:"docs/MIME_Type/example.php";s:9:"mime_type";s:14:"PHP/Compat.php";s:10:"php_compat";s:25:"PHP/Compat/Components.php";s:10:"php_compat";s:43:"PHP/Compat/Constant/DIRECTORY_SEPARATOR.php";s:10:"php_compat";s:32:"PHP/Compat/Constant/E_STRICT.php";s:10:"php_compat";s:38:"PHP/Compat/Constant/PATH_SEPARATOR.php";s:10:"php_compat";s:27:"PHP/Compat/Constant/STD.php";s:10:"php_compat";s:28:"PHP/Compat/Constant/FILE.php";s:10:"php_compat";s:31:"PHP/Compat/Constant/PHP_EOL.php";s:10:"php_compat";s:34:"PHP/Compat/Constant/UPLOAD_ERR.php";s:10:"php_compat";s:25:"PHP/Compat/Constant/T.php";s:10:"php_compat";s:45:"PHP/Compat/Function/array_change_key_case.php";s:10:"php_compat";s:35:"PHP/Compat/Function/array_chunk.php";s:10:"php_compat";s:37:"PHP/Compat/Function/array_combine.php";s:10:"php_compat";s:40:"PHP/Compat/Function/array_diff_assoc.php";s:10:"php_compat";s:38:"PHP/Compat/Function/array_diff_key.php";s:10:"php_compat";s:41:"PHP/Compat/Function/array_diff_uassoc.php";s:10:"php_compat";s:39:"PHP/Compat/Function/array_diff_ukey.php";s:10:"php_compat";s:45:"PHP/Compat/Function/array_intersect_assoc.php";s:10:"php_compat";s:43:"PHP/Compat/Function/array_intersect_key.php";s:10:"php_compat";s:46:"PHP/Compat/Function/array_intersect_uassoc.php";s:10:"php_compat";s:44:"PHP/Compat/Function/array_intersect_ukey.php";s:10:"php_compat";s:40:"PHP/Compat/Function/array_key_exists.php";s:10:"php_compat";s:37:"PHP/Compat/Function/array_product.php";s:10:"php_compat";s:36:"PHP/Compat/Function/array_search.php";s:10:"php_compat";s:35:"PHP/Compat/Function/array_udiff.php";s:10:"php_compat";s:41:"PHP/Compat/Function/array_udiff_assoc.php";s:10:"php_compat";s:42:"PHP/Compat/Function/array_udiff_uassoc.php";s:10:"php_compat";s:40:"PHP/Compat/Function/array_uintersect.php";s:10:"php_compat";s:46:"PHP/Compat/Function/array_uintersect_assoc.php";s:10:"php_compat";s:47:"PHP/Compat/Function/array_uintersect_uassoc.php";s:10:"php_compat";s:44:"PHP/Compat/Function/array_walk_recursive.php";s:10:"php_compat";s:32:"PHP/Compat/Function/bcinvert.php";s:10:"php_compat";s:32:"PHP/Compat/Function/bcpowmod.php";s:10:"php_compat";s:44:"PHP/Compat/Function/call_user_func_array.php";s:10:"php_compat";s:29:"PHP/Compat/Function/clone.php";s:10:"php_compat";s:32:"PHP/Compat/Function/constant.php";s:10:"php_compat";s:40:"PHP/Compat/Function/convert_uuencode.php";s:10:"php_compat";s:40:"PHP/Compat/Function/convert_uudecode.php";s:10:"php_compat";s:45:"PHP/Compat/Function/debug_print_backtrace.php";s:10:"php_compat";s:41:"PHP/Compat/Function/file_get_contents.php";s:10:"php_compat";s:41:"PHP/Compat/Function/file_put_contents.php";s:10:"php_compat";s:32:"PHP/Compat/Function/floatval.php";s:10:"php_compat";s:31:"PHP/Compat/Function/fprintf.php";s:10:"php_compat";s:31:"PHP/Compat/Function/fputcsv.php";s:10:"php_compat";s:35:"PHP/Compat/Function/get_headers.php";s:10:"php_compat";s:40:"PHP/Compat/Function/get_include_path.php";s:10:"php_compat";s:42:"PHP/Compat/Function/html_entity_decode.php";s:10:"php_compat";s:47:"PHP/Compat/Function/htmlspecialchars_decode.php";s:10:"php_compat";s:40:"PHP/Compat/Function/http_build_query.php";s:10:"php_compat";s:37:"PHP/Compat/Function/ibase_timefmt.php";s:10:"php_compat";s:29:"PHP/Compat/Function/idate.php";s:10:"php_compat";s:47:"PHP/Compat/Function/image_type_to_mime_type.php";s:10:"php_compat";s:33:"PHP/Compat/Function/inet_ntop.php";s:10:"php_compat";s:33:"PHP/Compat/Function/inet_pton.php";s:10:"php_compat";s:35:"PHP/Compat/Function/ini_get_all.php";s:10:"php_compat";s:28:"PHP/Compat/Function/is_a.php";s:10:"php_compat";s:32:"PHP/Compat/Function/md5_file.php";s:10:"php_compat";s:29:"PHP/Compat/Function/mhash.php";s:10:"php_compat";s:41:"PHP/Compat/Function/mime_content_type.php";s:10:"php_compat";s:32:"PHP/Compat/Function/ob_clean.php";s:10:"php_compat";s:32:"PHP/Compat/Function/ob_flush.php";s:10:"php_compat";s:36:"PHP/Compat/Function/ob_get_clean.php";s:10:"php_compat";s:36:"PHP/Compat/Function/ob_get_flush.php";s:10:"php_compat";s:44:"PHP/Compat/Function/php_strip_whitespace.php";s:10:"php_compat";s:40:"PHP/Compat/Function/pg_affected_rows.php";s:10:"php_compat";s:39:"PHP/Compat/Function/pg_escape_bytea.php";s:10:"php_compat";s:41:"PHP/Compat/Function/pg_unescape_bytea.php";s:10:"php_compat";s:44:"PHP/Compat/Function/restore_include_path.php";s:10:"php_compat";s:31:"PHP/Compat/Function/scandir.php";s:10:"php_compat";s:40:"PHP/Compat/Function/set_include_path.php";s:10:"php_compat";s:36:"PHP/Compat/Function/str_ireplace.php";s:10:"php_compat";s:33:"PHP/Compat/Function/str_rot13.php";s:10:"php_compat";s:33:"PHP/Compat/Function/str_split.php";s:10:"php_compat";s:35:"PHP/Compat/Function/str_shuffle.php";s:10:"php_compat";s:38:"PHP/Compat/Function/str_word_count.php";s:10:"php_compat";s:31:"PHP/Compat/Function/stripos.php";s:10:"php_compat";s:31:"PHP/Compat/Function/strpbrk.php";s:10:"php_compat";s:32:"PHP/Compat/Function/strripos.php";s:10:"php_compat";s:38:"PHP/Compat/Function/substr_compare.php";s:10:"php_compat";s:40:"PHP/Compat/Function/time_sleep_until.php";s:10:"php_compat";s:34:"PHP/Compat/Function/var_export.php";s:10:"php_compat";s:39:"PHP/Compat/Function/version_compare.php";s:10:"php_compat";s:31:"PHP/Compat/Function/vprintf.php";s:10:"php_compat";s:32:"PHP/Compat/Function/vsprintf.php";s:10:"php_compat";}s:3:"doc";a:2:{s:32:"archive_tar/docs/Archive_Tar.txt";s:11:"archive_tar";s:24:"net_url/docs/example.php";s:7:"net_url";}s:6:"script";a:3:{s:15:"scripts/pear.sh";s:4:"pear";s:18:"scripts/peardev.sh";s:4:"pear";s:15:"scripts/pecl.sh";s:4:"pear";}s:4:"data";a:2:{s:16:"pear/package.dtd";s:4:"pear";s:18:"pear/template.spec";s:4:"pear";}s:4:"test";a:86:{s:34:"php_compat/tests/loadconstant.phpt";s:10:"php_compat";s:34:"php_compat/tests/loadfunction.phpt";s:10:"php_compat";s:33:"php_compat/tests/loadversion.phpt";s:10:"php_compat";s:50:"php_compat/tests/constant/directory_separator.phpt";s:10:"php_compat";s:39:"php_compat/tests/constant/e_strict.phpt";s:10:"php_compat";s:35:"php_compat/tests/constant/file.phpt";s:10:"php_compat";s:45:"php_compat/tests/constant/path_separator.phpt";s:10:"php_compat";s:34:"php_compat/tests/constant/std.phpt";s:10:"php_compat";s:38:"php_compat/tests/constant/php_eol.phpt";s:10:"php_compat";s:41:"php_compat/tests/constant/upload_err.phpt";s:10:"php_compat";s:32:"php_compat/tests/constant/t.phpt";s:10:"php_compat";s:52:"php_compat/tests/function/array_change_key_case.phpt";s:10:"php_compat";s:42:"php_compat/tests/function/array_chunk.phpt";s:10:"php_compat";s:44:"php_compat/tests/function/array_combine.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/array_diff_assoc.phpt";s:10:"php_compat";s:48:"php_compat/tests/function/array_diff_uassoc.phpt";s:10:"php_compat";s:45:"php_compat/tests/function/array_diff_key.phpt";s:10:"php_compat";s:46:"php_compat/tests/function/array_diff_ukey.phpt";s:10:"php_compat";s:52:"php_compat/tests/function/array_intersect_assoc.phpt";s:10:"php_compat";s:50:"php_compat/tests/function/array_intersect_key.phpt";s:10:"php_compat";s:53:"php_compat/tests/function/array_intersect_uassoc.phpt";s:10:"php_compat";s:51:"php_compat/tests/function/array_intersect_ukey.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/array_key_exists.phpt";s:10:"php_compat";s:44:"php_compat/tests/function/array_product.phpt";s:10:"php_compat";s:43:"php_compat/tests/function/array_search.phpt";s:10:"php_compat";s:42:"php_compat/tests/function/array_udiff.phpt";s:10:"php_compat";s:48:"php_compat/tests/function/array_udiff_assoc.phpt";s:10:"php_compat";s:49:"php_compat/tests/function/array_udiff_uassoc.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/array_uintersect.phpt";s:10:"php_compat";s:53:"php_compat/tests/function/array_uintersect_assoc.phpt";s:10:"php_compat";s:54:"php_compat/tests/function/array_uintersect_uassoc.phpt";s:10:"php_compat";s:51:"php_compat/tests/function/array_walk_recursive.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/bcinvert.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/bcpowmod.phpt";s:10:"php_compat";s:51:"php_compat/tests/function/call_user_func_array.phpt";s:10:"php_compat";s:36:"php_compat/tests/function/clone.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/constant.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/convert_uuencode.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/convert_uudecode.phpt";s:10:"php_compat";s:52:"php_compat/tests/function/debug_print_backtrace.phpt";s:10:"php_compat";s:48:"php_compat/tests/function/file_get_contents.phpt";s:10:"php_compat";s:48:"php_compat/tests/function/file_put_contents.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/floatval.phpt";s:10:"php_compat";s:38:"php_compat/tests/function/fprintf.phpt";s:10:"php_compat";s:38:"php_compat/tests/function/fputcsv.phpt";s:10:"php_compat";s:42:"php_compat/tests/function/get_headers.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/get_include_path.phpt";s:10:"php_compat";s:49:"php_compat/tests/function/html_entity_decode.phpt";s:10:"php_compat";s:54:"php_compat/tests/function/htmlspecialchars_decode.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/http_build_query.phpt";s:10:"php_compat";s:44:"php_compat/tests/function/ibase_timefmt.phpt";s:10:"php_compat";s:36:"php_compat/tests/function/idate.phpt";s:10:"php_compat";s:54:"php_compat/tests/function/image_type_to_mime_type.phpt";s:10:"php_compat";s:40:"php_compat/tests/function/inet_ntop.phpt";s:10:"php_compat";s:40:"php_compat/tests/function/inet_pton.phpt";s:10:"php_compat";s:42:"php_compat/tests/function/ini_get_all.phpt";s:10:"php_compat";s:35:"php_compat/tests/function/is_a.phpt";s:10:"php_compat";s:40:"php_compat/tests/function/is_scalar.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/md5_file.phpt";s:10:"php_compat";s:36:"php_compat/tests/function/mhash.phpt";s:10:"php_compat";s:48:"php_compat/tests/function/mime_content_type.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/ob_clean.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/ob_flush.phpt";s:10:"php_compat";s:43:"php_compat/tests/function/ob_get_clean.phpt";s:10:"php_compat";s:43:"php_compat/tests/function/ob_get_flush.phpt";s:10:"php_compat";s:51:"php_compat/tests/function/php_strip_whitespace.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/pg_affected_rows.phpt";s:10:"php_compat";s:46:"php_compat/tests/function/pg_escape_bytea.phpt";s:10:"php_compat";s:48:"php_compat/tests/function/pg_unescape_bytea.phpt";s:10:"php_compat";s:51:"php_compat/tests/function/restore_include_path.phpt";s:10:"php_compat";s:38:"php_compat/tests/function/scandir.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/set_include_path.phpt";s:10:"php_compat";s:43:"php_compat/tests/function/str_ireplace.phpt";s:10:"php_compat";s:40:"php_compat/tests/function/str_rot13.phpt";s:10:"php_compat";s:40:"php_compat/tests/function/str_split.phpt";s:10:"php_compat";s:42:"php_compat/tests/function/str_shuffle.phpt";s:10:"php_compat";s:45:"php_compat/tests/function/str_word_count.phpt";s:10:"php_compat";s:38:"php_compat/tests/function/stripos.phpt";s:10:"php_compat";s:38:"php_compat/tests/function/strpbrk.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/strripos.phpt";s:10:"php_compat";s:45:"php_compat/tests/function/substr_compare.phpt";s:10:"php_compat";s:47:"php_compat/tests/function/time_sleep_until.phpt";s:10:"php_compat";s:41:"php_compat/tests/function/var_export.phpt";s:10:"php_compat";s:46:"php_compat/tests/function/version_compare.phpt";s:10:"php_compat";s:38:"php_compat/tests/function/vprintf.phpt";s:10:"php_compat";s:39:"php_compat/tests/function/vsprintf.phpt";s:10:"php_compat";}} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.lock =================================================================== Added: trunk/contrib/pfcInstaller2/.registry/archive_tar.reg =================================================================== --- trunk/contrib/pfcInstaller2/.registry/archive_tar.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.registry/archive_tar.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1,34 @@ +a:16:{s:8:"provides";a:12:{s:17:"class;Archive_Tar";a:3:{s:4:"type";s:5:"class";s:4:"name";s:11:"Archive_Tar";s:8:"explicit";b:1;}s:28:"function;Archive_Tar::create";a:3:{s:4:"type";s:8:"function";s:4:"name";s:19:"Archive_Tar::create";s:8:"explicit";b:1;}s:25:"function;Archive_Tar::add";a:3:{s:4:"type";s:8:"function";s:4:"name";s:16:"Archive_Tar::add";s:8:"explicit";b:1;}s:29:"function;Archive_Tar::extract";a:3:{s:4:"type";s:8:"function";s:4:"name";s:20:"Archive_Tar::extract";s:8:"explicit";b:1;}s:33:"function;Archive_Tar::listContent";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"Archive_Tar::listContent";s:8:"explicit";b:1;}s:34:"function;Archive_Tar::createModify";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"Archive_Tar::createModify";s:8:"explicit";b:1;}s:31:"function;Archive_Tar::addModify";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"Archive_Tar::addModify";s:8:"explicit";b:1;}s:31:"function;Archive_Tar::addString";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"Archive_Tar::addString";s:8:"explicit";b:1;}s:35:"function;Archive_Tar::extractModify";a:3:{s:4:"type";s:8:"function";s:4:"name";s:26:"Archive_Tar::extractModify";s:8:"explicit";b:1;}s:37:"function;Archive_Tar::extractInString";a:3:{s:4:"type";s:8:"function";s:4:"name";s:28:"Archive_Tar::extractInString";s:8:"explicit";b:1;}s:33:"function;Archive_Tar::extractList";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"Archive_Tar::extractList";s:8:"explicit";b:1;}s:34:"function;Archive_Tar::setAttribute";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"Archive_Tar::setAttribute";s:8:"explicit";b:1;}}s:8:"filelist";a:2:{s:15:"Archive/Tar.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:1:"/";s:6:"md5sum";s:32:"5a9ef212cbfc1789c875870b3a4db6e5";s:12:"installed_as";s:17:"./Archive/Tar.php";}s:20:"docs/Archive_Tar.txt";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:1:"/";s:6:"md5sum";s:32:"ae640b797078a6542ea0d236f28efffb";s:12:"installed_as";s:38:"./doc/Archive_Tar/docs/Archive_Tar.txt";}}s:10:"xsdversion";s:3:"1.0";s:7:"package";s:11:"Archive_Tar";s:7:"summary";s:25:"Tar file management class";s:11:"description";s:258:"This class provides handling of tar files in PHP. +It supports creating, listing, extracting and adding to tar files. +Gzip support is available if PHP has the zlib extension built-in or +loaded. Bz2 compression is also supported with the bz2 extension loaded. +";s:11:"maintainers";a:2:{i:0;a:4:{s:6:"handle";s:7:"vblavet";s:4:"name";s:14:"Vincent Blavet";s:5:"email";s:22:"vi...@ph...";s:4:"role";s:4:"lead";}i:1;a:4:{s:6:"handle";s:3:"ssb";s:4:"name";s:11:"Stig Bakken";s:5:"email";s:12:"st...@ph...";s:4:"role";s:6:"helper";}}s:7:"version";s:5:"1.3.1";s:12:"release_date";s:10:"2005-03-17";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:18:"Correct Bug #3855 +";s:9:"changelog";a:9:{i:0;a:4:{s:7:"version";s:5:"1.3.0";s:12:"release_date";s:10:"2005-03-06";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:44:"Bugs correction (2475, 2488, 2135, 2176) + + +";}i:1;a:4:{s:7:"version";s:3:"1.2";s:12:"release_date";s:10:"2004-05-08";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:75:"Add support for other separator than the space char and bug + correction + + +";}i:2;a:4:{s:7:"version";s:3:"1.1";s:12:"release_date";s:10:"2003-05-28";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:143:"* Add support for BZ2 compression +* Add support for add and extract without using temporary files : methods addString() and extractInString() + +";}i:3;a:4:{s:7:"version";s:3:"1.0";s:12:"release_date";s:10:"2003-01-24";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:26:"Change status to stable + + +";}i:4;a:4:{s:7:"version";s:7:"0.10-b1";s:12:"release_date";s:10:"2003-01-08";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:62:"Add support for long filenames (greater than 99 characters) + + +";}i:5;a:4:{s:7:"version";s:3:"0.9";s:12:"release_date";s:10:"2002-05-27";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:28:"Auto-detect gzip'ed files + + +";}i:6;a:4:{s:7:"version";s:3:"0.4";s:12:"release_date";s:10:"2002-05-20";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:54:"Windows bugfix: use forward slashes inside archives + + +";}i:7;a:4:{s:7:"version";s:3:"0.2";s:12:"release_date";s:10:"2002-02-18";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:32:"From initial commit to stable + + +";}i:8;a:4:{s:7:"version";s:3:"0.3";s:12:"release_date";s:10:"2002-04-13";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:50:"Windows bugfix: used wrong directory separators + + +";}}s:12:"_lastversion";N;s:7:"dirtree";a:2:{s:9:"./Archive";b:1;s:22:"./doc/Archive_Tar/docs";b:1;}s:13:"_lastmodified";i:1153741223;} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.registry/console_getopt.reg =================================================================== --- trunk/contrib/pfcInstaller2/.registry/console_getopt.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.registry/console_getopt.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1,14 @@ +a:16:{s:8:"provides";a:5:{s:20:"class;Console_Getopt";a:3:{s:4:"type";s:5:"class";s:4:"name";s:14:"Console_Getopt";s:8:"explicit";b:1;}s:32:"function;Console_Getopt::getopt2";a:3:{s:4:"type";s:8:"function";s:4:"name";s:23:"Console_Getopt::getopt2";s:8:"explicit";b:1;}s:31:"function;Console_Getopt::getopt";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"Console_Getopt::getopt";s:8:"explicit";b:1;}s:33:"function;Console_Getopt::doGetopt";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"Console_Getopt::doGetopt";s:8:"explicit";b:1;}s:36:"function;Console_Getopt::readPHPArgv";a:3:{s:4:"type";s:8:"function";s:4:"name";s:27:"Console_Getopt::readPHPArgv";s:8:"explicit";b:1;}}s:8:"filelist";a:1:{s:18:"Console/Getopt.php";a:3:{s:4:"role";s:3:"php";s:6:"md5sum";s:32:"add0781a1cae0b3daf5e8521b8a954cc";s:12:"installed_as";s:20:"./Console/Getopt.php";}}s:10:"xsdversion";s:3:"1.0";s:7:"package";s:14:"Console_Getopt";s:7:"summary";s:26:"Command-line option parser";s:11:"description";s:81:"This is a PHP implementation of "getopt" supporting both +short and long options. +";s:11:"maintainers";a:2:{i:0;a:4:{s:6:"handle";s:6:"andrei";s:4:"name";s:15:"Andrei Zmievski";s:5:"email";s:14:"an...@ph...";s:4:"role";s:4:"lead";}i:1;a:4:{s:6:"handle";s:3:"ssb";s:4:"name";s:11:"Stig Bakken";s:5:"email";s:12:"st...@ph...";s:4:"role";s:9:"developer";}}s:7:"version";s:3:"1.2";s:12:"release_date";s:10:"2003-12-11";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:70:"Fix to preserve BC with 1.0 and allow correct behaviour for new users +";s:9:"changelog";a:4:{i:0;a:4:{s:7:"version";s:3:"1.0";s:12:"release_date";s:10:"2002-09-13";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:16:"Stable release + +";}i:1;a:4:{s:7:"version";s:4:"0.11";s:12:"release_date";s:10:"2002-05-26";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:96:"POSIX getopt compatibility fix: treat first element of args + array as command name + + +";}i:2;a:4:{s:7:"version";s:4:"0.10";s:12:"release_date";s:10:"2002-05-12";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:15:"Packaging fix + +";}i:3;a:4:{s:7:"version";s:3:"0.9";s:12:"release_date";s:10:"2002-05-12";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:17:"Initial release + +";}}s:12:"_lastversion";N;s:7:"dirtree";a:1:{s:9:"./Console";b:1;}s:13:"_lastmodified";i:1153741223;} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.registry/mime_type.reg =================================================================== --- trunk/contrib/pfcInstaller2/.registry/mime_type.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.registry/mime_type.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1,16 @@ +a:17:{s:8:"provides";a:0:{}s:8:"filelist";a:3:{s:8:"Type.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:4:"MIME";s:12:"replacements";a:2:{i:0;a:3:{s:4:"from";s:9:"@version@";s:2:"to";s:7:"version";s:4:"type";s:12:"package-info";}i:1;a:3:{s:4:"from";s:9:"@package@";s:2:"to";s:7:"package";s:4:"type";s:12:"package-info";}}s:12:"installed_as";s:15:"./MIME/Type.php";}s:13:"Parameter.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:9:"MIME/Type";s:12:"replacements";a:2:{i:0;a:3:{s:4:"from";s:9:"@version@";s:2:"to";s:7:"version";s:4:"type";s:12:"package-info";}i:1;a:3:{s:4:"from";s:9:"@package@";s:2:"to";s:7:"package";s:4:"type";s:12:"package-info";}}s:12:"installed_as";s:25:"./MIME/Type/Parameter.php";}s:11:"example.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:14:"docs/MIME_Type";s:12:"replacements";a:2:{i:0;a:3:{s:4:"from";s:9:"@package@";s:2:"to";s:7:"package";s:4:"type";s:12:"package-info";}i:1;a:3:{s:4:"from";s:9:"@doc_dir@";s:2:"to";s:7:"doc_dir";s:4:"type";s:11:"pear-config";}}s:12:"installed_as";s:28:"./docs/MIME_Type/example.php";}}s:10:"xsdversion";s:3:"1.0";s:7:"package";s:9:"MIME_Type";s:7:"summary";s:41:"Utility class for dealing with MIME types";s:11:"description";s:316:"Provide functionality for dealing with MIME types. +* Parse MIME type. +* Supports full RFC2045 specification. +* Many utility functions for working with and determining info about types. +* Most functions can be called statically. +* Autodetect a file's mime-type, either with mime_content_type() or the 'file' command. +";s:11:"maintainers";a:1:{i:0;a:4:{s:6:"handle";s:5:"ieure";s:4:"name";s:8:"Ian Eure";s:5:"email";s:13:"ie...@ph...";s:4:"role";s:4:"lead";}}s:7:"version";s:5:"1.0.0";s:12:"release_date";s:10:"2005-01-26";s:15:"release_license";s:15:"PHP License 3.0";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:31:"- No changes since 1.0.0beta3. +";s:12:"release_deps";a:2:{i:1;a:4:{s:4:"type";s:3:"pkg";s:3:"rel";s:2:"ge";s:7:"version";s:5:"1.2.1";s:4:"name";s:4:"PEAR";}i:2;a:4:{s:4:"type";s:3:"pkg";s:3:"rel";s:3:"has";s:8:"optional";s:3:"yes";s:4:"name";s:14:"System_Command";}}s:9:"changelog";a:3:{i:0;a:4:{s:7:"version";s:10:"1.0.0beta3";s:12:"release_date";s:10:"2004-08-07";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:97:"* Add $parameters class var. (Fixes #2083) +* Quote filenames in _fileAutoDetect() (Fixes #2078) + +";}i:1;a:4:{s:7:"version";s:10:"1.0.0beta2";s:12:"release_date";s:10:"2004-06-16";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:63:"* Make changes as requested during the proposal/vote process. + +";}i:2;a:4:{s:7:"version";s:10:"1.0.0beta1";s:12:"release_date";s:10:"2004-04-16";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:76:"Initial PEARification +* Split most functionality off from MIME_ContentType + +";}}s:12:"_lastversion";N;s:7:"dirtree";a:4:{s:6:"./MIME";b:1;s:11:"./MIME/Type";b:1;s:16:"./docs/MIME_Type";b:1;s:6:"./docs";b:1;}s:13:"_lastmodified";i:1153741286;} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.registry/net_socket.reg =================================================================== --- trunk/contrib/pfcInstaller2/.registry/net_socket.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.registry/net_socket.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1,24 @@ +a:16:{s:8:"provides";a:0:{}s:8:"filelist";a:1:{s:10:"Socket.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:3:"Net";s:6:"md5sum";s:32:"1c7a9a28fc3fa78e682200d7540b66d5";s:12:"installed_as";s:16:"./Net/Socket.php";}}s:10:"xsdversion";s:3:"1.0";s:7:"package";s:10:"Net_Socket";s:7:"summary";s:24:"Network Socket Interface";s:11:"description";s:232:"Net_Socket is a class interface to TCP sockets. It provides blocking +and non-blocking operation, with different reading and writing modes +(byte-wise, block-wise, line-wise and special formats like network +byte-order ip addresses). +";s:11:"maintainers";a:2:{i:0;a:4:{s:6:"handle";s:3:"ssb";s:4:"name";s:11:"Stig Bakken";s:5:"email";s:12:"st...@ph...";s:4:"role";s:4:"lead";}i:1;a:4:{s:6:"handle";s:8:"chagenbu";s:4:"name";s:15:"Chuck Hagenbuch";s:5:"email";s:15:"ch...@ho...";s:4:"role";s:4:"lead";}}s:7:"version";s:5:"1.0.6";s:12:"release_date";s:10:"2005-02-26";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:198:"- Make package.xml safe for PEAR 1.4.0. +- Chunk socket writes on Windows by default, or if explicitly specified (Bug #980) +- Don't run any $addr with a '/' in it through gethostbyname() (Bug #3372) +";s:9:"changelog";a:6:{i:0;a:4:{s:7:"version";s:5:"1.0.0";s:12:"release_date";s:10:"2002-04-01";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:42:"First independent release of Net_Socket. + +";}i:1;a:4:{s:7:"version";s:5:"1.0.1";s:12:"release_date";s:10:"2002-04-04";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:26:"Touch up error handling. + +";}i:2;a:4:{s:7:"version";s:5:"1.0.2";s:12:"release_date";s:10:"2004-04-26";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:136:"Fixes for several longstanding bugs. Allow setting of stream +context. Correctly read lines that only end in \n. Suppress +PHP warnings. + +";}i:3;a:4:{s:7:"version";s:5:"1.0.3";s:12:"release_date";s:10:"2004-12-08";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:143:"Optimize away some duplicate is_resource() calls. +Better solution for eof() on blocking sockets [#1427]. +Add select() implementation [#1428]. + +";}i:4;a:4:{s:7:"version";s:5:"1.0.4";s:12:"release_date";s:10:"2004-12-13";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:47:"Restore support for unix sockets (Bug #2961). + +";}i:5;a:4:{s:7:"version";s:5:"1.0.5";s:12:"release_date";s:10:"2005-01-11";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:63:"Don't rely on gethostbyname() for error checking (Bug #3100). + +";}}s:12:"_lastversion";N;s:7:"dirtree";a:1:{s:5:"./Net";b:1;}s:13:"_lastmodified";i:1153741256;} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.registry/net_url.reg =================================================================== --- trunk/contrib/pfcInstaller2/.registry/net_url.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.registry/net_url.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1,33 @@ +a:16:{s:8:"provides";a:0:{}s:8:"filelist";a:2:{s:7:"URL.php";a:3:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:3:"Net";s:12:"installed_as";s:13:"./Net/URL.php";}s:16:"docs/example.php";a:3:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:3:"Net";s:12:"installed_as";s:30:"./doc/Net_URL/docs/example.php";}}s:10:"xsdversion";s:3:"1.0";s:7:"package";s:7:"Net_URL";s:7:"summary";s:20:"Easy parsing of Urls";s:11:"description";s:59:"Provides easy parsing of URLs and their constituent parts. +";s:11:"maintainers";a:1:{i:0;a:4:{s:6:"handle";s:7:"richard";s:4:"name";s:13:"Richard heyes";s:5:"email";s:15:"ri...@ph...";s:4:"role";s:4:"lead";}}s:7:"version";s:6:"1.0.14";s:12:"release_date";s:10:"2004-06-19";s:15:"release_license";s:3:"BSD";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:11:"Whitespace +";s:9:"changelog";a:14:{i:0;a:5:{s:7:"version";s:6:"1.0.13";s:12:"release_date";s:10:"2004-06-05";s:15:"release_license";s:3:"BSD";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:14:"Fix bug 1558 + +";}i:1;a:5:{s:7:"version";s:6:"1.0.12";s:12:"release_date";s:10:"2004-05-08";s:15:"release_license";s:3:"BSD";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:36:"Bug fixes release (#704 and #1036) + +";}i:2;a:5:{s:7:"version";s:6:"1.0.11";s:12:"release_date";s:10:"2004-01-17";s:15:"release_license";s:3:"BSD";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:34:"Bug fixes release (#83 and #471) + +";}i:3;a:5:{s:7:"version";s:6:"1.0.10";s:12:"release_date";s:10:"2002-04-06";s:15:"release_license";s:3:"BSD";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:47:"Be more flexible in what constitutes a scheme + +";}i:4;a:4:{s:7:"version";s:5:"1.0.9";s:12:"release_date";s:10:"2002-04-05";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:34:"Fix couple of absolute URL bugs. + +";}i:5;a:4:{s:7:"version";s:5:"1.0.8";s:12:"release_date";s:10:"2002-03-06";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:119:"Various bugs. Remove auto setting of default url to '/' if a url is supplied +to the constructor. May cause BC issues. + +";}i:6;a:4:{s:7:"version";s:5:"1.0.7";s:12:"release_date";s:10:"2002-12-07";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:53:"Added method to resolve URL paths of //, ../ and ./ + +";}i:7;a:4:{s:7:"version";s:5:"1.0.6";s:12:"release_date";s:10:"2002-12-07";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:27:"Make usage of [] optional + +";}i:8;a:4:{s:7:"version";s:5:"1.0.5";s:12:"release_date";s:10:"2002-11-14";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:32:"Allow for URLS such as ...?foo + +";}i:9;a:4:{s:7:"version";s:5:"1.0.4";s:12:"release_date";s:10:"2002-07-27";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:17:"License change + + +";}i:10;a:4:{s:7:"version";s:5:"1.0.3";s:12:"release_date";s:10:"2002-06-20";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:34:"Now uses HTTP_HOST if available. + +";}i:11;a:4:{s:7:"version";s:5:"1.0.2";s:12:"release_date";s:10:"2002-04-28";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:59:"updated to fix a minor irritation when running on windows + +";}i:12;a:4:{s:7:"version";s:5:"1.0.1";s:12:"release_date";s:10:"2002-04-28";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:67:"Maintenance release. Bugs fixed with path detection and defaults. + +";}i:13;a:4:{s:7:"version";s:3:"1.0";s:12:"release_date";s:10:"2002-02-17";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:53:"This is the initial release of the Net_URL package. + +";}}s:12:"_lastversion";N;s:7:"dirtree";a:2:{s:5:"./Net";b:1;s:18:"./doc/Net_URL/docs";b:1;}s:13:"_lastmodified";i:1153741250;} \ No newline at end of file Added: trunk/contrib/pfcInstaller2/.registry/pear.reg =================================================================== --- trunk/contrib/pfcInstaller2/.registry/pear.reg (rev 0) +++ trunk/contrib/pfcInstaller2/.registry/pear.reg 2006-07-24 12:13:51 UTC (rev 659) @@ -0,0 +1,206 @@ +a:23:{s:7:"attribs";a:6:{s:15:"packagerversion";s:9:"1.4.10RC1";s:7:"version";s:3:"2.0";s:5:"xmlns";s:35:"http://pear.php.net/dtd/package-2.0";s:11:"xmlns:tasks";s:33:"http://pear.php.net/dtd/tasks-1.0";s:9:"xmlns:xsi";s:41:"http://www.w3.org/2001/XMLSchema-instance";s:18:"xsi:schemaLocation";s:147:"http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd";}s:4:"name";s:4:"PEAR";s:7:"channel";s:12:"pear.php.net";s:7:"summary";s:16:"PEAR Base System";s:11:"description";s:1277:"The PEAR package contains: + * the PEAR installer, for creating, distributing + and installing packages + * the beta-quality PEAR_Exception PHP5 error handling mechanism + * the beta-quality PEAR_ErrorStack advanced error handling mechanism + * the PEAR_Error error handling mechanism + * the OS_Guess class for retrieving info about the OS + where PHP is running on + * the System class for quick handling of common operations + with files and directories + * the PEAR base class + + New features in a nutshell: + * full support for channels + * pre-download dependency validation + * new package.xml 2.0 format allows tremendous flexibility while maintaining BC + * support for optional dependency groups and limited support for sub-packaging + * robust dependency support + * full dependency validation on uninstall + * remote install for hosts with only ftp access - no more problems with + restricted host installation + * full support for mirroring + * support for bundling several packages into a single tarball + * support for static dependencies on a url-based package + * support for custom file roles and installation tasks + + NOTE: users of PEAR_Frontend_Web/PEAR_Frontend_Gtk must upgrade their installations + to the latest version, or PEAR will not upgrade properly";s:4:"lead";a:4:{i:0;a:4:{s:4:"name";s:11:"Greg Beaver";s:4:"user";s:6:"cellog";s:5:"email";s:14:"ce...@ph...";s:6:"active";s:3:"yes";}i:1;a:4:{s:4:"name";s:17:"Pierre-Alain Joye";s:4:"user";s:6:"pajoye";s:5:"email";s:17:"pa...@pe...";s:6:"active";s:3:"yes";}i:2;a:4:{s:4:"name";s:11:"Stig Bakken";s:4:"user";s:3:"ssb";s:5:"email";s:12:"st...@ph...";s:6:"active";s:2:"no";}i:3;a:4:{s:4:"name";s:13:"Tomas V.V.Cox";s:4:"user";s:3:"cox";s:5:"email";s:15:"co...@id...";s:6:"active";s:2:"no";}}s:6:"helper";a:3:{i:0;a:4:{s:4:"name";s:11:"Tim Jackson";s:4:"user";s:4:"timj";s:5:"email";s:12:"ti...@ph...";s:6:"active";s:3:"yes";}i:1;a:4:{s:4:"name";s:15:"Bertrand Gugger";s:4:"user";s:5:"toggg";s:5:"email";s:13:"to...@ph...";s:6:"active";s:2:"no";}i:2;a:4:{s:4:"name";s:13:"Martin Jansen";s:4:"user";s:2:"mj";s:5:"email";s:10:"mj...@ph...";s:6:"active";s:2:"no";}}s:4:"date";s:10:"2006-07-18";s:4:"time";s:8:"20:16:41";s:7:"version";a:2:{s:7:"release";s:6:"1.4.10";s:3:"api";s:5:"1.4.2";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:11:"PHP License";}s:5:"notes";s:785:"bugfix release +* fix Bug #7579: cannot convert package 1.0 to 2.0 with PFM 1.6.0 +* fix Bug #7640: Check invalid date format +* fix Bug #7726: <uri> dependency is broken +* fix Bug #7830: Warning in package-dependencies c... [truncated message content] |
From: <ke...@us...> - 2006-07-17 15:21:07
|
Revision: 658 Author: kerphi Date: 2006-07-17 08:20:41 -0700 (Mon, 17 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=658&view=rev Log Message: ----------- Bug fix: the /identify command was broken Modified Paths: -------------- trunk/src/commands/identify.class.php trunk/src/pfcglobalconfig.class.php Modified: trunk/src/commands/identify.class.php =================================================================== --- trunk/src/commands/identify.class.php 2006-07-17 14:57:01 UTC (rev 657) +++ trunk/src/commands/identify.class.php 2006-07-17 15:20:41 UTC (rev 658) @@ -38,14 +38,15 @@ $password = trim($param); $isadmin = false; - - // @todo simplify the search in the admins config array using a native php function (array_search?) - foreach($c->admins as $a_nick => $a_pass) - { - if ($a_nick == $sender && $a_pass == $password) - $isadmin = true; - } +// $xml_reponse->addScript("alert('sender=".$sender."');"); +// $xml_reponse->addScript("alert('password=".$password."');"); +// $xml_reponse->addScript("alert('admins=".var_export($c->admins, true)."');"); + + if( isset($c->admins[$sender]) && + $c->admins[$sender] == $password ) + $isadmin = true; + $msg = ""; if ($isadmin) { Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-07-17 14:57:01 UTC (rev 657) +++ trunk/src/pfcglobalconfig.class.php 2006-07-17 15:20:41 UTC (rev 658) @@ -35,7 +35,7 @@ // these parameters are dynamic (not cached) var $nick = ""; // the initial nickname ("" means the user will be queried) var $isadmin = false; - var $admins = array("admin" => ""); // nicknames is the key, password is the value + var $admins = array("admin" => ""); // the key is the nickname, the value is the password var $islocked = false; // set this parameter to true to lock the chat for all users var $lockurl = "http://www.phpfreechat.net"; // this is the url where the users must be redirected when the chat is locked @@ -159,7 +159,8 @@ // load dynamic parameter even if the config exists in the cache foreach ( $this->dyn_params as $dp ) - $this->$dp = $params[$dp]; + if (isset($params[$dp])) + $this->$dp = $params[$dp]; // now load or save the configuration in the cache $this->synchronizeWithCache(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-17 14:57:14
|
Revision: 657 Author: kerphi Date: 2006-07-17 07:57:01 -0700 (Mon, 17 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=657&view=rev Log Message: ----------- Bug fix: some paths were wrongly calculated (https://sourceforge.net/support/tracker.php?aid=1523821) Modified Paths: -------------- trunk/src/pfctools.php Modified: trunk/src/pfctools.php =================================================================== --- trunk/src/pfctools.php 2006-07-17 14:20:51 UTC (rev 656) +++ trunk/src/pfctools.php 2006-07-17 14:57:01 UTC (rev 657) @@ -64,14 +64,20 @@ $res = ""; //echo $p1."<br>"; //echo $p2."<br>"; - while( $p1 != "" && $p1 != "/" && strpos($p2, $p1) === FALSE) + while( $p1 != "" && $p1 != "/" && strpos($p2, $p1) !== 0) { $res .= "../"; $p1 = dirname($p1); } - $p2 = (isset($_SERVER["WINDIR"]) || isset($_SERVER["windir"])) ? - str_replace("\\","/",substr($p2, strlen($p1)+1, strlen($p2)-strlen($p1))) : - substr($p2, strlen($p1)+1, strlen($p2)-strlen($p1)); + if (isset($_SERVER["WINDIR"]) || isset($_SERVER["windir"])) { + $p2 = str_replace("\\","/",substr($p2, strlen($p1)+1, strlen($p2)-strlen($p1))); + } else { + if ($p1 === "/" || $p1 === "") { + $p2 = substr($p2, strlen($p1)); + } else { + $p2 = substr($p2, strlen($p1)+1); + } + } $res .= $p2; // remove the last "/" if (preg_match("/.*\/$/", $res)) $res = preg_replace("/(.*)\//","$1",$res); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-17 14:20:58
|
Revision: 656 Author: kerphi Date: 2006-07-17 07:20:51 -0700 (Mon, 17 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=656&view=rev Log Message: ----------- Bug fix: https://sourceforge.net/support/tracker.php?aid=1523826 Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-07-17 08:56:18 UTC (rev 655) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-07-17 14:20:51 UTC (rev 656) @@ -1470,4 +1470,4 @@ }; -<?php include($c->getFileUrlFromTheme('templates/pfcclient-custo.js.tpl.php')); ?> +<?php include($c->getFilePathFromTheme('templates/pfcclient-custo.js.tpl.php')); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-17 08:56:26
|
Revision: 655 Author: kerphi Date: 2006-07-17 01:56:18 -0700 (Mon, 17 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=655&view=rev Log Message: ----------- Bug fix: the getLastMsg function ignored the number of last messages parameter (2nd parameter). Modified Paths: -------------- trunk/src/pfcinfo.class.php Modified: trunk/src/pfcinfo.class.php =================================================================== --- trunk/src/pfcinfo.class.php 2006-07-12 12:16:41 UTC (rev 654) +++ trunk/src/pfcinfo.class.php 2006-07-17 08:56:18 UTC (rev 655) @@ -58,15 +58,18 @@ function getLastMsg($channel, $nb) { + // to be sure the $nb params is a positive number + if ( !( $nb >= 0 ) ) $nb = 10; + // to get the channel recipient name // @todo must use another function to get a private message last messages $channel = pfcCommand_join::GetRecipient($channel); $container =& $this->getContainerInstance(); $lastmsg_id = $container->getLastId($channel); - $lastmsg_raw = $container->read($channel, $lastmsg_id-10); + $lastmsg_raw = $container->read($channel, $lastmsg_id-$nb); return $lastmsg_raw; } } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-12 12:16:47
|
Revision: 654 Author: kerphi Date: 2006-07-12 05:16:41 -0700 (Wed, 12 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=654&view=rev Log Message: ----------- Bug fix: the 'nick' parameter was broken Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-07-12 11:50:50 UTC (rev 653) +++ trunk/src/pfcglobalconfig.class.php 2006-07-12 12:16:41 UTC (rev 654) @@ -100,6 +100,7 @@ var $debugurl = ""; var $debug = false; var $debugxajax = false; + var $dyn_params = array("nick","isadmin","islocked","admins"); function pfcGlobalConfig( $params = array() ) { @@ -156,6 +157,10 @@ } } + // load dynamic parameter even if the config exists in the cache + foreach ( $this->dyn_params as $dp ) + $this->$dp = $params[$dp]; + // now load or save the configuration in the cache $this->synchronizeWithCache(); } @@ -464,12 +469,11 @@ // if a cache file exists, remove the lock file because config has been succesfully stored if (file_exists($cachefile_lock)) @unlink($cachefile_lock); - $dyn_params = array("nick","isadmin","islocked","admins"); $pfc_configvar = unserialize(file_get_contents($cachefile)); foreach($pfc_configvar as $key => $val) { // the dynamics parameters must not be cached - if (!in_array($key,$dyn_params)) + if (!in_array($key,$this->dyn_params)) $this->$key = $val; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-12 11:50:59
|
Revision: 653 Author: kerphi Date: 2006-07-12 04:50:50 -0700 (Wed, 12 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=653&view=rev Log Message: ----------- Bug fix: the 'admins' parameter in now dynamic Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-07-07 11:45:12 UTC (rev 652) +++ trunk/src/pfcglobalconfig.class.php 2006-07-12 11:50:50 UTC (rev 653) @@ -340,6 +340,11 @@ // load debug url $this->debugurl = relativePath($this->client_script_path, dirname(__FILE__)."/../debug"); + + // check the frozen_nick parameter is used with a none empty nickname + if ($this->frozen_nick && $this->nick == "") + $this->errors[] = _pfc("frozen_nick can't be used with a empty nick"); + // check if channels parameter is a strings array if (!is_array($this->channels)) $this->errors[] = _pfc("'%s' parameter must be an array", "channels"); @@ -459,13 +464,12 @@ // if a cache file exists, remove the lock file because config has been succesfully stored if (file_exists($cachefile_lock)) @unlink($cachefile_lock); + $dyn_params = array("nick","isadmin","islocked","admins"); $pfc_configvar = unserialize(file_get_contents($cachefile)); foreach($pfc_configvar as $key => $val) { - // the 'nick', 'isadmin', and 'islocked' are dynamic parameters, it must not be cached - if ($key != "nick" && - $key != "isadmin" && - $key != "islocked" ) + // the dynamics parameters must not be cached + if (!in_array($key,$dyn_params)) $this->$key = $val; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 11:45:20
|
Revision: 652 Author: kerphi Date: 2006-07-07 04:45:12 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=652&view=rev Log Message: ----------- New proxy : the lock proxy can be used to lock the chat and redirect all the online users to a given url (use the $params["islocked"] and $params["lockurl"] parameters). Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Added Paths: ----------- trunk/src/proxys/lock.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-07-07 07:48:48 UTC (rev 651) +++ trunk/src/pfcglobalconfig.class.php 2006-07-07 11:45:12 UTC (rev 652) @@ -36,9 +36,12 @@ var $nick = ""; // the initial nickname ("" means the user will be queried) var $isadmin = false; var $admins = array("admin" => ""); // nicknames is the key, password is the value + + var $islocked = false; // set this parameter to true to lock the chat for all users + var $lockurl = "http://www.phpfreechat.net"; // this is the url where the users must be redirected when the chat is locked // these parameters are static (cached) - var $proxys = array("auth", "noflood", "censor"); + var $proxys = array("lock", "auth", "noflood", "censor"); var $proxys_cfg = array("auth" => array(), "noflood" => array("limit"=>10,"delay"=>5), "censor" => array("words"=>array("fuck","sex","bitch"),"replaceby"=>"*")); @@ -459,9 +462,10 @@ $pfc_configvar = unserialize(file_get_contents($cachefile)); foreach($pfc_configvar as $key => $val) { - // the 'nick' and 'isadmin' are dynamic parameters, it must not be cached + // the 'nick', 'isadmin', and 'islocked' are dynamic parameters, it must not be cached if ($key != "nick" && - $key != "isadmin") + $key != "isadmin" && + $key != "islocked" ) $this->$key = $val; } Added: trunk/src/proxys/lock.class.php =================================================================== --- trunk/src/proxys/lock.class.php (rev 0) +++ trunk/src/proxys/lock.class.php 2006-07-07 11:45:12 UTC (rev 652) @@ -0,0 +1,51 @@ +<?php +/** + * lock.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library 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; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ +require_once dirname(__FILE__)."/../pfci18n.class.php"; +require_once dirname(__FILE__)."/../pfcuserconfig.class.php"; +require_once dirname(__FILE__)."/../pfcproxycommand.class.php"; + +/** + * pfcProxyCommand_lock + * if the chat is locked, redirect users to a given url + * @author Stephane Gully <ste...@gm...> + */ +class pfcProxyCommand_lock extends pfcProxyCommand +{ + function run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid) + { + $c =& $this->c; + $u =& $this->u; + + // check if the chat is locked + if ($c->islocked) + { + $xml_reponse->addRedirect($c->lockurl); + } + else + { + // forward the command to the next proxy or to the final command + $this->next->run(&$xml_reponse, $clientid, $param, $sender, $recipient, $recipientid); + } + } +} + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 07:48:52
|
Revision: 651 Author: kerphi Date: 2006-07-07 00:48:48 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=651&view=rev Log Message: ----------- oups, another stupide syntaxe error Modified Paths: -------------- trunk/misc/checkmd5 Modified: trunk/misc/checkmd5 =================================================================== --- trunk/misc/checkmd5 2006-07-07 07:46:15 UTC (rev 650) +++ trunk/misc/checkmd5 2006-07-07 07:48:48 UTC (rev 651) @@ -41,7 +41,7 @@ echo 'echo "<h2>Checking phpfreechat files validity</h2>";' >> $TMP echo 'echo "<pre>\n";' >> $TMP echo '$arr = array_merge($files_ko,$files_ok);' >> $TMP -echo 'foreach($arr as $file);' >> $TMP +echo 'foreach($arr as $file)' >> $TMP echo ' echo $file;' >> $TMP echo 'echo "</pre>\n";' >> $TMP echo "?>" >> $TMP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 07:46:20
|
Revision: 650 Author: kerphi Date: 2006-07-07 00:46:15 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=650&view=rev Log Message: ----------- merge the array before the loop Modified Paths: -------------- trunk/misc/checkmd5 Modified: trunk/misc/checkmd5 =================================================================== --- trunk/misc/checkmd5 2006-07-07 07:42:21 UTC (rev 649) +++ trunk/misc/checkmd5 2006-07-07 07:46:15 UTC (rev 650) @@ -40,7 +40,8 @@ echo 'echo "<h2>Checking phpfreechat files validity</h2>";' >> $TMP echo 'echo "<pre>\n";' >> $TMP -echo 'foreach(array_merge($files_ko,$files_ok) as $file);' >> $TMP +echo '$arr = array_merge($files_ko,$files_ok);' >> $TMP +echo 'foreach($arr as $file);' >> $TMP echo ' echo $file;' >> $TMP echo 'echo "</pre>\n";' >> $TMP echo "?>" >> $TMP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 07:42:28
|
Revision: 649 Author: kerphi Date: 2006-07-07 00:42:21 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=649&view=rev Log Message: ----------- fix a syntax error Modified Paths: -------------- trunk/misc/checkmd5 Modified: trunk/misc/checkmd5 =================================================================== --- trunk/misc/checkmd5 2006-07-07 07:40:20 UTC (rev 648) +++ trunk/misc/checkmd5 2006-07-07 07:42:21 UTC (rev 649) @@ -40,7 +40,7 @@ echo 'echo "<h2>Checking phpfreechat files validity</h2>";' >> $TMP echo 'echo "<pre>\n";' >> $TMP -echo 'foreach(array_merge($files_ko,$files_ok as $file);' >> $TMP +echo 'foreach(array_merge($files_ko,$files_ok) as $file);' >> $TMP echo ' echo $file;' >> $TMP echo 'echo "</pre>\n";' >> $TMP echo "?>" >> $TMP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 07:40:32
|
Revision: 648 Author: kerphi Date: 2006-07-07 00:40:20 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=648&view=rev Log Message: ----------- prepare 1.0-beta3 Modified Paths: -------------- trunk/version Modified: trunk/version =================================================================== --- trunk/version 2006-07-07 07:37:19 UTC (rev 647) +++ trunk/version 2006-07-07 07:40:20 UTC (rev 648) @@ -1 +1 @@ -1.0-beta2 \ No newline at end of file +1.0-beta3 \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 07:37:24
|
Revision: 647 Author: kerphi Date: 2006-07-07 00:37:19 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=647&view=rev Log Message: ----------- Bug fix: the nickname list borders were badly displayed on IE6 Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-07-07 07:09:22 UTC (rev 646) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-07-07 07:37:19 UTC (rev 647) @@ -1424,6 +1424,7 @@ content.style.display = 'block'; else content.style.display = 'none'; + content.style.zIndex = '100'; // for IE6, force the nickname list borders to be shown } // then refresh the button icon @@ -1458,17 +1459,11 @@ var style = $H(); if (!this.showwhosonline) { - style['width'] = '100%'; - chatdiv.setAttribute('style', 'width:100%'); - chatdiv.setAttribute('cssText', 'width:100%'); // for IE6 - // Element.setStyle(chatdiv, style); + chatdiv.style.width = '100%'; } else { - style['width'] = ''; - chatdiv.setAttribute('style', ''); - chatdiv.setAttribute('cssText', ''); // for IE6 - // Element.setStyle(chatdiv, style); + chatdiv.style.width = ''; } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 07:09:30
|
Revision: 646 Author: kerphi Date: 2006-07-07 00:09:22 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=646&view=rev Log Message: ----------- Show the corrupted files at the beginning of the list Modified Paths: -------------- trunk/misc/checkmd5 Modified: trunk/misc/checkmd5 =================================================================== --- trunk/misc/checkmd5 2006-07-07 06:57:56 UTC (rev 645) +++ trunk/misc/checkmd5 2006-07-07 07:09:22 UTC (rev 646) @@ -27,16 +27,21 @@ cd $PFC_PATH echo "<?php" > $TMP -echo 'echo "<h2>Checking phpfreechat files validity</h2>";' >> $TMP -echo 'echo "<pre>\n";' >> $TMP +echo '$files_ok = array();' >> $TMP +echo '$files_ko = array();' >> $TMP for f in `find . -type f` do sum=`md5sum $f | sed "s/\s.*$//g"` echo 'if (md5(file_get_contents("'$f'")) == "'$sum'")' >> $TMP - echo ' echo "<span style=\"color:#3A3\">ok - '$f'</span>\n";' >> $TMP + echo ' $files_ok[] = "<span style=\"color:#3A3\">ok - '$f'</span>\n";' >> $TMP echo 'else' >> $TMP - echo ' echo "<span style=\"color:#F33\">corrupted - '$f' (please replace this file by a correct one)</span>\n";' >> $TMP + echo ' $files_ko[] = "<span style=\"color:#F33\">corrupted - '$f' (please replace this file by a correct one)</span>\n";' >> $TMP done + +echo 'echo "<h2>Checking phpfreechat files validity</h2>";' >> $TMP +echo 'echo "<pre>\n";' >> $TMP +echo 'foreach(array_merge($files_ko,$files_ok as $file);' >> $TMP +echo ' echo $file;' >> $TMP echo 'echo "</pre>\n";' >> $TMP echo "?>" >> $TMP cd - >/dev/null This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-07 06:58:02
|
Revision: 645 Author: kerphi Date: 2006-07-06 23:57:56 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=645&view=rev Log Message: ----------- restore the 'width' parameter which is not anymore obsolete Modified Paths: -------------- trunk/demo/demo2_simple_with_params.php Modified: trunk/demo/demo2_simple_with_params.php =================================================================== --- trunk/demo/demo2_simple_with_params.php 2006-07-06 15:48:11 UTC (rev 644) +++ trunk/demo/demo2_simple_with_params.php 2006-07-07 06:57:56 UTC (rev 645) @@ -13,8 +13,7 @@ $params["refresh_delay"] = 10000; // chat refresh speed is 10 secondes (10000ms) $params["max_msg"] = 15; // max message in the history is 15 (message seen when reloading the chat) $params["height"] = "230px"; // height of chat area is 230px -// do not uses width parameter because of a display bug in IE6 -//$params["width"] = "800px"; // width of chat area is 800px +$params["width"] = "800px"; // width of chat area is 800px $params["debug"] = true; // activate debug console $params["debugxajax"] = true; // activate xajax debug (js popup) $params["connect_at_startup"] = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-06 15:48:27
|
Revision: 644 Author: kerphi Date: 2006-07-06 08:48:11 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=644&view=rev Log Message: ----------- Fix a include path Modified Paths: -------------- trunk/src/pfci18n.class.php Modified: trunk/src/pfci18n.class.php =================================================================== --- trunk/src/pfci18n.class.php 2006-07-05 16:06:18 UTC (rev 643) +++ trunk/src/pfci18n.class.php 2006-07-06 15:48:11 UTC (rev 644) @@ -20,7 +20,7 @@ * Boston, MA 02110-1301 USA */ -require_once("pfctools.php"); +require_once(dirname(__FILE__)."/pfctools.php"); function _pfc() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-07-05 16:06:25
|
Revision: 643 Author: kerphi Date: 2006-07-05 09:06:18 -0700 (Wed, 05 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=643&view=rev Log Message: ----------- Bug fix: "connect_at_startup" and "start_minimized" options were broken Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-07-04 15:54:40 UTC (rev 642) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-07-05 16:06:18 UTC (rev 643) @@ -48,7 +48,7 @@ var cookie = getCookie('<?php echo $prefix; ?>minmax_status'); if (cookie != null) this.minmax_status = (cookie == 'true'); - + cookie = getCookie('<?php echo $prefix; ?>nickmarker'); this.nickmarker = (cookie == 'true'); if (cookie == '' || cookie == null) @@ -131,6 +131,10 @@ ?> } this.smileys = $H(smileys); + + // refresh the gui + this.refresh_loginlogout(); + this.refresh_minimize_maximize(); }, /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |