You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
From: <be...@us...> - 2012-04-02 10:02:33
|
Revision: 9224 http://xoops.svn.sourceforge.net/xoops/?rev=9224&view=rev Author: beckmi Date: 2012-04-02 10:02:23 +0000 (Mon, 02 Apr 2012) Log Message: ----------- Setting up 2.5.5 RC release Added Paths: ----------- XoopsCore/releases/2.5.5-rc/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-02 10:00:23
|
Revision: 9223 http://xoops.svn.sourceforge.net/xoops/?rev=9223&view=rev Author: beckmi Date: 2012-04-02 10:00:12 +0000 (Mon, 02 Apr 2012) Log Message: ----------- Updating release notes and lang_diff.txt file for Profile Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/lang_diff.txt XoopsCore/branches/2.5.x/2.5.5/release_notes.txt Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/lang_diff.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/lang_diff.txt 2012-04-02 09:43:44 UTC (rev 9222) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/lang_diff.txt 2012-04-02 10:00:12 UTC (rev 9223) @@ -3,6 +3,18 @@ Below are language differences from a version to next version. +Release 1.63 +================= +admin.php +----------- +define('_PROFILE_AM_REQUIRED_TOGGLE', 'Toggle Required Field'); +define('_PROFILE_AM_REQUIRED_TOGGLE_SUCCESS', 'Successfully Changed Required Field '); +define('_PROFILE_AM_REQUIRED_TOGGLE_FAILED', 'Changing Required Field Failed'); + +define('_PROFILE_AM_SAVESTEP_TOGGLE', 'Toggle Save'); +define('_PROFILE_AM_SAVESTEP_TOGGLE_SUCCESS', 'Successfully Changed Save After Step'); +define('_PROFILE_AM_SAVESTEP_TOGGLE_FAILED', "Changing 'Save After Step' Failed"); + Release 1.62 ================= @@ -16,4 +28,3 @@ define("_PROFILE_MI_ABOUT", "About"); define("_PROFILE_MI_HOME", "Home"); - Modified: XoopsCore/branches/2.5.x/2.5.5/release_notes.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/release_notes.txt 2012-04-02 09:43:44 UTC (rev 9222) +++ XoopsCore/branches/2.5.x/2.5.5/release_notes.txt 2012-04-02 10:00:12 UTC (rev 9223) @@ -1,13 +1,14 @@ -XOOPS 2.5.5 Beta +XOOPS 2.5.5 RC -The XOOPS Development Team is pleased to announce the release of XOOPS 2.5.5 Beta. +The XOOPS Development Team is pleased to announce the release of XOOPS 2.5.5 RC (Release Candidate). This release is focused on fixing open bugs, and on updating our libraries to the latest versions: - phpMailer 5.2.1 -- TinyMCE 3.4.8 -- jQuery 1.7.1 -- jQueryUI 1.8.17 +- TinyMCE 3.4.9 +- jQuery 1.7.2 +- jQueryUI 1.8.18 +- HTML Purifier to 4.4.0 See the Changelog for more details. @@ -27,7 +28,7 @@ Downloading XOOPS ----------------------------------- -You can get this release package from the [url=https://sourceforge.net/projects/xoops/files/XOOPS%20Core%20%28Beta%20Releases%29/XOOPS_2.5.5_Beta/]Sourceforge repository[/url]. +You can get this release package from the [url=https://sourceforge.net/projects/xoops/files/XOOPS%20Core%20%28Beta%20Releases%29/XOOPS_2.5.5_RC/]Sourceforge repository[/url]. There are .zip, .7z, and .gz archives provided. @@ -36,9 +37,15 @@ 1. Copy the content of the htdocs/ folder where it can be accessed by your server 2. Ensure that directories: - - uploads/', 'uploads/avatars/', 'uploads/images/', 'uploads/ranks/', 'uploads/smilies/','xoops_lib/modules/protector/configs/ + - uploads/, + - uploads/avatars/ + - uploads/images/ + - uploads/ranks/ + - uploads/smilies/ + - xoops_lib/modules/protector/configs/ and files: - - mainfile.php and include/license.php + - mainfile.php and + - include/license.php are writable by the web server 3. For security considerations, you are encouraged to move directories "/xoops_lib" (for XOOPS libraries) and "/xoops_data" (for XOOPS data) out of Document Root, and change the folder names. 4. Make the directory xoops_data/ writable; Create (if not already present) and make the directories xoops_data/caches/, xoops_data/caches/xoops_cache/, xoops_data/caches/smarty_cache/ and xoops_data/caches/smarty_compile/ writable. @@ -118,4 +125,4 @@ XOOPS Development Team -February 21st, 2012 \ No newline at end of file +April 2nd, 2012 \ 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: <be...@us...> - 2012-04-02 09:43:56
|
Revision: 9222 http://xoops.svn.sourceforge.net/xoops/?rev=9222&view=rev Author: beckmi Date: 2012-04-02 09:43:44 +0000 (Mon, 02 Apr 2012) Log Message: ----------- Updating jQuery and jQueryUI Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/Frameworks/jquery/jquery.js XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/Frameworks/jquery/plugins/jquery.ui.js Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-04-02 09:11:25 UTC (rev 9221) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-04-02 09:43:44 UTC (rev 9222) @@ -4,8 +4,7 @@ 2011/03/14: Version 2.5.5 RC =============================== Bugfixes: - - adding missing check for local timezone (XavierS) - - ID: 3494895 When changing the # of visible entries, it goes to Admin (jcweb/mamba) + - ID: 3494895 When changing the # of visible entries in Protector, it goes to Admin (jcweb/mamba) - ID: 3494894 Calendar shows 40 days (peekay/mage) - ID: 3494896 Image Manager category creation restrictions (voltan/mage) - ID: 3494893 PM Messages deleted from Saved box (Danielw42/mage) @@ -19,6 +18,8 @@ Updated: - HTML Purifier to 4.4.0 (mamba) - TinyMCE to 3.4.9 (mamba) + - jQuery to 1.72 (mamba) + - jQueryUI to version 1.8.18 (mamba) =============================== 2011/02/19: Version 2.5.5 Beta Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/Frameworks/jquery/jquery.js =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/Frameworks/jquery/jquery.js 2012-04-02 09:11:25 UTC (rev 9221) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/xoops_lib/Frameworks/jquery/jquery.js 2012-04-02 09:43:44 UTC (rev 9222) @@ -1,4 +1,4 @@ -/*! jQuery v1.7.1 jquery.com | jquery.org/license */ -(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; -f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.ex... [truncated message content] |
From: <be...@us...> - 2012-04-02 09:11:35
|
Revision: 9221 http://xoops.svn.sourceforge.net/xoops/?rev=9221&view=rev Author: beckmi Date: 2012-04-02 09:11:25 +0000 (Mon, 02 Apr 2012) Log Message: ----------- Adding few new icons Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/0.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/1.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/add.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/add_off.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/back.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/down_off.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/forward.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/up.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/up_off.png XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/32/categoryadd.png Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/0.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/0.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/1.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/1.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/add.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/add.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/add_off.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/add_off.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/back.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/back.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/down_off.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/down_off.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/forward.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/forward.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/up.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/up.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/up_off.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/16/up_off.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/32/categoryadd.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.5/htdocs/Frameworks/moduleclasses/icons/32/categoryadd.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-02 09:10:46
|
Revision: 9220 http://xoops.svn.sourceforge.net/xoops/?rev=9220&view=rev Author: beckmi Date: 2012-04-02 09:10:34 +0000 (Mon, 02 Apr 2012) Log Message: ----------- Changing icon location in Profile Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html 2012-03-31 23:05:32 UTC (rev 9219) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html 2012-04-02 09:10:34 UTC (rev 9220) @@ -27,7 +27,7 @@ </td> <td align="center"> <{if $field.canEdit}> - <a href="field.php?op=toggle&field_required=<{$field.field_required}>&field_id=<{$field.field_id}>"><img src="<{$xoops_url}>/modules/profile/images/actions/<{$field.field_required}>.png" title="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" /></a> + <a href="field.php?op=toggle&field_required=<{$field.field_required}>&field_id=<{$field.field_id}>"><img src="<{xoModuleIcons16}><{$field.field_required}>.png" title="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" /></a> <{/if}> </td> <td align= "center"> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html 2012-03-31 23:05:32 UTC (rev 9219) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html 2012-04-02 09:10:34 UTC (rev 9220) @@ -8,7 +8,7 @@ <td><{$step.step_name}></td> <td align= "center"><{$step.step_order}></td> <td align="center"> - <a href="step.php?op=toggle&step_save=<{$step.step_save}>&step_id=<{$step.step_id}>"><img src="<{$xoops_url}>/modules/profile/images/actions/<{$step.step_save}>.png" title="<{$smarty.const._PROFILE_AM_SAVESTEP_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_SAVESTEP_TOGGLE}>" /></a> + <a href="step.php?op=toggle&step_save=<{$step.step_save}>&step_id=<{$step.step_id}>"><img src="<{xoModuleIcons16}><{$step.step_save}>.png" title="<{$smarty.const._PROFILE_AM_SAVESTEP_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_SAVESTEP_TOGGLE}>" /></a> </td> <td align= "center"> <a href="step.php?id=<{$step.step_id}>" title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-31 23:05:38
|
Revision: 9219 http://xoops.svn.sourceforge.net/xoops/?rev=9219&view=rev Author: txmodxoops Date: 2012-03-31 23:05:32 +0000 (Sat, 31 Mar 2012) Log Message: ----------- Updated dashboard.png Added Paths: ----------- XoopsCore/branches/2.5.x/2.5.4/htdocs/Frameworks/moduleclasses/icons/32/dashboard.png Added: XoopsCore/branches/2.5.x/2.5.4/htdocs/Frameworks/moduleclasses/icons/32/dashboard.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.5.x/2.5.4/htdocs/Frameworks/moduleclasses/icons/32/dashboard.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-03-31 23:04:15
|
Revision: 9218 http://xoops.svn.sourceforge.net/xoops/?rev=9218&view=rev Author: txmodxoops Date: 2012-03-31 23:04:09 +0000 (Sat, 31 Mar 2012) Log Message: ----------- Updated dashboard.png Added Paths: ----------- XoopsModules/moduleclasses/branches/timgno/moduleclasses/icons/32/dashboard.png Added: XoopsModules/moduleclasses/branches/timgno/moduleclasses/icons/32/dashboard.png =================================================================== (Binary files differ) Property changes on: XoopsModules/moduleclasses/branches/timgno/moduleclasses/icons/32/dashboard.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <red...@us...> - 2012-03-31 15:58:49
|
Revision: 9217 http://xoops.svn.sourceforge.net/xoops/?rev=9217&view=rev Author: redheadedrod Date: 2012-03-31 15:58:43 +0000 (Sat, 31 Mar 2012) Log Message: ----------- Added Paths: ----------- XoopsModules/xroster/branches/redheadedrod/xroster/README.TXT Added: XoopsModules/xroster/branches/redheadedrod/xroster/README.TXT =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/README.TXT (rev 0) +++ XoopsModules/xroster/branches/redheadedrod/xroster/README.TXT 2012-03-31 15:58:43 UTC (rev 9217) @@ -0,0 +1,5 @@ +RedheadedRod version of xroster. + +3-31-2012 - Copied 2.23 - Arowana version into Branch to start from. + - Planning to document the upgrade to Mamba version 2.3.2 which added the 2.5 admin. + - Wanted to have a base for an old system to start with. \ 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: <red...@us...> - 2012-03-31 15:45:45
|
Revision: 9216 http://xoops.svn.sourceforge.net/xoops/?rev=9216&view=rev Author: redheadedrod Date: 2012-03-31 15:45:37 +0000 (Sat, 31 Mar 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/xroster/branches/redheadedrod/xroster/admin/index.php XoopsModules/xroster/branches/redheadedrod/xroster/admin/menu.php XoopsModules/xroster/branches/redheadedrod/xroster/blocks/xroster_blocks.php XoopsModules/xroster/branches/redheadedrod/xroster/common.inc.php XoopsModules/xroster/branches/redheadedrod/xroster/index.php XoopsModules/xroster/branches/redheadedrod/xroster/language/english/main.php XoopsModules/xroster/branches/redheadedrod/xroster/language/english/modinfo.php XoopsModules/xroster/branches/redheadedrod/xroster/xoops_version.php XoopsModules/xroster/branches/redheadedrod/xroster/xroster.png Modified: XoopsModules/xroster/branches/redheadedrod/xroster/admin/index.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/admin/index.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/admin/index.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -1,53 +1,391 @@ <?php -// $Id: index.php 8066 2011-11-06 05:09:33Z beckmi $ -// ------------------------------------------------------------------------ // -// XOOPS - PHP Content Management System // -// Copyright (c) 2000 XOOPS.org // -// <http://www.xoops.org/> // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: Raul Recio (AKA UNFOR) // -// Project: The XOOPS Project // -// ------------------------------------------------------------------------- // -include_once 'admin_header.php'; -xoops_cp_header(); +$xRoster_mydir = dirname(__FILE__); +require_once "$xRoster_mydir/../../../include/cp_header.php"; +require_once file_exists("$xRoster_mydir/../language/" . $xoopsConfig['language'] . '/main.php') + ? "$xRoster_mydir/../language/" . $xoopsConfig['language'] . '/main.php' + : "$xRoster_mydir/../language/english/main.php"; +require_once "$xRoster_mydir/../common.inc.php"; -$indexAdmin = new ModuleAdmin(); -//----------------------- -// $xpPartnerHandler =& xoops_getmodulehandler('partners', $xoopsModule->getVar('dirname')); +function xRoster_AdminHeader(){ + global $xoopsModule; + xoops_cp_header(); + printf(_MD_ADMINWELCOME, $xoopsModule->getVar('name')); + echo '<p align="center"><b><a href="', XOOPS_URL, '/modules/system/admin.php?fct=preferences&op=showmod&mod=', $xoopsModule->getVar('mid'), '">', _MD_PREFERENCES, '</a></b> + | <a href="index.php?op=members_add">', _MD_ADDMEMBER, '</a> + | <a href="index.php?op=members_approve">', _MD_NEWMEMBERS, '</a> + | <a href="index.php?op=members_list">', _MD_MEMBERS, '</a><br> + <a href="index.php?op=Title_Editor">', _MD_TITLEEDITOR, '</a> + | <a href="index.php?op=Title_Editor&t_action=add">', _MD_ADDTITLE, '</a> + | <a href="index.php?op=Group_Editor">', _MD_GROUPEDITOR, '</a> + | <a href="index.php?op=Group_Editor&g_action=add">', _MD_ADDGROUP, '</a> + | <a href="index.php?op=Category_Editor">', _MD_CATEGORYEDITOR, '</a> + | <a href="index.php?op=Category_Editor&c_action=add">', _MD_ADDCATEGORY, '</a></p>'; +} -// $totalPartners = $xpPartnerHandler->getCount(); -// $totalNonActivePartners = $xpPartnerHandler->getCount(new Criteria('status', 0, '=')); -// $totalActivePartners = $totalPartners - $totalNonActivePartners; +function Members_Edit($id = 0) { + global $xoopsDB, $xRosterList_connspeed, $xRosterList_ahour, $xRosterList_weapon, $xRosterList_imnetworks; + if($id) { + $result = xRoster_Query("SELECT * FROM {xRoster} WHERE id = $id"); + if(!($member = $xoopsDB->fetchArray($result))) return false; + $member['since'] = formatTimestamp($member['since'], 's'); + } else + $member = array('member' => 1, 'since' => formatTimestamp(time(), 's')); + $result = xRoster_Query('SELECT id, name FROM {xRoster_titles} ORDER BY weight, name'); + while($row = $xoopsDB->fetchArray($result)) + $titles[$row['id']] = $row['name']; + // Here comes the form + echo '<form method="post"> + <input type="hidden" name="id" value="' . $id . '"> + <input type="hidden" name="op" value="members_update"> + <table cellspacing="8" cellpadding="8" class="outer">'; + echo '<tr><td>', _MD_REALNAME, '</td><td><input type="text" name="realname" value="', $member['realname'], '"></td></tr>'; + echo '<tr><td>', _MD_NAME, '</td><td><input type="text" name="membername" value="', $member['membername'], '"></td></tr>'; + echo '<tr><td>', _MD_EMAIL, '</td><td><input type="text" name="email" value="', $member['email'], '"></td></tr>'; + echo '<tr><td>', _MD_AGE, '</td><td><input type="text" name="age" value="', $member['age'], '"></td></tr>'; + echo '<tr><td>', _MD_CATEGORY, '</td><td>', xRoster_SQLDropDown('SELECT id, name FROM {xRoster_categories} ORDER BY weight, name', 'cid', $member['cid']), '</td></tr>'; + echo '<tr><td>', _MD_GROUP, '</td><td>', xRoster_SQLDropDown('SELECT id, name FROM {xRoster_groups} ORDER BY weight, name', 'gid', $member['gid']), '</td></tr>'; + echo '<tr><td>', _MD_LOCATION, '</td><td>', xRoster_LocationDropDown($member['location'] ? $member['location'] : 'US'), '</td></tr>'; + echo '<tr><td>', _MD_CONNECTION, '</td><td>', xRoster_DropDown('connection', $xRosterList_connspeed + array(_MD_OTHER=>_MD_OTHER), $member['connection']), '</td></tr>'; + echo '<tr><td>', _MD_AVAILABLEHOURS, '</td><td>', xRoster_DropDown('ahours', $xRosterList_ahour + array(_MD_TOOMANYHOURS=>_MD_TOOMANYHOURS), $member['ahours']), '</td></tr>'; + echo '<tr><td>', _MD_PRIMARYWEAPON, '</td><td>', xRoster_DropDown('pweapon', $xRosterList_weapon, $member['pweapon']), '</td></tr>'; + echo '<tr><td>', _MD_SECONDARYWEAPON, '</td><td>', xRoster_DropDown('sweapon', $xRosterList_weapon, $member['sweapon']), '</td></tr>'; + echo '<tr><td colspan="2">', _MD_CLANBEFORE, ' ', xRoster_YNDropDown('clan_before', $member['clan_before']), '</td></tr>'; + echo '<tr><td colspan="2">', _MD_NOTE3, '<br><textarea rows="3" name="why_play">', $member['why_play'], '</textarea></td></tr>'; + echo '<tr><td colspan="2">', _MD_NOTE4, '<br><textarea rows="3" name="skills_talents">', $member['skills_talents'], '</textarea></td></tr>'; + echo '<tr><td colspan="2">', _MD_NOTE1, '<br><textarea rows="3" name="additional_comments">', $member['additional_comments'], '</textarea></td></tr>'; + echo '<tr><td>', _MD_TITLE, '</td><td>', xRoster_DropDown('tid', $titles, $member['tid'], true), '</td></tr>'; + echo '<tr><td>', _MD_IMAGEPATH, '</td><td><input type="text" name="picture" value="', $member['picture'], '"></td></tr>'; + echo '<tr><td>', _MD_WEBSITENAME, '</td><td><input type="text" name="sitename" value="', $member['sitename'], '"></td></tr>'; + echo '<tr><td>', _MD_WEBSITEURL, '</td><td><input type="text" name="siteurl" value="', $member['siteurl'], '"></td></tr>'; + echo '<tr><td>', _MD_IMNETWORK, '</td><td>', xRoster_DropDown('impref', $xRosterList_imnetworks, $member['impref']), '</td></tr>'; + echo '<tr><td>', _MD_IMID, '</td><td><input type="text" name="imid" value="', $member['imid'], '"></td></tr>'; + echo '<tr><td colspan="2">', _MD_NOTE5, '<br><textarea rows="3" name="additional_info">', $member['additional_info'], '</textarea></td></tr>'; + echo '<tr><td>', _MD_SINCE, '</td><td>', $member['since'], '</td></tr>'; + echo '<tr><td colspan="2">', _MD_APPROVED, ' ', xRoster_YNDropDown('member', $member['member']), '</td></tr>'; + echo '<tr><td align="center" colspan="2"><input type="submit" value="', _MD_UPDATE, '"></td></tr> + </table><form>'; +} -// $indexAdmin->addInfoBox(_MD_XPARTNERS_DASHBOARD); +function Members_List($op = 1) { + $db =& Database::getInstance(); + $result = xRoster_Query("SELECT m.id, m.membername, m.member, t.name AS title, g.name AS xgroup, c.name AS game + FROM {xRoster} m + LEFT JOIN {xRoster_titles} t ON m.tid = t.id + LEFT JOIN {xRoster_groups} g ON m.gid = g.id + LEFT JOIN {xRoster_categories} c ON m.cid = c.id + WHERE m.member = $op ORDER BY c.weight, g.weight, t.weight, m.membername"); + if($db->getRowsNum($result)) { + echo '<table cellspacing="0" cellpadding="8" class="outer">'; + $last_game = ''; + $last_group = ''; + while($member = $db->fetchArray($result)) { + if($last_game != $member['game']) { + echo '<tr><td colspan="4"><h3>', $member['game'], '</h3></td></tr>'; + $last_game = $member['game']; + } + if($last_group != $member['xgroup'] || $last_game != $member['game']) { + echo '<tr><td colspan="4"><h4>', $member['xgroup'], '</h4></td></tr>'; + echo '<tr bgcolor="#cccccc"><td> </td><td><strong>', _MD_MEMBERNAME, '</strong></td><td><strong>', _MD_MEMBERTITLE, '</strong></td><td> </td></tr>'; + $last_group = $member['xgroup']; + } + echo '<tr bgcolor="#eeeeee"><td><a href="?op=members_edit&action=edit&id=', $member['id'], '">', _MD_EDIT, '</a></td> + <td>', $member['membername'], '</td> + <td>', $member['title'], '</td> + <td><a href="?op=members_delete&action=confirm&id=', $member['id'], '">', _MD_DELETE, '</a> + | <a href="?op=members_approve&action=approve&id=', $member['id'], '&subaction=', $member['member'] ? '0' : '1', '">', !$member['member'] ? _MD_APPROVE : _MD_DISAPPROVE, '</a>', + '</td></tr>'; + } + echo '</table>'; + } else + echo '<p align="center">', $op == 0 ? _MD_NOAPPLICANTS : _MD_NOMEMBERS, '</p>'; +} -// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALACTIVE. "</infolabel>", $totalActivePartners, 'Green'); -// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALNONACTIVE. "</infolabel>", $totalNonActivePartners, 'Red'); -// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALPARTNERS. "</infolabel><infotext>", $totalPartners."</infotext>"); -//---------------------------- +function Members_Delete($id){ + $result = xRoster_Query('DELETE FROM {xRoster} WHERE id=%u', $id); + redirect_header('index.php?op=members_list', 1, _MD_MEMBERDELETED); +} -echo $indexAdmin->addNavigation('index.php'); -echo $indexAdmin->renderIndex(); +function Members_Approve($id, $action = 1){ + $action = (int)$action ? 1 : 0; + $result = xRoster_Query('UPDATE {xRoster} SET member=%u, since=%u WHERE id=%u', $action, time(), $id); + redirect_header('index.php?op=members_list', 1, _MD_MEMBERUPDATED); +} -include 'admin_footer.php'; -//xoops_cp_footer(); \ No newline at end of file +function Group_Editor($g_action = '', $id = 0) { + $db =& Database::getInstance(); + switch($g_action) { + case 'delete': + $result = xRoster_Query('SELECT count(*) AS c FROM {xRoster} WHERE gid=%u', $id); + $row = $db->fetchArray($result); + if($row['c'] == 0) + $result = xRoster_Query('DELETE FROM {xRoster_groups} WHERE id=%u', $id); + else + printf('<br><br>' . _MD_CANTDELETEGROUP, $row['c']); + redirect_header('index.php?op=Group_Editor', 1, _MD_GROUPDELETED); + break; + case 'insert': + $sql = 'INSERT INTO {xRoster_groups} (name, weight) VALUES (%s, %u)'; + case 'update': + $name = xRoster_PostVar('name'); + $weight = xRoster_PostVar('weight'); + if(!isset($sql)) + $result = xRoster_Query('UPDATE {xRoster_groups} SET name=%s, weight=%u WHERE ID=%u', $name, $weight, $id); + else + $result = xRoster_Query($sql, $name, $weight); + redirect_header('index.php?op=Group_Editor', 1, _MD_GROUPUPDATED); + break; + case 'edit': + $form_params = array('id'=>$id, 'g_action'=>'update', 'btn_label'=>_MD_UPDATE); + $result = xRoster_Query('SELECT * FROM {xRoster_groups} WHERE id=%u', $id); + if($row = $db->fetchArray($result)) { + $name = $row['name']; + $weight = $row['weight']; + } + case 'add': + if(!isset($form_params)) + $form_params = array('id'=>0, 'g_action'=>'insert', 'btn_label'=>_MD_INSERT); + echo '<form method="post">'; + if($form_params['id']) + echo '<input type="hidden" name="id" value="', $form_params['id'], '">'; + echo '<input type="hidden" name="g_action" value="', $form_params['g_action'], '"> + <table cellspacing="0" cellpadding="8" class="outer"> + <tr><td>', _MD_GROUPNAME, '</td><td><input type="text" name="name" value="', $name, '"></td></tr> + <tr><td>', _MD_WEIGHT, '</td><td><input type="text" name="weight" value="', $weight, '" size="4" maxlength="3"></td></tr> + <tr><td> </td><td><input type="submit" value="', $form_params['btn_label'], '"></td></tr> + </table><form>'; + break; + default: + $result = xRoster_Query('SELECT * FROM {xRoster_groups} ORDER BY weight, name'); + if($db->getRowsNum($result)) { + echo '<table cellspacing="0" cellpadding="8" class="outer" bgcolor="#eeeeee">'; + while($row = $db->fetchArray($result)) { + echo '<tr><td><a href="?op=Group_Editor&g_action=edit&id=', $row['id'], '">', _MD_EDIT, '</a></td> + <td>', $row['name'], '</td><td>', $row['weight'], '</td> + <td><a href="?op=Group_Editor&g_action=delete&id=', $row['id'], '">', _MD_DELETE, '</a></td></tr>'; + } + echo '</table>'; + } else + echo '<p align="center">', _MD_NOGROUPS, '</p>'; + break; + } +} + +function Category_Editor($c_action, $id, $name, $weight, $active = 1){ + $db =& Database::getInstance(); + switch($c_action) { + case 'delete': + $result = xRoster_Query('SELECT count(*) as count FROM {xRoster} WHERE cid=%u', $id); + $row = $db->fetchArray($result); + if($row['count'] == 0) { + xRoster_Query('DELETE FROM {xRoster_categories} WHERE ID=%u', $id); + redirect_header('index.php?op=Category_Editor', 1, _MD_CATEGORYDELETED); + } else + printf('<br><br>' . _MD_CANTDELECATEGORY, $row['count']); + break; + case 'update': + $result = xRoster_Query("UPDATE {xRoster_categories} SET name=%s, weight=%u, active=%u WHERE ID=%u", $name, $weight, $active, $id); + redirect_header("index.php?op=Category_Editor", 1, _MD_CATEGORYUPDATED); + break; + case 'insert': + $result = xRoster_Query("INSERT INTO {xRoster_categories} (name, weight, active) VALUES (%s, %u, %u)", $name, $weight, $active); + redirect_header('index.php?op=Category_Editor', 1, _MD_CATEGORYINSERTED); + break; + case 'add': case 'edit': + echo '<p> + <form method="post"> + <input type="hidden" name="c_action" value="', $c_action == 'edit' ? 'update' : 'insert', '">', + $c_action == 'edit' ? '<input type="hidden" name="id" value="' . $id . '">' : '', + '<table cellspacing=0 cellpadding=8 class="outer"> + <tr><td>', _MD_CATEGORYNAME, '</td><td><input type="text" name="name" value="', $name, '"></td></tr> + <tr><td>', _MD_WEIGHT, '</td><td><input type="text" name="weight" value="', $weight, '"></td></tr> + <tr><td>', _MD_ACTIVE, '</td><td>', xRoster_YNDropDown('active', $active), '</td></tr> + <tr><td> </td><td><input type="submit" value="', $c_action == 'edit' ? _MD_UPDATE : _MD_INSERT, '"> + </td></tr> + </table> + <form>'; + break; + default: + $result = xRoster_Query('SELECT id, name, weight, active FROM {xRoster_categories} ORDER BY weight'); + if($db->getRowsNum($result) > 0) { + echo '<p><table cellspacing="0" cellpadding="8" class="outer"> + <tr bgcolor="#cccccc"><td> </td><td>', _MD_CATEGORYNAME, '</td><td>', _MD_WEIGHT, '</td><td>', _MD_ACTIVE, '</td><td> </td></tr>'; + while($row = $db->fetchArray($result)) { + echo '<tr bgcolor="#eeeeee"> + <td><a href="?op=Category_Editor&c_action=edit&id=', $row['id'], '&name=', $row['name'], '&weight=', $row['weight'], '&active=', $row['active'], '">', _MD_EDIT, '</a></td> + <td>', $row['name'], '</td><td>', $row['weight'], '</td> + <td>', $row['active'] ? _YES : _NO, '</td> + <td><a href="?op=Category_Editor&c_action=delete&id=', $row['id'], '">', _MD_DELETE, '</a></td></tr>'; + } + echo '</table>'; + } else + echo '<p align="center">', _MD_NOCATEGORIES, '</p>'; + break; + } +} + +/******************************************************************************/ +/******************************************************************************/ +/******************************************************************************/ + +function Title_Editor($t_action, $id, $name, $weight){ + $db =& Database::getInstance(); + switch($t_action){ + case "delete": + $result = xRoster_Query('SELECT count(*) as count FROM {xRoster} WHERE tid=%u', $id); + $row = $db->fetchArray($result); + if($row['count'] == 0) + xRoster_Query('DELETE FROM {xRoster_titles} WHERE ID=%u', $id); + else + printf('<br><br>' . _MD_CANTDELETETITLE, $row['count']); + redirect_header('index.php?op=Title_Editor', 1, _MD_TITLEDELETED); + break; + case "update": + $sql = "UPDATE " . $db->prefix("xRoster_titles") . " SET name='$name',weight=$weight WHERE ID=$id"; + if ( !$result = $db->query($sql) ) { + exit("Error in admin/index.php :: Title_Editor($t_action,$id,$name,$weight)"); + } + redirect_header("index.php?op=Title_Editor", 1, _MD_TITLEUPDATED); + break; + case "insert": + $sql = "INSERT INTO " . $db->prefix("xRoster_titles") . " (name,weight) VALUES ('$name',$weight)"; + if ( !$result = $db->query($sql) ) { + exit("Error in admin/index.php :: Title_Editor($t_action,$id,$name,$weight)"); + } + redirect_header("index.php?op=Title_Editor", 1, _MD_TITLEINSERTED); + break; + case "add": + echo("<p>"); + echo("<form method=post>"); + echo("<input type=\"hidden\" name=\"t_action\" value=\"insert\">"); + echo("<table cellspacing=0 cellpadding=8 class=\"outer\">"); + echo("<tr><td>"._MD_TITLENAME."</td><td><input type=\"text\" name=\"name\" value=\"".$name."\"></td></tr>"); + echo("<tr><td>"._MD_WEIGHT."</td><td><input type=\"text\" name=\"weight\" value=\"".$weight."\"></td></tr>"); + echo("<tr><td> </td><td><input type=\"submit\" value=\""._MD_INSERT."\"></td></tr>"); + echo("</table>"); + echo("<form>"); + break; + case "edit": + echo("<p>"); + echo("<form method=post>"); + echo("<input type=\"hidden\" name=\"id\" value=\"$id\">"); + echo("<input type=\"hidden\" name=\"t_action\" value=\"update\">"); + echo("<table cellspacing=0 cellpadding=8 class=\"outer\">"); + echo("<tr><td>"._MD_TITLENAME."</td><td><input type=\"text\" name=\"name\" value=\"".$name."\"></td></tr>"); + echo("<tr><td>"._MD_WEIGHT."</td><td><input type=\"text\" name=\"weight\" value=\"".$weight."\"></td></tr>"); + echo("<tr><td> </td><td><input type=\"submit\" value=\""._MD_UPDATE."\"></td></tr>"); + echo("</table>"); + echo("<form>"); + break; + case 'default': + xRoster_Query('UPDATE {xRoster_titles} SET isdefault=0 WHERE ID<>%u', $id); + xRoster_Query('UPDATE {xRoster_titles} SET isdefault=1 WHERE ID=%u', $id); + redirect_header('index.php?op=Title_Editor', 1, _MD_TITLEUPDATED); + break; + default: + $result = xRoster_Query('SELECT id, name, weight FROM {xRoster_titles} ORDER BY weight'); + $titles = $titles_assoc = array(); + while($row = $db->fetchArray($result)) { + $titles[] = $row; + $titles_assoc[$row['id']] = $row['name']; + } + if(count($titles) > 0){ + echo("<p><table cellspacing=0 cellpadding=8 class=\"outer\">"); + echo("<tr bgcolor=\"#cccccc\"><td> </td><td>"._MD_TITLENAME."</td><td>"._MD_WEIGHT."</td><td> </td></tr>"); + for($j=0;$j<count($titles);$j++){ + echo("<tr bgcolor=\"#eeeeee\">"); + echo("<td><a href=\"?op=Title_Editor&t_action=edit&id=".$titles[$j]['id']."&name=".$titles[$j]['name']."&weight=".$titles[$j]['weight']."\">"._MD_EDIT."</a></td>"); + echo("<td>".$titles[$j]['name']."</td>"); + echo("<td>".$titles[$j]['weight']."</td>"); + echo("<td><a href=\"?op=Title_Editor&t_action=delete&id=".$titles[$j]['id']."\">"._MD_DELETE."</a></td>"); + echo("</tr>"); + } + echo("</table>"); + // Default title + echo '<form method="post"><input type="hidden" name="t_action" value="default">', + _MD_DEFAULTTITLE, ':', xRoster_DropDown('id', $titles_assoc, xRoster_DefaultTitle(), true, null), + ' <input type="submit" value=">>"></form>'; + } else { + echo("<p align=\"center\">"._MD_NOTITLES."</p>"); + } + break; + } +} + +/************************************** + * Main - Admin SwitchBox + *************************************/ + +if(!ini_get('register_globals')) { // hotfix for register_globals=off + extract($_GET); + extract($_POST); +} + +xRoster_AdminHeader(); + +$op = isset($_POST['op']) ? $_POST['op'] : (isset($_GET['op']) ? $_GET['op'] : 'xRosterConfig'); +switch($op) { + case 'Title_Editor': Title_Editor($t_action, $id, $name, $weight); break; + case 'Category_Editor': + Category_Editor($c_action, $id, $name, $weight, !isset($_REQUEST['active']) || (bool)$_REQUEST['active'] ? 1 : 0); + break; + case 'Group_Editor': + $g_action = isset($_REQUEST['g_action']) ? $_REQUEST['g_action'] : ''; + $id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0; + Group_Editor($g_action, $id); + break; + case 'members_approve': + if(@$_GET['action']=='approve' && (int)@$_GET['id']) + Members_Approve($_GET['id'], isset($_GET['subaction']) ? (int)$_GET['subaction'] : 1); + else + Members_List(0); + break; + case 'members_list': Members_List(1); break; + case 'members_add': $id = 0; + case 'members_edit': Members_Edit($id); break; + case 'members_update': + $realname = xRoster_PostVar('realname'); + $membername = xRoster_PostVar('membername'); + $email = xRoster_PostVar('email'); + $age = (int)xRoster_PostVar('age'); + $gid = (int)xRoster_PostVar('gid'); + $cid = (int)xRoster_PostVar('cid'); + $location = xRoster_PostVar('location'); + $connection = xRoster_PostVar('connection'); + $ahours = xRoster_PostVar('ahours'); + $pweapon = xRoster_PostVar('pweapon'); + $sweapon = xRoster_PostVar('sweapon'); + $clan_before = (int)xRoster_PostVar('clan_before'); + $why_play = xRoster_PostVar('why_play'); + $skills_talents = xRoster_PostVar('skills_talents'); + $additional_comments = xRoster_PostVar('additional_comments'); + $tid = (int)xRoster_PostVar('tid'); + $picture = xRoster_PostVar('picture'); + $sitename = xRoster_PostVar('sitename'); + $siteurl = xRoster_PostVar('siteurl'); + $impref = xRoster_PostVar('impref'); + $imid = xRoster_PostVar('imid'); + $additional_info = xRoster_PostVar('additional_info'); + $member = (int)xRoster_PostVar('member', 0); + $id = (int)xRoster_PostVar('id', 0); + if($id) { + //Todo: when I update, if the user was member=0, and it's approved (member=1), I should update the "since" field to time() + $result = xRoster_Query('UPDATE {xRoster} SET realname=%s, membername=%s, email=%s, age=%d, gid=%d, cid=%d, location=%s, connection=%s, ahours=%s, pweapon=%s, + sweapon=%s, clan_before=%d, why_play=%s, skills_talents=%s, additional_comments=%s, tid=%d, picture=%s, sitename=%s, siteurl=%s, impref=%s, imid=%s, additional_info=%s, member=%d WHERE id = %d', + $realname, $membername, $email, $age, $gid, $cid, $location, $connection, $ahours, $pweapon, $sweapon, $clan_before, $why_play, $skills_talents, $additional_comments, $tid, $picture, $sitename, $siteurl, $impref, $imid, $additional_info, $member, $id); + redirect_header($member ? 'index.php?op=members_list' : 'index.php?op=members_approve', 1, _MD_MEMBERUPDATED); + } else { + $result = xRoster_Query('INSERT INTO {xRoster} + (realname, membername, email, age, gid, cid, location, connection, ahours, pweapon, sweapon, clan_before, why_play, skills_talents, additional_comments, tid, picture, sitename, siteurl, impref, imid, additional_info, member, since) + VALUES (%s, %s, %s, %d, %d, %d, %s, %s, %s, %s, %s, %d, %s, %s, %s, %d, %s, %s, %s, %s, %s, %s, %d, %d)', + $realname, $membername, $email, $age, $gid, $cid, $location, $connection, $ahours, $pweapon, $sweapon, $clan_before, $why_play, $skills_talents, $additional_comments, $tid, $picture, $sitename, $siteurl, $impref, $imid, $additional_info, $member, time()); + redirect_header('index.php?op=members_list', 1, _MD_MEMBERADDED); + } + break; + case 'members_delete': Members_Delete($id); break; + case 'ConfigUpdate': ConfigUpdate(); break; +} + +xoops_cp_footer(); + +?> \ No newline at end of file Modified: XoopsModules/xroster/branches/redheadedrod/xroster/admin/menu.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/admin/menu.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/admin/menu.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -1,52 +1,16 @@ <?php -defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); +$adminmenu[0]['title'] = _MI_XROSTER_ADMENU1; +$adminmenu[0]['link'] = 'admin/index.php?op=members_add'; +$adminmenu[1]['title'] = _MI_XROSTER_ADMENU2; +$adminmenu[1]['link'] = 'admin/index.php?op=members_approve'; +$adminmenu[2]['title'] = _MI_XROSTER_ADMENU3; +$adminmenu[2]['link'] = 'admin/index.php?op=members_list'; +$adminmenu[3]['title'] = _MI_XROSTER_ADMENU4; +$adminmenu[3]['link'] = 'admin/index.php?op=Status_Editor'; +$adminmenu[4]['title'] = _MI_XROSTER_ADMENU5; +$adminmenu[4]['link'] = 'admin/index.php?op=Title_Editor'; +$adminmenu[5]['title'] = _MI_XROSTER_ADMENU6; +$adminmenu[5]['link'] = 'admin/index.php?op=Category_Editor'; -$dirname = basename(dirname(dirname(__FILE__))); -$module_handler = xoops_gethandler('module'); -$module = $module_handler->getByDirname($dirname); -$pathIcon32 = $module->getInfo('icons32'); - -xoops_loadLanguage('admin', $dirname); -$i = 0; - -// Index -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU0; -$adminmenu[$i]['link'] = "admin/index.php"; -$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; -$i++; - -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU1; -$adminmenu[$i]['link'] = 'admin/main.php?op=members_add'; -$adminmenu[$i]["icon"] = $pathIcon32.'/add.png'; - -$i++; -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU2; -$adminmenu[$i]['link'] = 'admin/main.php?op=members_approve'; -$adminmenu[$i]["icon"] = $pathIcon32.'/button_ok.png'; - -$i++; -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU3; -$adminmenu[$i]['link'] = 'admin/main.php?op=members_list'; -$adminmenu[$i]["icon"] = $pathIcon32.'/search.png'; - -$i++; -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU4; -$adminmenu[$i]['link'] = 'admin/main.php?op=Group_Editor'; -$adminmenu[$i]["icon"] = $pathIcon32.'/users.png'; - -$i++; -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU5; -$adminmenu[$i]['link'] = 'admin/main.php?op=Title_Editor'; -$adminmenu[$i]["icon"] = $pathIcon32.'/manage.png'; - -$i++; -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU6; -$adminmenu[$i]['link'] = 'admin/main.php?op=Category_Editor'; -$adminmenu[$i]["icon"] = $pathIcon32.'/category.png'; - -$i++; -$adminmenu[$i]['title'] = _MI_XROSTER_ADMENU7; -$adminmenu[$i]['link'] = "admin/about.php"; -$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; - +?> \ No newline at end of file Modified: XoopsModules/xroster/branches/redheadedrod/xroster/blocks/xroster_blocks.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/blocks/xroster_blocks.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/blocks/xroster_blocks.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -2,7 +2,7 @@ function b_xroster_newestmember_show() { $block = array(); - $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection(); + $xoopsDB =& Database::getInstance(); $result = $xoopsDB->query('SELECT id, membername FROM ' . $xoopsDB->prefix('xRoster') . ' WHERE member=1 ORDER BY since DESC LIMIT 10'); while($row = $xoopsDB->fetchArray($result)) $block[] = $row; Modified: XoopsModules/xroster/branches/redheadedrod/xroster/common.inc.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/common.inc.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/common.inc.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -24,7 +24,7 @@ function xRoster_PostVar($k, $defval = null) { static $db = false, $myts = false; - if(!$db) $db =& XoopsDatabaseFactory::getDatabaseConnection(); + if(!$db) $db =& Database::getInstance(); if(!$myts) $myts =& MyTextSanitizer::getInstance(); return isset($_POST[$k]) ? $myts->stripSlashesGPC($_POST[$k]) : $defval; } @@ -32,7 +32,7 @@ function &xRoster_Query($sql) { global $xoopsModule; static $db = false; - if(!$db) $db =& XoopsDatabaseFactory::getDatabaseConnection(); + if(!$db) $db =& Database::getInstance(); foreach($xoopsModule->getInfo('tables') as $table) if(strpos($sql, '{' . $table . '}')) $sql = str_replace('{' . $table . '}', $db->prefix($table), $sql); @@ -94,7 +94,7 @@ } function xRoster_SQLDropDown($sql, $name, $value = '', $empty_option = null) { - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db =& Database::getInstance(); $result = xRoster_Query($sql); $option = array(); while($row = $db->fetchArray($result)) { @@ -110,7 +110,7 @@ function xRoster_DefaultTitle() { static $ret = null; if($ret === null) { - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db =& Database::getInstance(); $result = $db->query('SELECT id FROM ' . $db->prefix('xRoster_titles') . ' WHERE isdefault = 1'); if($row = $db->fetchArray($result)) { $ret = $row['id']; Modified: XoopsModules/xroster/branches/redheadedrod/xroster/index.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/index.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/index.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -39,7 +39,7 @@ function submit_application($realname, $membername, $email, $age, $impref, $imid, $cid, $location, $speed, $ahours, $pweapon, $sweapon, $clan_before, $why_play, $skills_talents, $additional) { global $xoopsModuleConfig, $xoopsConfig; - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db =& Database::getInstance(); $myts =& MyTextSanitizer::getInstance(); // quote parameters $parameters = array('realname', 'membername', 'email', 'age', 'impref', 'imid', 'cid', 'location', 'speed', 'ahours', 'pweapon', 'sweapon', 'clan_before', 'why_play', 'skills_talents', 'additional'); @@ -112,7 +112,7 @@ case 'View': function getMember($id) { - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db =& Database::getInstance(); $rs = xRoster_Query('SELECT m.*, t.name AS title, g.name AS xgroup, c.name AS game FROM {xRoster} m INNER JOIN {xRoster_titles} t ON m.tid = t.id INNER JOIN {xRoster_groups} g ON m.gid = g.id @@ -132,7 +132,7 @@ default: function getMembers() { - $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $db =& Database::getInstance(); $rs = xRoster_Query('SELECT m.id, m.membername, m.since, t.name AS title, g.name AS xgroup, c.name AS game FROM {xRoster} m INNER JOIN {xRoster_titles} t ON m.tid = t.id INNER JOIN {xRoster_groups} g ON m.gid = g.id Modified: XoopsModules/xroster/branches/redheadedrod/xroster/language/english/main.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/language/english/main.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/language/english/main.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -102,7 +102,7 @@ 'lang_whyplay'=>'Why do you want to be part of a clan?', 'lang_skillstalents'=>'What skill, or talent will you bring to the clan?', 'lang_additional'=>'Any additional comments or things we should know?', - 'lang_tag'=>'Are you willing to wear the <u>' . $GLOBALS['xoopsConfig']['sitename'] . '</u> tag at all times?', + 'lang_tag'=>'Are you willing to wear the <u>' . $xoopsConfig['sitename'] . '</u> tag at all times?', 'lang_submit'=>'Submit Application', ); @@ -115,9 +115,6 @@ define('_MD_AMSG_ERROR_STOVR', 'Please Start Over.'); define('_MD_AMSG_APPLIED', 'Thank your for applying. We will review your application and let you know.'); -define('_MD_ACTIONS', 'Actions'); - - global $lang_array_view; $lang_array_view = array( 'lang_title'=>'Title', @@ -137,4 +134,6 @@ 'lang_skillstalents'=>'Skills and Talents', 'lang_whyplay'=>'I want to be part of a clan because', 'lang_since'=>'Member Since', -); \ No newline at end of file +); + +?> \ No newline at end of file Modified: XoopsModules/xroster/branches/redheadedrod/xroster/language/english/modinfo.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/language/english/modinfo.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/language/english/modinfo.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -14,13 +14,11 @@ define('_MD_XROSTER_MODDESC', 'Simple application and roster page for people to be listed who are in your club / group, etc'); define('_MD_XROSTER_AGREEMENT', 'Please note that by applying does not mean you\'re application will be accepted. You\'ll be contacted via email to arrange a trial date and time where a few members of the Clan can come and see how you do. Only after this trial period will you be notified if you\'ve been allowed in to the clan. Skill alone does not determine admittance, as attitude plays a big part in the decision as well. If for some reason you have not received a reply to your application within two days, please <a href="/modules/contact/">send an email</a> and let us know.'); define('_MD_XROSTER_AGREEMENT2', 'By filling out this form you agree that you have read, and are aware of, the code of conduct as stated here.'); -define('_MI_XROSTER_ADMENU0', 'Home'); define('_MI_XROSTER_ADMENU1', 'Add New Member'); define('_MI_XROSTER_ADMENU2', 'Approve New Members'); define('_MI_XROSTER_ADMENU3', 'View Members List'); define('_MI_XROSTER_ADMENU4', 'Group Editor'); define('_MI_XROSTER_ADMENU5', 'Title Editor'); define('_MI_XROSTER_ADMENU6', 'Category Editor'); -define('_MI_XROSTER_ADMENU7', 'About'); ?> \ No newline at end of file Modified: XoopsModules/xroster/branches/redheadedrod/xroster/xoops_version.php =================================================================== --- XoopsModules/xroster/branches/redheadedrod/xroster/xoops_version.php 2012-03-30 14:31:56 UTC (rev 9215) +++ XoopsModules/xroster/branches/redheadedrod/xroster/xoops_version.php 2012-03-31 15:45:37 UTC (rev 9216) @@ -1,36 +1,17 @@ <?php $modversion['name'] = 'xRoster'; -$modversion['version'] = '2.3.0'; +$modversion['version'] = '2.2.3'; $modversion['description'] = _MD_XROSTER_MODDESC; $modversion['credits'] = 'SOE Gamers'; $modversion['author'] = 'SOE Gamers'; -$modversion['help'] = 'page=help'; -$modversion['license'] = 'GNU GPL 2.0'; -$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; +$modversion['help'] = 'xRoster_help.html'; +$modversion['license'] = 'GPL'; $modversion['official'] = 0; $modversion['image'] = 'xroster.png'; $modversion['dirname'] = 'xroster'; $modversion['website'] = 'www.soegamers.com'; $modversion['email'] = 'chu...@so...'; - -$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; -$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; -$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; - -//about -$modversion["module_website_url"] = "http://www.xoops.org/"; -$modversion["module_website_name"] = "XOOPS"; -$modversion["release_date"] = "2011/11/25"; -$modversion["module_status"] = "Beta"; -$modversion["author_website_url"] = "http://www.xoops.org/"; -$modversion["author_website_name"] = "XOOPS"; -$modversion['min_php']='5.2'; -$modversion['min_xoops']='2.5'; -$modversion['min_admin']='1.1'; -$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); - - // Admin things $modversion['hasAdmin'] = 1; $modversion['adminindex'] = 'admin/index.php'; @@ -38,7 +19,6 @@ // Menu $modversion['hasMain'] = 1; -$modversion['system_menu'] = 1; global $xoopsModule; if ($xoopsModule && $xoopsModule->getVar('dirname') == $modversion['dirname']) { global $xoopsModuleConfig; Modified: XoopsModules/xroster/branches/redheadedrod/xroster/xroster.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-30 14:32:11
|
Revision: 9215 http://xoops.svn.sourceforge.net/xoops/?rev=9215&view=rev Author: wishcraft Date: 2012-03-30 14:31:56 +0000 (Fri, 30 Mar 2012) Log Message: ----------- Karioki Song List 1.10 - complete third release - production - All Listed bugs by the client fixed. Modified Paths: -------------- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectcategory.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/trunk/htdocs/modules/songlist/search.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php Added Paths: ----------- XoopsModules/songlist/releases/1.10/ XoopsModules/songlist/releases/1.10/docs/ XoopsModules/songlist/releases/1.10/docs/.htaccess XoopsModules/songlist/releases/1.10/htdocs/ XoopsModules/songlist/releases/1.10/htdocs/modules/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/about.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/albums.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/artists.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/category.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/dashboard.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/export.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field_permissions.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field_visibility.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/genre.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/menu.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/permissions.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/requests.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/utf8map.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/votes.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/albums.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/artists.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_album.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_albums.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_artist.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_artists.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_genre.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_genres.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_song.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/blocks/songlist_popular_songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/category.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/extras.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/field.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/utf8map.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/visibility.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/votes.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/SonglistRequirement.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/changelog.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/credits.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/install.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/lang_diff.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/licence.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/docs/readme.txt XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/header.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/accept.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/cancel.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/no.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.albums.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.artists.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.category.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.field.permissions.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.fields.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.genre.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.import.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.permissions.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.requests.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.songs.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.utf8map.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/songlist.votes.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/16/yes.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.albums.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.artists.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.category.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.field.permissions.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.fields.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.genre.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.import.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.permissions.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.requests.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.songs.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.utf8map.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/32/songlist.votes.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/icons/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/left_both.gif XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/right_both.gif XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/songlist_slogo.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/images/xoopsxf_slogo.png XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/JSON.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/formselectcategory.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/formselectsinger.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/songlist.object.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/uploader.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/index.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/js/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/js/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/blocks.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/email.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/enum.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/mail_templates/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/mail_templates/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/mail_templates/songlist_request_created.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/mail_templates/songlist_request_updated.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/request.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/search.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/sql/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/sql/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/sql/mysql.htm XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_albums_index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_alpha_browse.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_artists_index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_category_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_albums_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_albums_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_artists_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_artists_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_category_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_category_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_fieldlist.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_genre_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_genre_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_import_actiona.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_import_actionb.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_requests_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_requests_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_songs_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_visibility.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_votes_edit.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_votes_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_requests_index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_search_index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_search_search.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_index.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/releases/1.10/htdocs/modules/tag/ XoopsModules/songlist/releases/1.10/htdocs/modules/tag/plugin/ XoopsModules/songlist/releases/1.10/htdocs/modules/tag/plugin/songlist.php XoopsModules/songlist/releases/1.10/htdocs/uploads/ XoopsModules/songlist/releases/1.10/htdocs/uploads/songlist/ Added: XoopsModules/songlist/releases/1.10/docs/.htaccess =================================================================== --- XoopsModules/songlist/releases/1.10/docs/.htaccess (rev 0) +++ XoopsModules/songlist/releases/1.10/docs/.htaccess 2012-03-30 14:31:56 UTC (rev 9215) @@ -0,0 +1,10 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+)-(.*?)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$4&fct=$5&id=$6&value=$7&gid=$8&cid=$9 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+)-(.*?)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&id=$5&value=$6&gid=$7&cid=$7 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-(.*?)-([0-9]+)-([0-9]+)-(.*?).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&value=$5&gid=$6&cid=$7&singer=$8 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$2&fct=$3&id=$4 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+).html modules/songlist/$1.php?op=$2&fct=$3 [L,NC,QSA] Added: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/about.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/about.php (rev 0) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/about.php 2012-03-30 14:31:56 UTC (rev 9215) @@ -0,0 +1,77 @@ +<?php +// $Id: about.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + $aboutAdmin = new ModuleAdmin(); + $paypalitemno='SONGLIST'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_SONGLIST_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['songlistModule']->getVar('dirname')), strtoupper($GLOBALS['songlistModule']->getVar('dirname')). ' '.$GLOBALS['songlistModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + + xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/albums.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/albums.php (rev 0) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/albums.php 2012-03-30 14:31:56 UTC (rev 9215) @@ -0,0 +1,184 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"albums"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + default: + case "albums": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + + $criteria = $albums_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $albums_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($albums_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $albums_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $albumss = $albums_handler->getObjects($criteria, true); + foreach($albumss as $cid => $albums) { + if (is_object($albums)) + $GLOBALS['xoopsTpl']->append('albums', $albums->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_albums_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_albums_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + if (isset($_REQUEST['id'])) { + $albums = $albums_handler->get(intval($_REQUEST['id'])); + } else { + $albums = $albums_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $albums->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_albums_edit.html'); + break; + case "save": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $albums = $albums_handler->get($id); + } else { + $albums = $albums_handler->create(); + } + $albums->setVars($_POST[$id]); + + if (!$id=$albums_handler->insert($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTOSAVE); + exit(0); + } else { + + if (isset($_FILES['image'])&&!empty($_FILES['image']['title'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $albums = $albums_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), explode('|', $GLOBALS['songlistModuleConfig']['allowed_mimetype']), $GLOBALS['songlistModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['songlistModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($albums->getVar('image'))) + unlink($GLOBALS['xoops']->path($albums->getVar('path')).$albums->getVar('image')); + + $albums->setVar('path', $GLOBALS['songlistModuleConfig']['upload_areas']); + $albums->setVar('image', $uploader->getSavedFileName()); + @$albums_handler->insert($albums); + + } + } else { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $albums = $albums_handler->get($id); + $albums->setVars($_POST[$id]); + if (!$albums_handler->insert($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $albums = $albums_handler->get($id); + if (!$albums_handler->delete($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_DELETED); + exit(0); + } + } else { + $albums = $albums_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_ALBUMS_DELETE, $albums->getVar('title'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/artists.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/artists.php (rev 0) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/artists.php 2012-03-30 14:31:56 UTC (rev 9215) @@ -0,0 +1,140 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"artists"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + default: + case "artists": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + + $criteria = $artists_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $artists_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($artists_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $artists_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $artists = $artists_handler->getObjects($criteria, true); + foreach($artists as $cid => $artist) { + if (is_object($artist)) + $GLOBALS['xoopsTpl']->append('artists', $artist->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_artists_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_artists_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + if (isset($_REQUEST['id'])) { + $artists = $artists_handler->get(intval($_REQUEST['id'])); + } else { + $artists = $artists_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $artists->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_artists_edit.html'); + break; + case "save": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $artists = $artists_handler->get($id); + } else { + $artists = $artists_handler->create(); + } + $artists->setVars($_POST[$id]); + + if (!$id=$artists_handler->insert($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTOSAVE); + exit(0); + } else { + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $artists = $artists_handler->get($id); + $artists->setVars($_POST[$id]); + if (!$artists_handler->insert($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $artists = $artists_handler->get($id); + if (!$artists_handler->delete($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_DELETED); + exit(0); + } + } else { + $artists = $artists_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_ARTISTS_DELETE, $artists->getVar('name'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/category.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/category.php (rev 0) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/category.php 2012-03-30 14:31:56 UTC (rev 9215) @@ -0,0 +1,184 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"category"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + default: + case "category": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + + $criteria = $category_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $category_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($category_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $category_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $categorys = $category_handler->getObjects($criteria, true); + foreach($categorys as $cid => $category) { + if (is_object($category)) + $GLOBALS['xoopsTpl']->append('categories', $category->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_category_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_category_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + if (isset($_REQUEST['id'])) { + $category = $category_handler->get(intval($_REQUEST['id'])); + } else { + $category = $category_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $category->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_category_edit.html'); + break; + case "save": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $category = $category_handler->get($id); + } else { + $category = $category_handler->create(); + } + $category->setVars($_POST[$id]); + + if (!$id=$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } else { + + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $category = $category_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), explode('|', $GLOBALS['songlistModuleConfig']['allowed_mimetype']), $GLOBALS['songlistModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['songlistModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($category->getVar('image'))) + unlink($GLOBALS['xoops']->path($category->getVar('path')).$category->getVar('image')); + + $category->setVar('path', $GLOBALS['songlistModuleConfig']['upload_areas']); + $category->setVar('image', $uploader->getSavedFileName()); + @$category_handler->insert($category); + + } + } else { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $category = $category_handler->get($id); + $category->setVars($_POST[$id]); + if (!$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + exit(0); + break; + case "delete": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $category = $category_handler->get($id); + if (!$category_handler->delete($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_DELETED); + exit(0); + } + } else { + $category = $category_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_CATEGORY_DELETE, $category->getVar('name'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/dashboard.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/dashboard.php (rev 0) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/dashboard.php 2012-03-30 14:31:56 UTC (rev 9215) @@ -0,0 +1,70 @@ +<?php +// $Id: directory.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = (!empty($_GET['op']) ? $_GET['op'] : (!empty($_POST['op']) ? $_POST['op'] : "default")); + + switch ($op) { + case "default": + default: + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $indexAdmin = new ModuleAdmin(); + + $category_handler = xoops_getmodulehandler('category', 'songlist'); + $artists_handler = xoops_getmodulehandler('artists', 'songlist'); + $albums_handler = xoops_getmodulehandler('albums', 'songlist'); + $genre_handler = xoops_getmodulehandler('genre', 'songlist'); + $songs_handler = xoops_getmodulehandler('songs', 'songlist'); + $requests_handler = xoops_getmodulehandler('requests', 'songlist'); + $votes_handler = xoops_getmodulehandler('votes', 'songlist'); + + $indexAdmin->addInfoBox(_AM_SONGLIST_COUNT); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_CATEGORY."</label>", $category_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_ARTISTS."</label>", $artists_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_ALBUMS."</label>", $albums_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_GENRE."</label>", $genre_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_SONGS."</label>", $songs_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_REQUESTS."</label>", $requests_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_VOTES."</label>", $votes_handler->getCount(NULL, true), 'green'); + echo $indexAdmin->renderIndex(); + + xoops_cp_footer(); + break; + } + +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/export.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/export.php (rev 0) +++ XoopsModules/songlist/releases/1... [truncated message content] |
From: <txm...@us...> - 2012-03-29 23:02:32
|
Revision: 9214 http://xoops.svn.sourceforge.net/xoops/?rev=9214&view=rev Author: txmodxoops Date: 2012-03-29 23:02:22 +0000 (Thu, 29 Mar 2012) Log Message: ----------- Updated Beta 2 trunk Modified Paths: -------------- XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_languages.php XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_layout.php XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_themes.php XoopsModules/xThCreator/trunk/xThCreator/css/admin.css XoopsModules/xThCreator/trunk/xThCreator/css/style.css XoopsModules/xThCreator/trunk/xThCreator/docs/changelog.txt XoopsModules/xThCreator/trunk/xThCreator/include/functions.php XoopsModules/xThCreator/trunk/xThCreator/language/english/admin.php XoopsModules/xThCreator/trunk/xThCreator/language/italian/admin.php XoopsModules/xThCreator/trunk/xThCreator/library/defolders.php XoopsModules/xThCreator/trunk/xThCreator/library/resource/theme.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/metas.html XoopsModules/xThCreator/trunk/xThCreator/library/resource/tpl/scripts.html XoopsModules/xThCreator/trunk/xThCreator/sql/mysql.sql XoopsModules/xThCreator/trunk/xThCreator/xoops_version.php Added Paths: ----------- XoopsModules/xThCreator/trunk/xThCreator/admin/functions.js XoopsModules/xThCreator/trunk/xThCreator/admin/image.x XoopsModules/xThCreator/trunk/xThCreator/admin/load_colors.php XoopsModules/xThCreator/trunk/xThCreator/admin/load_drawing.php XoopsModules/xThCreator/trunk/xThCreator/admin/save_drawing.php XoopsModules/xThCreator/trunk/xThCreator/library/resource/js/ XoopsModules/xThCreator/trunk/xThCreator/library/resource/js/index.html Added: XoopsModules/xThCreator/trunk/xThCreator/admin/functions.js =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/functions.js (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/functions.js 2012-03-29 23:02:22 UTC (rev 9214) @@ -0,0 +1,9 @@ +/** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.01 Mon 2012/03/19 14:23:56 : Timgno Exp $ + * ******************************************************* + */ +eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(z).v(3(){t(i=0;i<w;++i){$("#8").R("<l>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"</l>")}$.E("P.p",3(a){$("#8 1").d(3(b){$(5).7("6-4",a[b])})});e 9="D(0, 0, 0)";$("#h 1").d(3(b){$(5).j("c",3(){9=$(5).7("6-4");$("#s").f("u h 4 r: "+"<m x=\'y: n; A: n; 6-4:"+9+";\'>"+9+"</m>")})});$("#8 1").d(3(b){$(5).j("c",3(){$(5).7("6-4",9)})});$("#B").c(3(){$("#8 1").7("6-4","C")});$("#o").c(3(){e g=F G();e i=0;$("#8 1").d(3(){g[i]=$(5).7("6-4");++i});$.H({I:"J",K:"L.p",M:"N",a:g,O:3(a){$("#q").f("Q k")},S:3(){$("#q").f("T U V W X Y o Z k")}})})});',62,62,'|td|nbsp|function|color|this|background|css|grid|active_color|data|index|click|each|var|html|colorsAsJson|palette||bind|image|tr|span|20px|save|php|debug_message|is|debug_palette_color|for|active|ready|20|style|width|document|height|clear|transparent|rgb|getJSON|new|Object|ajax|type|post|url|save_drawing|dataType|text|success|load_drawing|saved|append|failure|An|error|has|occured|trying|to|the'.split('|'),0,{})) \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/image.x =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/image.x (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/image.x 2012-03-29 23:02:22 UTC (rev 9214) @@ -0,0 +1 @@ +[] \ No newline at end of file Modified: XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/languages.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -92,9 +92,9 @@ { echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> <tr> - <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> - <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_THEME."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> @@ -126,9 +126,9 @@ } else { echo "<table width='100%' cellspacing='1' class='outer'> <tr> - <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> - <th align=\"center\">"._AM_XTHCREATOR_LANG_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_THEME."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> @@ -156,9 +156,13 @@ $obj =& $languagesHandler->get($_REQUEST["lang_id"]); } else { $obj =& $languagesHandler->create(); - } + } + //Id of theme + $themes =& $themesHandler->get($_REQUEST["theme_name"]); + $theme_id = $themes->getVar('theme_id'); + //Form lang_th_name - $obj->setVar("lang_th_name", $_REQUEST["lang_th_name"]); + $obj->setVar("lang_theme", $theme_id); //Form lang_file $obj->setVar("lang_name", $_REQUEST["lang_name"]); //Form lang_file Modified: XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/layout.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -34,27 +34,28 @@ * * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ * **************************************************************************** - */ - + */ include "admin_header.php"; include_once "../include/functions.php"; xoops_cp_header(); global $xoopsModuleConfig, $pathImageIcon; -$op = xThCreator_CleanVars($_REQUEST, 'op', 'list_layout', 'string'); +$op = xThCreator_CleanVars($_REQUEST, 'op', 'list', 'string'); $layoutAdmin = new ModuleAdmin(); switch ($op) { - case "list_layout": + case "list": default: echo $layoutAdmin->addNavigation('layout.php'); $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); echo $layoutAdmin->renderButton(); + // For layout $criteria = new CriteriaCompo(); - $criteria->setSort("layout_id"); - $criteria->setOrder("ASC"); - $numrows = $layoutHandler->getCount(); + $criteria->add(new Criteria('layout_id', 0, '>')); + $criteria->setSort("layout_weight ASC, layout_name"); + $criteria->setOrder("ASC"); + $numrows = $layoutHandler->getCount($criteria); $layout_arr = $layoutHandler->getall($criteria); - + unset($criteria); //Affichage du tableau if ($numrows>0) { @@ -62,7 +63,7 @@ <tr> <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> - <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_THEME."</th> <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> @@ -72,16 +73,18 @@ foreach (array_keys($layout_arr) as $i) { echo "<tr class='".$class."'>"; - $class = ($class == "even") ? "odd" : "even"; - echo "<td align='center'>".$layout_arr[$i]->getVar("layout_name")."</td>"; - - $themes =& $themesHandler->get($layout_arr[$i]->getVar("layout_th_name")); - $title_themes = $themes->getVar("theme_name"); - echo "<td align='center'>".$title_themes."</td>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_id")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_name")."</td>"; + //Name of theme + $themes =& $themesHandler->get($_REQUEST["layout_theme"]); + $theme_name = $themes->getVar('theme_name'); + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_theme")."</td>"; echo "<td align='center'>".$layout_arr[$i]->getVar("layout_description")."</td>"; echo "<td align='center'>".$layout_arr[$i]->getVar("layout_weight")."</td>"; echo "<td align='center' width='10%'> + <a href='layout.php?op=display_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/display.png alt='"._DISPLAY."' title='"._DISPLAY."'></a> <a href='layout.php?op=edit_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> <a href='layout.php?op=delete_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> </td>"; @@ -93,7 +96,7 @@ <tr> <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> - <th align='center'>"._AM_XTHCREATOR_LAYOUT_TH_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_THEME."</th> <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> @@ -104,7 +107,7 @@ case "new_layout": echo $layoutAdmin->addNavigation("layout.php"); - $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list', 'list'); echo $layoutAdmin->renderButton(); $obj =& $layoutHandler->create(); @@ -112,6 +115,36 @@ $form->display(); break; + case "display_layout": + // Define Stylesheet + $xoTheme->addStylesheet( XOOPS_URL . '/modules/xThCreator/css/admin.css' ); + // Define scripts + $xoTheme->addScript('modules/xThCreator/admin/functions.js'); + + echo "<br /> + <p><strong>"._AM_XTHCREATOR_PALETTE."</strong></p><br /> + <p><strong>"._AM_XTHCREATOR_DRAW."</strong></p> + <div id='debug_message'></div> + <div id='debug_palette_color'></div> + <table id='grid' cellspacing='0'></table> + <p><em>"._AM_XTHCREATOR_DEBUG."</em></p> + <table class='outer'><tr><td class='center'> + <table id='palette'> + <tr><td> </td></tr> + <tr>"; + echo "<td style='background-color: rgb(0, 0, 0);' title='rgb(0, 0, 0)'> </td>"; + for($i = 1; $i <= 40; $i++){ + $r = rand(0, 255); $g = rand(0, 255); $b = rand(0, 255); + echo "<td style='background-color: rgb(".$r.", ".$g.", ".$b.");' title='rgb(".$r.", ".$g.", ".$b.")'> </td>"; + } + echo "<td style='background-color: rgb(255, 255, 255);' title='rgb(255, 255, 255)'> </td>"; + echo "</tr> + <tr><td> </td></tr> + </table> + <button id='save'>"._AM_XTHCREATOR_SAVE."</button> + </td></tr></table>"; + break; + case "save_layout": if ( !$GLOBALS["xoopsSecurity"]->check() ) { redirect_header("layout.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); @@ -121,17 +154,17 @@ } else { $obj =& $layoutHandler->create(); } - //Form layout_name - $obj->setVar("layout_name", $_REQUEST["layout_name"]); - //Form layout_th_name - $obj->setVar("layout_th_name", $_REQUEST["layout_th_name"]); - //Form layout_description - $obj->setVar("layout_description", $_REQUEST["layout_description"]); - //Form layout_weight - $obj->setVar("layout_weight", $_REQUEST["layout_weight"]); - + + //Id of theme + $themes =& $themesHandler->get($_REQUEST["theme_name"]); + $theme_id = $themes->getVar('theme_id'); + + $layoutArray = array("layout_name" => $_REQUEST["layout_name"], "layout_theme" => $theme_id, "layout_description" => $_REQUEST["layout_description"], "layout_design" => $_REQUEST["layout_design"], "layout_weight" => $_REQUEST["layout_weight"]); + //Form layout + $obj->setVars($layoutArray); + if ($layoutHandler->insert($obj)) { - redirect_header("layout.php?op=list_layout", 2, _AM_XTHCREATOR_FORMOK); + redirect_header("layout.php?op=list", 2, _AM_XTHCREATOR_FORMOK); } echo $obj->getHtmlErrors(); @@ -142,7 +175,7 @@ case "edit_layout": echo $layoutAdmin->addNavigation("layout.php"); $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); - $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list_layout', 'list'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list', 'list'); echo $layoutAdmin->renderButton(); $obj = $layoutHandler->get($_REQUEST["layout_id"]); $form = $obj->getForm(); @@ -161,7 +194,7 @@ echo $obj->getHtmlErrors(); } } else { - xoops_confirm(array("ok" => 1, "layout_id" => $_REQUEST["layout_id"], "op" => "delete_layout"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("layout"))); + xoops_confirm(array("ok" => 1, "layout_id" => $_REQUEST["layout_id"], "op" => "delete_layout"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("layout_name"))); } break; } Added: XoopsModules/xThCreator/trunk/xThCreator/admin/load_colors.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/load_colors.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/load_colors.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -0,0 +1 @@ +["rgb(119, 119, 119)","rgb(255, 0, 0)","rgb(0, 255, 0)","rgb(0, 0, 255)","rgb(0, 110, 0)","rgb(119, 0, 119)","rgb(200, 255, 100)","rgb(255, 0, 110)","rgb(0, 155, 0)","rgb(70, 100, 55)","rgb(55, 55, 0)","rgb(80, 80, 80)","rgb(200, 255, 100)","rgb(19, 159, 19)","rgb(55, 55, 55)","rgb(20, 90, 200)","rgb(200, 255, 200)","rgb(0, 210, 215)","rgb(55, 255, 40)","rgb(140, 0, 140)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(200, 255, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(200, 255, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 0, 0)","rgba(0, 0, 0, 0)","rgb(200, 255, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 20, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 20, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 110, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(200, 255, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(249, 114, 27)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 110, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 0, 110)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 110, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(70, 70, 250)","rgba(0, 0, 0, 0)","rgb(249, 114, 27)","rgb(0, 110, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 55, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 110, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(255, 0, 110)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 210, 215)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(55, 255, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(55, 255, 40)","rgb(0, 210, 215)","rgb(255, 20, 100)","rgb(255, 55, 40)","rgb(249, 114, 27)","rgb(140, 0, 140)","rgb(55, 255, 40)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 210, 215)","rgb(0, 210, 215)","rgba(0, 0, 0, 0)","rgb(255, 20, 100)","rgba(0, 0, 0, 0)","rgb(140, 0, 140)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgb(0, 210, 215)","rgba(0, 0, 0, 0)","rgb(0, 210, 215)","rgb(255, 20, 100)","rgba(0, 0, 0, 0)","rgb(255, 20, 100)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)","rgba(0, 0, 0, 0)"] \ No newline at end of file Added: XoopsModules/xThCreator/trunk/xThCreator/admin/load_drawing.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/load_drawing.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/load_drawing.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -0,0 +1,42 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +$filename = "image.x"; +if (file_exists($filename)) { + print file_get_contents($filename); +} +?> Added: XoopsModules/xThCreator/trunk/xThCreator/admin/save_drawing.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/save_drawing.php (rev 0) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/save_drawing.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -0,0 +1,58 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +error_reporting(E_ALL); +$filename = "load_colors.php"; +if (is_writable($filename)) { + if (!$handle = fopen($filename, 'a+')) { + echo "Non si riesce ad aprire il file ($filename)"; + exit; + } + if ( isset( $_REQUEST['somecontent'] ) ) { + $somecontent = $_REQUEST['somecontent']; + } + if (fwrite($handle, $somecontent) === false) { + echo "Non si riesce a scrivere nel file ($filename)"; + exit; + } + echo "Riuscito, scritto ($somecontent) nel file ($filename)"; + fclose($handle); +} else { + echo "Il file $filename non \xE8 accessibile"; +} +file_put_contents($filename, json_encode($_POST)); +?> Modified: XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/admin/themes.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -37,11 +37,7 @@ */ include_once("admin_header.php"); xoops_cp_header(); -if (isset($_REQUEST["op"])) { - $op = $_REQUEST["op"]; -} else { - @$op = "default"; -} +$op = xthcreator_CleanVars($_REQUEST, 'op', 'list', 'string'); $themeAdmin = new ModuleAdmin(); switch ($op) { @@ -54,44 +50,34 @@ } else { $obj =& $themesHandler->create(); } - //Form theme_title + //Form theme_title, $obj->setVar("theme_name", $_REQUEST["theme_name"]); //Form theme_version $obj->setVar("theme_version", $_REQUEST["theme_version"]); - //Form theme_img + //Form theme_img "gif|jpeg|pjpeg|png", 104857600 include_once XOOPS_ROOT_PATH."/class/uploader.php"; - $uploaddir_theme_img = XOOPS_ROOT_PATH."/uploads/xthcreator/images/"; - $uploader_theme_img = new XoopsMediaUploader($uploaddir_theme_img, $GLOBALS['xoopsModuleConfig']["theme_img_mimetypes"], $GLOBALS['xoopsModuleConfig']["theme_img_size"], null, null); - - if ($uploader_theme_img->fetchMedia($_POST['xoops_upload_file'][0])) { - $uploader_theme_img->setPrefix("theme_img_") ; - $uploader_theme_img->fetchMedia($_POST['xoops_upload_file'][0]); - if (!$uploader_theme_img->upload()) { - $errors = $uploader_theme_img->getErrors(); + $uploaddir = XOOPS_UPLOAD_URL."/xthcreator/images/"; + $uploader = new XoopsMediaUploader($uploaddir, $GLOBALS['xoopsModuleConfig']["mimetypes"], $GLOBALS['xoopsModuleConfig']["maxsize"], null, null); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + $uploader->setPrefix("theme_img_") ; + $uploader->fetchMedia($_POST['xoops_upload_file'][0]); + if (!$uploader->upload()) { + $errors = $uploader->getErrors(); redirect_header("javascript:history.go(-1)",3, $errors); } else { - $obj->setVar("theme_img", $uploader_theme_img->getSavedFileName()); + $obj->setVar("theme_img", $uploader->getSavedFileName()); } } else { $obj->setVar("theme_img", $_REQUEST["theme_img"]); - } - //Form theme_description - $obj->setVar("theme_description", $_REQUEST["theme_description"]); - //Form theme_author - $obj->setVar("theme_author", $_REQUEST["theme_author"]); - //Form theme_submitter - $obj->setVar("theme_submitter", $_REQUEST["theme_submitter"]); - //Form theme_created - $obj->setVar("theme_created", strtotime($_REQUEST["theme_created"])); - //Form theme_weight - $obj->setVar("theme_weight", $_REQUEST["theme_weight"]); - //Form theme_online + } + $verif_theme_online = ($_REQUEST["theme_online"] == 1) ? "1" : "0"; - $obj->setVar("theme_online", $verif_theme_online); - - + $themeArray = array("theme_description" => $_REQUEST["theme_description"], "theme_author" => $_REQUEST["theme_author"], "theme_submitter" => $_REQUEST["theme_submitter"], "theme_created" => xthcreator_convertDate($_REQUEST["theme_created"]), "theme_weight" => $_REQUEST["theme_weight"], "theme_online" => $verif_theme_online); + //Form theme + $obj->setVars($themeArray); + if ($themesHandler->insert($obj)) { - redirect_header("themes.php?op=show_list_theme", 2, _AM_XTHCREATOR_FORMOK); + redirect_header("themes.php?op=list", 2, _AM_XTHCREATOR_FORMOK); } echo $obj->getHtmlErrors(); @@ -133,13 +119,13 @@ case "add_theme": echo $themeAdmin->addNavigation('themes.php'); - $themeAdmin->addItemButton(_AM_XTHCREATOR_THEMESLIST, 'themes.php?op=default', 'list'); + $themeAdmin->addItemButton(_AM_XTHCREATOR_THEMESLIST, 'themes.php?op=list', 'list'); echo $themeAdmin->renderButton(); $obj =& $themesHandler->create(); $form = $obj->getForm(); break; - case "default": + case "list": default: echo $themeAdmin->addNavigation('themes.php'); $themeAdmin->addItemButton(_AM_XTHCREATOR_NEWTHEMES, 'themes.php?op=add_theme', 'add'); @@ -201,17 +187,17 @@ <th class='center'>"._AM_XTHCREATOR_THEME_ONLINE."</th> <th class='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> </tr>"; - $class = "odd"; - $prefix = "<img src=\"".XOOPS_URL."/modules/xThCreator/images/deco/arrow.gif\">"; - foreach (array_keys($themes_arr) as $i) - { - echo "<tr class='".$class."'>"; + $class = "odd"; + $prefix = "<img src=\"".XOOPS_URL."/modules/xThCreator/images/deco/arrow.gif\">"; + foreach (array_keys($themes_arr) as $i) + { + echo "<tr class='".$class."'>"; $class = ($class == "even") ? "odd" : "even"; $theme_id = $themes_arr[$i]->getVar("theme_id"); echo "<td class='center'>".$theme_id."</td>"; echo "<td class='center'>".$themes_arr[$i]->getVar("theme_name")."</td>"; echo "<td class='center'>".$themes_arr[$i]->getVar("theme_version")."</td>"; - echo "<td class='center'><img src='".XOOPS_UPLOAD_URL."/xThCreator/images/".$themes_arr[$i]->getVar("theme_img")."' height='30px' title='theme_img' alt='theme_img'></td>"; + echo "<td class='center'><img src='".XOOPS_UPLOAD_URL."/xthcreator/images/".$themes_arr[$i]->getVar("theme_img")."' height='30px' title='theme_img' alt='theme_img'></td>"; echo "<td class='center'>".$themes_arr[$i]->getVar("theme_description")."</td>"; echo "<td class='center'>".$themes_arr[$i]->getVar("theme_author")."</td>"; echo "<td class='center'>".XoopsUser::getUnameFromId($themes_arr[$i]->getVar("theme_submitter"),"S")."</td>"; Modified: XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_languages.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_languages.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_languages.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -44,8 +44,10 @@ //Constructor function __construct() { - $this->XoopsObject();$this->initVar("lang_id", XOBJ_DTYPE_INT, null, false, 8); - $this->initVar("lang_th_name", XOBJ_DTYPE_INT, null, false, 5); + $this->XoopsObject(); + $this->initVar("lang_id", XOBJ_DTYPE_INT, null, false, 8); + $this->initVar("lang_name", XOBJ_DTYPE_INT, null, false, 5); + $this->initVar("lang_theme", XOBJ_DTYPE_INT, null, false, 5); $this->initVar("lang_file", XOBJ_DTYPE_TXTBOX, null, false, 255); $this->initVar("lang_define", XOBJ_DTYPE_TXTBOX, null, false, 255); $this->initVar("lang_descript", XOBJ_DTYPE_TXTBOX, null, false, 255); @@ -65,16 +67,16 @@ $title = $this->isNew() ? sprintf(_AM_XTHCREATOR_LANG_ADD) : sprintf(_AM_XTHCREATOR_LANG_EDIT); include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); - $form = new XoopsThemeForm($title, "form", $action, "post", true); - $form->setExtra('enctype="multipart/form-data"'); + $form->setExtra('enctype="multipart/form-data"'); + $form->addElement(new XoopsFormText(_AM_XTHCREATOR_LANG_NAME, "lang_name", 50, 255, $this->getVar("lang_name")), true); + $themesHandler =& xoops_getModuleHandler('xthcreator_themes', 'xThCreator'); - $themes_select = new XoopsFormSelect(_AM_XTHCREATOR_LAYOUT_TH_NAME, 'theme_name', $this->getVar('theme_name')); + $themes_select = new XoopsFormSelect(_AM_XTHCREATOR_LANG_THEME, 'theme_name', $this->getVar('theme_name')); $themes_select->addOptionArray($themesHandler->getList()); - $form->addElement($themes_select, true); + $form->addElement($themes_select, true); - $form->addElement(new XoopsFormText(_AM_XTHCREATOR_LANG_NAME, "lang_name", 50, 255, $this->getVar("lang_name")), true); $form->addElement(new XoopsFormText(_AM_XTHCREATOR_LANG_FILE, "lang_file", 50, 255, $this->getVar("lang_file")), true); $form->addElement(new XoopsFormText(_AM_XTHCREATOR_LANG_DEFINE, "lang_define", 100, 255, $this->getVar("lang_define")), true); $form->addElement(new XoopsFormTextArea(_AM_XTHCREATOR_LANG_DESCRIPT, "lang_descript", $this->getVar("lang_descript"), 4, 60), true); Modified: XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_layout.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_layout.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_layout.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -46,9 +46,10 @@ { $this->XoopsObject(); $this->initVar("layout_id", XOBJ_DTYPE_INT, null, false, 8); - $this->initVar("layout_name", XOBJ_DTYPE_TXTBOX, null, false, 255); - $this->initVar("layout_th_name", XOBJ_DTYPE_INT, null, false, 5); + $this->initVar("layout_theme", XOBJ_DTYPE_INT, null, false, 5); + $this->initVar("layout_name", XOBJ_DTYPE_TXTBOX, null, false, 255); $this->initVar("layout_description", XOBJ_DTYPE_TXTAREA, null, false); + $this->initVar("layout_design", XOBJ_DTYPE_TXTAREA, null, false); $this->initVar("layout_weight", XOBJ_DTYPE_INT, null, false, 11); } @@ -73,19 +74,22 @@ $form->addElement(new XoopsFormText(_AM_XTHCREATOR_LAYOUT_NAME, "layout_name", 50, 255, $this->getVar("layout_name")), true); $themesHandler =& xoops_getModuleHandler('xthcreator_themes', 'xThCreator'); - $themes_select = new XoopsFormSelect(_AM_XTHCREATOR_LAYOUT_TH_NAME, 'theme_name', $this->getVar('theme_name')); + $themes_select = new XoopsFormSelect(_AM_XTHCREATOR_LAYOUT_THEME, 'theme_name', $this->getVar('theme_name')); $themes_select->addOptionArray($themesHandler->getList()); $form->addElement($themes_select, true); + // layout_description + $form->addElement( new XoopsFormTextArea(_AM_XTHCREATOR_LAYOUT_DESCRIPTION, "theme_description", $this->getVar("theme_description", "e"),5,47), false ); + $editor_configs=array(); - $editor_configs["name"] ="layout_description"; - $editor_configs["value"] = $this->getVar("layout_description", "e"); + $editor_configs["name"] ="layout_design"; + $editor_configs["value"] = $this->getVar("layout_design", "e"); $editor_configs["rows"] = 10; $editor_configs["cols"] = 80; $editor_configs["width"] = "100%"; $editor_configs["height"] = "400px"; $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["editor"]; - $form->addElement( new XoopsFormEditor(_AM_XTHCREATOR_LAYOUT_DESCRIPTION, "layout_description", $editor_configs), true ); + $form->addElement( new XoopsFormEditor(_AM_XTHCREATOR_LAYOUT_DESIGN, "layout_design", $editor_configs), true ); $form->addElement(new XoopsFormText(_AM_XTHCREATOR_LAYOUT_WEIGHT, "layout_weight", 10, 25, $this->getVar("layout_weight")), true); $form->addElement(new XoopsFormHidden("op", "save_layout")); Modified: XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_themes.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_themes.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/class/xthcreator_themes.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -85,35 +85,27 @@ $form->addElement(new XoopsFormText(_AM_XTHCREATOR_THEME_NAME, "theme_name", 50, 255, $this->getVar("theme_name")), true); $form->addElement(new XoopsFormText(_AM_XTHCREATOR_THEME_VERSION, "theme_version", 50, 255, $this->getVar("theme_version")), true); - $theme_img = $this->getVar("theme_img") ? $this->getVar("theme_img") : 'blank.gif'; - - $uploadirectory_theme_img = '/uploads/xthcreator/images'; - $imgtray_theme_img = new XoopsFormElementTray(_AM_XTHCREATOR_THEME_IMG,'<br />'); - $imgpath_theme_img = sprintf(_AM_XTHCREATOR_FORMIMAGE_PATH, '.'.$uploadirectory_theme_img); - $imageselect_theme_img = new XoopsFormSelect($imgpath_theme_img, 'theme_img', $theme_img); - $image_array_theme_img = XoopsLists :: getImgListAsArray( XOOPS_ROOT_PATH.$uploadirectory_theme_img ); - foreach( $image_array_theme_img as $image_theme_img ) { - $imageselect_theme_img->addOption("$image_theme_img", $image_theme_img); + $theme_img = $this->getVar("theme_img") ? $this->getVar("theme_img") : 'blank.gif'; + $uploadir = '/uploads/xthcreator/images'; + $imgtray = new XoopsFormElementTray(_AM_XTHCREATOR_THEME_IMG,'<br />'); + $imgpath = sprintf(_AM_XTHCREATOR_FORMIMAGE_PATH, '.'.$uploadir); + $imageselect = new XoopsFormSelect($imgpath, 'theme_img', $theme_img); + $image_array = XoopsLists::getImgListAsArray( XOOPS_ROOT_PATH . $uploadir ); + foreach( $image_array as $image ) { + $imageselect->addOption("$image", $image); } - $imageselect_theme_img->setExtra( "onchange='showImgSelected(\"image_theme_img\", \"theme_img\", \"".$uploadirectory_theme_img."\", \"\", \"".XOOPS_URL."\")'" ); - $imgtray_theme_img->addElement($imageselect_theme_img, false); - $imgtray_theme_img->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadirectory_theme_img."/".$theme_img."' name='image_theme_img' id='image_theme_img' alt='' />" ) ); + $imageselect->setExtra( "onchange='showImgSelected(\"image3\", \"theme_img\", \"".$uploadir."\", \"\", \"".XOOPS_URL."\")'" ); + $imgtray->addElement($imageselect, false); + $imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadir."/".$theme_img."' name='image3' id='image3' alt='' />" ) ); - $fileseltray_theme_img = new XoopsFormElementTray('','<br />'); - $fileseltray_theme_img->addElement(new XoopsFormFile(_AM_XTHCREATOR_FORMUPLOAD, "theme_img", $GLOBALS['xoopsModuleConfig']["theme_img_size"]),false); - $fileseltray_theme_img->addElement(new XoopsFormLabel(''), false); - $imgtray_theme_img->addElement($fileseltray_theme_img); - $form->addElement($imgtray_theme_img); - - $editor_configs=array(); - $editor_configs["name"] ="theme_description"; - $editor_configs["value"] = $this->getVar("theme_description", "e"); - $editor_configs["rows"] = 10; - $editor_configs["cols"] = 80; - $editor_configs["width"] = "100%"; - $editor_configs["height"] = "400px"; - $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["editor"]; - $form->addElement( new XoopsFormEditor(_AM_XTHCREATOR_THEME_DESCRIPTION, "theme_description", $editor_configs), true ); + $fileseltray = new XoopsFormElementTray('', '<br />'); + $fileseltray->addElement(new XoopsFormFile(_AM_XTHCREATOR_FORMUPLOAD, "theme_img", $GLOBALS['xoopsModuleConfig']["maxsize"]), false); + $fileseltray->addElement(new XoopsFormLabel(''), false); + $imgtray->addElement($fileseltray); + $form->addElement($imgtray); + + // theme_description + $form->addElement( new XoopsFormTextArea(_AM_XTHCREATOR_THEME_DESCRIPTION, "theme_description", $this->getVar("theme_description", "e"),5,47), false ); $form->addElement(new XoopsFormText(_AM_XTHCREATOR_THEME_AUTHOR, "theme_author", 50, 255, $this->getVar("theme_author")), true); $form->addElement(new XoopsFormSelectUser(_AM_XTHCREATOR_THEME_SUBMITTER, "theme_submitter", false, $this->getVar("theme_submitter"), 1, false), true); $form->addElement(new XoopsFormTextDateSelect(_AM_XTHCREATOR_THEME_CREATED, "theme_created", "", $this->getVar("theme_created"))); Modified: XoopsModules/xThCreator/trunk/xThCreator/css/admin.css =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/css/admin.css 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/css/admin.css 2012-03-29 23:02:22 UTC (rev 9214) @@ -1,40 +1,25 @@ -@charset "UTF-8"; +@charset "UTF-8"; /** - * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * - Revision By TXMod Xoops (http://www.txmodxoops.org) - * **************************************************************************** - * CODELINK - MODULE FOR XOOPS + * XTHCREATOR - MODULE FOR XOOPS * Copyright (c) 2007 - 2012 * TXMod Xoops (http://www.txmodxoops.org) * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting - * source code which is considered copyrighted (c) material of the - * original comment or credit authors. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * --------------------------------------------------------------------------- - * @copyright TXMod Xoops (http://www.txmodxoops.org) - * @license GPL see LICENSE - * @package codelink - * @author TXMod Xoops (in...@tx...) - * - * Version : 1.36 Mon 2012/01/09 14:23:56 : Timgno Exp $ - * **************************************************************************** + * Version : 1.01 Mon 2012/03/19 14:23:56 : Timgno Exp $ + * ******************************************************* */ - - .txtchangelog { height:350px; overflow:auto;} +#grid, #palette{ + padding: 0px; + margin: 0px; + border-collapse: collapse; +} + +#palette td, #grid td{ + width: 20px; + height: 20px; +} + +#grid td{ + border: 1px solid #cccccc; +} \ No newline at end of file Modified: XoopsModules/xThCreator/trunk/xThCreator/css/style.css =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/css/style.css 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/css/style.css 2012-03-29 23:02:22 UTC (rev 9214) @@ -1,37 +1,10 @@ @charset "UTF-8"; /** - * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * - Revision By TXMod Xoops (http://www.txmodxoops.org) - * **************************************************************************** - * CODELINK - MODULE FOR XOOPS + * XTHCREATOR - MODULE FOR XOOPS * Copyright (c) 2007 - 2012 * TXMod Xoops (http://www.txmodxoops.org) * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting - * source code which is considered copyrighted (c) material of the - * original comment or credit authors. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * --------------------------------------------------------------------------- - * @copyright TXMod Xoops (http://www.txmodxoops.org) - * @license GPL see LICENSE - * @package codelink - * @author TXMod Xoops (in...@tx...) - * - * Version : 1.36 Mon 2012/01/09 14:23:56 : Timgno Exp $ - * **************************************************************************** + * Version : 1.01 Mon 2012/03/19 14:23:56 : Timgno Exp $ + * ******************************************************* */ Modified: XoopsModules/xThCreator/trunk/xThCreator/docs/changelog.txt =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/docs/changelog.txt 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/docs/changelog.txt 2012-03-29 23:02:22 UTC (rev 9214) @@ -1,5 +1,16 @@ +==================================== + 2012/03/29 23:14:50 Version 1.01 Beta 2 +==================================== + - Added ajax jquery file (TXMod Xoops) + - Added icon display for layout (TXMod Xoops) + - New display layout with colorized (TXMod Xoops) + +==================================== + 2012/03/24 14:14:50 Version 1.01 Beta 1 +==================================== + - Added structure class (TXMod Xoops) -==================================== + ==================================== 2012/03/19 18:13:30 Version 1.01 Alpha 1 ==================================== - Inizializing Structure Modified: XoopsModules/xThCreator/trunk/xThCreator/include/functions.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/include/functions.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/include/functions.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -21,7 +21,7 @@ * **************************************************************************** */ /***************Blocks***************/ -function block_addCatSelect($cats) { +function xthcreator_block_addCatSelect($cats) { if(is_array($cats)) { $cat_sql = "(".current($cats); @@ -85,6 +85,21 @@ } } +/** + * Convert StringToTime Date + * + * @param mixed $date + * @return + */ +function xthcreator_convertDate($date) +{ + if (strpos(_SHORTDATESTRING, "/")) + { + $date=str_replace("/", "-", $date); + } + return strtotime($date); +} + function xthcreator_UcFirstAndToLower($str) { return ucfirst(strtolower(trim($str))); @@ -106,15 +121,15 @@ exit; } echo '<tr> - <td>'.sprintf($language_ok, $file).'</td> - <td><img src='. $pathImageIcon .'/on.png></td> + <td>'.sprintf($language_ok, $file).'</td> + <td><img src='. $pathImageIcon .'/on.png></td> </tr>'; fclose($handle); } else { echo '<tr> - <td>'.sprintf($language_notok, $file).'</td> - <td><img src='. $pathImageIcon .'/off.png></td> + <td>'.sprintf($language_notok, $file).'</td> + <td><img src='. $pathImageIcon .'/off.png></td> </tr>'; } } Modified: XoopsModules/xThCreator/trunk/xThCreator/language/english/admin.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/language/english/admin.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/language/english/admin.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -1,24 +1,38 @@ <?php /** * **************************************************************************** - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Revision Copyright (c) (http://www.txmodxoops.org) + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) * - * This license contains restrictions!!! + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. * - * @license TDM GPL license - * @author TDM TEAM DEV MODULE - * @author TXMod Xoops (in...@tx...) + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ * **************************************************************************** */ //Menu @@ -83,8 +97,9 @@ define("_AM_XTHCREATOR_LAYOUT_ID","Id"); define("_AM_XTHCREATOR_LAYOUT_NAME","Name"); -define("_AM_XTHCREATOR_LAYOUT_TH_NAME","Theme name"); +define("_AM_XTHCREATOR_LAYOUT_THEME","Theme name"); define("_AM_XTHCREATOR_LAYOUT_DESCRIPTION","Description"); +define("_AM_XTHCREATOR_LAYOUT_DESIGN","Design"); define("_AM_XTHCREATOR_LAYOUT_WEIGHT","Weight"); define("_AM_XTHCREATOR_LANG_ADD","Add a languages"); @@ -92,8 +107,8 @@ define("_AM_XTHCREATOR_LANG_DELETE","Delete a languages"); define("_AM_XTHCREATOR_LANG_ID","ID"); -define("_AM_XTHCREATOR_LANG_TH_NAME","Theme name"); -define("_AM_XTHCREATOR_LANG_NAME","Name"); +define("_AM_XTHCREATOR_LANG_THEME","Theme name"); +define("_AM_XTHCREATOR_LANG_NAME","Type Name <i>(e.g: english)</i>"); define("_AM_XTHCREATOR_LANG_FILE","File name"); define("_AM_XTHCREATOR_LANG_DEFINE","Define"); define("_AM_XTHCREATOR_LANG_DESCRIPT","Description"); @@ -101,6 +116,10 @@ // themes.php // layout.php +define("_AM_XTHCREATOR_PALETTE","Palette"); +define("_AM_XTHCREATOR_DRAW","Draw!"); +define("_AM_XTHCREATOR_DEBUG","Debug console: "); +define("_AM_XTHCREATOR_SAVE","Save"); // languages.php @@ -110,20 +129,20 @@ // Results Building OK define("_AM_XTHCREATOR_OK_DEFAULTFF", "Default FF Compiled"); -define("_AM_XTHCREATOR_OK_CSS", "CSS Compiled"); -define("_AM_XTHCREATOR_OK_DOCS", "DOCS Compiled"); -define("_AM_XTHCREATOR_OK_LAYOUTS", "LAYOUTS Compiled"); -define("_AM_XTHCREATOR_OK_LANGUAGES", "LANGUAGES Compiled"); -define("_AM_XTHCREATOR_OK_TPLS", "TEMPLATES Compiled"); -define("_AM_XTHCREATOR_OK_THEMES", "THEMES Compiled"); +define("_AM_XTHCREATOR_OK_CSS", "Css Compiled"); +define("_AM_XTHCREATOR_OK_DOCS", "Docs Compiled"); +define("_AM_XTHCREATOR_OK_LAYOUTS", "Layouts Compiled"); +define("_AM_XTHCREATOR_OK_LANGUAGES", "Languages Compiled"); +define("_AM_XTHCREATOR_OK_TPLS", "Templates Compiled"); +define("_AM_XTHCREATOR_OK_THEMES", "Themes Compiled"); // Results Building NOTOK define("_AM_XTHCREATOR_NOTOK_DEFAULTFF", "Default FF Not compiled"); -define("_AM_XTHCREATOR_NOTOK_CSS", "CSS Not compiled"); -define("_AM_XTHCREATOR_NOTOK_DOCS", "DOCS Not compiled"); -define("_AM_XTHCREATOR_NOTOK_LAYOUT", "LAYOUTS Not compiled"); -define("_AM_XTHCREATOR_NOTOK_LANGUAGES", "LANGUAGES Not compiled"); -define("_AM_XTHCREATOR_NOTOK_TPLS", "TEMPLATES Not compiled"); -define("_AM_XTHCREATOR_NOTOK_THEMES", "THEMES Not compiled"); +define("_AM_XTHCREATOR_NOTOK_CSS", "Css Not compiled"); +define("_AM_XTHCREATOR_NOTOK_DOCS", "Docs Not compiled"); +define("_AM_XTHCREATOR_NOTOK_LAYOUT", "Layouts Not compiled"); +define("_AM_XTHCREATOR_NOTOK_LANGUAGES", "Languages Not compiled"); +define("_AM_XTHCREATOR_NOTOK_TPLS", "Templates Not compiled"); +define("_AM_XTHCREATOR_NOTOK_THEMES", "Themes Not compiled"); //Blocks.php define("_AM_XTHCREATOR_THEMES_BLOCK_DAY","themes of today"); Modified: XoopsModules/xThCreator/trunk/xThCreator/language/italian/admin.php =================================================================== --- XoopsModules/xThCreator/trunk/xThCreator/language/italian/admin.php 2012-03-29 22:52:18 UTC (rev 9213) +++ XoopsModules/xThCreator/trunk/xThCreator/language/italian/admin.php 2012-03-29 23:02:22 UTC (rev 9214) @@ -1,24 +1,38 @@ <?php /** * **************************************************************************** - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Revision Copyright (c) (http://www.txmodxoops.org) + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) * - * This license contains restrictions!!! + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. * - * @license TDM GPL license - * @author TDM TEAM DEV MODULE - * @author TXMod Xoops (in...@tx...) + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ * **************************************************************************** */ //Menu @@ -83,8 +97,9 @@ define("_AM_XTHCREATOR_LAYOUT_ID","Id"); define("_AM_XTHCREATOR_LAYOUT_NAME","Name"); -define("_AM_XTHCREATOR_LAYOUT_TH_NAME","Theme name"); +define("_AM_XTHCREATOR_LAYOUT_THEME","Theme name"); define("_AM_XTHCREATOR_LAYOUT_DESCRIPTION","Description"); +define("_AM_XTHCREATOR_LAYOUT_DESIGN","Design"); define("_AM_XTHCREATOR_LAYOUT_WEIGHT","Weight"); define("_AM_XTHCREATOR_LANG_ADD","Add a languages"); @@ -92,8 +107,8 @@ define("_AM_XTHCREATOR_LANG_DELETE","Delete a languages"); define("_AM_XTHCREATOR_LANG_ID","ID"); -define("_AM_XTHCREATOR_LANG_TH_NAME","Theme name"); -define("_AM_XTHCREATOR_LANG_NAME","Name"); +define("_AM_XTHCREATOR_LANG_THEME","Theme name"); +define("_AM_XTHCREATOR_LANG_NAME","Type Name <i>(e.g: english)</i>"); define("_AM_XTHCREATOR_LANG_FILE","File name"); define("_AM_XTHCREATOR_LANG_DEFINE","Define"); define("_AM_XTHCREATOR_LANG_DESCRIPT","Description"); @@ -101,6 +116,10 @@ // themes.php // layout.php +define("_AM_XTHCREATOR_PALETTE","Palette"); +define("_AM_XTHCREATOR_DRAW","Draw!"); +define("_AM_XTHCREATOR_DEBUG","Debug console: "); +define("_AM_XTHCREATOR_SAVE","Save"); // languages.php @@ -110,20 +129,20 @@ // Results Building OK define("_AM_XTHCREATOR_OK_DEFAULTFF", "Default ... [truncated message content] |
From: <txm...@us...> - 2012-03-29 22:52:30
|
Revision: 9213 http://xoops.svn.sourceforge.net/xoops/?rev=9213&view=rev Author: txmodxoops Date: 2012-03-29 22:52:18 +0000 (Thu, 29 Mar 2012) Log Message: ----------- Updated Beta 2 Added Paths: ----------- XoopsModules/xThCreator/releases/1.01b2/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/about.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_footer.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_header.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/building.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/functions.js XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/image.x XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/includes.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/languages.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/layout.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/load_colors.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/load_drawing.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/menu.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/save_drawing.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/themes.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/blocks/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/blocks/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/class/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/class/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/class/xthcreator_defaultff.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/class/xthcreator_languages.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/class/xthcreator_layout.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/class/xthcreator_themes.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/css/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/css/admin.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/css/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/css/style.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/changelog.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/credits.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/install.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/lang_diff.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/licence.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/docs/readme.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/header.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/16/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/16/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/addlanguage.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/addlayout.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/addtheme.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/dashboard.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/32/thbuild.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/bookmarks/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/bookmarks/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/deco/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/deco/arrow.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/deco/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/deco/off.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/deco/on.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/icons/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/icons/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/icons/off.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/icons/on.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/menu/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/menu/bg.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/menu/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/menu/left_both.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/menu/right_both.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/txmod_logo.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/images/xthcreator_slogo.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/include/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/include/configs.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/include/functions.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/include/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/include/install.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/index.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/admin.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/blocks.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/help/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/help/help.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/help/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/main.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/english/modinfo.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/admin.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/blocks.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/help/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/help/help.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/help/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/main.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/language/italian/modinfo.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/css.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/defolders.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/docs.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/images.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/languages.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/layout.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/css/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/css/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/css/layout.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/css/print.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/css/style.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/css/styles-ie7.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/14_layer_novisible.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/edit-block.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/feed1.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/feed2.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/friend.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/pagact.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/paginact.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/pagneutral.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/pdf.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/action/printable.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/favicon.ico XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/favicon.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/BR.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/CN.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/DE.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/ES.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/FR.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/IT.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/JP.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/PL.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/PR.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/RU.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/UK.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/US.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/flags/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/avatar_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/banners_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/blocks_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/comment_accept.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/comments_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/configure_shortcuts.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/edituser_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/filemanager_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/find.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/finduser_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/groups_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/home.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/images_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/logout.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/mail.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/mail_warning.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/mailuser_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/maintenance_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/modules_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/prefs_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/process.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/smilies_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/tpls_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/up.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/user.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/user_edit.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/userrank_small.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/footer/xoops.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/Ym.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/cog_go.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/edit_user.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/email.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/email_go.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/email_open.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/exit.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/find.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/identity.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/knotes.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/messagebox16x16.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/msn.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/noavatar.jpg XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/note_edit.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/organizer.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/password.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/profile.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/shutdown.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/vcard_edit.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/icons/users/web.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/await.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/dot.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/dot_blue.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/BR.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/CN.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/DE.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/ES.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/FR.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/IT.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/JP.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/PR.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/RU.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/UK.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/US.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/flags/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/magnifier.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/table-caption.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/table-caption_blue.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/throbber.gif XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/translate.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/img/wizard_bg.png XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/js/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/js/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/english/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/english/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/english/main.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/english/script.js XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/english/style.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/italian/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/italian/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/italian/main.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/italian/script.js XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/italian/style.css XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/leggimi.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/language/readme.txt XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/modules/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/modules/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/modules/system/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/modules/system/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/modules/system/system_redirect.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/modules/system/system_siteclosed.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/theme.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockcenter.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockcenter_c.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockcenter_l.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockcenter_r.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockleft.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockright.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/blockszone.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/centerblocks.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/footer.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/footerstatic.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/globalnav.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/header.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/metas.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/scripts.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/tpl/userbar.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/resource/xo-info.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/templates.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/library/themes.php XoopsModules/xThCreator/releases/1.01b2/xThCreator/sql/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/sql/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/sql/mysql.sql XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/admin/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/admin/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/admin/xThCreator_admin_about.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/admin/xThCreator_admin_help.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/blocks/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/blocks/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/xthcreator_footer.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/xthcreator_header.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/templates/xthcreator_index.html XoopsModules/xThCreator/releases/1.01b2/xThCreator/themes/ XoopsModules/xThCreator/releases/1.01b2/xThCreator/xoops_version.php Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/about.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/about.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/about.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,43 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_footer.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_footer.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_footer.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,45 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +global $pathImageAdmin; +echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> + <img src='".$pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center smallsmall italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_XTHCREATOR_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb/' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_header.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_header.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/admin_header.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,98 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; +include_once '../include/functions.php'; +include_once 'includes.php'; + +$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); +$globlang = $GLOBALS['xoopsConfig']['language']; + +if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){ + include_once $pathDir.'/language/'.$globlang.'/main.php'; + }else{ + include_once $pathDir.'/language/english/main.php'; + } + +if ( file_exists($pathDir.'/moduleadmin.php')){ + include_once $pathDir.'/moduleadmin.php'; + //return true; + }else{ + xoops_cp_header(); + echo xoops_error(_AM_ERROR_NOFRAMEWORKS); + xoops_cp_footer(); + //return false; + } +$dirname = basename(dirname(dirname( __FILE__ ) )); +$module_handler =& xoops_gethandler('module'); +$xoopsModule = & $module_handler->getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); +$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); + +$themesHandler =& xoops_getModuleHandler('xthcreator_themes', $dirname); +$layoutHandler =& xoops_getModuleHandler('xthcreator_layout', $dirname); +$languagesHandler =& xoops_getModuleHandler('xthcreator_languages', $dirname); + +$myts =& MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathImageIcon', $pathImageIcon); +$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin); +//xoops_cp_header(); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/building.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/building.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/building.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) + * + * This license contains restrictions!!! + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ + * **************************************************************************** + */ +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH .'/modules/xThCreator/library/defolders.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('building.php'); +$op = xthcreator_CleanVars($_REQUEST, 'op', 'default', 'string'); +switch ($op) { + case "build": + $thms =& $themesHandler->get($_REQUEST['theme_name']); + $thms_name = $thms->getVar('theme_name'); + //Debut + echo '<table width="100%" cellspacing="1" style="background: #fff;"> + <tr class="marg2"> + <td class="ui-corner-all">'; + /************************************************/ + /*Structure*/ + /************************************************/ + //Creation of default folders & files + defaultff($thms_name); + /////////////////////////////////////////////////////////////////////// + echo '</td></tr></table>'; + break; + + case "default": + default: + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $action = $_SERVER['REQUEST_URI']; + + $form = new XoopsThemeForm(_AM_XTHCREATOR_BUILD_DEFAULT, 'form_creation', $action, 'post', true); + + $thms_select = new XoopsFormSelect(_AM_XTHCREATOR_BUILD_THEMES, 'theme_name', 'theme_name', 1); + $thms_select->addOptionArray($themesHandler->getList()); + $form->addElement($thms_select, true); + + $form->addElement(new XoopsFormHidden('op', 'build')); + $form->addElement(new XoopsFormButton('', 'submit', _AM_XTHCREATOR_BUILD, 'submit')); + $form->display(); + break; +} +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/functions.js =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/functions.js (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/functions.js 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,9 @@ +/** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * Version : 1.01 Mon 2012/03/19 14:23:56 : Timgno Exp $ + * ******************************************************* + */ +eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(z).v(3(){t(i=0;i<w;++i){$("#8").R("<l>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"<1>&2;</1>"+"</l>")}$.E("P.p",3(a){$("#8 1").d(3(b){$(5).7("6-4",a[b])})});e 9="D(0, 0, 0)";$("#h 1").d(3(b){$(5).j("c",3(){9=$(5).7("6-4");$("#s").f("u h 4 r: "+"<m x=\'y: n; A: n; 6-4:"+9+";\'>"+9+"</m>")})});$("#8 1").d(3(b){$(5).j("c",3(){$(5).7("6-4",9)})});$("#B").c(3(){$("#8 1").7("6-4","C")});$("#o").c(3(){e g=F G();e i=0;$("#8 1").d(3(){g[i]=$(5).7("6-4");++i});$.H({I:"J",K:"L.p",M:"N",a:g,O:3(a){$("#q").f("Q k")},S:3(){$("#q").f("T U V W X Y o Z k")}})})});',62,62,'|td|nbsp|function|color|this|background|css|grid|active_color|data|index|click|each|var|html|colorsAsJson|palette||bind|image|tr|span|20px|save|php|debug_message|is|debug_palette_color|for|active|ready|20|style|width|document|height|clear|transparent|rgb|getJSON|new|Object|ajax|type|post|url|save_drawing|dataType|text|success|load_drawing|saved|append|failure|An|error|has|occured|trying|to|the'.split('|'),0,{})) \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/image.x =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/image.x (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/image.x 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1 @@ +[] \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/includes.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/includes.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/includes.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,37 @@ +<?php +/** + * **************************************************************************** + * - Developers TEAM Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * ------------------------------------------------------------------------ + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include '../../../include/cp_header.php'; +include_once("../include/functions.php"); + +$modPath = XOOPS_ROOT_PATH.'/modules/xThCreator'; +$cPath = $modPath.'/library'; + +include_once $cPath.'/css.php'; +include_once $cPath.'/defolders.php'; +include_once $cPath.'/docs.php'; +include_once $cPath.'/images.php'; +include_once $cPath.'/languages.php'; +include_once $cPath.'/layout.php'; +include_once $cPath.'/templates.php'; +include_once $cPath.'/themes.php'; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.html =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.html (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.html 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/index.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,90 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + //count "total" + $count_themes = $themesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("themes_online", 1)); + $themes_online = $themesHandler->getCount($criteria); + $criteria->add(new Criteria("themes_pending", 1)); + $themes_pending = $themesHandler->getCount($criteria); + + //count "total" + $count_layout = $layoutHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("layout_online", 1)); + $layout_online = $layoutHandler->getCount($criteria); + $criteria->add(new Criteria("layout_pending", 1)); + $layout_pending = $layoutHandler->getCount($criteria); + + //count "total" + $count_languages = $languagesHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("languages_online", 1)); + $languages_online = $languagesHandler->getCount($criteria); + $criteria->add(new Criteria("languages_pending", 1)); + $languages_pending = $languagesHandler->getCount($criteria); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_THEMES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES, $count_themes); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_ONLINE, $themes_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_THEMES,_AM_XTHCREATOR_THEREARE_THEMES_PENDING, $themes_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LAYOUT); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT, $count_layout); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_ONLINE, $layout_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LAYOUT,_AM_XTHCREATOR_THEREARE_LAYOUT_PENDING, $layout_pending); + + $indexAdmin->addInfoBox(_AM_XTHCREATOR_LANGUAGES); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES, $count_languages); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_ONLINE, $languages_online); + $indexAdmin->addInfoBoxLine(_AM_XTHCREATOR_LANGUAGES,_AM_XTHCREATOR_THEREARE_LANGUAGES_PENDING, $languages_pending); + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/languages.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/languages.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/languages.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,210 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +global $pathImageIcon; +$op = xthcreator_CleanVars($_REQUEST, 'op', 'list', 'string'); +$languagesAdmin = new ModuleAdmin(); +switch ($op) { + case "list": + default: + echo $languagesAdmin->addNavigation('languages.php'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + echo $languagesAdmin->renderButton(); + $criteria = new CriteriaCompo(); + $criteria->setSort("lang_id ASC, lang_name"); + $criteria->setOrder("ASC"); + $numrows = $languagesHandler->getCount(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $document_tri = 1; + $document_order = 1; + if (isset($_REQUEST['document_order'])) { + if ($_REQUEST['document_order']==1){ + $criteria->setOrder('ASC'); + $document_order=1; + } + if ($_REQUEST['document_order']==2){ + $criteria->setOrder('DESC'); + $document_order=2; + } + } else { + $criteria->setOrder('DESC'); + } + $languages_arr = $languagesHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=default&limit=' . $limit . '&document_tri=' . $document_tri. '&document_order=' . $document_order); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + + //Table view + if ($numrows>0) + { + echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\"> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_THEME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align=\"center\" width=\"10%\">"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + $class = "odd"; + foreach (array_keys($languages_arr) as $i) + { + echo "<tr class=\"".$class."\">"; + $class = ($class == "even") ? "odd" : "even"; + + $themes =& $themesHandler->get($languages_arr[$i]->getVar("lang_th_name")); + $title_themes = $themes->getVar("theme_name"); + echo "<td align=\"center\">".$title_themes."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_name")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_file")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_define")."</td>"; + echo "<td align=\"center\">".$languages_arr[$i]->getVar("lang_descript")."</td>"; + echo "<td align=\"center\">".XoopsUser::getUnameFromId($languages_arr[$i]->getVar("languages_submitter"),"S")."</td>"; + echo "<td align=\"center\">".formatTimeStamp($languages_arr[$i]->getVar("languages_date_created"),"S")."</td>"; + + echo "<td align=\"center\" width=\"10%\"> + <a href=\"languages.php?op=edit_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a> + <a href=\"languages.php?op=delete_language&lang_id=".$languages_arr[$i]->getVar("lang_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LANG_ID."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_NAME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_THEME."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_FILE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DEFINE."</th> + <th align=\"center\">"._AM_XTHCREATOR_LANG_DESCRIPT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + + $obj =& $languagesHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_language": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["lang_id"])) { + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + } else { + $obj =& $languagesHandler->create(); + } + //Id of theme + $themes =& $themesHandler->get($_REQUEST["theme_name"]); + $theme_id = $themes->getVar('theme_id'); + + //Form lang_th_name + $obj->setVar("lang_theme", $theme_id); + //Form lang_file + $obj->setVar("lang_name", $_REQUEST["lang_name"]); + //Form lang_file + $obj->setVar("lang_file", $_REQUEST["lang_file"]); + //Form lang_define + $obj->setVar("lang_define", $_REQUEST["lang_define"]); + //Form lang_descript + $obj->setVar("lang_descript", $_REQUEST["lang_descript"]); + + if ($languagesHandler->insert($obj)) { + redirect_header("languages.php?op=list", 2, _AM_XTHCREATOR_FORMOK); + } + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_language": + echo $languagesAdmin->addNavigation("languages.php"); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_NEWLANGUAGES, 'languages.php?op=new_language', 'add'); + $languagesAdmin->addItemButton(_AM_XTHCREATOR_LANGUAGESLIST, 'languages.php?op=list', 'list'); + echo $languagesAdmin->renderButton(); + $obj = $languagesHandler->get($_REQUEST["lang_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_language": + $obj =& $languagesHandler->get($_REQUEST["lang_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("languages.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($languagesHandler->delete($obj)) { + redirect_header("languages.php", 3, _AM_XTHCREATOR_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "lang_id" => $_REQUEST["lang_id"], "op" => "delete_language"), $_SERVER["REQUEST_URI"], sprintf(_AM_XTHCREATOR_FORMSUREDEL, $obj->getVar("lang_name"))); + } + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/layout.php =================================================================== --- XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/layout.php (rev 0) +++ XoopsModules/xThCreator/releases/1.01b2/xThCreator/admin/layout.php 2012-03-29 22:52:18 UTC (rev 9213) @@ -0,0 +1,202 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * XTHCREATOR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xThCreator + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Mon 2012/03/19 18:13:30 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +include_once "../include/functions.php"; +xoops_cp_header(); +global $xoopsModuleConfig, $pathImageIcon; +$op = xThCreator_CleanVars($_REQUEST, 'op', 'list', 'string'); +$layoutAdmin = new ModuleAdmin(); +switch ($op) +{ + case "list": + default: + echo $layoutAdmin->addNavigation('layout.php'); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_NEWLAYOUT, 'layout.php?op=new_layout', 'add'); + echo $layoutAdmin->renderButton(); + // For layout + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('layout_id', 0, '>')); + $criteria->setSort("layout_weight ASC, layout_name"); + $criteria->setOrder("ASC"); + $numrows = $layoutHandler->getCount($criteria); + $layout_arr = $layoutHandler->getall($criteria); + unset($criteria); + //Affichage du tableau + if ($numrows>0) + { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_THEME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($layout_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_id")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_name")."</td>"; + //Name of theme + $themes =& $themesHandler->get($_REQUEST["layout_theme"]); + $theme_name = $themes->getVar('theme_name'); + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_theme")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_description")."</td>"; + echo "<td align='center'>".$layout_arr[$i]->getVar("layout_weight")."</td>"; + + echo "<td align='center' width='10%'> + <a href='layout.php?op=display_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/display.png alt='"._DISPLAY."' title='"._DISPLAY."'></a> + <a href='layout.php?op=edit_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/edit.png alt='"._EDIT."' title='"._EDIT."'></a> + <a href='layout.php?op=delete_layout&layout_id=".$layout_arr[$i]->getVar("layout_id")."'><img src=".$pathImageIcon."/delete.png alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br><br>"; + } else { + echo "<table width='100%' cellspacing='1' class='outer'> + <tr> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_ID."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_NAME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_THEME."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_DESCRIPTION."</th> + <th align='center'>"._AM_XTHCREATOR_LAYOUT_WEIGHT."</th> + <th align='center' width='10%'>"._AM_XTHCREATOR_FORMACTION."</th> + </tr>"; + echo "</table><br><br>"; + } + break; + + case "new_layout": + echo $layoutAdmin->addNavigation("layout.php"); + $layoutAdmin->addItemButton(_AM_XTHCREATOR_LAYOUTLIST, 'layout.php?op=list', 'list'); + echo $layoutAdmin->renderButton(); + + $obj =& $layoutHandler->create(); + ... [truncated message content] |
From: <txm...@us...> - 2012-03-28 22:00:05
|
Revision: 9212 http://xoops.svn.sourceforge.net/xoops/?rev=9212&view=rev Author: txmodxoops Date: 2012-03-28 21:59:55 +0000 (Wed, 28 Mar 2012) Log Message: ----------- Updated GUI 2.5 - completed Moved icons 32 in module images folder Added Paths: ----------- XoopsModules/xtransam/branches/ XoopsModules/xtransam/branches/timgno/ XoopsModules/xtransam/branches/timgno/xtransam/ XoopsModules/xtransam/branches/timgno/xtransam/admin/ XoopsModules/xtransam/branches/timgno/xtransam/admin/about.php XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_footer.php XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_header.php XoopsModules/xtransam/branches/timgno/xtransam/admin/bbs.php XoopsModules/xtransam/branches/timgno/xtransam/admin/index.html XoopsModules/xtransam/branches/timgno/xtransam/admin/index.php XoopsModules/xtransam/branches/timgno/xtransam/admin/languages.php XoopsModules/xtransam/branches/timgno/xtransam/admin/menu.php XoopsModules/xtransam/branches/timgno/xtransam/admin/wizard.php XoopsModules/xtransam/branches/timgno/xtransam/blocks/ XoopsModules/xtransam/branches/timgno/xtransam/blocks/index.html XoopsModules/xtransam/branches/timgno/xtransam/class/ XoopsModules/xtransam/branches/timgno/xtransam/class/files.php XoopsModules/xtransam/branches/timgno/xtransam/class/googleprovider.php XoopsModules/xtransam/branches/timgno/xtransam/class/index.html XoopsModules/xtransam/branches/timgno/xtransam/class/iobase.php XoopsModules/xtransam/branches/timgno/xtransam/class/languages.php XoopsModules/xtransam/branches/timgno/xtransam/class/provider.php XoopsModules/xtransam/branches/timgno/xtransam/class/translator.php XoopsModules/xtransam/branches/timgno/xtransam/css/ XoopsModules/xtransam/branches/timgno/xtransam/css/index.html XoopsModules/xtransam/branches/timgno/xtransam/docs/ XoopsModules/xtransam/branches/timgno/xtransam/docs/changelog.txt XoopsModules/xtransam/branches/timgno/xtransam/docs/credits.txt XoopsModules/xtransam/branches/timgno/xtransam/docs/index.html XoopsModules/xtransam/branches/timgno/xtransam/docs/install.txt XoopsModules/xtransam/branches/timgno/xtransam/docs/lang_diff.txt XoopsModules/xtransam/branches/timgno/xtransam/docs/licence.txt XoopsModules/xtransam/branches/timgno/xtransam/docs/readme.txt XoopsModules/xtransam/branches/timgno/xtransam/images/ XoopsModules/xtransam/branches/timgno/xtransam/images/16/ XoopsModules/xtransam/branches/timgno/xtransam/images/16/analysis.png XoopsModules/xtransam/branches/timgno/xtransam/images/16/edit.png XoopsModules/xtransam/branches/timgno/xtransam/images/16/export.png XoopsModules/xtransam/branches/timgno/xtransam/images/16/import.png XoopsModules/xtransam/branches/timgno/xtransam/images/16/index.html XoopsModules/xtransam/branches/timgno/xtransam/images/16/traslate.png XoopsModules/xtransam/branches/timgno/xtransam/images/32/ XoopsModules/xtransam/branches/timgno/xtransam/images/32/dashboard.png XoopsModules/xtransam/branches/timgno/xtransam/images/32/index.html XoopsModules/xtransam/branches/timgno/xtransam/images/32/languages.png XoopsModules/xtransam/branches/timgno/xtransam/images/32/translations.png XoopsModules/xtransam/branches/timgno/xtransam/images/32/wizard.png XoopsModules/xtransam/branches/timgno/xtransam/images/deco/ XoopsModules/xtransam/branches/timgno/xtransam/images/deco/arrow.gif XoopsModules/xtransam/branches/timgno/xtransam/images/deco/index.html XoopsModules/xtransam/branches/timgno/xtransam/images/icons/ XoopsModules/xtransam/branches/timgno/xtransam/images/icons/index.html XoopsModules/xtransam/branches/timgno/xtransam/images/icons/off.png XoopsModules/xtransam/branches/timgno/xtransam/images/icons/on.png XoopsModules/xtransam/branches/timgno/xtransam/images/index.html XoopsModules/xtransam/branches/timgno/xtransam/images/languages.png XoopsModules/xtransam/branches/timgno/xtransam/images/left_both.gif XoopsModules/xtransam/branches/timgno/xtransam/images/menu/ XoopsModules/xtransam/branches/timgno/xtransam/images/menu/bg.png XoopsModules/xtransam/branches/timgno/xtransam/images/menu/index.html XoopsModules/xtransam/branches/timgno/xtransam/images/menu/left_both.png XoopsModules/xtransam/branches/timgno/xtransam/images/menu/right_both.png XoopsModules/xtransam/branches/timgno/xtransam/images/right_both.gif XoopsModules/xtransam/branches/timgno/xtransam/images/translations.png XoopsModules/xtransam/branches/timgno/xtransam/images/wizard.png XoopsModules/xtransam/branches/timgno/xtransam/images/xtransam_slogo.png XoopsModules/xtransam/branches/timgno/xtransam/include/ XoopsModules/xtransam/branches/timgno/xtransam/include/JSON.php XoopsModules/xtransam/branches/timgno/xtransam/include/charset_utf-8.php XoopsModules/xtransam/branches/timgno/xtransam/include/forms.php XoopsModules/xtransam/branches/timgno/xtransam/include/functions.php XoopsModules/xtransam/branches/timgno/xtransam/include/index.html XoopsModules/xtransam/branches/timgno/xtransam/include/install.php XoopsModules/xtransam/branches/timgno/xtransam/include/update.php XoopsModules/xtransam/branches/timgno/xtransam/language/ XoopsModules/xtransam/branches/timgno/xtransam/language/english/ XoopsModules/xtransam/branches/timgno/xtransam/language/english/admin.php XoopsModules/xtransam/branches/timgno/xtransam/language/english/google.php XoopsModules/xtransam/branches/timgno/xtransam/language/english/help/ XoopsModules/xtransam/branches/timgno/xtransam/language/english/help/help.html XoopsModules/xtransam/branches/timgno/xtransam/language/english/help/index.html XoopsModules/xtransam/branches/timgno/xtransam/language/english/index.html XoopsModules/xtransam/branches/timgno/xtransam/language/english/modinfo.php XoopsModules/xtransam/branches/timgno/xtransam/language/index.html XoopsModules/xtransam/branches/timgno/xtransam/language/italian/ XoopsModules/xtransam/branches/timgno/xtransam/language/italian/admin.php XoopsModules/xtransam/branches/timgno/xtransam/language/italian/google.php XoopsModules/xtransam/branches/timgno/xtransam/language/italian/help/ XoopsModules/xtransam/branches/timgno/xtransam/language/italian/help/help.html XoopsModules/xtransam/branches/timgno/xtransam/language/italian/help/index.html XoopsModules/xtransam/branches/timgno/xtransam/language/italian/index.html XoopsModules/xtransam/branches/timgno/xtransam/language/italian/modinfo.php XoopsModules/xtransam/branches/timgno/xtransam/providers/ XoopsModules/xtransam/branches/timgno/xtransam/providers/bing.php XoopsModules/xtransam/branches/timgno/xtransam/providers/google.php XoopsModules/xtransam/branches/timgno/xtransam/providers/index.html XoopsModules/xtransam/branches/timgno/xtransam/providers/mymemory.php XoopsModules/xtransam/branches/timgno/xtransam/sql/ XoopsModules/xtransam/branches/timgno/xtransam/sql/index.html XoopsModules/xtransam/branches/timgno/xtransam/sql/mysql.sql XoopsModules/xtransam/branches/timgno/xtransam/sql/mysql.sql.bak XoopsModules/xtransam/branches/timgno/xtransam/templates/ XoopsModules/xtransam/branches/timgno/xtransam/templates/admin/ XoopsModules/xtransam/branches/timgno/xtransam/templates/admin/index.html XoopsModules/xtransam/branches/timgno/xtransam/templates/admin/xtransam_about.html XoopsModules/xtransam/branches/timgno/xtransam/templates/admin/xtransam_help.html XoopsModules/xtransam/branches/timgno/xtransam/templates/blocks/ XoopsModules/xtransam/branches/timgno/xtransam/templates/blocks/index.html XoopsModules/xtransam/branches/timgno/xtransam/templates/index.html XoopsModules/xtransam/branches/timgno/xtransam/xoops_version.php Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/about.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/about.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/about.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,28 @@ +<?php +/** + * XTransam module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package Contact + * @since 2.5.0 + * @author Mage, Mamba, Timgno + * @version $Id $ + **/ + +include 'admin_header.php'; +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_footer.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_footer.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_footer.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,23 @@ +<?php +/** + * XoopsPoll module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package XoopsPoll + * @since 2.5.0 + * @author Mamba (www.xoops.org) + * @version $Id $ +**/ + +echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src=" . XOOPS_URL .'/' . $GLOBALS['xtransamImageAdmin'].'/xoopsmicrobutton.gif'.' '." alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center smallsmall italic pad5'><strong>" . $GLOBALS['xtransamModule']->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_header.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_header.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/admin_header.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,101 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // + +include_once(dirname(dirname(dirname(dirname(__FILE__)))).DIRECTORY_SEPARATOR.'mainfile.php'); +include_once(dirname(dirname(dirname(dirname(__FILE__)))).DS.'include'.DS.'cp_header.php'); + +if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); +if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + +$GLOBALS['myts'] = MyTextSanitizer::getInstance(); + +$module_handler = xoops_gethandler('module'); +$config_handler = xoops_gethandler('config'); +$GLOBALS['xtransamModule'] = $module_handler->getByDirname('xtransam'); +$GLOBALS['xtransamModuleConfig'] = $config_handler->getConfigList($GLOBALS['xtransamModule']->getVar('mid')); + +set_time_limit($GLOBALS['xtransamModuleConfig']['php_execute_for']); + +xoops_load('pagenav'); +xoops_load('xoopslists'); +xoops_load('xoopsformloader'); + +include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); +include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); +include_once $GLOBALS['xoops']->path('modules'.DS.'xtransam'.DS.'include'.DS.'functions.php'); +include_once $GLOBALS['xoops']->path('modules'.DS.'xtransam'.DS.'include'.DS.'forms.php'); + +if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } +$pathImageIcon = XOOPS_URL .'/'. $GLOBALS['xtransamModule']->getInfo('icons16'); +$pathImageAdmin = XOOPS_URL .'/'. $GLOBALS['xtransamModule']->getInfo('icons32'); + +$myts =& MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xtransamModule']->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathImageIcon', $pathImageIcon); +//xoops_cp_header(); + +$traslactionsHandler =& xoops_getModuleHandler('iobase', 'xtransam'); + +if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } +} + +if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } +} + +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/bbs.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/bbs.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/bbs.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,264 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // +define ("_CHARSET","UTF-8"); +define ("_CHARSET_ISO","ISO-8859-1"); + +include 'admin_header.php'; +include_once '../include/forms.php'; + +error_reporting(E_ALL); +global $xoopsDB, $xoopsModuleConfig; + + if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } + } + + if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } + } + + +ini_set("max_execution_time", "300"); + +switch ($op){ +case "deletebuffer": + $sql[0] = "DELETE FROM ".$xoopsDB->prefix('xtransam_files')." WHERE ioid = $id"; + $sql[1] = "DELETE FROM ".$xoopsDB->prefix('xtransam_translator')." WHERE ioid = $id"; + $sql[2] = "DELETE FROM ".$xoopsDB->prefix('xtransam_iobase')." WHERE id = $id"; + + foreach($sql as $fquestion) + $xoopsDB->queryF($fquestion); + + redirect_header("index.php", 4, _XT_IODELETED); + break; +case "save-languages": + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + foreach($id as $key => $value) + { + switch($value){ + case "new": + $lang = $lang_handler->create(); + break; + default: + $lang = $lang_handler->get($value); + } + + if (!empty($name[$key])&&!empty($code[$key])) { + $lang->setVar('name', $name[$key]); + $lang->setVar('code', $code[$key]); + $lang->setVar('foldername', $folder[$key]); + $lang->setVar('provider', $provider[$key]); + @$lang_handler->insert($lang); + } + } + redirect_header("index.php?op=languages",2,_XT_LANGSAVEOK); + break; +case "languages": + xoops_cp_header(); + adminMenu(3); + languagesForm_display(); + footer_adminMenu(); + xoops_cp_footer(); + + break; +case "export": + global $xoopsUser; + + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $files = $files_handler->getObjects($criteria); + + $from_folder = $lang_handler->folder($io->getvar('languagefrom')); + $to_folder = $lang_handler->folder($io->getvar('languageto')); + + foreach($files as $file) { + $path = explode('/', $file->getVar('path')); + + foreach($path as $key => $value) + if (strtolower($value) == strtolower($from_folder)) { + $path[$key] = $to_folder; + } + + //$wpath = implode('/', $path).'/'; + $wpath = implode(DIRECTORY_SEPARATOR, $path); + mkdir($wpath, 0777); + + if($wpath!=$file->getVar('path')){ + $bfile = file($file->getVar('path').$file->getVar('filename')); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $criteria->add(new Criteria('fileid', $file->getVar('id'))); + $trans = $trans_handler->getObjects($criteria); + // Changed & Added by TXMod Xoops + $bfile[1] = "\n// Translation done by xtransam & ".$xoopsUser->uname()." TXMod Xoops - ".date('Y-m-d H:i')."\n\n"; + + foreach($trans as $tran) { + $search = xtransam_convert_decode($tran->getVar('replacestr'), $tran->getVar('sm')); + $name = xtransam_convert_decode($tran->getVar('name'), $tran->getVar('sm')); + $translation = xtransam_convert_decode($tran->getVar('translation'), $tran->getVar('sm')); + + // Changed & Added by TXMod Xoops + //include_once '../include/charset_utf-8.php'; + //$translation = preg_replace($search, $replace, $translation); + $translation = str_replace('"', '\"', $translation); + $translation = str_replace('\"', "'", $translation); + $translation = str_replace('="', "='", $translation); + $translation = str_replace('">', "'>", $translation); + $translation = str_replace('È', 'E'', $translation); + $translation = str_replace('ì', 'ì', $translation); + $translation = str_replace('ò', 'ò', $translation); + $translation = str_replace('è', 'è', $translation); + $translation = str_replace('ù', 'ù', $translation); + $translation = str_replace('à', 'à', $translation); + $translation = str_replace('% S', '%s', $translation); + $translation = str_replace('%s ', '%s ', $translation); + $translation = str_replace('%s "', '%s"', $translation); + $translation = str_replace(' / ', '/', $translation); + + $replace = 'define("'.$name.'", "'.$translation.'");'; + $bfile[$tran->getVar('line')] = str_replace($search, $replace, $bfile[$tran->getVar('line')]); + } + @makeWritable($wpath, true); + if (file_exists($wpath.$file->getVar('filename'))) + unlink($wpath.$file->getVar('filename')); + $file = @fopen($wpath.$file->getVar('filename'), 'w'); + $buffer = implode('', $bfile); + fwrite($file, $buffer, strlen($buffer)); + fclose($file); + } + } + // Added by TXMod Xoops + if (file_exists($indexFile = XOOPS_ROOT_PATH."/modules/xtransam/language/index.html")) + copy($indexFile, $wpath."index.html"); + + redirect_header("index.php?op=bbs",2,_XT_EXPORTCOMPLETE); + break; +case "save": + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + foreach($trans as $key => $value) { + $tran = $trans_handler->get($key); + $tran->setVar('translation', xtransam_convert_encode($value, $tran->getVar('sm'))); + $trans_handler->insert($tran); + } + redirect_header("index.php?op=manage&id=$id&fileid=$fileid",2,_XT_SAVECOMPLETE); + break; +case "manage": + xoops_cp_header(); + adminMenu(2); + managerForm_display($id, $fileid); + footer_adminMenu(); + xoops_cp_footer(); + + break; + +case "analysis": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->analysepath($io); + redirect_header("index.php?op=bbs",2,_XT_ANLYSISCOMPLETE); + break; + +case "import": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->importfiles($io); + redirect_header("index.php?op=bbs",2,_XT_IMPORTCOMPLETE); + break; + +case "translate": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + if ($trans_handler->getCount($criteria)>0) { + $trans = $trans_handler->getObjects($criteria); + $start = time(); + foreach($trans as $tran) { + if ($tran->isempty()){ + $from = $lang_handler->code($io->getVar('languagefrom')); + $to = $lang_handler->code($io->getVar('languageto')); + $provider = $lang_handler->provider($tran->getVar('toid')); + if (strlen($provider)>0) { + $provider_handler = xoops_getmodulehandler($provider.'provider', 'xtransam'); + $translation = $provider_handler->translate($from,$to, xtransam_convert_decode($tran->getVar('orginal'), $tran->getVar('sm'))); + $tran->setVar('translation', xtransam_convert_encode($translation, $tran->getVar('sm'))); + if (strlen($translation)>0) + $tran->setVar('auto', 1); + else + $tran->setVar('auto', 0); + + $trans_handler->insert($tran); + } + if ($start+28<time()) + { + $restart++; + redirect_header("index.php?op=translate&id=$id&restart=$restart",2,sprintf(_XT_30SECONDSCONTINUING, $restart)); + } + } + } + } + redirect_header("index.php?op=bbs",2,_XT_TRANSLATIONCOMPLETE); + break; + +case "languages": + + break; +case "bbs": + + xoops_cp_header(); + adminMenu(2); + translationForm_display(false); + footer_adminMenu(); + xoops_cp_footer(); + + break; + +case "wizard": +default: + + xoops_cp_header(); + adminMenu(1); + wizardForm_display($step); + translationForm_display(true); + footer_adminMenu(); + xoops_cp_footer(); + break; + +} +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/index.html =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/index.html (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/index.html 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/index.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/index.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/index.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,278 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // +include 'admin_header.php'; + +error_reporting(E_ALL); +global $xoopsDB, $xoopsModuleConfig; + +$op = isset($_REQUEST['op'])?$_REQUEST['op']:'dashboard'; + +switch ($op){ +case "deletebuffer": + $sql[0] = "DELETE FROM ".$xoopsDB->prefix('xtransam_files')." WHERE ioid = $id"; + $sql[1] = "DELETE FROM ".$xoopsDB->prefix('xtransam_translator')." WHERE ioid = $id"; + $sql[2] = "DELETE FROM ".$xoopsDB->prefix('xtransam_iobase')." WHERE id = $id"; + + foreach($sql as $fquestion) + $xoopsDB->queryF($fquestion); + + redirect_header("index.php", 4, _AM_XTRANSAM_IODELETED); + break; +case "save-languages": + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + foreach($id as $key => $value) + { + switch($value){ + case "new": + $lang = $lang_handler->create(); + break; + default: + $lang = $lang_handler->get($value); + } + + if (!empty($name[$key])&&!empty($code[$key])) { + $lang->setVar('name', $name[$key]); + $lang->setVar('code', $code[$key]); + $lang->setVar('foldername', $folder[$key]); + $lang->setVar('providers', $providers[$key]); + @$lang_handler->insert($lang); + } + } + redirect_header("index.php?op=languages",2,_AM_XTRANSAM_LANGSAVEOK); + break; +case "languages": + xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=languages'); + languagesForm_display(); + include "admin_footer.php"; + + break; +case "export": + global $xoopsUser; + + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $files = $files_handler->getObjects($criteria); + + $from_folder = $lang_handler->folder($io->getvar('languagefrom')); + $to_folder = $lang_handler->folder($io->getvar('languageto')); + + // Changed by Chronolabs - Removed Code by Timgo - ansi conversion - 08/11/2011 + //include($GLOBALS['xoops']->path('modules'.DS.'xtransam'.DS.'include'.DS.'charset_utf-8.php')); + + foreach($files as $file) { + $path = array(); + foreach(explode('\\', $file->getVar('path')) as $nodea) + foreach(explode('/', $nodea) as $nodeb) + $path[] = $nodeb; + foreach($path as $key => $value) { + if (strtolower($value) == strtolower($from_folder)) { + $path[$key] = $to_folder; + } + $pdir = DS.$path[$key]; + mkdir($pdir, 0777); + } + $wpath = implode(DS, $path); + if($wpath!=$file->getVar('path')){ + $bfile = file($file->getVar('path').$file->getVar('filename')); + // Changed by TXMod Xoops back to Header + $bfile[] = "<?php\n\n// Translation done by XTransam & ".$GLOBALS['xoopsUser']->getVar('uname')." (".$GLOBALS['xoopsUser']->getVar('email').")\n// XTransam ".($GLOBALS['xtransamModule']->getVar('version')/100)." is written by Chronolabs Co-op & The XOOPS Project - File Dumped on ".date('Y-m-d H:i')."\n\n?>"; + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $criteria->add(new Criteria('fileid', $file->getVar('id'))); + $trans = $trans_handler->getObjects($criteria); + foreach($trans as $tran) { + $search = xtransam_convert_decode($tran->getVar('replacestr'), $tran->getVar('sm')); + $name = xtransam_convert_decode($tran->getVar('name'), $tran->getVar('sm')); + $translation = xtransam_convert_decode($tran->getVar('translation'), $tran->getVar('sm')); + /*foreach($GLOBALS['charset_utf8'] as $search => $replace) + $translation = str_replace($search, $replace, $translation); + $translation = htmlspecialchars($translation, ENT_QUOTES); */ + $trans = get_html_translation_table(HTML_ENTITIES); + $str = $translation; + $encoded = strtr($str, $trans); + //$translation = htmlentities($translation, ENT_COMPAT, "UTF-8"); + $replace = 'define("'.$name.'", "'.$encoded.'");'."\n"; + $bfile[$tran->getVar('line')] = $replace; + } + @makeWritable($wpath, true); + if (file_exists($wpath.$file->getVar('filename'))) + unlink($wpath.$file->getVar('filename')); + $file = @fopen($wpath.$file->getVar('filename'), 'w'); + $buffer = implode("", $bfile); + fwrite($file, $buffer, strlen($buffer)); + fclose($file); + } + // Changed by Chronolabs to be recursive + if (file_exists($indexFile = XOOPS_ROOT_PATH."modules/xtransam/language/index.html")) + copy($indexFile, $wpath."/index.html"); + } + redirect_header("index.php?op=bbs",2,_AM_XTRANSAM_EXPORTCOMPLETE); + break; +case "save": + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + foreach($trans as $key => $value) { + $tran = $trans_handler->get($key); + $tran->setVar('translation', xtransam_convert_encode($value, $tran->getVar('sm'))); + $trans_handler->insert($tran); + } + redirect_header("index.php?op=manage&id=$id&fileid=$fileid",2,_AM_XTRANSAM_SAVECOMPLETE); + break; +case "manage": + + xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation('index.php?op=manage'); + //echo $indexAdmin->renderIndex(); + managerForm_display($id, $fileid); + + include "admin_footer.php"; + break; + +case "analysis": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->analysepath($io); + redirect_header("index.php?op=bbs",2,_AM_XTRANSAM_ANLYSISCOMPLETE); + break; + +case "import": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->importfiles($io); + redirect_header("index.php?op=bbs",2,_AM_XTRANSAM_IMPORTCOMPLETE); + break; + +case "translate": + xoops_cp_header(); + echo sprintf(_AM_XTRANSAM_TRANSLATION_IN_PROCESS, $GLOBALS['xtransamModuleConfig']['php_execute_for'], isset($restart)?$restart:1); + include "admin_footer.php"; + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + if ($trans_handler->getCount($criteria)>0) { + $trans = $trans_handler->getObjects($criteria); + $start = time(); + foreach($trans as $tran) { + if ($tran->isempty()){ + $from = $lang_handler->code($io->getVar('languagefrom')); + $to = $lang_handler->code($io->getVar('languageto')); + $GLOBALS['provider'] = $lang_handler->provider($tran->getVar('toid')); + if (strlen($GLOBALS['provider'])>0) { + $provider_handler = xoops_getmodulehandler('provider', 'xtransam'); + $translation = $provider_handler->provider->translate($from,$to, xtransam_convert_decode($tran->getVar('orginal'), $tran->getVar('sm'))); + $tran->setVar('translation', xtransam_convert_encode($translation, $tran->getVar('sm'))); + if (strlen($translation)>0) + $tran->setVar('auto', 1); + else + $tran->setVar('auto', 0); + + $trans_handler->insert($tran); + } + if ($start+$GLOBALS['xtransamModuleConfig']['php_execute_for']-3<time()) + { + $restart++; + redirect_header("index.php?op=translate&id=$id&restart=$restart"); + exit(0); + } + } + } + } + redirect_header("index.php?op=bbs",2,_AM_XTRANSAM_TRANSLATIONCOMPLETE); + break; + +case "bbs": + + xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation('index.php?op=bbs'); + //echo $indexAdmin->renderIndex(); + translationForm_display(false); + include "admin_footer.php"; + + break; + +case "wizard": + xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=wizard'); + //echo $indexAdmin->renderIndex(); + wizardForm_display($step); + translationForm_display(true); + include "admin_footer.php"; + break; +case "dashboard": +default: + xoops_cp_header(); + + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $iobase_handler = xoops_getmodulehandler('iobase', 'xtransam'); + + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_XTRANSAM_ADMIN_NUMTRASL); + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>"._AM_XTRANSAM_THEREARE_NUMFILES."</label>", $files_handler->getCount(NULL), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>"._AM_XTRANSAM_THEREARE_NUMLINES."</label>", $trans_handler->getCount(NULL), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>"._AM_XTRANSAM_THEREARE_NUMPROJECTS."</label>", $iobase_handler->getCount(NULL), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>"._AM_XTRANSAM_THEREARE_NUMLANG."</label>", $lang_handler->getCount(NULL), 'Green'); + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.DS.'class'.DS.'cache'.DS.'xoopscache.php'; + } + } + + if ($googlecodes = XoopsCache::read('xtransam_google_pause')) { + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>"._AM_XTRANSAM_THEREARE_GOOGLEAVAILABLE."</label>", _YES, 'Green'); + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>".sprintf(_AM_XTRANSAM_THEREARE_GOOGLEERROR, $googlecodes['code'], $googlecodes['message'])."</label>", '', 'Green'); + } else { + $indexAdmin->addInfoBoxLine(_AM_XTRANSAM_ADMIN_NUMTRASL, "<label>"._AM_XTRANSAM_THEREARE_GOOGLEAVAILABLE."</label>", _NO, 'Green'); + } + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); + + include "admin_footer.php"; + + break; +} +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/languages.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/languages.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/languages.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,95 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // +define ("_CHARSET","UTF-8"); +define ("_CHARSET_ISO","ISO-8859-1"); + +include 'admin_header.php'; +include_once '../include/forms.php'; + +error_reporting(E_ALL); +global $xoopsDB, $xoopsModuleConfig; + + if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } + } + + if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } + } + + +ini_set("max_execution_time", "300"); + +switch ($op){ +case "save-languages": + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + foreach($id as $key => $value) + { + switch($value){ + case "new": + $lang = $lang_handler->create(); + break; + default: + $lang = $lang_handler->get($value); + } + + if (!empty($name[$key])&&!empty($code[$key])) { + $lang->setVar('name', $name[$key]); + $lang->setVar('code', $code[$key]); + $lang->setVar('foldername', $folder[$key]); + $lang->setVar('provider', $provider[$key]); + @$lang_handler->insert($lang); + } + } + redirect_header("index.php?op=languages",2,_XT_LANGSAVEOK); + break; + +case "save": + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + foreach($trans as $key => $value) { + $tran = $trans_handler->get($key); + $tran->setVar('translation', xtransam_convert_encode($value, $tran->getVar('sm'))); + $trans_handler->insert($tran); + } + redirect_header("index.php?op=manage&id=$id&fileid=$fileid",2,_XT_SAVECOMPLETE); + break; +case "languages": +default: + xoops_cp_header(); + adminMenu(3); + languagesForm_display(); + footer_adminMenu(); + xoops_cp_footer(); + break; +} +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/menu.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/menu.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/menu.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,58 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // +$module_handler =& xoops_gethandler('module'); +$GLOBALS['xtransamModule'] =& XoopsModule::getByDirname('xtransam'); +$moduleInfo =& $module_handler->get($GLOBALS['xtransamModule']->getVar('mid')); +//$GLOBALS['xtransamImageAdmin'] = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); +$GLOBALS['xtransamImageAdmin'] = $moduleInfo->getInfo('icons32'); + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]["title"] = _MI_XTRANSAM_ADMENU1; +$adminmenu[$i]["link"] = 'admin/index.php'; +$adminmenu[$i]["icon"] = 'images/32/dashboard.png'; +$i++; +$adminmenu[$i]["title"] = _MI_XTRANSAM_ADMENU2; +$adminmenu[$i]["link"] = 'admin/index.php?op=wizard'; +$adminmenu[$i]["icon"] = 'images/32/wizard.png'; +$i++; +$adminmenu[$i]["title"] = _MI_XTRANSAM_ADMENU3; +$adminmenu[$i]["link"] = 'admin/index.php?op=bbs'; +$adminmenu[$i]["icon"] = 'images/32/translations.png'; +$i++; +$adminmenu[$i]["title"] = _MI_XTRANSAM_ADMENU4; +$adminmenu[$i]["link"] = 'admin/index.php?op=languages'; +$adminmenu[$i]["icon"] = 'images/32/languages.png'; +$i++; +$adminmenu[$i]["title"] = _MI_XTRANSAM_ADMENU5; +$adminmenu[$i]["link"] = 'admin/about.php'; +$adminmenu[$i]["icon"] = '../../'.$GLOBALS['xtransamImageAdmin'].'/about.png'; + +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/admin/wizard.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/admin/wizard.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/admin/wizard.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,264 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// -- Author: Simon Roberts (si...@ch...) -- // +// ------------------------------------------------------------------------ // +define ("_CHARSET","UTF-8"); +define ("_CHARSET_ISO","ISO-8859-1"); + +include 'admin_header.php'; +include_once '../include/forms.php'; + +error_reporting(E_ALL); +global $xoopsDB, $xoopsModuleConfig; + + if (isset($_GET)) { + foreach ($_GET as $k => $v) { + ${$k} = $v; + } + } + + if (isset($_POST)) { + foreach ($_POST as $k => $v) { + ${$k} = $v; + } + } + + +ini_set("max_execution_time", "300"); + +switch ($op){ +case "deletebuffer": + $sql[0] = "DELETE FROM ".$xoopsDB->prefix('xtransam_files')." WHERE ioid = $id"; + $sql[1] = "DELETE FROM ".$xoopsDB->prefix('xtransam_translator')." WHERE ioid = $id"; + $sql[2] = "DELETE FROM ".$xoopsDB->prefix('xtransam_iobase')." WHERE id = $id"; + + foreach($sql as $fquestion) + $xoopsDB->queryF($fquestion); + + redirect_header("index.php", 4, _XT_IODELETED); + break; +case "save-languages": + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + foreach($id as $key => $value) + { + switch($value){ + case "new": + $lang = $lang_handler->create(); + break; + default: + $lang = $lang_handler->get($value); + } + + if (!empty($name[$key])&&!empty($code[$key])) { + $lang->setVar('name', $name[$key]); + $lang->setVar('code', $code[$key]); + $lang->setVar('foldername', $folder[$key]); + $lang->setVar('provider', $provider[$key]); + @$lang_handler->insert($lang); + } + } + redirect_header("index.php?op=languages",2,_XT_LANGSAVEOK); + break; +case "languages": + xoops_cp_header(); + adminMenu(3); + languagesForm_display(); + footer_adminMenu(); + xoops_cp_footer(); + + break; +case "export": + global $xoopsUser; + + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $files = $files_handler->getObjects($criteria); + + $from_folder = $lang_handler->folder($io->getvar('languagefrom')); + $to_folder = $lang_handler->folder($io->getvar('languageto')); + + foreach($files as $file) { + $path = explode('/', $file->getVar('path')); + + foreach($path as $key => $value) + if (strtolower($value) == strtolower($from_folder)) { + $path[$key] = $to_folder; + } + + //$wpath = implode('/', $path).'/'; + $wpath = implode(DIRECTORY_SEPARATOR, $path); + mkdir($wpath, 0777); + + if($wpath!=$file->getVar('path')){ + $bfile = file($file->getVar('path').$file->getVar('filename')); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + $criteria->add(new Criteria('fileid', $file->getVar('id'))); + $trans = $trans_handler->getObjects($criteria); + // Changed & Added by TXMod Xoops + $bfile[1] = "\n// Translation done by xtransam & ".$xoopsUser->uname()." TXMod Xoops - ".date('Y-m-d H:i')."\n\n"; + + foreach($trans as $tran) { + $search = xtransam_convert_decode($tran->getVar('replacestr'), $tran->getVar('sm')); + $name = xtransam_convert_decode($tran->getVar('name'), $tran->getVar('sm')); + $translation = xtransam_convert_decode($tran->getVar('translation'), $tran->getVar('sm')); + + // Changed & Added by TXMod Xoops + //include_once '../include/charset_utf-8.php'; + //$translation = preg_replace($search, $replace, $translation); + $translation = str_replace('"', '\"', $translation); + $translation = str_replace('\"', "'", $translation); + $translation = str_replace('="', "='", $translation); + $translation = str_replace('">', "'>", $translation); + $translation = str_replace('È', 'E'', $translation); + $translation = str_replace('ì', 'ì', $translation); + $translation = str_replace('ò', 'ò', $translation); + $translation = str_replace('è', 'è', $translation); + $translation = str_replace('ù', 'ù', $translation); + $translation = str_replace('à', 'à', $translation); + $translation = str_replace('% S', '%s', $translation); + $translation = str_replace('%s ', '%s ', $translation); + $translation = str_replace('%s "', '%s"', $translation); + $translation = str_replace(' / ', '/', $translation); + + $replace = 'define("'.$name.'", "'.$translation.'");'; + $bfile[$tran->getVar('line')] = str_replace($search, $replace, $bfile[$tran->getVar('line')]); + } + @makeWritable($wpath, true); + if (file_exists($wpath.$file->getVar('filename'))) + unlink($wpath.$file->getVar('filename')); + $file = @fopen($wpath.$file->getVar('filename'), 'w'); + $buffer = implode('', $bfile); + fwrite($file, $buffer, strlen($buffer)); + fclose($file); + } + } + // Added by TXMod Xoops + if (file_exists($indexFile = XOOPS_ROOT_PATH."/modules/xtransam/language/index.html")) + copy($indexFile, $wpath."index.html"); + + redirect_header("index.php?op=bbs",2,_XT_EXPORTCOMPLETE); + break; +case "save": + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + foreach($trans as $key => $value) { + $tran = $trans_handler->get($key); + $tran->setVar('translation', xtransam_convert_encode($value, $tran->getVar('sm'))); + $trans_handler->insert($tran); + } + redirect_header("index.php?op=manage&id=$id&fileid=$fileid",2,_XT_SAVECOMPLETE); + break; +case "manage": + xoops_cp_header(); + adminMenu(2); + managerForm_display($id, $fileid); + footer_adminMenu(); + xoops_cp_footer(); + + break; + +case "analysis": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->analysepath($io); + redirect_header("index.php?op=bbs",2,_XT_ANLYSISCOMPLETE); + break; + +case "import": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $files_handler = xoops_getmodulehandler('files', 'xtransam'); + $io = $io_handler->get($id); + @$files_handler->importfiles($io); + redirect_header("index.php?op=bbs",2,_XT_IMPORTCOMPLETE); + break; + +case "translate": + $io_handler = xoops_getmodulehandler('iobase', 'xtransam'); + $io = $io_handler->get($id); + $trans_handler = xoops_getmodulehandler('translator', 'xtransam'); + $lang_handler = xoops_getmodulehandler('languages', 'xtransam'); + $criteria = new CriteriaCompo(new Criteria('ioid', $io->getVar('id'))); + if ($trans_handler->getCount($criteria)>0) { + $trans = $trans_handler->getObjects($criteria); + $start = time(); + foreach($trans as $tran) { + if ($tran->isempty()){ + $from = $lang_handler->code($io->getVar('languagefrom')); + $to = $lang_handler->code($io->getVar('languageto')); + $provider = $lang_handler->provider($tran->getVar('toid')); + if (strlen($provider)>0) { + $provider_handler = xoops_getmodulehandler($provider.'provider', 'xtransam'); + $translation = $provider_handler->translate($from,$to, xtransam_convert_decode($tran->getVar('orginal'), $tran->getVar('sm'))); + $tran->setVar('translation', xtransam_convert_encode($translation, $tran->getVar('sm'))); + if (strlen($translation)>0) + $tran->setVar('auto', 1); + else + $tran->setVar('auto', 0); + + $trans_handler->insert($tran); + } + if ($start+28<time()) + { + $restart++; + redirect_header("index.php?op=translate&id=$id&restart=$restart",2,sprintf(_XT_30SECONDSCONTINUING, $restart)); + } + } + } + } + redirect_header("index.php?op=bbs",2,_XT_TRANSLATIONCOMPLETE); + break; + +case "languages": + + break; +case "bbs": + + xoops_cp_header(); + adminMenu(2); + translationForm_display(false); + footer_adminMenu(); + xoops_cp_footer(); + + break; + +case "wizard": +default: + + xoops_cp_header(); + adminMenu(1); + wizardForm_display($step); + translationForm_display(true); + footer_adminMenu(); + xoops_cp_footer(); + break; + +} +?> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/blocks/index.html =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/blocks/index.html (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/blocks/index.html 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xtransam/branches/timgno/xtransam/class/files.php =================================================================== --- XoopsModules/xtransam/branches/timgno/xtransam/class/files.php (rev 0) +++ XoopsModules/xtransam/branches/timgno/xtransam/class/files.php 2012-03-28 21:59:55 UTC (rev 9212) @@ -0,0 +1,210 @@ +<?php +// $Autho: wishcraft $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2009 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP... [truncated message content] |
From: <wis...@us...> - 2012-03-28 12:46:35
|
Revision: 9211 http://xoops.svn.sourceforge.net/xoops/?rev=9211&view=rev Author: wishcraft Date: 2012-03-28 12:46:19 +0000 (Wed, 28 Mar 2012) Log Message: ----------- WURFL 2.10 - Production Release - Cloud Support for ScientiaMobile WURFL cloud Added Paths: ----------- XoopsModules/wurfl/releases/2.10/ XoopsModules/wurfl/releases/2.10/htdocs/ XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/ XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/ XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.devices.png XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.import.png XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.useragents.png XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.devices.png XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.import.png XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.useragents.png XoopsModules/wurfl/releases/2.10/htdocs/modules/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/about.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/ajax.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bearer.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bugs.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/cache.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/chtml_ui.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/css.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/dashboard.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/devices.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/display.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/drm.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/flash_lite.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/header.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/image_format.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/import.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/j2me.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/markup.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/menu.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/mms.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/object_download.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/pdf.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/playback.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/processes.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/product_info.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/rss.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/security.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/sms.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/sound_format.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/storage.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/streaming.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/transcoding.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/useragents.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/wap_push.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/wml_ui.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/wta.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/xhtml_ui.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Cache/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Cache/CacheInterface.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Cache/Cookie.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Cache/Null.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Cache/Xoopscache.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Client/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Client/Client.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Client/Config.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/Client/Exception.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/HttpClient/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/HttpClient/AbstractHttpClient.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/HttpClient/Curl.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/HttpClient/Factory.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/HttpClient/Fsock.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/ajax.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/bearer.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/bugs.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/cache.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/chtml_ui.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/cloud.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/css.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/devices.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/display.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/drm.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/flash_lite.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/image_format.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/j2me.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/markup.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/mms.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/object_download.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/pdf.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/playback.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/product_info.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/rss.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/security.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/sms.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/sound_format.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/storage.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/streaming.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/transcoding.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/wap_push.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/wml_ui.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/wta.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/class/xhtml_ui.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/changelog.txt XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/credits.txt XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/install.txt XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/lang_diff.txt XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/licence.txt XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/docs/readme.txt XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/images/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/images/Thumbs.db XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/images/import.png XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/images/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/images/wurfl_slogo.png XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/form.objects.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/form.wurfl.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/formselectdevice.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/functions.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/include/update.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/admin.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/forms.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/help/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/help/help.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/help/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/main.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/language/english/modinfo.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/preloads/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/preloads/core.php XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/preloads/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/resource/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/resource/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/resource/wurfl.xml XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/sql/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/sql/index.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/sql/mysql.sql XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_ajax.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_bearer.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_bugs.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_cache.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_chtml_ui.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_css.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_display.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_drm.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_flash_lite.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_image_format.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_j2me.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_markup.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_mms.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_object_download.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_pdf.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_playback.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_product_info.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_rss.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_security.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_sms.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_sound_format.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_storage.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_streaming.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_transcoding.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_wap_push.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_wml_ui.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_wta.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_create_xhtml_ui.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_devices_edit.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_devices_list.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_import.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_import_errors.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_import_finished.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_import_redirect.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_ajax.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_bearer.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_bugs.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_cache.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_chtml_ui.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_css.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_display.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_drm.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_flash_lite.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_image_format.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_j2me.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_markup.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_mms.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_object_download.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_pdf.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_playback.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_product_info.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_rss.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_security.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_sms.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_sound_format.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_storage.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_streaming.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_transcoding.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_useragents.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_wap_push.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_wml_ui.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_wta.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/templates/wurfl_cpanel_list_xhtml_ui.html XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/xoops_version.php Added: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.devices.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.devices.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.import.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/16/wurfl.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.devices.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.devices.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.import.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.import.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/wurfl/releases/2.10/htdocs/Frameworks/moduleclasses/icons/32/wurfl.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/about.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/about.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/about.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,73 @@ +<?php +// $Id: about.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + + xoops_cp_header(); + wurfl_adminMenu(5, 'about.php'); + $paypalitemno='WURFL20'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_WURFL_AM_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['wurflModule']->getVar('dirname')), strtoupper($GLOBALS['wurflModule']->getVar('dirname')). ' '.$GLOBALS['wurflModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/ajax.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/ajax.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/ajax.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bearer.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bearer.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bearer.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bugs.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bugs.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/bugs.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/cache.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/cache.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/cache.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/chtml_ui.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/chtml_ui.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/chtml_ui.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/css.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/css.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/css.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/dashboard.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/dashboard.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/dashboard.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,25 @@ +<?php + include ('header.php'); + + xoops_loadLanguage('forms', 'wurfl'); + $op = (isset($_REQUEST['op']))? $_REQUEST['op'] : "default"; + switch ($op) { + case "default": + default: + xoops_cp_header(); + wurfl_adminMenu(1, 'dashboard.php'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_WURFL_FRM_RECORDS); + foreach(array( 'devices', 'ajax', 'bearer', 'bugs', 'cache', 'chtml_ui', 'css', 'display', 'drm', 'flash_lite', 'image_format', + 'j2me', 'markup', 'mms', 'object_download', 'pdf', 'playback', 'product_info', 'rss', 'security', + 'sms', 'sound_format', 'storage', 'streaming', 'transcoding', 'wap_push', 'wml_ui', 'wta', 'xhtml_ui' ) as $class) { + $class_handler = xoops_getmodulehandler($class, 'wurfl'); + $indexAdmin->addInfoBoxLine(_WURFL_FRM_RECORDS, "<label>".defined('_WURFL_FRM_RECORDS_COUNT_'.strtoupper($class))?constant('_WURFL_FRM_RECORDS_COUNT_'.strtoupper($class)):'_WURFL_FRM_RECORDS_COUNT_'.strtoupper($class)."</label>", $class_handler->getCount(), ($class_handler->getCount()>0)?'Green':'Red'); + } + echo $indexAdmin->renderIndex(); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + break; + } + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/devices.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/devices.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/devices.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,133 @@ +<?php + + require('header.php'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"devices"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'ASC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'did'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch ($op) { + case "devices": + $op = 'devices'; + switch ($fct) + { + default: + case "list": + wurfl_adminMenu(2, 'devices.php'); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + + $criteria = $devices_handler->getFilterCriteria($filter); + $ttl = $devices_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'did'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'did','id','user_agent','fallback','manufacture','model','series') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_WURLF_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_WURLF_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_WURLF_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $devices_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['wurflModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $devicess = $devices_handler->getObjects($criteria, true); + foreach($devicess as $did => $devices) { + $GLOBALS['xoopsTpl']->append('devices', $devices->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', wurfl_devices_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_devices_list.html'); + break; + + case "new": + case "edit": + + wurfl_adminMenu(2, 'devices.php'); + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + if (isset($_REQUEST['did'])) { + $devices = $devices_handler->get(intval($_REQUEST['did'])); + } else { + $devices = $devices_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $devices->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_devices_edit.html'); + break; + case "save": + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + $id=0; + if ($id=intval($_REQUEST['did'])) { + $devices = $devices_handler->get($id); + } else { + $devices = $devices_handler->create(); + } + $devices->setVars($_POST[$id]); + + if (!$id=$devices_handler->insert($devices)) { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_FAILEDTOSAVE); + exit(0); + } else { + redirect_header('devices.php?op='.$op.'&fct=edit&did='.$id.'&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + foreach($_REQUEST['did'] as $id) { + $devices = $devices_handler->get($id); + $devices->setVars($_POST[$id]); + if (!$devices_handler->insert($devices)) { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $devices_handler =& xoops_getmodulehandler('devices', 'wurfl'); + $id=0; + if (isset($_POST['did'])&&$id=intval($_POST['did'])) { + $devices = $devices_handler->get($id); + if (!$devices_handler->delete($devices)) { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('devices.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _WURFL_AM_MSG_DEVICES_DELETED); + exit(0); + } + } else { + $devices = $devices_handler->get(intval($_REQUEST['did'])); + xoops_confirm(array('did'=>$_REQUEST['did'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'devices.php', sprintf(_WURFL_AM_MSG_DEVICES_DELETE, $devices->getTitle())); + } + break; + } + break; + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/display.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/display.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/display.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/drm.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/drm.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/drm.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/flash_lite.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/flash_lite.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/flash_lite.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/header.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/header.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/header.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,72 @@ +<?php + + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['wurflModule'] = $module_handler->getByDirname('wurfl'); + $GLOBALS['wurflModuleConfig'] = $config_handler->getConfigList($GLOBALS['wurflModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + } + + $GLOBALS['wurflImageIcon'] = XOOPS_URL .'/'. $GLOBALS['wurflModule']->getInfo('icons16'); + $GLOBALS['wurflImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['wurflModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['wurflModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['wurflImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['wurflImageAdmin']); + + include(dirname(dirname(__FILE__)).'/include/functions.php'); + + include(dirname(dirname(__FILE__)).'/include/form.objects.php'); + + include(dirname(dirname(__FILE__)).'/include/form.wurfl.php'); + + xoops_loadLanguage('admin', 'wurfl'); + xoops_loadLanguage('forms', 'wurfl'); + + $parts = explode('.', strtolower(basename($_SERVER['PHP_SELF']))); + unset($parts[sizeof($parts)-1]); + $GLOBALS['op'] = isset($_REQUEST['op'])?$_REQUEST['op']:implode('.', $parts); + $GLOBALS['fct'] = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $GLOBALS['limit'] = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $GLOBALS['start'] = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $GLOBALS['order'] = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $GLOBALS['filter'] = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/image_format.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/image_format.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/image_format.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/import.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/import.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/import.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,188 @@ +<?php + ini_set('memory_limit', '256M'); + + require dirname(__FILE__).'/header.php'; + + xoops_cp_header(); + + $GLOBALS['op'] = isset($_REQUEST['op'])?(string)($_REQUEST['op']):'import'; + $GLOBALS['fct'] = isset($_REQUEST['fct'])?(string)($_REQUEST['fct']):'form'; + $linenum = isset($_REQUEST['linenum'])?intval($_REQUEST['linenum']):0; + $bytes = isset($_REQUEST['bytes'])?intval($_REQUEST['bytes']):0; + $xmlfile = isset($_REQUEST['xmlfile'])?(string)($_REQUEST['xmlfile']):''; + $rnum = isset($_REQUEST['rnum'])?(string)($_REQUEST['rnum']):0; + + switch ($GLOBALS['op']) { + default: + case 'import': + switch ($GLOBALS['fct']) { + case "go": + if ($linenum==0&&$rnum==0) { + + $tbl[1] = "wurfl_devices_xhtml_ui"; + $tbl[2] = "wurfl_devices_wta"; + $tbl[3] = "wurfl_devices_wml_ui"; + $tbl[4] = "wurfl_devices_wap_push"; + $tbl[5] = "wurfl_devices_transcoding"; + $tbl[6] = "wurfl_devices_streaming"; + $tbl[7] = "wurfl_devices_storage"; + $tbl[8] = "wurfl_devices_sound_format"; + $tbl[9] = "wurfl_devices_sms"; + $tbl[10] = "wurfl_devices_security"; + $tbl[11] = "wurfl_devices_rss"; + $tbl[12] = "wurfl_devices_product_info"; + $tbl[13] = "wurfl_devices_playback"; + $tbl[14] = "wurfl_devices_pdf"; + $tbl[15] = "wurfl_devices_rss"; + $tbl[16] = "wurfl_devices_object_download"; + $tbl[17] = "wurfl_devices_mms"; + $tbl[18] = "wurfl_devices_markup"; + $tbl[19] = "wurfl_devices_j2me"; + $tbl[20] = "wurfl_devices_image_format"; + $tbl[21] = "wurfl_devices_flash_lite"; + $tbl[22] = "wurfl_devices_drm"; + $tbl[23] = "wurfl_devices_display"; + $tbl[24] = "wurfl_devices_css"; + $tbl[25] = "wurfl_devices_chtml_ui"; + $tbl[26] = "wurfl_devices_cache"; + $tbl[27] = "wurfl_devices_bugs"; + $tbl[26] = "wurfl_devices_bearer"; + $tbl[27] = "wurfl_devices_ajax"; + $tbl[28] = "wurfl_devices"; + + foreach($tbl as $id => $table) + @$GLOBALS['xoopsDB']->queryF("TRUNCATE TABLES ".$GLOBALS['xoopsDB']->prefix($table)); + + } else { + + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('line', $linenum); + $GLOBALS['xoopsTpl']->assign('redirect', $rnum); + $GLOBALS['xoopsTpl']->assign('file', $xmlfile); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import_redirect.html'); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + + } + + set_time_limit(3600); + $timer['start'] = time(); + if (file_exists($xmlfile)) { + $handle = @fopen($xmlfile, "r"); + if ($handle) { + if ($linenum>0) { + for($ii=0;$i<$linenum;$ii++) { + if (!feof($handle)) { + $skip = fgets($handle, 4096); + } + } + } + while (!feof($handle)) { + if (time()-$timer['start']>2400) { + $rnum++; + redirect_header("import.php?op=$op&fct=go&xmlfile=".urlencode($xmlfile)."&bytes=$bytes&linenum=$linenum&rnum=$rnum", 3, sprintf(_WURFL_AM_TIMEREDIRECT, $linenum, $rnum)); + exit(0); + } + + $buffer = fgets($handle, 4096); + $linenum++; + if (strpos(' '.$buffer, '<device ')>0) + $device = array(0=>'<?xml version="1.0" encoding="UTF-8"?>', + 1=>'<wurlf>'); + $device[] = $buffer; + if (strpos(' '.$buffer, '</device>')>0) + { + $device[] = '</wurlf>'; + $bytes += strlen(implode("\n",$device)); + $xml = wurfl_xml2array(implode("\n",$device), 1, 'tag'); + foreach($xml as $key => $ele) { + switch($ele['tag']) { + case "device": + if ($ele['type']=='open'){ + $deviceHandler =& xoops_getmodulehandler('devices', 'wurfl'); + $wdevice = $deviceHandler->create(); + foreach($ele['attributes'] as $field => $value) + $wdevice->setVar($field, $value); + $did = $deviceHandler->insert($wdevice); + } + break; + case "group": + if ($ele['type']=='open'){ + if (file_exists(XOOPS_ROOT_PATH."/modules/wurfl/class/".$ele['attributes']['id'].".php")) { + $skip_group = false; + $groupHandler =& xoops_getmodulehandler($ele['attributes']['id'], 'wurfl'); + $group = $groupHandler->create(); + $group->setVar('did', $did); + } else { + $skip_group = true; + } + } else { + if ($skip_group==false) { + $groupHandler->insert($group); + unset($group); + unset($groupHandler); + } + } + break; + case "capability": + if ($ele['type']=='complete'&&$skip_group==false){ + if (is_numeric($ele['attributes']['value'])) + $value = intval($ele['attributes']['value']); + elseif ($ele['attributes']['value']=='true') + $value = true; + elseif ($ele['attributes']['value']=='false') + $value = false; + else + $value = $ele['attributes']['value']; + + $group->setVar($ele['attributes']['name'], $value); + } + break; + } + } + } + } + fclose($handle); + } + redirect_header("import.php?op=$op&fct=finished&xmlfile=".urlencode($xmlfile)."&linenum=$linenum&rnum=$rnum&bytes=$bytes", 3, sprintf(_WURFL_AM_TIMEREDIRECT, $linenum, $rnum)); + } else + redirect_header("import.php?op=$op&fct=error&xmlfile=".urlencode($xmlfile), 10, _WURFL_AM_FILENOTFOUND); + break; + case 'finished': + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('lines', number_format($linenum,0)); + $GLOBALS['xoopsTpl']->assign('bytes', number_format($bytes,0)); + $GLOBALS['xoopsTpl']->assign('redirects', $rnum); + $GLOBALS['xoopsTpl']->assign('file', $xmlfile); + $devices_handler = xoops_getmodulehandler('devices', 'wurfl'); + $GLOBALS['xoopsTpl']->assign('devices', $devices_handler->getCount(NULL)); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import_finished.html'); + break; + + case 'error': + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('file', $xmlfile); + $GLOBALS['xoopsTpl']->assign('file_exist', file_exists($xmlfile)); + $GLOBALS['xoopsTpl']->assign('xml_parser', function_exists('xml_parser_create')); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import_errors.html'); + break; + + case 'list': + default: + if (!function_exists('xml_parser_create')) { + redirect_header("import.php?op=$op&fct=error", 10, _WURFL_AM_XMLPARSER_NOTFOUND); + exit; + } + wurfl_adminMenu(3, 'import.php'); + $GLOBALS['xoopsTpl']->assign('form', wurfl_form_import_xml()); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_import.html'); + break; + + } + + break; + } + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); +?> + Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/index.html =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/index.html (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/index.html 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/j2me.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/j2me.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/j2me.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/markup.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/markup.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/markup.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/menu.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/menu.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/menu.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,33 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +$module_handler = xoops_gethandler('module'); +$GLOBALS['wurflModule'] = $module_handler->getByDirname('wurfl'); +global $adminmenu; +$adminmenu = array(); +$adminmenu[1]= array("link" => "admin/dashboard.php", + "title" => _WURFL_MI_DASHBOARD, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/home.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/home.png"); + +$adminmenu[2]= array("link" => "admin/devices.php", + "title" => _WURFL_MI_DEVICES, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.devices.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.devices.png"); + +$adminmenu[3]= array("link" => "admin/import.php", + "title" => _WURFL_MI_IMPORTXML, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.import.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.import.png"); + +$adminmenu[4]= array("link" => "admin/useragents.php", + "title" => _WURFL_MI_USERAGENTS, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.useragents.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/wurfl.useragents.png"); + +$adminmenu[5]= array("link" => "admin/about.php", + "title" => _WURFL_MI_ABOUT, + "icon" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/about.png", + "image" => "../../".$GLOBALS['wurflModule']->getInfo('icons32')."/about.png"); + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/mms.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/mms.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/mms.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/object_download.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/object_download.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/object_download.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/pdf.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/pdf.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/pdf.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/playback.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/playback.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/playback.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/processes.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/processes.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/processes.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,54 @@ +<?php + + if (!defined('XOOPS_ROOT_PATH')) die(_NOPERM); + + if (!in_array($GLOBALS['op'], array( 'ajax', 'bearer', 'bugs', 'cache', 'chtml_ui', 'css', 'display', 'drm', 'flash_lite', 'image_format', + 'j2me', 'markup', 'mms', 'object_download', 'pdf', 'playback', 'product_info', 'rss', 'security', + 'sms', 'sound_format', 'storage', 'streaming', 'transcoding', 'wap_push', 'wml_ui', 'wta', 'xhtml_ui' ))) { + redirect_header('dashboard.php', 10, _NOPERM); + exit; + } + + $handler = xoops_getmodulehandler($GLOBALS['op'], 'wurfl'); + switch($GLOBALS['fct']) { + case 'list': + $object = $handler->get($_REQUEST['did']); + xoops_cp_header(); + wurfl_adminMenu(3, 'devices.php'); + $GLOBALS['xoopsTpl']->assign('form', wurfl_form_general($object, $GLOBALS['op'], false)); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_list_'.$GLOBALS['op'].'.html'); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + exit; + break; + case 'create': + $object = $handler->create(); + xoops_cp_header(); + wurfl_adminMenu(3, 'devices.php'); + $GLOBALS['xoopsTpl']->assign('form', wurfl_form_general($object, $GLOBALS['op'], true)); + $GLOBALS['xoopsTpl']->display('db:wurfl_cpanel_create_'.$GLOBALS['op'].'.html'); + echo wurfl_footer_adminMenu(false); + xoops_cp_footer(); + exit; + break; + case 'new': + $object = $handler->create(); + $object->setVars($_POST); + if ($handler->insert($object)) { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_CREATEWENTOK); + } else { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_CREATEFAILED); + } + exit; + case 'save': + $object = $handler->get($_REQUEST['did']); + $object->setVars($_POST); + if ($handler->insert($object)) { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_SAVEWENTOK); + } else { + redirect_header('devices.php?limit='.$_REQUEST['limit']."&start=".$_REQUEST['start']."&sort=".$_REQUEST['sort']."&order=".$_REQUEST['order']."&filter=".$_REQUEST['filter'], 10, _WURFL_AM_MSG_SAVEFAILED); + } + exit; + } + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/product_info.php =================================================================== --- XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/product_info.php (rev 0) +++ XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/product_info.php 2012-03-28 12:46:19 UTC (rev 9211) @@ -0,0 +1,6 @@ +<?php + + include dirname(__FILE__).'/header.php'; + include dirname(__FILE__).'/processes.php'; + +?> \ No newline at end of file Added: XoopsModules/wurfl/releases/2.10/htdocs/modules/wurfl/admin/rss.php =================================================... [truncated message content] |
From: <txm...@us...> - 2012-03-27 22:30:22
|
Revision: 9210 http://xoops.svn.sourceforge.net/xoops/?rev=9210&view=rev Author: txmodxoops Date: 2012-03-27 22:30:12 +0000 (Tue, 27 Mar 2012) Log Message: ----------- Updated at new version with other tool Added Paths: ----------- XoopsModules/testadsl/trunk/testadsl/ XoopsModules/testadsl/trunk/testadsl/admin/ XoopsModules/testadsl/trunk/testadsl/admin/about.php XoopsModules/testadsl/trunk/testadsl/admin/admin_footer.php XoopsModules/testadsl/trunk/testadsl/admin/admin_header.php XoopsModules/testadsl/trunk/testadsl/admin/index.html XoopsModules/testadsl/trunk/testadsl/admin/index.php XoopsModules/testadsl/trunk/testadsl/admin/menu.php XoopsModules/testadsl/trunk/testadsl/blocks/ XoopsModules/testadsl/trunk/testadsl/blocks/index.html XoopsModules/testadsl/trunk/testadsl/class/ XoopsModules/testadsl/trunk/testadsl/class/index.html XoopsModules/testadsl/trunk/testadsl/css/ XoopsModules/testadsl/trunk/testadsl/css/index.html XoopsModules/testadsl/trunk/testadsl/docs/ XoopsModules/testadsl/trunk/testadsl/docs/changelog.txt XoopsModules/testadsl/trunk/testadsl/docs/credits.txt XoopsModules/testadsl/trunk/testadsl/docs/index.html XoopsModules/testadsl/trunk/testadsl/docs/install.txt XoopsModules/testadsl/trunk/testadsl/docs/lang_diff.txt XoopsModules/testadsl/trunk/testadsl/docs/licence.txt XoopsModules/testadsl/trunk/testadsl/docs/readme.txt XoopsModules/testadsl/trunk/testadsl/header.php XoopsModules/testadsl/trunk/testadsl/images/ XoopsModules/testadsl/trunk/testadsl/images/16/ XoopsModules/testadsl/trunk/testadsl/images/16/index.html XoopsModules/testadsl/trunk/testadsl/images/32/ XoopsModules/testadsl/trunk/testadsl/images/32/index.html XoopsModules/testadsl/trunk/testadsl/images/bookmarks/ XoopsModules/testadsl/trunk/testadsl/images/bookmarks/index.html XoopsModules/testadsl/trunk/testadsl/images/deco/ XoopsModules/testadsl/trunk/testadsl/images/deco/about.png XoopsModules/testadsl/trunk/testadsl/images/deco/arrow.gif XoopsModules/testadsl/trunk/testadsl/images/deco/delete.gif XoopsModules/testadsl/trunk/testadsl/images/deco/edit.gif XoopsModules/testadsl/trunk/testadsl/images/deco/index.html XoopsModules/testadsl/trunk/testadsl/images/deco/index.png XoopsModules/testadsl/trunk/testadsl/images/deco/off.gif XoopsModules/testadsl/trunk/testadsl/images/deco/on.gif XoopsModules/testadsl/trunk/testadsl/images/deco/permissions.png XoopsModules/testadsl/trunk/testadsl/images/deco/pref.png XoopsModules/testadsl/trunk/testadsl/images/deco/update.png XoopsModules/testadsl/trunk/testadsl/images/icons/ XoopsModules/testadsl/trunk/testadsl/images/icons/index.html XoopsModules/testadsl/trunk/testadsl/images/icons/off.png XoopsModules/testadsl/trunk/testadsl/images/icons/on.png XoopsModules/testadsl/trunk/testadsl/images/index.html XoopsModules/testadsl/trunk/testadsl/images/menu/ XoopsModules/testadsl/trunk/testadsl/images/menu/bg.png XoopsModules/testadsl/trunk/testadsl/images/menu/index.html XoopsModules/testadsl/trunk/testadsl/images/menu/left_both.png XoopsModules/testadsl/trunk/testadsl/images/menu/right_both.png XoopsModules/testadsl/trunk/testadsl/images/testadsl_logo.gif XoopsModules/testadsl/trunk/testadsl/images/testadsl_slogo.png XoopsModules/testadsl/trunk/testadsl/images/txmod_logo.png XoopsModules/testadsl/trunk/testadsl/include/ XoopsModules/testadsl/trunk/testadsl/include/configs.php XoopsModules/testadsl/trunk/testadsl/include/functions.php XoopsModules/testadsl/trunk/testadsl/include/index.html XoopsModules/testadsl/trunk/testadsl/include/install.php XoopsModules/testadsl/trunk/testadsl/index.php XoopsModules/testadsl/trunk/testadsl/language/ XoopsModules/testadsl/trunk/testadsl/language/english/ XoopsModules/testadsl/trunk/testadsl/language/english/admin.php XoopsModules/testadsl/trunk/testadsl/language/english/blocks.php XoopsModules/testadsl/trunk/testadsl/language/english/index.html XoopsModules/testadsl/trunk/testadsl/language/english/main.php XoopsModules/testadsl/trunk/testadsl/language/english/modinfo.php XoopsModules/testadsl/trunk/testadsl/language/french/ XoopsModules/testadsl/trunk/testadsl/language/french/admin.php XoopsModules/testadsl/trunk/testadsl/language/french/blocks.php XoopsModules/testadsl/trunk/testadsl/language/french/index.html XoopsModules/testadsl/trunk/testadsl/language/french/main.php XoopsModules/testadsl/trunk/testadsl/language/french/modinfo.php XoopsModules/testadsl/trunk/testadsl/language/index.html XoopsModules/testadsl/trunk/testadsl/language/italian/ XoopsModules/testadsl/trunk/testadsl/language/italian/admin.php XoopsModules/testadsl/trunk/testadsl/language/italian/blocks.php XoopsModules/testadsl/trunk/testadsl/language/italian/help/ XoopsModules/testadsl/trunk/testadsl/language/italian/help/help.html XoopsModules/testadsl/trunk/testadsl/language/italian/help/index.html XoopsModules/testadsl/trunk/testadsl/language/italian/index.html XoopsModules/testadsl/trunk/testadsl/language/italian/main.php XoopsModules/testadsl/trunk/testadsl/language/italian/modinfo.php XoopsModules/testadsl/trunk/testadsl/speedtest/ XoopsModules/testadsl/trunk/testadsl/speedtest/index.html XoopsModules/testadsl/trunk/testadsl/speedtest/latency.txt XoopsModules/testadsl/trunk/testadsl/speedtest/upload.asp XoopsModules/testadsl/trunk/testadsl/speedtest/upload.aspx XoopsModules/testadsl/trunk/testadsl/speedtest/upload.jsp XoopsModules/testadsl/trunk/testadsl/speedtest/upload.php XoopsModules/testadsl/trunk/testadsl/sql/ XoopsModules/testadsl/trunk/testadsl/sql/index.html XoopsModules/testadsl/trunk/testadsl/templates/ XoopsModules/testadsl/trunk/testadsl/templates/admin/ XoopsModules/testadsl/trunk/testadsl/templates/admin/index.html XoopsModules/testadsl/trunk/testadsl/templates/admin/testadsl_admin_about.html XoopsModules/testadsl/trunk/testadsl/templates/admin/testadsl_admin_help.html XoopsModules/testadsl/trunk/testadsl/templates/blocks/ XoopsModules/testadsl/trunk/testadsl/templates/blocks/index.html XoopsModules/testadsl/trunk/testadsl/templates/index.html XoopsModules/testadsl/trunk/testadsl/templates/testadsl_footer.html XoopsModules/testadsl/trunk/testadsl/templates/testadsl_header.html XoopsModules/testadsl/trunk/testadsl/templates/testadsl_index.html XoopsModules/testadsl/trunk/testadsl/xoops_version.php Added: XoopsModules/testadsl/trunk/testadsl/admin/about.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/admin/about.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/admin/about.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,43 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderabout('25J998Y3QEDZW', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/admin/admin_footer.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/admin/admin_footer.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/admin/admin_footer.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,45 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ + +global $pathImageAdmin; +echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> + <img src='".$pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center smallsmall italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_TESTADSL_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb/' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/testadsl/trunk/testadsl/admin/admin_header.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/admin/admin_header.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/admin/admin_header.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,93 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; +include_once '../include/functions.php'; + +$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); +$globlang = $GLOBALS['xoopsConfig']['language']; + +if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){ + include_once $pathDir.'/language/'.$globlang.'/main.php'; + }else{ + include_once $pathDir.'/language/english/main.php'; + } + +if ( file_exists($pathDir.'/moduleadmin.php')){ + include_once $pathDir.'/moduleadmin.php'; + //return true; + }else{ + xoops_cp_header(); + echo xoops_error(_AM_ERROR_NOFRAMEWORKS); + xoops_cp_footer(); + //return false; + } +$dirname = basename(dirname(dirname( __FILE__ ) )); +$module_handler =& xoops_gethandler('module'); +$xoopsModule = & $module_handler->getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); +$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); + +$myts =& MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathImageIcon', $pathImageIcon); +$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin); +//xoops_cp_header(); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/testadsl/trunk/testadsl/admin/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/admin/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/admin/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/admin/index.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/admin/index.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/admin/index.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,48 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/admin/menu.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/admin/menu.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/admin/menu.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,60 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ + + +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; + +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]["title"] = _MI_TESTADSL_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +//$adminmenu[$i]["desc"] = _MI_TESTADSL_ADMENU1_DESC; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/home.png"; +$i++; +$adminmenu[$i]["title"] = _MI_TESTADSL_ADMENU2; +$adminmenu[$i]["link"] = "admin/about.php"; +//$adminmenu[$i]["desc"] = _MI_TESTADSL_ADMENU2_DESC; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; +unset( $i ); +?> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/blocks/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/blocks/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/blocks/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/class/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/class/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/class/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/css/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/css/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/css/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/docs/changelog.txt =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/changelog.txt (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/changelog.txt 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,10 @@ + +==================================== + 2012/03/27 16:56:15 Version 1.01 +==================================== + - Added new tool by broadbandspeedtest (TXMod Xoops) + + ==================================== + 2010/01/21 10:26:15 Version 1.00 +==================================== + - Original release testadsl (TXMod Xoops) \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/docs/credits.txt =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/credits.txt (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/credits.txt 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/docs/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/docs/install.txt =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/install.txt (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/install.txt 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/docs/lang_diff.txt =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/lang_diff.txt (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/lang_diff.txt 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/docs/licence.txt =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/licence.txt (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/licence.txt 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/testadsl/trunk/testadsl/docs/readme.txt =================================================================== --- XoopsModules/testadsl/trunk/testadsl/docs/readme.txt (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/docs/readme.txt 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/header.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/header.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/header.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,46 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ + +include "../../mainfile.php"; +global $xoopsConfig, $xoopsModule; +include XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar('dirname')."/include/configs.php"; +include XOOPS_ROOT_PATH."/modules/".$xoopsModule->getVar('dirname')."/include/functions.php"; +$myts =& MyTextSanitizer::getInstance(); +$style = "modules/".$xoopsModule->getVar('dirname')."/include/style.css"; +if(file_exists($style)); {return true;} +?> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/16/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/16/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/16/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/32/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/32/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/32/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/bookmarks/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/bookmarks/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/bookmarks/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/deco/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/arrow.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/delete.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/delete.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/edit.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/edit.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/deco/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/deco/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/deco/index.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/index.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/off.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/off.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/on.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/on.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/pref.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/pref.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/deco/update.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/deco/update.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/icons/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/icons/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/icons/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/icons/off.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/icons/off.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/icons/on.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/icons/on.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/menu/bg.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/menu/bg.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/menu/index.html =================================================================== --- XoopsModules/testadsl/trunk/testadsl/images/menu/index.html (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/images/menu/index.html 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/images/menu/left_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/menu/left_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/menu/right_both.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/menu/right_both.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/testadsl_logo.gif =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/testadsl_logo.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/testadsl_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/testadsl_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/images/txmod_logo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/testadsl/trunk/testadsl/images/txmod_logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/testadsl/trunk/testadsl/include/configs.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/include/configs.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/include/configs.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,58 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ------------------------------------------------------------------------ + * + * @copyright TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package testadsl + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Tue 2012/03/27 16:56:15 : Timgno Exp $ + * **************************************************************************** + */ + +if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; + +global $xoopsConfig, $xoopsModule; + +// module information +$mod_url = XOOPS_URL . "/modules/".$xoopsModule->getVar('dirname'); +$mod_path = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->getVar('dirname'); +$mod_img = XOOPS_URL . "/modules/".$xoopsModule->getVar('dirname')."/images/txmodxoops_logo.png"; +// Attention: if don't have declared ( _ADMIN ) variable, you can do in languages/yourlanguage/global.php +$mod_admin = "<a href='".$mod_url."/admin/index.php'><strong>"._MD_TESTADSL_ADMIN."</strong></a>"; +$mod_copyright = "<a href='http://www.txmodxoops.org' title='TXMod Xoops' target='_blank'> + <img src='".$mod_img."' alt='TXMod Xoops' /></a>"; + +// global language file +if ( file_exists( $mod_path."/language/".$xoopsConfig['language']."/main.php" ) ) { + include_once $mod_path."/language/".$xoopsConfig['language']."/main.php" ; +} else { + include_once $mod_path."/language/english/main.php" ; +} +?> \ No newline at end of file Added: XoopsModules/testadsl/trunk/testadsl/include/functions.php =================================================================== --- XoopsModules/testadsl/trunk/testadsl/include/functions.php (rev 0) +++ XoopsModules/testadsl/trunk/testadsl/include/functions.php 2012-03-27 22:30:12 UTC (rev 9210) @@ -0,0 +1,104 @@ +<?php +/** + * **************************************************************************** + * - Original Copyright (TDM) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) + * **************************************************************************** + * TESTADSL - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting + * source code which is considered copyrighted (c) material of the + * original comment or credit authors. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * -------------------------------------------------... [truncated message content] |
From: <be...@us...> - 2012-03-27 13:45:42
|
Revision: 9209 http://xoops.svn.sourceforge.net/xoops/?rev=9209&view=rev Author: beckmi Date: 2012-03-27 13:45:32 +0000 (Tue, 27 Mar 2012) Log Message: ----------- Removing Timezone check addition by XavierS as it seems to break existing installations - need more testing Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php 2012-03-27 09:08:36 UTC (rev 9208) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/include/common.php 2012-03-27 13:45:32 UTC (rev 9209) @@ -128,11 +128,11 @@ trigger_error('File Path Error: ' . 'var/configs/xoopsconfig.php' . ' does not exist.'); } -//check if user set a local timezone -$xoops_server_timezone="Etc/GMT"; -if ($xoopsConfig["server_TZ"]>0) { - $xoops_server_timezone .="+".$xoopsConfig["server_TZ"]; } else{ - $xoops_server_timezone .=$xoopsConfig["server_TZ"]; } date_default_timezone_set($xoops_server_timezone); +//check if user set a local timezone (from XavierS) +// $xoops_server_timezone="Etc/GMT"; +// if ($xoopsConfig["server_TZ"]>0) { + // $xoops_server_timezone .="+".$xoopsConfig["server_TZ"]; } else{ + // $xoops_server_timezone .=$xoopsConfig["server_TZ"]; } date_default_timezone_set($xoops_server_timezone); /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-27 09:08:47
|
Revision: 9208 http://xoops.svn.sourceforge.net/xoops/?rev=9208&view=rev Author: wishcraft Date: 2012-03-27 09:08:36 +0000 (Tue, 27 Mar 2012) Log Message: ----------- Karioki Song List 1.09 - complete second release - production - Form Object Issues Fixed. Modified Paths: -------------- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php Modified: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectalbum.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectalbum.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectalbum.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -114,7 +114,8 @@ $_form_object_options['albums'][$id] = $obj->getVar('title'); } } - $this->addOptions($_form_object_options['albums']); + foreach($_form_object_options['albums'] as $id => $value) + $this->addOption($id, $value); } /** Modified: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectartist.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectartist.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectartist.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -113,7 +113,9 @@ foreach($artists_handler->getObjects(NULL, true) as $id => $obj) $_form_object_options['artists'][$id] = $obj->getVar('name'); } - $this->addOptions($_form_object_options['artists']); + foreach($_form_object_options['artists'] as $id => $value) + $this->addOption($id, $value); + } /** Modified: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectgenre.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectgenre.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectgenre.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -114,7 +114,9 @@ $_form_object_options['genre'][$id] = $obj->getVar('name'); } } - $this->addOptions($_form_object_options['genre']); + foreach($_form_object_options['genre'] as $id => $value) + $this->addOption($id, $value); + } Modified: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectsong.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectsong.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectsong.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -123,7 +123,8 @@ } } } - $this->addOptions($_form_object_options['songs'][$field][$id]); + foreach($_form_object_options['songs'][$field][$id] as $id => $value) + $this->addOption($id, $value); } /** Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -114,7 +114,8 @@ $_form_object_options['albums'][$id] = $obj->getVar('title'); } } - $this->addOptions($_form_object_options['albums']); + foreach($_form_object_options['albums'] as $id => $value) + $this->addOption($id, $value); } /** Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -113,7 +113,9 @@ foreach($artists_handler->getObjects(NULL, true) as $id => $obj) $_form_object_options['artists'][$id] = $obj->getVar('name'); } - $this->addOptions($_form_object_options['artists']); + foreach($_form_object_options['artists'] as $id => $value) + $this->addOption($id, $value); + } /** Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -114,7 +114,9 @@ $_form_object_options['genre'][$id] = $obj->getVar('name'); } } - $this->addOptions($_form_object_options['genre']); + foreach($_form_object_options['genre'] as $id => $value) + $this->addOption($id, $value); + } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php 2012-03-27 08:22:11 UTC (rev 9207) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php 2012-03-27 09:08:36 UTC (rev 9208) @@ -123,7 +123,8 @@ } } } - $this->addOptions($_form_object_options['songs'][$field][$id]); + foreach($_form_object_options['songs'][$field][$id] as $id => $value) + $this->addOption($id, $value); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-27 08:22:24
|
Revision: 9207 http://xoops.svn.sourceforge.net/xoops/?rev=9207&view=rev Author: wishcraft Date: 2012-03-27 08:22:11 +0000 (Tue, 27 Mar 2012) Log Message: ----------- Flowplayer 1.16 - Upgrade of flowplayer to 3.2.8 - Minor Fixes (Posters) - Production Release Added Paths: ----------- XoopsModules/flowplayer/trunk/ XoopsModules/flowplayer/trunk/docs/ XoopsModules/flowplayer/trunk/docs/licence.txt XoopsModules/flowplayer/trunk/htdocs/ XoopsModules/flowplayer/trunk/htdocs/Frameworks/ XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/ XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png XoopsModules/flowplayer/trunk/htdocs/modules/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/header.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/menu.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/blocks/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/blocks/flowplayer_block_player.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/blocks/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/class/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/class/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/class/mimetypes.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/class/player.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/changelog.txt XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/credits.txt XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/install.txt XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/lang_diff.txt XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/licence.txt XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/docs/readme.txt XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/dojson_player.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/header.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/flowplayer_slogo.png XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/icons/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/icons/admin/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/icons/admin/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/icons/admin/video.png XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/icons/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/images/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/JSON.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/formobjects.flowplayer.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/forms.flowplayer.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/formselectmimetype.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/formselectplayer.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/formselectsupport.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/functions.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/update.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/include/uploader.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/index.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/js/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/js/core.js XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/js/flowplayer-3.2.8.min.js XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/js/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/js/json_functions.js XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/js/video.js XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/admin.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/blocks.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/forms.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/main.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/modinfo.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/style.css XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/english/video-js.css XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/language/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/preloads/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/preloads/core.php XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/preloads/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/sql/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/sql/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/sql/mysql.sql XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/swf/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/swf/flowplayer-3.2.8.swf XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/swf/flowplayer.controls-3.2.8.swf XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/swf/flowplayer.rtmp-3.2.8.swf XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/swf/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/blocks/ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/blocks/flowplayer_block_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/blocks/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_edit.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_list.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_edit.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_list.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_cpanel_useragents_list.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_flash_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_html5_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_http_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_flash_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_html5_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_http_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_ios_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_other_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtmp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtsp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_silverlight_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_ios_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_other_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_rstp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_rtmp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_index_silverlight_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_flash_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_html5_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_http_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_ios_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_other_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtmp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtsp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_block_silverlight_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_flash_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_html5_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_http_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_ios_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_other_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_rtmp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_rtsp_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/flowplayer_json_silverlight_player.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/templates/index.html XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/xoops_version.php Added: XoopsModules/flowplayer/trunk/docs/licence.txt =================================================================== --- XoopsModules/flowplayer/trunk/docs/licence.txt (rev 0) +++ XoopsModules/flowplayer/trunk/docs/licence.txt 2012-03-27 08:22:11 UTC (rev 9207) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/trunk/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/header.php =================================================================== --- XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/header.php (rev 0) +++ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/header.php 2012-03-27 08:22:11 UTC (rev 9207) @@ -0,0 +1,61 @@ +<?php + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['flowplayerModule'] = $module_handler->getByDirname('flowplayer'); + $GLOBALS['flowplayerModuleConfig'] = $config_handler->getConfigList($GLOBALS['flowplayerModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo flowplayer_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['flowplayerImageIcon'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons16'); + $GLOBALS['flowplayerImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['flowplayerModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['flowplayerImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['flowplayerImageAdmin']); + + + require_once('../include/functions.php'); + require_once('../include/formobjects.flowplayer.php'); + require_once('../include/forms.flowplayer.php'); + + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/modinfo.php'); + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/forms.php'); + + +?> \ No newline at end of file Added: XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.html =================================================================== --- XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.html (rev 0) +++ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.html 2012-03-27 08:22:11 UTC (rev 9207) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.php =================================================================== --- XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.php (rev 0) +++ XoopsModules/flowplayer/trunk/htdocs/modules/flowplayer/admin/index.php 2012-03-27 08:22:11 UTC (rev 9207) @@ -0,0 +1,402 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'flowplayer'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "dashboard": + default: + echo flowplayer_adminMenu(0); + error_reporting(E_ALL); + $player_handler = xoops_getmodulehandler('player', 'flowplayer'); + $mimetypes_handler = xoops_getmodulehandler('mimetypes', 'flowplayer'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLATFILES."</label>", $player_handler->getCount(new Criteria('stream', '0', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTMPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTSPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLASHSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_IOSSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_HTTPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`http`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_MIMETYPES."</label>", $mimetypes_handler->getCount(), 'Purple'); + $players = $player_handler->getObjects(new Criteria('`default`', '1'), false); + if (isset($players[0])) { + if (is_object($players[0])) { + $player = $players[0]; + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_DEFAULT); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/flowplayer/?fid='.$player->getVar('fid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green'); + } + } + echo $indexAdmin->renderIndex(); + break; + case "about": + echo flowplayer_adminMenu(4); + $paypalitemno='FLOWPLAYER106'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_FLOWPLAYER_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')), strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')). ' '.$GLOBALS['flowplayerModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + break; + case "agents": + flowplayer_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + xoops_load('XoopsCache'); + $ret = XoopsCache::read('flowplayer_user_agents'); + asort($ret, SORT_DESC); + $ttl = count($ret); + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + foreach (array( 'time','player','agents','user') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + $s=0; + $i=0; + foreach($ret as $time => $agent) { + if (is_array($agent)&&$s>=$start&&$i<=$limit) { + $GLOBALS['xoopsTpl']->append('useragents', array('time'=>date(_DATESTRING, $time), 'player'=>$agent['player'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent'])); + $i++; + } + $s++; + } + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_useragents_list.html'); + break; + + + case "player": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $criteria = $player_handler->getFilterCriteria($filter); + $ttl = $player_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'fid','name','raw','reference','height','width','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $player_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $players = $player_handler->getObjects($criteria, true); + foreach($players as $cid => $player) { + if (is_object($player)) + $GLOBALS['xoopsTpl']->append('players', $player->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $player = $player_handler->get(intval($_REQUEST['id'])); + } else { + $player = $player_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form($player)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_edit.html'); + break; + case "save": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $player = $player_handler->get($id); + } else { + $player = $player_handler->create(); + } + $player->setVars($_POST[$id]); + if (!$id=$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } else { + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + include_once($GLOBALS['xoops']->path('modules/flowplayer/include/uploader.php')); + $player = $player_handler->get($id); + $uploader = new FlowplayerMediaUploader($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']), explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_mimetype']), $GLOBALS['flowplayerModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($player->getVar('poster'))) + unlink($GLOBALS['xoops']->path($player->getVar('path')).$player->getVar('poster')); + + $player->setVar('path', $GLOBALS['flowplayerModuleConfig']['upload_areas']); + $player->setVar('poster', $uploader->getSavedFileName()); + @$player_handler->insert($player); + } + } else { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $player = $player_handler->get($id); + $player->setVars($_POST[$id]); + if (!$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + exit(0); + break; + case "delete": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $player = $player_handler->get($id); + if (!$player_handler->delete($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_DELETED); + exit(0); + } + } else { + $player = $player_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_PLAYER_DELETE, $player->getVar('name'))); + } + break; + } + break; + case "mimetypes": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $criteria = $mimetypes_handler->getFilterCriteria($filter); + $ttl = $mimetypes_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'mid','support','name','mimetype','codecs','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mimetypes_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $mimetypess = $mimetypes_handler->getObjects($criteria, true); + foreach($mimetypess as $cid => $mimetypes) { + if (is_object($mimetypes)) + $GLOBALS['xoopsTpl']->append('mimetypes', $mimetypes->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get(intval($_REQUEST['id'])); + } else { + $mimetypes = $mimetypes_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form($mimetypes)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_edit.html'); + break; + case "save": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + } else { + $mimetypes = $mimetypes_handler->create(); + } + $mimetypes->setVars($_POST[$id]); + if (!$id=$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } else { + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $mimetypes = $mimetypes_handler->get($id); + $mimetypes->setVars($_POST[$id]); + if (!$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + exit(0); + break; + case "delete": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + if (!$mimetypes_handler->delete($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_DELETED); + exit(0); + } + } else { + $mimetypes = $mimetypes_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_MIMETYPES_DELETE, $mimetypes->getVar('name'))); + } + break; + } + break; + } + + flowplayer_footer_adminMenu(); + ... [truncated message content] |
From: <wis...@us...> - 2012-03-27 08:18:46
|
Revision: 9206 http://xoops.svn.sourceforge.net/xoops/?rev=9206&view=rev Author: wishcraft Date: 2012-03-27 08:18:36 +0000 (Tue, 27 Mar 2012) Log Message: ----------- Flowplayer 1.16 - Upgrade of flowplayer to 3.2.8 - Minor Fixes (Posters) - Production Release Modified Paths: -------------- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/changelog.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/dojson_player.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/header.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/index.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/admin.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/modinfo.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/mysql.sql XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/xoops_version.php Added Paths: ----------- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/main.php Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -32,10 +32,12 @@ $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_HTTPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`http`)', '0', '>')), 'Green'); $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_MIMETYPES."</label>", $mimetypes_handler->getCount(), 'Purple'); $players = $player_handler->getObjects(new Criteria('`default`', '1'), false); - if (is_object($players[0])) { - $player = $players[0]; - $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_DEFAULT); - $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/flowplayer/?fid='.$player->getVar('fid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green'); + if (isset($players[0])) { + if (is_object($players[0])) { + $player = $players[0]; + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_DEFAULT); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/flowplayer/?fid='.$player->getVar('fid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green'); + } } echo $indexAdmin->renderIndex(); break; @@ -45,7 +47,7 @@ $aboutAdmin = new ModuleAdmin(); $about = $aboutAdmin->renderabout($paypalitemno, false); $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', - 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_TWITTERBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_FLOWPLAYER_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', 3 => '', 4 => '<!-- Start Form Validation JavaScript //--> Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/changelog.txt =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/changelog.txt 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/changelog.txt 2012-03-27 08:18:36 UTC (rev 9206) @@ -5,6 +5,9 @@ - Added /swf/flowplayer.controls-3.2.8.swf FlowplayerPlayer Loader Upgraded old file removed (wishcraft) - Added /swf/flowplayer.rtmp-3.2.8.swf FlowplayerPlayer Loader Upgraded old file removed (wishcraft) - Added /swf/flowplayer-3.2.8.swf FlowplayerPlayer Loader Upgraded old file removed (wishcraft) + - Changed /language/english/admin.php Contants Missing Added - About (wishcraft) + - Changed /language/english/mainfile.php renamed to main.php - About (wishcraft) + - Changed /xoops_version.php better user agents, force jquery = true, fixed upload path (wishcraft) - Changed *.php 3.2.3 global replace for 3.2.8 (wishcraft) - Changed *.php 3.2.5 global replace for 3.2.8 (wishcraft) - Changed *.php 3.2.7 global replace for 3.2.8 (wishcraft) Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/dojson_player.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/dojson_player.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/dojson_player.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -2,7 +2,7 @@ header('Content-type: application/json'); include ('header.php'); - +$GLOBALS['xoopsLogger']->activated = false; xoops_loadLanguage('main', 'flowplayer'); $user = flowplayer_getIPData(false); Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/header.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/header.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/header.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -1,6 +1,6 @@ <?php require_once (dirname(dirname(dirname(__FILE__))).'/mainfile.php'); - $GLOBALS['xoopsLogger']->activated = false; + require_once('include/functions.php'); require_once('include/formobjects.flowplayer.php'); require_once('include/forms.flowplayer.php'); Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/index.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/index.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/index.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -17,7 +17,7 @@ $player = $players[0]; } $mode = $player->getModeWithUserAgent(); - if (!$GLOBALS['flowplayerModuleConfig']['iframe']&&(!isset($_GET['iframe'])&&$_GET['iframe']!=true)) { + if (!$GLOBALS['flowplayerModuleConfig']['iframe']&&(!isset($_GET['iframe']))) { if (is_object($player)) { if ($GLOBALS['flowplayerModuleConfig'][$mode.'_secure']==true) { $xoopsOption['template_main'] = 'flowplayer_index_'.$mode.'_player.html'; Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/admin.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/admin.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/admin.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -78,4 +78,6 @@ define('_AM_FLOWPLAYER_ADMIN_THEREARE_HTTPSTREAMS', 'Number of HTTP(s) Streams: %s'); define('_AM_FLOWPLAYER_ADMIN_THEREARE_MIMETYPES', 'Number of Mimetypes: %s'); + // Version 1.16 + define('_AM_FLOWPLAYER_ABOUT_MAKEDONATE', 'Improve Flowplayer Make a Donation!'); ?> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/main.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/main.php (rev 0) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/main.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -0,0 +1,14 @@ +<?php + + // JSON Messages + define('_MN_FLOWPLAYER_TOKEN_KEY_EXPIRED', 'Passkey token has expired please refesh the page!'); + define('_MN_FLOWPLAYER_NO_USER', 'User not found!'); + + // Error Messages + define('_MN_FLOWPLAYER_NO_DEFAULT', 'No Default Video Stream specified in the admin or video doesn\'t exist!'); + define('_MN_FLOWPLAYER_NO_DEFAULT_TITLE', 'No Default'); + + // Version 1.07 + // JSON Messages + define('_MN_FLOWPLAYER_SESSION_EXPIRED', 'Server Session Expired or None Existent!'); +?> \ No newline at end of file Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/modinfo.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/modinfo.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/modinfo.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -74,13 +74,6 @@ define('_MI_FLOWPLAYER_OTHER_USERAGENTS_DESC', 'Seperate with a pipe, ie. |'); define('_MI_FLOWPLAYER_HTML5_USERAGENTS', 'HTML5 Player Useragents'); define('_MI_FLOWPLAYER_HTML5_USERAGENTS_DESC', 'Seperate with a pipe, ie. |'); - define('_MI_FLOWPLAYER_PLAYER_FLASH', 'Flash Video Player'); - define('_MI_FLOWPLAYER_PLAYER_IOS', 'iOS HTML5 Player'); - define('_MI_FLOWPLAYER_PLAYER_RTSP', 'RTSP HTML5 Player'); - define('_MI_FLOWPLAYER_PLAYER_HTML5', 'HTML5 Player'); - define('_MI_FLOWPLAYER_PLAYER_RTMP', 'RTMP Player'); - define('_MI_FLOWPLAYER_PLAYER_SILVERLIGHT', 'Silverlight Player'); - define('_MI_FLOWPLAYER_PLAYER_OTHER', 'Other Player'); define('_MI_FLOWPLAYER_DEFAULT_PLAYER', 'Default Player'); define('_MI_FLOWPLAYER_DEFAULT_PLAYER_DESC', 'This is the default player selected when nothing with a useragent is specified'); define('_MI_FLOWPLAYER_RTMP_PLAYER', 'RTMP Player'); @@ -190,5 +183,4 @@ define('_MI_FLOWPLAYER_HTTP', 'HTTP(s) Player'); define('_MI_FLOWPLAYER_HTTP_PLAYER', 'HTTP(s) Player'); define('_MI_FLOWPLAYER_HTTP_PLAYER_DESC', 'This is the HTTP(s) player selected when a useragent is specified'); - ?> \ No newline at end of file Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/mysql.sql =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/mysql.sql 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/mysql.sql 2012-03-27 08:18:36 UTC (rev 9206) @@ -42,11 +42,7 @@ PRIMARY KEY (`fid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -insert into `flowplayer_player` (`fid`,`mid`,`name`,`reference`,`source`,`width`,`height`,`default`,`created`,`updated`,`stream`,`rtmp_server`,`rtmp`,`level`,`autoplay`,`muted`,`play`,`volume`,`mute`,`time`,`stop`,`fullscreen`,`scrubber`) values (1,1,'Test Mp4','player_%fid%','http://video-js.zencoder.com/oceans-clip.mp4','420px','340px',0,UNIX_TIMESTAMP(),0,0,'','',100,0,0,0,0,0,0,0,0,0); -insert into `flowplayer_player` (`fid`,`mid`,`name`,`reference`,`source`,`width`,`height`,`default`,`created`,`updated`,`stream`,`rtmp_server`,`rtmp`,`level`,`autoplay`,`muted`,`play`,`volume`,`mute`,`time`,`stop`,`fullscreen`,`scrubber`) values (2,4,'Test Flash Video','player_%fid%','http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv','520px','330px',0,UNIX_TIMESTAMP(),0,0,'','',100,0,0,0,0,0,0,0,0,0); -insert into `flowplayer_player` (`fid`,`mid`,`name`,`reference`,`source`,`width`,`height`,`default`,`created`,`updated`,`stream`,`rtmp_server`,`rtmp`,`flash`,`ios`,`silverlight`,`rtsp`,`level`,`autoplay`,`muted`,`play`,`volume`,`mute`,`time`,`stop`,`fullscreen`,`scrubber`) values (3,1,'iStreamTV Video','player_%fid%','#','520px','330px',1,UNIX_TIMESTAMP(),0,1,'mp4:istreamtv.mp4','rtmp://27.50.94.90/vod','http://27.50.94.90:1935/vod/_definst_/mp4:myvideos/istreamtv.mp4/manifest.f4m','http://27.50.94.90:1935/vod/_definst_/mp4:myvideos/istreamtv.mp4/playlist.m3u8','http://27.50.94.90:1935/vod/_definst_/mp4:myvideos/istreamtv.mp4/Manifest','rtsp://27.50.94.90:1935/vod/_definst_/mp4:myvideos/istreamtv.mp4',100,1,0,0,0,0,0,0,1,0); - CREATE TABLE `flowplayer_mimetypes` ( `mid` int(10) unsigned NOT NULL AUTO_INCREMENT, `support` enum('_MI_FLOWPLAYER_FLASH', '_MI_FLOWPLAYER_HTML5', '_MI_FLOWPLAYER_HTTP', '_MI_FLOWPLAYER_IOS', '_MI_FLOWPLAYER_RTMP', '_MI_FLOWPLAYER_RTSP', '_MI_FLOWPLAYER_SILVERLIGHT', '_MI_FLOWPLAYER_OTHER') DEFAULT '_MI_FLOWPLAYER_FLASH', Modified: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/xoops_version.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/xoops_version.php 2012-03-27 08:07:04 UTC (rev 9205) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/xoops_version.php 2012-03-27 08:18:36 UTC (rev 9206) @@ -32,7 +32,7 @@ $modversion['name'] = _MI_FLOWPLAYER_NAME; $modversion['version'] = 1.16; -$modversion['releasedate'] = "Monday: March 26, 2012"; +$modversion['releasedate'] = "Monday: March 27, 2012"; $modversion['description'] = _MI_FLOWPLAYER_DESCRIPTION; $modversion['author'] = "Wishcraft"; $modversion['credits'] = "Simon Roberts (si...@ch...)"; @@ -51,9 +51,9 @@ $modversion['icons16'] = 'Frameworks/moduleclasses/icons/16'; $modversion['icons32'] = 'Frameworks/moduleclasses/icons/32'; -$modversion['release_info'] = "Stable 2012/03/26"; +$modversion['release_info'] = "Stable 2012/03/27"; $modversion['release_file'] = XOOPS_URL."/modules/flowplayer/docs/changelog.txt"; -$modversion['release_date'] = "2012/03/26"; +$modversion['release_date'] = "2012/03/27"; $modversion['author_realname'] = "Simon Roberts"; $modversion['author_website_url'] = "http://www.chronolabs.coop"; @@ -123,7 +123,7 @@ $modversion['templates'][$i]['file'] = 'flowplayer_json_block_flash_player.html'; $modversion['templates'][$i]['description'] = 'Main JSON Form for Flow Player Player for blocks'; $i++; -$modversion['templates'][$i]['file'] = 'flowplayer_index.html_rtmp_player'; +$modversion['templates'][$i]['file'] = 'flowplayer_index_rtmp_player.html'; $modversion['templates'][$i]['description'] = 'Main Index Error for player'; $i++; $modversion['templates'][$i]['file'] = 'flowplayer_index_iframe_rtmp_player.html'; @@ -229,8 +229,8 @@ $modversion['config'][$i]['description'] = "_MI_FLOWPLAYER_SALT_DESC"; $modversion['config'][$i]['formtype'] = 'text'; $modversion['config'][$i]['valuetype'] = 'text'; -mt_srand(); -$modversion['config'][$i]['default'] = (mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):'').(mt_rand(0,4)!=2?chr(mt_rand(32,190)):''); +mt_srand(microtime(true)); +$modversion['config'][$i]['default'] = (mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))).(mt_rand(0,4)!=2?chr(mt_rand(32,190)):chr(mt_rand(52,250))); $modversion['config'][$i]['options'] = array(); $i++; @@ -239,7 +239,7 @@ $modversion['config'][$i]['description'] = "_MI_FLOWPLAYER_FORCE_JQUERY_DESC"; $modversion['config'][$i]['formtype'] = 'yesno'; $modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = false; +$modversion['config'][$i]['default'] = true; $modversion['config'][$i]['options'] = array(); $i++; @@ -275,7 +275,7 @@ $modversion['config'][$i]['description'] = '_MI_FLOWPLAYER_RTMP_USERAGENTS_DESC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = '(KHTML, like Gecko) Chrome|Firefox|Firebird|SeaMonkey|MSIE|Navigator|Netscape|Opera'; +$modversion['config'][$i]['default'] = 'Chrome|Firefox|Firebird|SeaMonkey|MSIE|Navigator|Netscape|Opera|Safari|Android|Fennec'; $i++; $modversion['config'][$i]['name'] = 'flash_agents'; @@ -283,7 +283,7 @@ $modversion['config'][$i]['description'] = '_MI_FLOWPLAYER_FLASH_USERAGENTS_DESC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = '(KHTML, like Gecko) Chrome|Firefox|Firebird|SeaMonkey|MSIE|Navigator|Netscape|Opera'; +$modversion['config'][$i]['default'] = 'Chrome|Firefox|Firebird|SeaMonkey|MSIE|Navigator|Netscape|Opera|Safari|Android|Fennec'; $i++; $modversion['config'][$i]['name'] = 'ios_agents'; @@ -291,7 +291,7 @@ $modversion['config'][$i]['description'] = '_MI_FLOWPLAYER_IOS_USERAGENTS_DESC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'Safari|Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3|Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; es-es) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405|Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; es-es) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B405 Safari/531.21.10|Mozilla/5.0 (iPad; U; CPU OS 3_2_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B500 Safari/531.21.10|Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10|Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10|Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16|Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16|Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3\')|Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F191 Safari/6533.18.5|Mozilla/5.0 (iPad; U; CPU OS 4_3_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8G4 Safari/6533.18.5|Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10|Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9|Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10|Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F190 Safari/6533.18.5|Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.0.2 Mobile/9A5248d Safari/6533.18.5\')'; +$modversion['config'][$i]['default'] = 'iPhone|iPad|iTouch|iPod'; $i++; $modversion['config'][$i]['name'] = 'silverlight_agents'; @@ -299,7 +299,7 @@ $modversion['config'][$i]['description'] = '_MI_FLOWPLAYER_SILVERLIGHT_USERAGENTS_DESC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'Media Center PC|Trident|chromeframe|Windows-Media-Player|MSIE|Firefox'; +$modversion['config'][$i]['default'] = 'Media Center PC|Trident|chromeframe|Windows-Media-Player|MSIE'; $i++; $modversion['config'][$i]['name'] = 'rtsp_agents'; @@ -307,7 +307,7 @@ $modversion['config'][$i]['description'] = '_MI_FLOWPLAYER_RTSP_USERAGENTS_DESC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'Android 2.1|Android 2.2|Android 2.2.1|Android 1.0.3|Android 2.2.1|Android 1.6|Android|Fennec'; +$modversion['config'][$i]['default'] = ''; $i++; $modversion['config'][$i]['name'] = 'html5_agents'; @@ -315,7 +315,7 @@ $modversion['config'][$i]['description'] = '_MI_FLOWPLAYER_HTML5_USERAGENTS_DESC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = '(KHTML, like Gecko) Chrome|MSIE'; +$modversion['config'][$i]['default'] = 'Chrome|MSIE'; $i++; $modversion['config'][$i]['name'] = 'http_agents'; @@ -618,8 +618,8 @@ $modversion['config'][$i]['valuetype'] = 'text'; $modversion['config'][$i]['default'] = 'uploads'.DS.'flowplayer'.DS; $modversion['config'][$i]['options'] = array( - _MI_FLOWPLAYER_UPLOADAREAS_UPLOADS => 'uploads'.DS, - _MI_FLOWPLAYER_UPLOADAREAS_UPLOADS_UITABS => 'uploads'.DS.'flowplayer'.DS + 'uploads'.DS => 'uploads'.DS, + 'uploads'.DS.'flowplayer'.DS => 'uploads'.DS.'flowplayer'.DS ); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-03-27 08:07:15
|
Revision: 9205 http://xoops.svn.sourceforge.net/xoops/?rev=9205&view=rev Author: beckmi Date: 2012-03-27 08:07:04 +0000 (Tue, 27 Mar 2012) Log Message: ----------- Added Toggle feature to Fields and Steps tabs, and buttons consistent with 2.5.x Admin GUI Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/category.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/step.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/class/field.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_categorylist.html XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/xoops_version.php Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-03-27 08:07:04 UTC (rev 9205) @@ -14,7 +14,7 @@ - ID: 3511205 Bug in fresh install in page_configsave.php (XavierS) Improved: - - replacing "msnbot" with "bingbot" in Protector (mamba) + - replacing "msnbot" with "bingbot" in Protector (mamba) Updated: - HTML Purifier to 4.4.0 (mamba) Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/category.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/category.php 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/category.php 2012-03-27 08:07:04 UTC (rev 9205) @@ -31,7 +31,12 @@ include 'admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); + + +$indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_CATEGORY, 'category.php?op=new', 'add', ''); + echo $indexAdmin->addNavigation('category.php'); +echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); @@ -100,5 +105,4 @@ if ( isset($template_main) ) { $GLOBALS['xoopsTpl']->display("db:{$template_main}"); } -include 'admin_footer.php'; -//xoops_cp_footer(); \ No newline at end of file +include 'admin_footer.php'; \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/field.php 2012-03-27 08:07:04 UTC (rev 9205) @@ -20,7 +20,11 @@ include 'admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); + +$indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_FIELD, 'field.php?op=new', 'add', ''); + echo $indexAdmin->addNavigation('field.php'); +echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); @@ -301,14 +305,13 @@ case 'toggle': if (isset($_REQUEST['field_id'])) { - $field_id=$_REQUEST['field_id']; + $field_id = intval($_REQUEST['field_id']); if (isset($_REQUEST['field_required'])) { - $field_required = isset($_GET['field_required']) ? intval($_GET['field_required']) : (isset($_POST['field_required']) ? intval($_POST['field_required']) : 0); + $field_required = intval($_REQUEST['field_required']); profile_visible_toggle($field_id, $field_required); - redirect_header('field.php', 1, _PROFILE_AM_REQUIRED_TOGGLE_SUCCESS); - break; } } + break; } if (isset($template_main)) { @@ -320,10 +323,13 @@ $field_required = ($field_required == 1) ? 0 : 1; $this_handler =& xoops_getModuleHandler('field', 'profile'); $obj = $this_handler->get($field_id); - $obj->setVar('field_required', intval($field_required)); - $this_handler->insert($obj,true); + $obj->setVar('field_required', $field_required); + if ($this_handler->insert($obj, true)) { + redirect_header('field.php', 1, _PROFILE_AM_REQUIRED_TOGGLE_SUCCESS); + } else { + redirect_header('field.php', 1, _PROFILE_AM_REQUIRED_TOGGLE_FAILED); + } } -include 'admin_footer.php'; -//xoops_cp_footer(); \ No newline at end of file +include 'admin_footer.php'; \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/step.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/step.php 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/admin/step.php 2012-03-27 08:07:04 UTC (rev 9205) @@ -20,7 +20,10 @@ include 'admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); + +$indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_STEP, 'step.php?op=new', 'add', ''); echo $indexAdmin->addNavigation('step.php'); +echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); @@ -75,11 +78,34 @@ xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('step_name') )); } break; + + + case 'toggle': + if (isset($_GET['step_id'])) { + $field_id=intval($_GET['step_id']); + if (isset($_GET['step_save'])) { + $step_save = intval($_GET['step_save']); + profile_stepsave_toggle($step_id, $step_save); + } + } + break; } if ( !empty($template_main) ) { $GLOBALS['xoopsTpl']->display("db:{$template_main}"); } -include 'admin_footer.php'; -//xoops_cp_footer(); \ No newline at end of file +function profile_stepsave_toggle($step_d, $step_save) +{ + $step_save = ($step_save == 1) ? 0 : 1; + $handler =& xoops_getmodulehandler('regstep'); + $obj =& $handler->get($_REQUEST['step_id']); + $obj->setVar('step_save', $step_save); + if ($handler->insert($obj,true)) { + redirect_header('step.php', 1, _PROFILE_AM_SAVESTEP_TOGGLE_SUCCESS); + }else { + redirect_header('step.php', 1, _PROFILE_AM_SAVESTEP_TOGGLE_FAILED); + } +} + +include 'admin_footer.php'; \ No newline at end of file Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/class/field.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/class/field.php 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/class/field.php 2012-03-27 08:07:04 UTC (rev 9205) @@ -510,7 +510,7 @@ $obj->setVar('field_valuetype', XOBJ_DTYPE_TXTBOX); } - if (!in_array($obj->getVar('field_name'), $this->getUserVars())) { + if ((!in_array($obj->getVar('field_name'), $this->getUserVars())) && (!isset($_REQUEST['field_required']))) { if ($obj->isNew()) { //add column to table $changetype = "ADD"; Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/docs/changelog.txt 2012-03-27 08:07:04 UTC (rev 9205) @@ -1,6 +1,8 @@ -Version 1.63 +Version 1.63 RC ------------------- - added "Required" column in Fields with Toggle functionality (mamba) +- added Toggle functionality to "Save After Step" column (mamba) +- added "Add" buttons, consistent with 2.5.x Admin GUI (mamba) Version 1.62 RC ------------------- Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/language/english/admin.php 2012-03-27 08:07:04 UTC (rev 9205) @@ -113,8 +113,12 @@ //1.62 define('_PROFILE_AM_ACTION', 'Action'); //1.63 -define('_PROFILE_AM_REQUIRED_TOGGLE', 'Toggle Required'); +define('_PROFILE_AM_REQUIRED_TOGGLE', 'Toggle Required Field'); define('_PROFILE_AM_REQUIRED_TOGGLE_SUCCESS', 'Successfully Changed Required Field '); +define('_PROFILE_AM_REQUIRED_TOGGLE_FAILED', 'Changing Required Field Failed'); +define('_PROFILE_AM_SAVESTEP_TOGGLE', 'Toggle Save'); +define('_PROFILE_AM_SAVESTEP_TOGGLE_SUCCESS', 'Successfully Changed Save After Step'); +define('_PROFILE_AM_SAVESTEP_TOGGLE_FAILED', "Changing 'Save After Step' Failed"); ?> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_categorylist.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_categorylist.html 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_categorylist.html 2012-03-27 08:07:04 UTC (rev 9205) @@ -1,4 +1,3 @@ -<div><a href="category.php?op=new"><{$smarty.const._ADD}> <{$smarty.const._PROFILE_AM_CATEGORY}></a></div> <table> <tr> <th><{$smarty.const._PROFILE_AM_TITLE}></th> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_fieldlist.html 2012-03-27 08:07:04 UTC (rev 9205) @@ -1,4 +1,3 @@ -<div><a href="field.php?op=new"><{$smarty.const._ADD}> <{$smarty.const._PROFILE_AM_FIELD}></a></div> <form action="field.php" method="post" id="fieldform"> <table> <th><{$smarty.const._PROFILE_AM_NAME}></th> @@ -26,15 +25,11 @@ <input type="text" name="weight[<{$field.field_id}>]" size="5" maxlength="5" value="<{$field.field_weight}>" /> <{/if}> </td> - - <!-- ___________adding "Required" status" //mb --> <td align="center"> <{if $field.canEdit}> <a href="field.php?op=toggle&field_required=<{$field.field_required}>&field_id=<{$field.field_id}>"><img src="<{$xoops_url}>/modules/profile/images/actions/<{$field.field_required}>.png" title="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_REQUIRED_TOGGLE}>" /></a> <{/if}> </td> - <!-- end __________"Required" status" //mb --> - <td align= "center"> <{if $field.canEdit}> <input type="hidden" name="oldweight[<{$field.field_id}>]" value="<{$field.field_weight}>" /> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/templates/profile_admin_steplist.html 2012-03-27 08:07:04 UTC (rev 9205) @@ -1,4 +1,3 @@ -<div><a href="step.php?op=new"><{$smarty.const._ADD}> <{$smarty.const._PROFILE_AM_STEP}></a></div> <table> <th><{$smarty.const._PROFILE_AM_STEPNAME}></th> <th><{$smarty.const._PROFILE_AM_STEPORDER}></th> @@ -7,8 +6,10 @@ <{foreach item=step from=$steps}> <tr class="<{cycle values='odd, even'}>"> <td><{$step.step_name}></td> - <td align= "center"><{$step.step_order}></td> - <td align= "center"><{if $step.step_save == 1}><img src="<{xoModuleIcons16 on.png}>" alt="<{$smarty.const._YES}>" /><{else}><img src="<{xoModuleIcons16 off.png}>" alt="<{$smarty.const._NO}>" /><{/if}></td> + <td align= "center"><{$step.step_order}></td> + <td align="center"> + <a href="step.php?op=toggle&step_save=<{$step.step_save}>&step_id=<{$step.step_id}>"><img src="<{$xoops_url}>/modules/profile/images/actions/<{$step.step_save}>.png" title="<{$smarty.const._PROFILE_AM_SAVESTEP_TOGGLE}>" alt="<{$smarty.const._PROFILE_AM_SAVESTEP_TOGGLE}>" /></a> + </td> <td align= "center"> <a href="step.php?id=<{$step.step_id}>" title="<{$smarty.const._EDIT}>"><img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> <a href="step.php?op=delete&id=<{$step.step_id}>" title="<{$smarty.const._DELETE}>"><img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>"</a> Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/xoops_version.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/xoops_version.php 2012-03-26 20:25:40 UTC (rev 9204) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/profile/xoops_version.php 2012-03-27 08:07:04 UTC (rev 9205) @@ -25,7 +25,7 @@ */ $modversion = array(); $modversion['name'] = _PROFILE_MI_NAME; -$modversion['version'] = 1.62; +$modversion['version'] = 1.63; $modversion['description'] = _PROFILE_MI_DESC; $modversion['author'] = "Jan Pedersen, Taiwen Jiang, alfred, Wishcraft"; $modversion['credits'] = "Ackbarr, mboyden, marco, mamba, trabis, etc."; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2012-03-26 20:25:46
|
Revision: 9204 http://xoops.svn.sourceforge.net/xoops/?rev=9204&view=rev Author: mageg Date: 2012-03-26 20:25:40 +0000 (Mon, 26 Mar 2012) Log Message: ----------- test for new formtext Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtext.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/class/form/smilies.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtext.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtext.php 2012-03-26 20:05:51 UTC (rev 9203) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtext.php 2012-03-26 20:25:40 UTC (rev 9204) @@ -44,7 +44,39 @@ */ private $_maxlength; + /** + * class for the imput + * + * @var string + * @access private + */ + private $_class; + /** + * pattern for the imput + * + * @var string + * @access private + */ + private $_pattern; + + /** + * placeholder for the imput + * + * @var string + * @access private + */ + private $_placeholder; + + /** + * required for the imput + * + * @var boolean + * @access private + */ + private $_required; + + /** * Constructor * * @param string $caption Caption @@ -52,14 +84,22 @@ * @param int $size Size * @param int $maxlength Maximum length of text * @param string $value Initial text + * @param string $class Class of input + * @param string $pattern Allows a data verification with regular expressions + * @param string $placeholder Displays information in the imput + * @param string $required Indicate if the input is required */ - public function __construct($caption, $name, $size, $maxlength, $value = '') + public function __construct($caption, $name, $size, $maxlength, $value = '', $class = '', $pattern = '', $placeholder = '', $required = false) { $this->setCaption($caption); $this->setName($name); $this->_size = intval($size); $this->_maxlength = intval($maxlength); $this->setValue($value); + $this->_class = $class; + $this->_pattern = $pattern; + $this->_placeholder = $placeholder; + $this->_required = $required; } /** @@ -83,12 +123,61 @@ } /** + * Get class + * + * @return string + */ + public function getClass() + { + return $this->_class; + } + + /** + * Get pattern + * + * @return string + */ + public function getPattern() + { + if ( $this->_pattern != '') { + return $this->_pattern; + } else { + return '*'; + } + } + + /** + * Get placeholder + * + * @return string + */ + public function getPlaceholder() + { + return $this->_placeholder; + } + + /** + * Get required + * + * @return string + */ + public function getRequired() + { + if ( $this->_required == true) { + return 'required'; + } else { + return ''; + } + } + /** * Prepare HTML for output * * @return string HTML */ public function render() { - return "<input type='text' name='" . $this->getName() . "' title='" . $this->getTitle() . "' id='" . $this->getName() . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $this->getValue() . "'" . $this->getExtra() . " />"; + return "<input type='text' class='" . $this->getClass() . "' name='" . $this->getName() . "' title='" . $this->getTitle() . "' id='" . $this->getName() . "' + size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $this->getValue() . "' pattern='" . $this->getPattern() . "' + placeholder='" . $this->getPlaceholder() . "' " . $this->getExtra() . " " . $this->getRequired() . ">\n"; } } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/class/form/smilies.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/class/form/smilies.php 2012-03-26 20:05:51 UTC (rev 9203) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/class/form/smilies.php 2012-03-26 20:25:40 UTC (rev 9204) @@ -40,8 +40,8 @@ parent::__construct($title, 'form', 'smilies.php', 'post', true); $this->setExtra('enctype="multipart/form-data"'); - $this->addElement(new XoopsFormText(_AM_SMILIES_CODE, 'code', 26, 25, $obj->getVar('code')), true); - $this->addElement(new XoopsFormText(_AM_SMILIES_DESCRIPTION, 'emotion', 50, 50, $obj->getVar('emotion')), true); + $this->addElement(new XoopsFormText(_AM_SMILIES_CODE, 'code', 26, 25, $obj->getVar('code'), '', '^Code(.*)$', 'Code', true), true); + $this->addElement(new XoopsFormText(_AM_SMILIES_DESCRIPTION, 'emotion', 50, 50, $obj->getVar('emotion'), '', '', '', true), true); $imgtray_img = new XoopsFormElementTray( _AM_SMILIES_FILE, '<br />' ); $imgpath_img = sprintf( _AM_SMILIES_IMAGE_PATH, XOOPS_UPLOAD_PATH . '/smilies/' ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-26 20:05:57
|
Revision: 9203 http://xoops.svn.sourceforge.net/xoops/?rev=9203&view=rev Author: wishcraft Date: 2012-03-26 20:05:51 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.09 - complete second release - final - DB Optimization, Bottlenecks Removed, Pagination Fixed, Templating Issues Fixed. Modified Paths: -------------- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql Modified: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/mysql.sql =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 19:44:00 UTC (rev 9202) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 20:05:51 UTC (rev 9203) @@ -77,7 +77,7 @@ `sid` INT(12) UNSIGNED DEFAULT '0', `created` INT(12) UNSIGNED DEFAULT '0', `updated` INT(12) UNSIGNED DEFAULT '0', - PRIMARY KEY (`rid`) + PRIMARY KEY (`rid`), KEY `SORT` (`songid`(10),`sid`,`created`) ) ENGINE=INNODB DEFAULT CHARSET=utf8; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 19:44:00 UTC (rev 9202) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql 2012-03-26 20:05:51 UTC (rev 9203) @@ -77,7 +77,7 @@ `sid` INT(12) UNSIGNED DEFAULT '0', `created` INT(12) UNSIGNED DEFAULT '0', `updated` INT(12) UNSIGNED DEFAULT '0', - PRIMARY KEY (`rid`) + PRIMARY KEY (`rid`), KEY `SORT` (`songid`(10),`sid`,`created`) ) ENGINE=INNODB DEFAULT CHARSET=utf8; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-03-26 19:44:10
|
Revision: 9202 http://xoops.svn.sourceforge.net/xoops/?rev=9202&view=rev Author: wishcraft Date: 2012-03-26 19:44:00 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Flowplayer 1.16 - Upgrade of flowplayer to 3.2.8 - Minor Fixes (Posters) Added Paths: ----------- XoopsModules/flowplayer/releases/1.16/ XoopsModules/flowplayer/releases/1.16/docs/ XoopsModules/flowplayer/releases/1.16/docs/licence.txt XoopsModules/flowplayer/releases/1.16/htdocs/ XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/ XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/ XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png XoopsModules/flowplayer/releases/1.16/htdocs/modules/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/header.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/menu.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/blocks/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/blocks/flowplayer_block_player.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/blocks/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/class/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/class/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/class/mimetypes.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/class/player.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/changelog.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/credits.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/install.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/lang_diff.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/licence.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/docs/readme.txt XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/dojson_player.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/header.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/flowplayer_slogo.png XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/icons/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/icons/admin/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/icons/admin/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/icons/admin/video.png XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/icons/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/images/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/JSON.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/formobjects.flowplayer.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/forms.flowplayer.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/formselectmimetype.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/formselectplayer.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/formselectsupport.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/functions.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/update.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/include/uploader.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/index.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/js/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/js/core.js XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/js/flowplayer-3.2.8.min.js XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/js/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/js/json_functions.js XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/js/video.js XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/admin.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/block.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/blocks.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/forms.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/mainfile.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/modinfo.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/style.css XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/english/video-js.css XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/language/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/preloads/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/preloads/core.php XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/preloads/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/sql/mysql.sql XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/swf/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/swf/flowplayer-3.2.8.swf XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/swf/flowplayer.controls-3.2.8.swf XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/swf/flowplayer.rtmp-3.2.8.swf XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/swf/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/blocks/ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/blocks/flowplayer_block_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/blocks/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_edit.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_cpanel_mimetypes_list.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_edit.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_cpanel_player_list.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_cpanel_useragents_list.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_flash_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_html5_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_http_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_flash_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_html5_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_http_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_ios_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_other_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtmp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_rtsp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_iframe_silverlight_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_ios_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_other_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_rstp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_rtmp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_index_silverlight_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_flash_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_html5_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_http_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_ios_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_other_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtmp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_rtsp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_block_silverlight_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_flash_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_html5_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_http_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_ios_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_other_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_rtmp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_rtsp_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/flowplayer_json_silverlight_player.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/templates/index.html XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/xoops_version.php Added: XoopsModules/flowplayer/releases/1.16/docs/licence.txt =================================================================== --- XoopsModules/flowplayer/releases/1.16/docs/licence.txt (rev 0) +++ XoopsModules/flowplayer/releases/1.16/docs/licence.txt 2012-03-26 19:44:00 UTC (rev 9202) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.mimetypes.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.useragents.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png =================================================================== (Binary files differ) Property changes on: XoopsModules/flowplayer/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/flowplayer.video.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/header.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/header.php (rev 0) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/header.php 2012-03-26 19:44:00 UTC (rev 9202) @@ -0,0 +1,61 @@ +<?php + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['flowplayerModule'] = $module_handler->getByDirname('flowplayer'); + $GLOBALS['flowplayerModuleConfig'] = $config_handler->getConfigList($GLOBALS['flowplayerModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo flowplayer_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['flowplayerImageIcon'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons16'); + $GLOBALS['flowplayerImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['flowplayerModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['flowplayerModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['flowplayerImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['flowplayerImageAdmin']); + + + require_once('../include/functions.php'); + require_once('../include/formobjects.flowplayer.php'); + require_once('../include/forms.flowplayer.php'); + + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/modinfo.php'); + include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/forms.php'); + + +?> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.html =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.html (rev 0) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.html 2012-03-26 19:44:00 UTC (rev 9202) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php =================================================================== --- XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php (rev 0) +++ XoopsModules/flowplayer/releases/1.16/htdocs/modules/flowplayer/admin/index.php 2012-03-26 19:44:00 UTC (rev 9202) @@ -0,0 +1,400 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'flowplayer'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + case "dashboard": + default: + echo flowplayer_adminMenu(0); + error_reporting(E_ALL); + $player_handler = xoops_getmodulehandler('player', 'flowplayer'); + $mimetypes_handler = xoops_getmodulehandler('mimetypes', 'flowplayer'); + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLATFILES."</label>", $player_handler->getCount(new Criteria('stream', '0', '=')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTMPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_RTSPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_FLASHSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_IOSSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_HTTPSTREAMS."</label>", $player_handler->getCount(new Criteria('LENGTH(`http`)', '0', '>')), 'Green'); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_COUNTS, "<label>"._AM_FLOWPLAYER_ADMIN_THEREARE_MIMETYPES."</label>", $mimetypes_handler->getCount(), 'Purple'); + $players = $player_handler->getObjects(new Criteria('`default`', '1'), false); + if (is_object($players[0])) { + $player = $players[0]; + $indexAdmin->addInfoBox(_AM_FLOWPLAYER_ADMIN_DEFAULT); + $indexAdmin->addInfoBoxLine(_AM_FLOWPLAYER_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/flowplayer/?fid='.$player->getVar('fid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green'); + } + echo $indexAdmin->renderIndex(); + break; + case "about": + echo flowplayer_adminMenu(4); + $paypalitemno='FLOWPLAYER106'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_TWITTERBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')), strtoupper($GLOBALS['flowplayerModule']->getVar('dirname')). ' '.$GLOBALS['flowplayerModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + break; + case "agents": + flowplayer_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + xoops_load('XoopsCache'); + $ret = XoopsCache::read('flowplayer_user_agents'); + asort($ret, SORT_DESC); + $ttl = count($ret); + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + foreach (array( 'time','player','agents','user') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + $s=0; + $i=0; + foreach($ret as $time => $agent) { + if (is_array($agent)&&$s>=$start&&$i<=$limit) { + $GLOBALS['xoopsTpl']->append('useragents', array('time'=>date(_DATESTRING, $time), 'player'=>$agent['player'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent'])); + $i++; + } + $s++; + } + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_useragents_list.html'); + break; + + + case "player": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $criteria = $player_handler->getFilterCriteria($filter); + $ttl = $player_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'fid','name','raw','reference','height','width','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $player_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $players = $player_handler->getObjects($criteria, true); + foreach($players as $cid => $player) { + if (is_object($player)) + $GLOBALS['xoopsTpl']->append('players', $player->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $player = $player_handler->get(intval($_REQUEST['id'])); + } else { + $player = $player_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_player_get_form($player)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_player_edit.html'); + break; + case "save": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $player = $player_handler->get($id); + } else { + $player = $player_handler->create(); + } + $player->setVars($_POST[$id]); + if (!$id=$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } else { + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + include_once($GLOBALS['xoops']->path('modules/flowplayer/include/uploader.php')); + $player = $player_handler->get($id); + $uploader = new FlowplayerMediaUploader($GLOBALS['xoops']->path($GLOBALS['flowplayerModuleConfig']['upload_areas']), explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_mimetype']), $GLOBALS['flowplayerModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['flowplayerModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($player->getVar('poster'))) + unlink($GLOBALS['xoops']->path($player->getVar('path')).$player->getVar('poster')); + + $player->setVar('path', $GLOBALS['flowplayerModuleConfig']['upload_areas']); + $player->setVar('poster', $uploader->getSavedFileName()); + @$player_handler->insert($player); + } + } else { + flowplayer_adminMenu(1); + echo $uploader->getErrors(); + flowplayer_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $player = $player_handler->get($id); + $player->setVars($_POST[$id]); + if (!$player_handler->insert($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_SAVEDOKEY); + exit(0); + break; + case "delete": + + $player_handler =& xoops_getmodulehandler('player', 'flowplayer'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $player = $player_handler->get($id); + if (!$player_handler->delete($player)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_FAILEDTODELETE); + exit(0); + } else { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_PLAYER_DELETED); + exit(0); + } + } else { + $player = $player_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), 'index.php', sprintf(_AM_MSG_PLAYER_DELETE, $player->getVar('name'))); + } + break; + } + break; + case "mimetypes": + switch ($fct) + { + default: + case "list": + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $criteria = $mimetypes_handler->getFilterCriteria($filter); + $ttl = $mimetypes_handler->getCount($criteria); + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'mid','support','name','mimetype','codecs','default','created','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_FLOWPLAYER_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mimetypes_handler->getFilterForm($filter, $key, $sort, $op, $fct)); + } + + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['flowplayerModuleConfig']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $mimetypess = $mimetypes_handler->getObjects($criteria, true); + foreach($mimetypess as $cid => $mimetypes) { + if (is_object($mimetypes)) + $GLOBALS['xoopsTpl']->append('mimetypes', $mimetypes->toArray()); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_list.html'); + break; + + case "new": + case "edit": + + flowplayer_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + if (isset($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get(intval($_REQUEST['id'])); + } else { + $mimetypes = $mimetypes_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', flowplayer_mimetypes_get_form($mimetypes)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:flowplayer_cpanel_mimetypes_edit.html'); + break; + case "save": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $mimetypes = $mimetypes_handler->get($id); + } else { + $mimetypes = $mimetypes_handler->create(); + } + $mimetypes->setVars($_POST[$id]); + if (!$id=$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } else { + switch($_REQUEST['mode']) { + case 'new': + redirect_header('index.php?op='.$op.'&fct=edit&id='.$id, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + default: + case 'edit': + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_SAVEDOKEY); + break; + } + exit(0); + } + break; + case "savelist": + + $mimetypes_handler =& xoops_getmodulehandler('mimetypes', 'flowplayer'); + foreach($_REQUEST['id'] as $id) { + $mimetypes = $mimetypes_handler->get($id); + $mimetypes->setVars($_POST[$id]); + if (!$mimetypes_handler->insert($mimetypes)) { + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_MIMETYPES_FAILEDTOSAVE); + exit(0); + } + } + redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'... [truncated message content] |
From: <wis...@us...> - 2012-03-26 17:46:58
|
Revision: 9201 http://xoops.svn.sourceforge.net/xoops/?rev=9201&view=rev Author: wishcraft Date: 2012-03-26 17:46:47 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.09 - complete second release - final - DB Optimization, Bottlenecks Removed, Pagination Fixed, Templating Issues Fixed. Modified Paths: -------------- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectcategory.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/trunk/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php Added Paths: ----------- XoopsModules/songlist/releases/1.09/ XoopsModules/songlist/releases/1.09/docs/ XoopsModules/songlist/releases/1.09/docs/.htaccess XoopsModules/songlist/releases/1.09/htdocs/ XoopsModules/songlist/releases/1.09/htdocs/modules/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/about.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/albums.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/artists.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/category.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/dashboard.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/export.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/field_permissions.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/field_visibility.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/genre.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/header.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/menu.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/permissions.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/requests.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/songs.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/utf8map.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/votes.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/albums.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/artists.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_album.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_albums.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_artist.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_artists.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_genre.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_genres.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_song.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/blocks/songlist_popular_songs.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/category.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/extras.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/field.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/utf8map.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/visibility.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/class/votes.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/css/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/css/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/SonglistRequirement.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/changelog.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/credits.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/install.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/lang_diff.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/licence.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/docs/readme.txt XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/header.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/accept.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/cancel.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/no.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.albums.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.artists.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.category.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.field.permissions.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.fields.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.genre.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.import.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.permissions.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.requests.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.songs.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.utf8map.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/songlist.votes.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/16/yes.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.albums.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.artists.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.category.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.field.permissions.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.fields.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.genre.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.import.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.permissions.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.requests.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.songs.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.utf8map.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/32/songlist.votes.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/icons/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/left_both.gif XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/right_both.gif XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/songlist_slogo.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/images/xoopsxf_slogo.png XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/JSON.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectalbum.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectartist.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectcategory.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectgenre.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectsinger.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/formselectsong.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/functions.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/songlist.object.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/include/uploader.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/index.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/js/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/js/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/admin.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/blocks.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/email.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/enum.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/mail_templates/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/mail_templates/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/mail_templates/songlist_request_created.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/mail_templates/songlist_request_updated.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/language/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/request.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/search.php XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/mysql.htm XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/sql/mysql.sql XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_albums_index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_alpha_browse.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_artists_index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_category_item.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_category_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_albums_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_albums_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_artists_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_artists_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_category_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_category_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_fieldlist.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_genre_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_genre_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_import_actiona.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_import_actionb.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_requests_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_requests_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_songs_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_utf8map_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_visibility.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_votes_edit.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_cpanel_votes_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_requests_index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_search_index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_search_search.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_songs_index.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/releases/1.09/htdocs/modules/tag/ XoopsModules/songlist/releases/1.09/htdocs/modules/tag/plugin/ XoopsModules/songlist/releases/1.09/htdocs/modules/tag/plugin/songlist.php XoopsModules/songlist/releases/1.09/htdocs/uploads/ XoopsModules/songlist/releases/1.09/htdocs/uploads/songlist/ Added: XoopsModules/songlist/releases/1.09/docs/.htaccess =================================================================== --- XoopsModules/songlist/releases/1.09/docs/.htaccess (rev 0) +++ XoopsModules/songlist/releases/1.09/docs/.htaccess 2012-03-26 17:46:47 UTC (rev 9201) @@ -0,0 +1,10 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+)-(.*?)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$4&fct=$5&id=$6&value=$7&gid=$8&cid=$9 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+)-(.*?)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&id=$5&value=$6&gid=$7&cid=$7 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-(.*?)-([0-9]+)-([0-9]+)-(.*?).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&value=$5&gid=$6&cid=$7&singer=$8 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$2&fct=$3&id=$4 [L,NC,QSA] +RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+).html modules/songlist/$1.php?op=$2&fct=$3 [L,NC,QSA] Added: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/about.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/about.php (rev 0) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/about.php 2012-03-26 17:46:47 UTC (rev 9201) @@ -0,0 +1,77 @@ +<?php +// $Id: about.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + $aboutAdmin = new ModuleAdmin(); + $paypalitemno='SONGLIST'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_SONGLIST_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['songlistModule']->getVar('dirname')), strtoupper($GLOBALS['songlistModule']->getVar('dirname')). ' '.$GLOBALS['songlistModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + + xoops_cp_footer(); + +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/albums.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/albums.php (rev 0) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/albums.php 2012-03-26 17:46:47 UTC (rev 9201) @@ -0,0 +1,184 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"albums"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + default: + case "albums": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + + $criteria = $albums_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $albums_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($albums_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined(' '.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $albums_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $albumss = $albums_handler->getObjects($criteria, true); + foreach($albumss as $cid => $albums) { + if (is_object($albums)) + $GLOBALS['xoopsTpl']->append('albums', $albums->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_albums_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_albums_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + if (isset($_REQUEST['id'])) { + $albums = $albums_handler->get(intval($_REQUEST['id'])); + } else { + $albums = $albums_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $albums->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_albums_edit.html'); + break; + case "save": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $albums = $albums_handler->get($id); + } else { + $albums = $albums_handler->create(); + } + $albums->setVars($_POST[$id]); + + if (!$id=$albums_handler->insert($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTOSAVE); + exit(0); + } else { + + if (isset($_FILES['image'])&&!empty($_FILES['image']['title'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $albums = $albums_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), explode('|', $GLOBALS['songlistModuleConfig']['allowed_mimetype']), $GLOBALS['songlistModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['songlistModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($albums->getVar('image'))) + unlink($GLOBALS['xoops']->path($albums->getVar('path')).$albums->getVar('image')); + + $albums->setVar('path', $GLOBALS['songlistModuleConfig']['upload_areas']); + $albums->setVar('image', $uploader->getSavedFileName()); + @$albums_handler->insert($albums); + + } + } else { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $albums = $albums_handler->get($id); + $albums->setVars($_POST[$id]); + if (!$albums_handler->insert($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $albums_handler =& xoops_getmodulehandler('albums', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $albums = $albums_handler->get($id); + if (!$albums_handler->delete($albums)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ALBUMS_DELETED); + exit(0); + } + } else { + $albums = $albums_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_ALBUMS_DELETE, $albums->getVar('title'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/artists.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/artists.php (rev 0) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/artists.php 2012-03-26 17:46:47 UTC (rev 9201) @@ -0,0 +1,140 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"artists"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + default: + case "artists": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + + $criteria = $artists_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $artists_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($artists_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $artists_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $artists = $artists_handler->getObjects($criteria, true); + foreach($artists as $cid => $artist) { + if (is_object($artist)) + $GLOBALS['xoopsTpl']->append('artists', $artist->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_artists_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_artists_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + if (isset($_REQUEST['id'])) { + $artists = $artists_handler->get(intval($_REQUEST['id'])); + } else { + $artists = $artists_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $artists->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_artists_edit.html'); + break; + case "save": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $artists = $artists_handler->get($id); + } else { + $artists = $artists_handler->create(); + } + $artists->setVars($_POST[$id]); + + if (!$id=$artists_handler->insert($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTOSAVE); + exit(0); + } else { + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $artists = $artists_handler->get($id); + $artists->setVars($_POST[$id]); + if (!$artists_handler->insert($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_SAVEDOKEY); + exit(0); + break; + case "delete": + + $artists_handler =& xoops_getmodulehandler('artists', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $artists = $artists_handler->get($id); + if (!$artists_handler->delete($artists)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_ARTISTS_DELETED); + exit(0); + } + } else { + $artists = $artists_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_ARTISTS_DELETE, $artists->getVar('name'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/category.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/category.php (rev 0) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/category.php 2012-03-26 17:46:47 UTC (rev 9201) @@ -0,0 +1,184 @@ +<?php + + include('header.php'); + + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"category"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + + switch($op) { + default: + case "category": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + + $criteria = $category_handler->getFilterCriteria($GLOBALS['filter']); + $ttl = $category_handler->getCount($criteria); + $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + + $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach ($category_handler->filterFields() as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_SONGLIST_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $category_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct'])); + } + + $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); + $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); + $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); + $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); + $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + + $criteria->setStart($GLOBALS['start']); + $criteria->setLimit($GLOBALS['limit']); + $criteria->setSort('`'.$GLOBALS['sort'].'`'); + $criteria->setOrder($GLOBALS['order']); + + $categorys = $category_handler->getObjects($criteria, true); + foreach($categorys as $cid => $category) { + if (is_object($category)) + $GLOBALS['xoopsTpl']->append('categories', $category->toArray()); + } + $GLOBALS['xoopsTpl']->assign('form', songlist_category_get_form(false)); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_category_list.html'); + break; + + case "new": + case "edit": + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + if (isset($_REQUEST['id'])) { + $category = $category_handler->get(intval($_REQUEST['id'])); + } else { + $category = $category_handler->create(); + } + + $GLOBALS['xoopsTpl']->assign('form', $category->getForm()); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:songlist_cpanel_category_edit.html'); + break; + case "save": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if ($id=intval($_REQUEST['id'])) { + $category = $category_handler->get($id); + } else { + $category = $category_handler->create(); + } + $category->setVars($_POST[$id]); + + if (!$id=$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } else { + + if (isset($_FILES['image'])&&!empty($_FILES['image']['name'])) { + + if (!is_dir($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']))) { + foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'])) as $folders) + foreach(explode('/', $folders) as $folder) { + $path .= DS . $folder; + mkdir($path, 0777); + } + } + + include_once($GLOBALS['xoops']->path('modules/songlist/include/uploader.php')); + $category = $category_handler->get($id); + $uploader = new SonglistMediaUploader($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas']), explode('|', $GLOBALS['songlistModuleConfig']['allowed_mimetype']), $GLOBALS['songlistModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['songlistModuleConfig']['allowed_extensions'])); + $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13)); + + if ($uploader->fetchMedia('image')) { + if (!$uploader->upload()) { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } else { + + if (strlen($category->getVar('image'))) + unlink($GLOBALS['xoops']->path($category->getVar('path')).$category->getVar('image')); + + $category->setVar('path', $GLOBALS['songlistModuleConfig']['upload_areas']); + $category->setVar('image', $uploader->getSavedFileName()); + @$category_handler->insert($category); + + } + } else { + + songlist_adminMenu(1); + echo $uploader->getErrors(); + songlist_footer_adminMenu(); + xoops_cp_footer(); + exit(0); + } + } + + if ($_REQUEST['state'][$_REQUEST['id']]=='new') + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + else + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + exit(0); + } + break; + case "savelist": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + foreach($_REQUEST['id'] as $id) { + $category = $category_handler->get($id); + $category->setVars($_POST[$id]); + if (!$category_handler->insert($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_FAILEDTOSAVE); + exit(0); + } + } + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_SAVEDOKEY); + exit(0); + break; + case "delete": + + $category_handler =& xoops_getmodulehandler('category', 'songlist'); + $id=0; + if (isset($_POST['id'])&&$id=intval($_POST['id'])) { + $category = $category_handler->get($id); + if (!$category_handler->delete($category)) { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_FAILEDTODELETE); + exit(0); + } else { + redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_CATEGORY_DELETED); + exit(0); + } + } else { + $category = $category_handler->get(intval($_REQUEST['id'])); + xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_SONGLIST_MSG_CATEGORY_DELETE, $category->getVar('name'))); + } + break; + } + break; + + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/dashboard.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/dashboard.php (rev 0) +++ XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/dashboard.php 2012-03-26 17:46:47 UTC (rev 9201) @@ -0,0 +1,70 @@ +<?php +// $Id: directory.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'songlist'); + + xoops_cp_header(); + + $op = (!empty($_GET['op']) ? $_GET['op'] : (!empty($_POST['op']) ? $_POST['op'] : "default")); + + switch ($op) { + case "default": + default: + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(basename(__FILE__)); + + $indexAdmin = new ModuleAdmin(); + + $category_handler = xoops_getmodulehandler('category', 'songlist'); + $artists_handler = xoops_getmodulehandler('artists', 'songlist'); + $albums_handler = xoops_getmodulehandler('albums', 'songlist'); + $genre_handler = xoops_getmodulehandler('genre', 'songlist'); + $songs_handler = xoops_getmodulehandler('songs', 'songlist'); + $requests_handler = xoops_getmodulehandler('requests', 'songlist'); + $votes_handler = xoops_getmodulehandler('votes', 'songlist'); + + $indexAdmin->addInfoBox(_AM_SONGLIST_COUNT); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_CATEGORY."</label>", $category_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_ARTISTS."</label>", $artists_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_ALBUMS."</label>", $albums_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_GENRE."</label>", $genre_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_SONGS."</label>", $songs_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_REQUESTS."</label>", $requests_handler->getCount(NULL, true), 'green'); + $indexAdmin->addInfoBoxLine(_AM_SONGLIST_COUNT, "<label>"._AM_SONGLIST_NUMBER_OF_VOTES."</label>", $votes_handler->getCount(NULL, true), 'green'); + echo $indexAdmin->renderIndex(); + + xoops_cp_footer(); + break; + } + +?> \ No newline at end of file Added: XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/export.php =================================================================== --- XoopsModules/songlist/releases/1.09/htdocs/modules/songlist/admin/export.php (rev 0) +++ XoopsModules/songlist/releases/1.09/... [truncated message content] |
From: <wis...@us...> - 2012-03-26 15:05:56
|
Revision: 9200 http://xoops.svn.sourceforge.net/xoops/?rev=9200&view=rev Author: wishcraft Date: 2012-03-26 15:05:42 +0000 (Mon, 26 Mar 2012) Log Message: ----------- Karioki Song List 1.07 - complete first release final (final fixes) Modified Paths: -------------- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_album.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artist.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genres.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_song.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_songs.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/utf8map.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/votes.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_search.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_index.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/trunk/htdocs/modules/songlist/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_album.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_artist.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_genres.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_song.php XoopsModules/songlist/trunk/htdocs/modules/songlist/blocks/songlist_popular_songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/category.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/genre.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/utf8map.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/votes.php XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/trunk/htdocs/modules/songlist/index.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/forms.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/modinfo.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_albums_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_artists_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_search_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_search_search.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_index.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/admin/import.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -95,11 +95,13 @@ $genre_handler = xoops_getmodulehandler('genre', 'songlist'); $category_handler = xoops_getmodulehandler('category', 'songlist'); + /* $filesize = filesize($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'].$_SESSION['xmlfile'])); $mb = floor($filesize / 1024 / 1024); if ($mb>32) { set_ini('memory_limit', ($mb+128).'M'); } + */ set_time_limit(3600); $xmlarray = songlist_xml2array(file_get_contents($GLOBALS['xoops']->path($GLOBALS['songlistModuleConfig']['upload_areas'].$_SESSION['xmlfile'])), false, 'tag'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/albums.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -39,10 +39,6 @@ $cat[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; } } - - $category_element = new SonglistFormSelectCategory('', 'cid', $cid); - $genre_element = new SonglistFormSelectGenre('', 'gid', $gid); - $singer_element = new SonglistFormSelectSinger('', 'singer', $singer); $albums_handler = xoops_getmodulehandler('albums', 'songlist'); switch ($op) { @@ -71,7 +67,6 @@ } } if ($col!=1) { - $col--; for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { $ret[$row][$j][$albums_handler->keyName] = 0; $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; @@ -94,8 +89,7 @@ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, array('type'=>'text/css')); $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); - $GLOBALS['xoopsTpl']->assign('albums', $ret); - $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('results', $ret); $GLOBALS['xoopsTpl']->assign('categories', $cat); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); $GLOBALS['xoopsTpl']->assign('uri', $_SERVER['REQUEST_URI']); @@ -201,13 +195,10 @@ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, array('type'=>'text/css')); $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); - $GLOBALS['xoopsTpl']->assign('albums', $ret); + $GLOBALS['xoopsTpl']->assign('results', $ret); $GLOBALS['xoopsTpl']->assign('songs', false); $GLOBALS['xoopsTpl']->assign('categories', $cat); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); - $GLOBALS['xoopsTpl']->assign('category_element', $category_element->render()); - $GLOBALS['xoopsTpl']->assign('genre_element', $genre_element->render()); - $GLOBALS['xoopsTpl']->assign('singer_element', $singer_element->render()); if ($_SESSION['cid']!=0) { $category = $category_handler->get($_SESSION['cid']); $GLOBALS['xoopsTpl']->assign('category', $category->toArray(true)); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/artists.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -12,7 +12,7 @@ $criteria_cat->add(new Criteria('`cids`', '%"'.$cid.'"%', 'LIKE'), 'OR'); } } else { - $criteria_cat->add(new Criteria('1', '1'), 'OR'); + $criteria_cat->add(new Criteria('1', 1), 'OR'); } $criteria_cat->setSort('`created`'); @@ -42,11 +42,6 @@ $cat[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; } } - - $category_element = new SonglistFormSelectCategory('', 'cid', $cid); - $genre_element = new SonglistFormSelectGenre('', 'gid', $gid); - $singer_element = new SonglistFormSelectSinger('', 'singer', $singer); - $artists_handler = xoops_getmodulehandler('artists', 'songlist'); switch ("{$GLOBALS['op']}") { @@ -75,7 +70,6 @@ } } if ($col!=1) { - $col--; for($j=$col;$j<=$GLOBALS['songlistModuleConfig']['cols'];$j++) { $ret[$row][$j][$artists_handler->keyName] = 0; $ret[$row][$j]['width'] = floor(100/$GLOBALS['songlistModuleConfig']['cols']).'%'; @@ -98,13 +92,9 @@ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, array('type'=>'text/css')); $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); - $GLOBALS['xoopsTpl']->assign('artists', $ret); - $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('results', $ret); $GLOBALS['xoopsTpl']->assign('categories', $cat); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); - $GLOBALS['xoopsTpl']->assign('category_element', $category_element->render()); - $GLOBALS['xoopsTpl']->assign('genre_element', $genre_element->render()); - $GLOBALS['xoopsTpl']->assign('singer_element', $singer_element->render()); $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); if ($_SESSION['cid']!=0) { $category = $category_handler->get($_SESSION['cid']); @@ -133,9 +123,6 @@ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); $GLOBALS['xoopsTpl']->assign('songs', false); $GLOBALS['xoopsTpl']->assign('artist', $artist->toArray(true)); - $GLOBALS['xoopsTpl']->assign('category_element', $category_element->render()); - $GLOBALS['xoopsTpl']->assign('genre_element', $genre_element->render()); - $GLOBALS['xoopsTpl']->assign('singer_element', $singer_element->render()); $GLOBALS['xoopsTpl']->assign('categories', $cat); $GLOBALS['xoopsTpl']->assign('uri', $_SERVER['REQUEST_URI']); include($GLOBALS['xoops']->path('/footer.php')); @@ -210,12 +197,8 @@ $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, array('type'=>'text/css')); $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); - $GLOBALS['xoopsTpl']->assign('artists', $ret); - $GLOBALS['xoopsTpl']->assign('songs', false); + $GLOBALS['xoopsTpl']->assign('results', $ret); $GLOBALS['xoopsTpl']->assign('categories', $cat); - $GLOBALS['xoopsTpl']->assign('category_element', $category_element->render()); - $GLOBALS['xoopsTpl']->assign('genre_element', $genre_element->render()); - $GLOBALS['xoopsTpl']->assign('singer_element', $singer_element->render()); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); if ($_SESSION['cid']!=0) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_album.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_album.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_album.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_album_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('albums', 'songlist'); $objects = $handler->getTop(1); if (is_object($objects[0])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_albums.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_albums.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_albums.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_albums_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('albums', 'songlist'); $objects = $handler->getTop($options[0]); if (count($objects)>0) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artist.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artist.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artist.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_artist_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('artists', 'songlist'); $objects = $handler->getTop(1); if (is_object($objects[0])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artists.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_artists.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php -function b_songlist_popular_artists_show($options) { + function b_songlist_popular_artists_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('artists', 'songlist'); $objects = $handler->getTop($options[0]); if (count($objects)>0) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genre.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genre.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genre.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_genre_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('genre', 'songlist'); $objects = $handler->getTop(1); if (is_object($objects[0])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genres.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genres.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_genres.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_genres_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('genre', 'songlist'); $objects = $handler->getTop($options[0]); if (count($objects)>0) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_song.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_song.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_song.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_song_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('songs', 'songlist'); $objects = $handler->getTop(1); if (is_object($objects[0])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_songs.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_songs.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/blocks/songlist_popular_songs.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,7 @@ <?php function b_songlist_popular_songs_show($options) { + xoops_loadLanguage('blocks', 'songlist'); $handler = xoops_getmodulehandler('songs', 'songlist'); $objects = $handler->getTop($options[0]); if (count($objects)>0) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/albums.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistAlbums extends XoopsObject { @@ -42,7 +45,7 @@ } } $ret['picture'] = $this->getImage('image', false); - $ret['rank'] = number_format($this->getVar('rank')/$this->getVar('votes'),2)._MI_SONGLIST_OFTEN; + $ret['rank'] = number_format(($this->getVar('rank')>0&&$this->getVar('votes')>0?$this->getVar('rank')/$this->getVar('votes'):0),2)._MI_SONGLIST_OFTEN; $ret['url'] = $this->getURL(); if ($extra==false) @@ -59,7 +62,7 @@ $artists_handler = xoops_getmodulehandler('artists', 'songlist'); foreach($this->getVar('aids') as $aid) { $artist = $artists_handler->get($aid); - $ret['artists'][$aid] = $artist->toArray(false); + $ret['artists_array'][$aid] = $artist->toArray(false); } } @@ -68,7 +71,7 @@ $songs_handler = xoops_getmodulehandler('songs', 'songlist'); foreach($this->getVar('sids') as $sid) { $song = $songs_handler->get($sid); - $ret['songs'][$sid] = $song->toArray(false); + $ret['songs_array'][$sid] = $song->toArray(false); } } @@ -204,7 +207,7 @@ return parent::insert($obj, $force); } - var $_objects = array(); + var $_objects = array('object'=>array(), 'array'=>array()); function get($id, $fields = '*') { if (!isset($this->_objects['object'][$id])) { @@ -245,9 +248,9 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/albums/'.$start.'-item-item-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/albums/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { - return XOOPS_URL.'/modules/songlist/albums.php?op=item&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; + return XOOPS_URL.'/modules/songlist/albums.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } } Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/artists.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistArtists extends XoopsObject { @@ -40,9 +43,13 @@ } } - $ret['rank'] = number_format($this->getVar('rank')/$this->getVar('votes'),2)._MI_SONGLIST_OFTEN; + $ret['rank'] = number_format(($this->getVar('rank')>0&&$this->getVar('votes')>0?$this->getVar('rank')/$this->getVar('votes'):0),2)._MI_SONGLIST_OFTEN; $ret['url'] = $this->getURL(); + xoops_loadLanguage('enum', 'songlist'); + if (!empty($ret['singer'])) + $ret['singer'] = constant($ret['singer']); + if ($extra==false) return $ret; @@ -50,7 +57,7 @@ $categories_handler = xoops_getmodulehandler('category', 'songlist'); foreach($this->getVar('cids') as $aid) { $category = $categories_handler->get($aid); - $ret['category'][$aid] = $category->toArray(false); + $ret['categories_array'][$aid] = $category->toArray(false); } } @@ -59,7 +66,7 @@ $artists_handler = xoops_getmodulehandler('artists', 'songlist'); foreach($this->getVar('aids') as $aid) { $artist = $artists_handler->get($aid); - $ret['artists'][$aid] = $artist->toArray(false); + $ret['artists_array'][$aid] = $artist->toArray(false); } } @@ -67,7 +74,7 @@ if (count($this->getVar('sids'))!=0) { $songs_handler = xoops_getmodulehandler('songs', 'songlist'); foreach($songs_handler->getObjects(new Criteria('`aids`', '%"'.$this->getVar('aid').'"%', 'LIKE'), true) as $sid => $song) { - $ret['songs'][$sid] = $song->toArray(false); + $ret['songs_array'][$sid] = $song->toArray(false); } } @@ -186,7 +193,7 @@ return parent::insert($obj, $force); } - var $_objects = array(); + var $_objects = array('object'=>array(), 'array'=>array()); function get($id, $fields = '*') { if (!isset($this->_objects['object'][$id])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/category.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -43,7 +43,7 @@ } } $ret['picture'] = $this->getImage('image', false); - $ret['rank'] = number_format($this->getVar('rank')/$this->getVar('votes'),2)._MI_SONGLIST_OFTEN; + $ret['rank'] = number_format(($this->getVar('rank')>0&&$this->getVar('votes')>0?$this->getVar('rank')/$this->getVar('votes'):0),2)._MI_SONGLIST_OFTEN; $ret['url'] = $this->getURL(); return $ret; @@ -126,11 +126,9 @@ private function TreeIDs($langs_array, $categories, $level) { foreach($categories as $catid => $category) { - if ($catid!=$ownid) { - $langs_array[$catid] = $catid; - if ($categoriesb = $this->getObjects(new Criteria('pid', $catid), true)){ - $langs_array = $this->TreeIDs($langs_array, $categoriesb, $level); - } + $langs_array[$catid] = $catid; + if ($categoriesb = $this->getObjects(new Criteria('pid', $catid), true)){ + $langs_array = $this->TreeIDs($langs_array, $categoriesb, $level); } } return ($langs_array); @@ -147,7 +145,7 @@ return parent::insert($obj, $force); } - var $_objects = array(); + var $_objects = array('object'=>array(), 'array'=>array()); function get($id, $fields = '*') { if (!isset($this->_objects['object'][$id])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/genre.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistGenre extends XoopsObject { @@ -37,7 +40,7 @@ $ret[$key] = date(_DATESTRING, $this->getVar($key)); } } - $ret['rank'] = number_format($this->getVar('rank')/$this->getVar('votes'),2)._MI_SONGLIST_OFTEN; + $ret['rank'] = number_format(($this->getVar('rank')>0&&$this->getVar('votes')>0?$this->getVar('rank')/$this->getVar('votes'):0),2)._MI_SONGLIST_OFTEN; return $ret; } @@ -112,7 +115,7 @@ return parent::insert($obj, $force); } - var $_objects = array(); + var $_objects = array('object'=>array(), 'array'=>array()); function get($id, $fields = '*') { if (!isset($this->_objects['object'][$id])) { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/requests.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/requests.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/requests.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistRequests extends XoopsObject { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/songs.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistSongs extends XoopsObject { @@ -44,7 +47,7 @@ $ret['url'] = $this->getURL(); - $ret['rank'] = number_format($this->getVar('rank')/$this->getVar('votes'),2)._MI_SONGLIST_OFTEN; + $ret['rank'] = number_format(($this->getVar('rank')>0&&$this->getVar('votes')>0?$this->getVar('rank')/$this->getVar('votes'):0),2)._MI_SONGLIST_OFTEN; if (file_exists($GLOBALS['xoops']->path("/modules/tag/include/tagbar.php"))&&$GLOBALS['songlistModuleConfig']['tags']) { include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php"; @@ -55,26 +58,27 @@ $field_handler = xoops_getmodulehandler('field', 'songlist'); $visibility_handler = xoops_getmodulehandler('visibility', 'songlist'); - $extras = $extras_handler->get($post_id); - - if (is_object($GLOBALS['xoopsUser'])) - $fields_id = $visibility_handler->getVisibleFields(array(), $GLOBALS['xoopsUser']->getGroups()); - elseif (!is_object($GLOBALS['xoopsUser'])) - $fields_id = $visibility_handler->getVisibleFields(array(), array()); - - $criteria = new Criteria('field_id', '('.implode(',',$fields_id).')', 'IN'); - $criteria->setSort('field_weight'); - $fields = $field_handler->getObjects($criteria, true); - foreach($fields as $id => $field) { - if (in_array($this->getVar('cid'), $field->getVar('cids'))) { - $ret['fields'][$id]['title'] = $field->getVar('field_title'); - if (is_object($GLOBALS['xoopsUser'])) - $ret['fields'][$id]['value'] = htmlspecialchars_decode($field->getOutputValue($GLOBALS['xoopsUser'], $extras)); - elseif (!is_object($GLOBALS['xoopsUser'])) - $ret['fields'][$id]['value'] = htmlspecialchars_decode($extras->getVar($field->getVar('field_name'))); + if ($extras = $extras_handler->get($this->getVar('sid'))) { + + if (is_object($GLOBALS['xoopsUser'])) + $fields_id = $visibility_handler->getVisibleFields(array(), $GLOBALS['xoopsUser']->getGroups()); + elseif (!is_object($GLOBALS['xoopsUser'])) + $fields_id = $visibility_handler->getVisibleFields(array(), array()); + + $criteria = new Criteria('field_id', '('.implode(',',$fields_id).')', 'IN'); + $criteria->setSort('field_weight'); + $fields = $field_handler->getObjects($criteria, true); + foreach($fields as $id => $field) { + if (in_array($this->getVar('cid'), $field->getVar('cids'))) { + $ret['fields'][$id]['title'] = $field->getVar('field_title'); + if (is_object($GLOBALS['xoopsUser'])) + $ret['fields'][$id]['value'] = htmlspecialchars_decode($field->getOutputValue($GLOBALS['xoopsUser'], $extras)); + elseif (!is_object($GLOBALS['xoopsUser'])) + $ret['fields'][$id]['value'] = htmlspecialchars_decode($extras->getVar($field->getVar('field_name'))); + } } } - + if ($extra==false) return $ret; @@ -94,7 +98,7 @@ $artists_handler = xoops_getmodulehandler('artists', 'songlist'); foreach($this->getVar('aids') as $aid) { $artist = $artists_handler->get($aid); - $ret['artists'][$aid] = $artist->toArray(false); + $ret['artists_array'][$aid] = $artist->toArray(false); } } @@ -260,7 +264,7 @@ return $sid; } - var $_objects = array(); + var $_objects = array('object'=>array(), 'array'=>array()); function get($id, $fields = '*') { if (!isset($this->_objects['object'][$id])) { @@ -310,9 +314,9 @@ function getSearchURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $singer, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/search/'.$start.'-'.$op.'-'.$fct.'-'.urlencode($value).'-'.(isset($_GET['cid'])?($_GET['cid']):$cid).'-'.$gid.'-'.$singer.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.urlencode($value).'-'.(isset($_GET['cid'])?($_GET['cid']):$cid).'-'.$gid.'-'.$singer.$GLOBALS['songlistModuleConfig']['endofurl']; } else { - return XOOPS_URL.'/modules/songlist/search.php?op='.$op.'&fct='.$fct.'&value='.urlencode($value).'&cid='.(isset($_GET['cid'])?($_GET['cid']):$cid).'&gid='.$gid.'&singer='.$singer; + return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&value='.urlencode($value).'&cid='.(isset($_GET['cid'])?($_GET['cid']):$cid).'&gid='.$gid.'&singer='.$singer; } } Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/utf8map.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/utf8map.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/utf8map.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistUtf8map extends XoopsObject { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/votes.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/votes.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/class/votes.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -4,6 +4,9 @@ exit(); } +include_once(dirname(dirname(__FILE__)).'/include/songlist.object.php'); +include_once(dirname(dirname(__FILE__)).'/include/songlist.form.php'); + class SonglistVotes extends XoopsObject { Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/songlist.css =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/songlist.css 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/css/songlist.css 2012-03-26 15:05:42 UTC (rev 9200) @@ -17,6 +17,15 @@ width: 100%; } +.sl_outersep { + clear:both; + height: 6px; + text-align:center; + width: 100%; + border-bottom: 2px dashed #000; + margin-bottom: 6px; +} + .sl_breadcrumb { clear:both; text-align:left; Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/index.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -40,9 +40,9 @@ } } - $category_element = new SonglistFormSelectCategory('', 'cid'); - $genre_element = new SonglistFormSelectGenre('', 'gid'); - $singer_element = new SonglistFormSelectSinger('', 'singer'); + $category_element = new SonglistFormSelectCategory('', 'cid', (isset($_GET['cid'])?($_GET['cid']):$cid)); + $genre_element = new SonglistFormSelectGenre('', 'gid', $gid); + $singer_element = new SonglistFormSelectSinger('', 'singer', $singer); $songs_handler = xoops_getmodulehandler('songs', 'songlist'); switch ($op) { @@ -81,7 +81,7 @@ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); foreach($songs as $song) - $GLOBALS['xoopsTpl']->append('results', $song->toArray(false)); + $GLOBALS['xoopsTpl']->append('results', $song->toArray(true)); $GLOBALS['xoopsTpl']->assign('songs', true); $GLOBALS['xoopsTpl']->assign('categories', $cat); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); @@ -186,7 +186,6 @@ } $criteria = new CriteriaCompo($criteria_cat, 'AND'); - $criteria->add($browse_criteria); $criteria->add($browse_criteriab); break; @@ -205,7 +204,7 @@ break; } $albums_handler = xoops_getmodulehandler('albums', 'songlist'); - foreach($artists_handler->getObjects($browse_criteria, true) as $id => $obj) { + foreach($albums_handler->getObjects($browse_criteria, true) as $id => $obj) { $ids[$id] = $id; } @@ -238,7 +237,7 @@ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); foreach($songs as $song) - $GLOBALS['xoopsTpl']->append('results', $song->toArray(false)); + $GLOBALS['xoopsTpl']->append('results', $song->toArray(true)); $GLOBALS['xoopsTpl']->assign('songs', true); $GLOBALS['xoopsTpl']->assign('categories', $cat); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); @@ -256,6 +255,83 @@ break; + case "search": + + $songs_handler = xoops_getmodulehandler('songs', 'songlist'); + $artists_handler = xoops_getmodulehandler('artists', 'songlist'); + $utf8map_handler = xoops_getmodulehandler('utf8map', 'songlist'); + + $url = $songs_handler->getSearchURL(); + if (!strpos($url, $_SERVER['REQUEST_URI'])) { + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$url); + exit(0); + } + + switch ($fct) { + default: + case "titleandlyrics": + $criteria = new CriteriaCompo(); + foreach(explode(' ' , $value) as $keyword) { + $criteria->add(new Criteria('`title`', '%'.$utf8map_handler->convert($keyword).'%', 'LIKE')); + $criteria->add(new Criteria('`lyrics`', '%'.$utf8map_handler->convert($keyword).'%', 'LIKE')); + } + break; + case "lyrics": + $criteria = new CriteriaCompo(); + foreach(explode(' ' , $value) as $keyword) { + $criteria->add(new Criteria('`lyrics`', '%'.$utf8map_handler->convert($keyword).'%', 'LIKE')); + } + break; + case "title": + $criteria = new CriteriaCompo(); + foreach(explode(' ' , $value) as $keyword) { + $criteria->add(new Criteria('`title`', '%'.$utf8map_handler->convert($keyword).'%', 'LIKE')); + } + break; + } + + if ($gid != 0 && $GLOBALS['songlistModuleConfig']['genre']) { + $criteria->add(new Criteria('`gid`', $gid)); + } + + if ($singer != 0 && $GLOBALS['songlistModuleConfig']['singer']) { + $criteria->add(new Criteria('`sid`', '('.implode(',', $artists_handler->getSIDs(new Criteria('`singer`', $singer))).')', 'IN')); + } + + if ($cid != 0) { + $criteria->add(new Criteria('`cid`', (isset($_GET['cid'])?($_GET['cid']):$cid))); + } + + $pagenav = new XoopsPageNav($songs_handler->getCount($criteria), $limit, $start, 'start', "?op=$op&fct=$fct&gid=$gid&singer=$singer&value=$value&limit=$limit"); + + $criteria->setLimit($limit); + $criteria->setStart($start); + + $songs = $songs_handler->getObjects($criteria, false); + + $xoopsOption['template_main'] = 'songlist_search_index.html'; + include($GLOBALS['xoops']->path('/header.php')); + if ($GLOBALS['songlistModuleConfig']['force_jquery']&&!isset($GLOBALS['loaded_jquery'])) { + $GLOBALS['xoTheme']->addScript(XOOPS_URL._MI_SONGLIST_JQUERY, array('type'=>'text/javascript')); + $GLOBALS['loaded_jquery']=true; + } + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL._MI_SONGLIST_STYLESHEET, array('type'=>'text/css')); + $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['songlistModuleConfig']); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + foreach($songs as $song) { + $GLOBALS['xoopsTpl']->append('results', $song->toArray(true)); + } + $GLOBALS['xoopsTpl']->assign('songs', true); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('category_element', $category_element->render()); + $GLOBALS['xoopsTpl']->assign('genre_element', $genre_element->render()); + $GLOBALS['xoopsTpl']->assign('singer_element', $singer_element->render()); + $GLOBALS['xoopsTpl']->assign('cid', $_SESSION['cid']); + $GLOBALS['xoopsTpl']->assign('uri', $_SERVER['REQUEST_URI']); + include($GLOBALS['xoops']->path('/footer.php')); + break; + case "category": switch ($fct) { default: Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/forms.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -51,7 +51,11 @@ define('_FRM_SONGLIST_FORM_SONGS_RANK', 'Ranking'); define('_FRM_SONGLIST_FORM_SONGS_CREATED', 'Created'); define('_FRM_SONGLIST_FORM_SONGS_UPDATED', 'Updated'); - + define('_FRM_SONGLIST_FORM_SONGS_GENRE', 'Song Genre'); + define('_FRM_SONGLIST_FORM_SONGS_GENRE_DESC', ''); + define('_FRM_SONGLIST_FORM_SONGS_ALBUM', 'Song Album'); + define('_FRM_SONGLIST_FORM_SONGS_ALBUM_DESC', ''); + // UTF8 Mapping Form define('_FRM_SONGLIST_FORM_ISNEW_UTF8MAP', 'New Chracter replacement mapping'); define('_FRM_SONGLIST_FORM_EDIT_UTF8MAP', 'Edit Chracter replacement mapping'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/main.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/main.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/main.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -7,7 +7,10 @@ define('_MN_SONGLIST_TITLE', 'Song title:-'); define('_MN_SONGLIST_SONGID', 'Song Reference ID:-'); define('_MN_SONGLIST_TAGS', 'Tags:-'); - + define('_MN_SONGLIST_SONGS', 'Song\'s'); + define('_MN_SONGLIST_ARTISTS', 'Artist\'s'); + define('_MN_SONGLIST_ALBUMS', 'Album\'s'); + // Browse By define('_MN_SONGLIST_BROWSEBY', 'Browse by Character'); define('_MN_SONGLIST_SELECTBY_TITLE', 'Browse by Title'); Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/language/english/modinfo.php 2012-03-26 15:05:42 UTC (rev 9200) @@ -76,5 +76,10 @@ define('_MI_SONGLIST_TAGS_DESC', ''); define('_MI_SONGLIST_FORCE_JQUERY', 'For JQuery Loading'); define('_MI_SONGLIST_FORCE_JQUERY_DESC', 'For themes without JQuery!'); + define('_MI_SONGLIST_COLS', 'Columns in table'); + define('_MI_SONGLIST_COLS_DESC', 'Columns in table before pagination.'); + define('_MI_SONGLIST_ROWS', 'Rows in table'); + define('_MI_SONGLIST_ROWS_DESC', 'Rows in table before pagination.'); -?> + + ?> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -12,7 +12,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.categories key=number item=category}> - <{$category.name}></a><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> @@ -29,7 +29,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> - <{$genre.name}><{if $number<sizeof($block.genres)-1}>, <{/if}> + <{$genre.name}><{if ($number<sizeof($block.genres)-1)}>, <{/if}> <{/foreach}> </div> <{elseif $block.genre}> @@ -49,7 +49,7 @@ <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.artist}> + <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ARTIST}> </div> @@ -66,7 +66,7 @@ <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.album}> + <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ALBUM}> </div> @@ -83,7 +83,7 @@ <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.song}> + <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_SONG}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -12,7 +12,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.categories key=number item=category}> - <{$category.name}></a><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> @@ -29,7 +29,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> - <{$genre.name}><{if $number<sizeof($block.genres)-1}>, <{/if}> + <{$genre.name}><{if ($number<sizeof($block.genres)-1)}>, <{/if}> <{/foreach}> </div> <{elseif $block.genre}> @@ -49,7 +49,7 @@ <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.artist}> + <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ARTIST}> </div> @@ -66,7 +66,7 @@ <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.album}> + <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ALBUM}> </div> @@ -83,7 +83,7 @@ <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.song}> + <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_SONG}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -12,7 +12,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.categories key=number item=category}> - <{$category.name}></a><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> @@ -29,7 +29,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> - <{$genre.name}><{if $number<sizeof($block.genres)-1}>, <{/if}> + <{$genre.name}><{if ($number<sizeof($block.genres)-1)}>, <{/if}> <{/foreach}> </div> <{elseif $block.genre}> @@ -49,7 +49,7 @@ <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.artist}> + <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ARTIST}> </div> @@ -66,7 +66,7 @@ <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.album}> + <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ALBUM}> </div> @@ -83,7 +83,7 @@ <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.song}> + <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_SONG}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -12,7 +12,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.categories key=number item=category}> - <{$category.name}></a><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> @@ -29,7 +29,7 @@ </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> - <{$genre.name}><{if $number<sizeof($block.genres)-1}>, <{/if}> + <{$genre.name}><{if ($number<sizeof($block.genres)-1)}>, <{/if}> <{/foreach}> </div> <{elseif $block.genre}> @@ -49,7 +49,7 @@ <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.artist}> + <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ARTIST}> </div> @@ -66,7 +66,7 @@ <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.album}> + <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_ALBUM}> </div> @@ -83,7 +83,7 @@ <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> <{/foreach}> </div> - <{elseif $block.song}> + <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> <{$smary.const._BL_SONGLIST_SONG}> </div> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_item.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,30 +1,30 @@ -<div class="sl_mainalbum"> - <a href="<{$album.url}>"><{$album.name}></a> -</div> -<{if $album.image}> +<{if $album.picture}> <div class="sl_artalbum"> - <a href="<{$album.url}>"><img src='<{$album.image}>' width="95%" border="0" /></a> + <a href="<{$album.url}>"><img src='<{$album.picture}>' width="95%" border="0" /></a> </div> <{/if}> -<{if $album.songs}> +<div class="sl_mainalbum"> + <a href="<{$album.url}>"><{$album.title}></a> +</div> +<{if $album.songs_array}> <div class="sl_subtitle"> <{$smarty.const._MN_SONGLIST_SONGS}> </div> <div class="sl_subalbum"> <{assign var=songs value=0}> - <{foreach from=$album.songs item=song}> + <{foreach from=$album.songs_array item=song}> <{assign var=songs value=$songs+1}> - <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($album.songs)}>, <{/if}> + <a href="<{$song.url}>"><{$song.title}> [<{$song.songid}>]</a><{if not $songs < count($album.songs)}>, <{/if}> <{/foreach}> </div> <{/if}> -<{if $album.artists}> +<{if $album.artists_array}> <div class="sl_subtitle"> <{$smarty.const._MN_SONGLIST_ARTISTS}> </div> <div class="sl_subartist"> <{assign var=artists value=0}> - <{foreach from=$album.artists item=artist}> + <{foreach from=$album.artists_array item=artist}> <{assign var=artists value=$artists+1}> <a href="<{$artist.url}>"><{$artist.name}></a><{if not $artists < count($album.artists)}>, <{/if}> <{/foreach}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_list.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_list.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_albums_list.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,4 +1,4 @@ -<{if $albums}> +<{if $results}> <{if not $pagenav eq ''}> <div style='width:100%; clear:both; height:25px;'> <div style='float:right;'> @@ -7,14 +7,12 @@ </div> <{/if}> <table> - <{foreach from=$albums key=rowkey item=row}> - <{if not $rowkey eq 'pagenav'}> + <{foreach from=$results item=row}> <tr> - <{foreach from=$row item=album}> - <td width="<{$album.width}>%"><{includeq file="db:songlist_albums_item.html" album=$album}></td> + <{foreach from=$row item=result}> + <td width="<{$result.width}>%"><{includeq file="db:songlist_albums_item.html" album=$result}></td> <{/foreach}> </tr> - <{/if}> <{/foreach}> </table> <{if not $pagenav eq ''}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_index.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_index.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_index.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,6 +1,6 @@ <div class="sl_sep"> </div> <{includeq file="db:songlist_category_list.html"}> -<div class="sl_sep"> </div> +<div class="sl_outersep"> </div> <{includeq file="db:songlist_alpha_browse.html"}> -<div class="sl_sep"> </div> +<div class="sl_outersep"> </div> <{includeq file="db:songlist_artists_list.html"}> \ No newline at end of file Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_item.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,25 +1,25 @@ <div class="sl_mainartist"> <a href="<{$artist.url}>"><{$artist.name}></a> </div> -<{if $artist.songs}> +<{if $artist.songs_array}> <div class="sl_subtitle"> <{$smarty.const._MN_SONGLIST_SONGS}> </div> <div class="sl_subartist"> <{assign var=songs value=0}> - <{foreach from=$artist.songs item=song}> + <{foreach from=$artist.songs_array item=song}> <{assign var=songs value=$songs+1}> <a href="<{$song.url}>"><{$song.name}> [<{$song.songid}>]</a><{if not $songs < count($artist.songs)}>, <{/if}> <{/foreach}> </div> <{/if}> -<{if $artist.albums}> +<{if $artist.albums_array}> <div class="sl_subtitle"> <{$smarty.const._MN_SONGLIST_ALBUMS}> </div> <div class="sl_subartist"> <{assign var=albums value=0}> - <{foreach from=$artist.albums item=album}> + <{foreach from=$artist.albums_array item=album}> <{assign var=albums value=$albums+1}> <a href="<{$album.url}>"><{$album.name}></a><{if not $albums < count($artist.albums)}>, <{/if}> <{/foreach}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_list.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_list.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_artists_list.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,4 +1,4 @@ -<{if $artists}> +<{if $results}> <{if not $pagenav eq ''}> <div style='width:100%; clear:both; height:25px;'> <div style='float:right;'> @@ -7,14 +7,12 @@ </div> <{/if}> <table> - <{foreach from=$artists key=rowkey item=row}> - <{if not $rowkey eq 'pagenav'}> + <{foreach from=$results item=row}> <tr> - <{foreach from=$row item=artist}> - <td width="<{$artist.width}>%"><{includeq file="db:songlist_artists_item.html" artist=$artist}></td> + <{foreach from=$row item=result}> + <td width="<{$result.width}>%"><{include file="db:songlist_artists_item.html" artist=$result}></td> <{/foreach}> </tr> - <{/if}> <{/foreach}> </table> <{if not $pagenav eq ''}> Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_index.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_index.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_index.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,4 +1,4 @@ <div class="sl_sep"> </div> <{includeq file="db:songlist_search_search.html"}> -<div class="sl_sep"> </div> +<div class="sl_outersep"> </div> <{includeq file="db:songlist_songs_list.html"}> \ No newline at end of file Modified: XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_search.html =================================================================== --- XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_search.html 2012-03-26 11:00:43 UTC (rev 9199) +++ XoopsModules/songlist/releases/1.07/htdocs/modules/songlist/templates/songlist_search_search.html 2012-03-26 15:05:42 UTC (rev 9200) @@ -1,7 +1,7 @@ <h2><{$smarty.const._MN_SONGLIST_SEARCH}></h2> <div class="sl_search"> <div class="sl_searchdiv"> - <form action="<{$xoops_url}>/modules/songlist/search.php" method='GET'> + <form action="<{$php_self}>" method='GET'> <input type="hidden" name="op" value="search" /> <table width="100%" border='0' cellpadding="5"> <tr> Modified: XoopsModules/songlist/releases/1.07/htdo... [truncated message content] |