diff --git a/Old Releases/Owncloud 6/files_w2g/admin.php b/Old Releases/Owncloud 6/files_w2g/admin.php deleted file mode 100644 index 088f885..0000000 --- a/Old Releases/Owncloud 6/files_w2g/admin.php +++ /dev/null @@ -1,9 +0,0 @@ -fetchPage(); - diff --git a/Old Releases/Owncloud 6/files_w2g/ajax/getcolor.php b/Old Releases/Owncloud 6/files_w2g/ajax/getcolor.php deleted file mode 100644 index f83520b..0000000 --- a/Old Releases/Owncloud 6/files_w2g/ajax/getcolor.php +++ /dev/null @@ -1,9 +0,0 @@ -execute(array($_POST['type']))->fetchAll(); -if(count($result)>=1){ - echo $result[0]['configvalue']; -} -else - echo ""; \ No newline at end of file diff --git a/Old Releases/Owncloud 6/files_w2g/ajax/l10n.php b/Old Releases/Owncloud 6/files_w2g/ajax/l10n.php deleted file mode 100644 index 2914d14..0000000 --- a/Old Releases/Owncloud 6/files_w2g/ajax/l10n.php +++ /dev/null @@ -1,3 +0,0 @@ -t($_POST['rawtext'])!="") echo $l->t($_POST['rawtext']); else echo $_POST['rawtext']; \ No newline at end of file diff --git a/Old Releases/Owncloud 6/files_w2g/ajax/update.php b/Old Releases/Owncloud 6/files_w2g/ajax/update.php deleted file mode 100644 index c5ad05b..0000000 --- a/Old Releases/Owncloud 6/files_w2g/ajax/update.php +++ /dev/null @@ -1,31 +0,0 @@ -execute(array($mode))->fetchAll(); - -if(count($result)<1)//Color already set? -{ - $query = \OCP\DB::prepare("INSERT INTO *PREFIX*appconfig(appid,configkey,configvalue) value('files_w2g',?,?)"); - $result = $query->execute(array($mode,$color)); - echo $l->t("Color has been set!"); -} -else -{ - $query = \OCP\DB::prepare("UPDATE *PREFIX*appconfig set configvalue=? WHERE appid='files_w2g' and configkey=?"); - $result = $query->execute(array($color,$mode)); - echo $l->t("Updated successfully!"); - - -} \ No newline at end of file diff --git a/Old Releases/Owncloud 6/files_w2g/ajax/workin2gether.php b/Old Releases/Owncloud 6/files_w2g/ajax/workin2gether.php deleted file mode 100644 index a4f2a84..0000000 --- a/Old Releases/Owncloud 6/files_w2g/ajax/workin2gether.php +++ /dev/null @@ -1,135 +0,0 @@ - for -supporting me the whole development progress. -*/ - -//Init translations -$l = \OCP\Util::getL10N('files_w2g'); - -//Requirements check -OCP\JSON::checkLoggedIn(); -OCP\JSON::checkAppEnabled('files_w2g'); - - -//Default path for lock files - -$root = \OC::$SERVERROOT;//$_SERVER['DOCUMENT_ROOT']; - -$apath = $root.OCP\Util::linkTo('files_w2g', 'lock')."/"; - -if(!@file_exists($root.OCP\Util::linkTo('files_w2g')."/lock")) - @mkdir($root.OCP\Util::linkTo('files_w2g')."/lock", 0777, true); - -$storage = preg_replace('{/$}', '', \OC_Config::getValue('datadirectory',\OC::$SERVERROOT . '/data'))."/"; - - -//Vars -$path = stripslashes($_POST['path']) ; -@$safe = @$_POST['safe']; -$ppath = lockname($path); - - -if(cleanPath($path)=="/Shared"){ echo "Forbidden"; return 1; } //Doesn't make sense to lock it cause you can't share it - -if(substr(cleanPath($path),0,7)=="/Shared") -{ - // /Shared/... - $relpath = explode('/',substr(cleanPath($path),7,strlen($path)-7)); - $relative_path = '/'.$relpath[count($relpath)-1]; - - $backcount = 0; - $dbg = $relpath[count($relpath)-1-0]; - do - { - $query = OCP\DB::prepare("SELECT X.parent, X.id, X.uid_owner, Y.path FROM *PREFIX*share X INNER JOIN *PREFIX*filecache Y ON X.file_source = Y.fileid where X.share_with = ? and X.file_target = ? LIMIT 1"); - $result = $query->execute(array(OCP\USER::getUser(),'/'.$relpath[count($relpath)-1-$backcount]))->fetchAll(); - $backcount+=1; - }while(count($result)<1 && $backcount0) $backcount-=1; - - - - - $user = $result[0]['uid_owner']; - $postpath = $result[0]['path']; - //get the original share user name - - $old = ""; $new = "-"; - while ($new!="") - { - $old = $new; - $query = OCP\DB::prepare("SELECT parent, uid_owner, id FROM *PREFIX*share where id = ? LIMIT 1"); - $result = $query->execute(array($result[0]['parent']))->fetchAll(); - $new = @$result[0]['uid_owner']; - } - if($old!="-") $user = $old; - - - $realpath = $storage.$user.'$'.$postpath; - - for($i=$backcount;$i>0;$i-=1) - { - $realpath .= '/'.$relpath[count($relpath)-$i]; - } - - - -} -else $realpath = $storage.OCP\USER::getUser()."/files".cleanPath($path); - -//lockfile name -$lock = $apath.lockname($realpath); - -if (file_exists($lock)) -{ - if(@$safe=="false") - { - @unlink($lock); - echo $l->t("File not locked"); - } - else echo $l->t("Status: locked"); -} -else -{ - @date_default_timezone_set('Europe/Berlin'); - - if(@$safe=="false") - { - $h = fopen($lock, "w"); - fwrite($h,OCP\User::getUser()." ".date(DATE_RFC822)); - fclose($h); - echo $l->t("File is locked"); - } - else echo $l->t("Status: not locked"); -} - - - -function lockname($path) -{ - //Replace all '/' with $ for a filename for the lock file - $ppath = str_replace("/","$",cleanPath($path))."$"; - - $ppath = str_replace("Shared","",$ppath); - $ppath = str_replace(":","#",$ppath); - - //Remove double dollar char when exist - if ($ppath[0] == "$" and $ppath[1] == "$") $ppath = substr($ppath,1); - - return preg_replace('/\\\/','$',$ppath); - -} - -function cleanPath($path) { - - $path = rtrim($path, "/"); - $path = urldecode($path); - return preg_replace('{(/)\1+}', "/", $path); -} diff --git a/Old Releases/Owncloud 6/files_w2g/appinfo/app.php b/Old Releases/Owncloud 6/files_w2g/appinfo/app.php deleted file mode 100644 index 292fd3a..0000000 --- a/Old Releases/Owncloud 6/files_w2g/appinfo/app.php +++ /dev/null @@ -1,24 +0,0 @@ - - - files_w2g - Workin2gether - Pseudo multiaccess-management feature for Owncloud. You can lock files and disable the fileactions, leaving only the fileaction of unlocking a file. - For example, you are trying to edit a calculation table. You can download the file, lock it and start editing the file on your computer. Every person, you have shared the file with, - will see that this file is currently locked, so others will leave the file alone. - This feature is webinterface only. - AGPL - Patrick Hoffmann - 0.6b - 6.00 - diff --git a/Old Releases/Owncloud 6/files_w2g/css/styles.css b/Old Releases/Owncloud 6/files_w2g/css/styles.css deleted file mode 100644 index c7bf96f..0000000 --- a/Old Releases/Owncloud 6/files_w2g/css/styles.css +++ /dev/null @@ -1,25 +0,0 @@ -#workin2gether p { - float: left; - padding-top: 0.8em; - padding-left: 1.2em; -} - -#workin2gether img { - float: left; - width: 48px; - height: 48px; - background: transparent url('apps/files_w2g/img/pattern.png'); - border: 1px solid #D8D8D8; - padding: 5px; -} -a.action.locked{ -display:none !important; -} - -a.name.statelock a.action{ -color:#eee; -opacity:1 !important; -} -a.name.statelock a.action:hover, a.name.statelock span.extension{ -color:#fff; -} diff --git a/Old Releases/Owncloud 6/files_w2g/img/pattern.png b/Old Releases/Owncloud 6/files_w2g/img/pattern.png deleted file mode 100644 index 465261a..0000000 Binary files a/Old Releases/Owncloud 6/files_w2g/img/pattern.png and /dev/null differ diff --git a/Old Releases/Owncloud 6/files_w2g/img/w2g.svg b/Old Releases/Owncloud 6/files_w2g/img/w2g.svg deleted file mode 100644 index d677970..0000000 --- a/Old Releases/Owncloud 6/files_w2g/img/w2g.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/Old Releases/Owncloud 6/files_w2g/img/whoshare.png b/Old Releases/Owncloud 6/files_w2g/img/whoshare.png deleted file mode 100644 index 8204028..0000000 Binary files a/Old Releases/Owncloud 6/files_w2g/img/whoshare.png and /dev/null differ diff --git a/Old Releases/Owncloud 6/files_w2g/js/admin.js b/Old Releases/Owncloud 6/files_w2g/js/admin.js deleted file mode 100644 index 1a91066..0000000 --- a/Old Releases/Owncloud 6/files_w2g/js/admin.js +++ /dev/null @@ -1,25 +0,0 @@ -$(document).ready(function(){ - - $('#submitColor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { color: $('#multicolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('#submitfontcolor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { fontcolor: $('#multifontcolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - -}); \ No newline at end of file diff --git a/Old Releases/Owncloud 6/files_w2g/js/arrow.gif b/Old Releases/Owncloud 6/files_w2g/js/arrow.gif deleted file mode 100644 index 246478a..0000000 Binary files a/Old Releases/Owncloud 6/files_w2g/js/arrow.gif and /dev/null differ diff --git a/Old Releases/Owncloud 6/files_w2g/js/cross.gif b/Old Releases/Owncloud 6/files_w2g/js/cross.gif deleted file mode 100644 index 0ee9c7a..0000000 Binary files a/Old Releases/Owncloud 6/files_w2g/js/cross.gif and /dev/null differ diff --git a/Old Releases/Owncloud 6/files_w2g/js/hs.png b/Old Releases/Owncloud 6/files_w2g/js/hs.png deleted file mode 100644 index 3d94486..0000000 Binary files a/Old Releases/Owncloud 6/files_w2g/js/hs.png and /dev/null differ diff --git a/Old Releases/Owncloud 6/files_w2g/js/hv.png b/Old Releases/Owncloud 6/files_w2g/js/hv.png deleted file mode 100644 index 1c5e01f..0000000 Binary files a/Old Releases/Owncloud 6/files_w2g/js/hv.png and /dev/null differ diff --git a/Old Releases/Owncloud 6/files_w2g/js/jscolor.js b/Old Releases/Owncloud 6/files_w2g/js/jscolor.js deleted file mode 100644 index 6bb0c1f..0000000 --- a/Old Releases/Owncloud 6/files_w2g/js/jscolor.js +++ /dev/null @@ -1,997 +0,0 @@ -/** - * jscolor, JavaScript Color Picker - * - * @version 1.4.2 - * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html - * @author Jan Odvarko, http://odvarko.cz - * @created 2008-06-15 - * @updated 2013-11-25 - * @link http://jscolor.com - */ - - -var jscolor = { - - - dir : '', // location of jscolor directory (leave empty to autodetect) - bindClass : 'color', // class name - binding : true, // automatic binding via - preloading : true, // use image preloading? - - - install : function() { - jscolor.addEvent(window, 'load', jscolor.init); - }, - - - init : function() { - if(jscolor.binding) { - jscolor.bind(); - } - if(jscolor.preloading) { - jscolor.preload(); - } - }, - - - getDir : function() { - if(!jscolor.dir) { - var detected = jscolor.detectDir(); - jscolor.dir = detected!==false ? detected : 'jscolor/'; - } - return jscolor.dir; - }, - - - detectDir : function() { - var base = location.href; - - var e = document.getElementsByTagName('base'); - for(var i=0; i vs[a] ? - (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : - tp[a], - -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? - (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : - (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) - ]; - } - drawPicker(pp[a], pp[b]); - } - }; - - - this.importColor = function() { - if(!valueElement) { - this.exportColor(); - } else { - if(!this.adjust) { - if(!this.fromString(valueElement.value, leaveValue)) { - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - } - } else if(!this.required && /^\s*$/.test(valueElement.value)) { - valueElement.value = ''; - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - - } else if(this.fromString(valueElement.value)) { - // OK - } else { - this.exportColor(); - } - } - }; - - - this.exportColor = function(flags) { - if(!(flags & leaveValue) && valueElement) { - var value = this.toString(); - if(this.caps) { value = value.toUpperCase(); } - if(this.hash) { value = '#'+value; } - valueElement.value = value; - } - if(!(flags & leaveStyle) && styleElement) { - styleElement.style.backgroundImage = "none"; - styleElement.style.backgroundColor = - '#'+this.toString(); - styleElement.style.color = - 0.213 * this.rgb[0] + - 0.715 * this.rgb[1] + - 0.072 * this.rgb[2] - < 0.5 ? '#FFF' : '#000'; - } - if(!(flags & leavePad) && isPickerOwner()) { - redrawPad(); - } - if(!(flags & leaveSld) && isPickerOwner()) { - redrawSld(); - } - }; - - - this.fromHSV = function(h, s, v, flags) { // null = don't change - if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); } - if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); } - if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); } - - this.rgb = HSV_RGB( - h===null ? this.hsv[0] : (this.hsv[0]=h), - s===null ? this.hsv[1] : (this.hsv[1]=s), - v===null ? this.hsv[2] : (this.hsv[2]=v) - ); - - this.exportColor(flags); - }; - - - this.fromRGB = function(r, g, b, flags) { // null = don't change - if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); } - if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); } - if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); } - - var hsv = RGB_HSV( - r===null ? this.rgb[0] : r, - g===null ? this.rgb[1] : g, - b===null ? this.rgb[2] : b - ); - if(hsv[0] !== null) { - this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0])); - } - if(hsv[2] !== 0) { - this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1])); - } - this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2])); - - // update RGB according to final HSV, as some values might be trimmed - var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); - this.rgb[0] = rgb[0]; - this.rgb[1] = rgb[1]; - this.rgb[2] = rgb[2]; - - this.exportColor(flags); - }; - - - this.fromString = function(hex, flags) { - var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i); - if(!m) { - return false; - } else { - if(m[1].length === 6) { // 6-char notation - this.fromRGB( - parseInt(m[1].substr(0,2),16) / 255, - parseInt(m[1].substr(2,2),16) / 255, - parseInt(m[1].substr(4,2),16) / 255, - flags - ); - } else { // 3-char notation - this.fromRGB( - parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255, - parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255, - parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255, - flags - ); - } - return true; - } - }; - - - this.toString = function() { - return ( - (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1) - ); - }; - - - function RGB_HSV(r, g, b) { - var n = Math.min(Math.min(r,g),b); - var v = Math.max(Math.max(r,g),b); - var m = v - n; - if(m === 0) { return [ null, 0, v ]; } - var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); - return [ h===6?0:h, m/v, v ]; - } - - - function HSV_RGB(h, s, v) { - if(h === null) { return [ v, v, v ]; } - var i = Math.floor(h); - var f = i%2 ? h-i : 1-(h-i); - var m = v * (1 - s); - var n = v * (1 - s*f); - switch(i) { - case 6: - case 0: return [v,n,m]; - case 1: return [n,v,m]; - case 2: return [m,v,n]; - case 3: return [m,n,v]; - case 4: return [n,m,v]; - case 5: return [v,m,n]; - } - } - - - function removePicker() { - delete jscolor.picker.owner; - document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB); - } - - - function drawPicker(x, y) { - if(!jscolor.picker) { - jscolor.picker = { - box : document.createElement('div'), - boxB : document.createElement('div'), - pad : document.createElement('div'), - padB : document.createElement('div'), - padM : document.createElement('div'), - sld : document.createElement('div'), - sldB : document.createElement('div'), - sldM : document.createElement('div'), - btn : document.createElement('div'), - btnS : document.createElement('span'), - btnT : document.createTextNode(THIS.pickerCloseText) - }; - for(var i=0,segSize=4; i0) { - - - FileActions.register('file',text,OC.PERMISSION_READ,function(){return OC.imagePath('files_w2g','w2g.svg')},function(filename){ - getState(filename,"false"); - }); - - FileActions.register('dir',text,OC.PERMISSION_READ,function(){return OC.imagePath('files_w2g','w2g.svg')},function(filename){ - getState(filename,"false"); - }); - - $('#fileList').on('fileActionsReady',function(filename){ - $('#fileList tr td.filename a.name span.nametext').each(function() { - var $tr = $(this); - getState($tr.html(),"true"); - }); - }); - } - - - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'color'}, - async: false, - success: function(data){if(data!=""){color = data;}}, - }); - - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'fontcolor'}, - async: false, - success: function(data){if(data!=""){fontcolor = data;}}, - }); - - var cssrules = $("").appendTo("head"); - cssrules.append(".statelock{ background-color:#"+color+";color:#"+fontcolor+" !important;}.statelock span.modified{color:#"+fontcolor+" !important;}"); - -}); - -function disable_control(filename) -{ - - $('#fileList tr').each(function() { - - var $tr = $(this); - - var $_tr = $tr.html().replace(/^\s+|\s+$/g, '').replace('','').replace('',''); - - if($_tr.indexOf(lockedtext)!=-1||$_tr.indexOf(lockstate)!=-1) - { - if($_tr.indexOf(filename)!=-1) - $tr.find('a.action[data-action!='+text+']').addClass('locked'); - $tr.find('a.name').addClass('statelock'); - $tr.find('td.filesize').addClass('statelock'); - $tr.find('td.date').addClass('statelock'); - - } - }); -} - -function enable_control(filename) -{ - $('#fileList tr').each(function() { - - var $tr = $(this); - - var $_tr = $tr.html().replace(/^\s+|\s+$/g, '').replace('','').replace('',''); - - if($_tr.indexOf(lockedtext)==-1 && $_tr.indexOf(lockstate)==-1) - { - if($_tr.indexOf(filename)!=-1) - $tr.find('a.action[data-action!='+text+']').removeClass('locked'); - $tr.find('a.name').removeClass('statelock'); - $tr.find('td.filesize').removeClass('statelock'); - $tr.find('td.date').removeClass('statelock'); - } - }); -} - -function translate(text) -{ - $.ajax({ - url: OC.filePath('files_w2g','ajax','l10n.php'), - type: "post", - data: { rawtext: text}, - async: false, - success: function(data){text = data;}, - }); - return text; -} - -function getState(filename,_safe) -{ - filename = filename.replace(/^\s+|\s+$/g, '').replace('','').replace('',''); - - oc_dir = $('#dir').val(); - filename = filename.replace(/ /g, "%20"); - oc_path = oc_dir +'/'+filename; - - - $.ajax({ - url: OC.filePath('files_w2g','ajax','workin2gether.php'), - type: "post", - data: { path: oc_path, safe: _safe}, - success: function(data){postmode(filename,data)}, - }); - -} - -function postmode(filename,data) -{ - filename = filename.replace(/%20/g,' '); - - var html = ' '+data; - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action',text).html(html); - - if(data==lockedtext||data==lockstate) - disable_control(filename); - else - enable_control(filename); - -} - diff --git a/Old Releases/Owncloud 6/files_w2g/l10n/de.php b/Old Releases/Owncloud 6/files_w2g/l10n/de.php deleted file mode 100644 index f0727e6..0000000 --- a/Old Releases/Owncloud 6/files_w2g/l10n/de.php +++ /dev/null @@ -1,14 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Multi file access" => "Mehrfachzugriff", -"configuration" => "konfigurieren", -"You can choose the backcolor for locked files in the file list" => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"You can set an additional font color" => "Schriftfarbe bei gesperrten Dateien", -"Save background color" => "Hintergrundfarbe speichern", -"Save font color" => "Schriftfarbe speichern", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 6/files_w2g/l10n/de_DE.php b/Old Releases/Owncloud 6/files_w2g/l10n/de_DE.php deleted file mode 100644 index f0727e6..0000000 --- a/Old Releases/Owncloud 6/files_w2g/l10n/de_DE.php +++ /dev/null @@ -1,14 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Multi file access" => "Mehrfachzugriff", -"configuration" => "konfigurieren", -"You can choose the backcolor for locked files in the file list" => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"You can set an additional font color" => "Schriftfarbe bei gesperrten Dateien", -"Save background color" => "Hintergrundfarbe speichern", -"Save font color" => "Schriftfarbe speichern", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 6/files_w2g/l10n/en@pirate.php b/Old Releases/Owncloud 6/files_w2g/l10n/en@pirate.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 6/files_w2g/l10n/en@pirate.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 6/files_w2g/l10n/en_GB.php b/Old Releases/Owncloud 6/files_w2g/l10n/en_GB.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 6/files_w2g/l10n/en_GB.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 6/files_w2g/templates/admin.php b/Old Releases/Owncloud 6/files_w2g/templates/admin.php deleted file mode 100644 index 70a461c..0000000 --- a/Old Releases/Owncloud 6/files_w2g/templates/admin.php +++ /dev/null @@ -1,44 +0,0 @@ -execute()->fetchAll(); -if(count($result)>=1) - $value = $result[0]['configvalue']; - -//fontcolor -$query = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey='fontcolor' and appid='files_w2g' LIMIT 1"); -$result = $query->execute()->fetchAll(); -if(count($result)>=1) - $font_value = $result[0]['configvalue']; - -//---------------------------------------------------------------------------------------------------------------------------- - -\OCP\Util::addscript(app::name, 'admin'); -\OCP\Util::addscript(app::name, 'jscolor'); -?> - -
-

t('Multi file access').' '.$l->t('configuration')) ?>

- - t("You can choose the backcolor for locked files in the file list")); - - echo ' -

- #

-  

- '.$l->t("You can set an additional font color").'
- #

-  

- '; - ?> -
\ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/admin.php b/Old Releases/Owncloud 7/files_w2g/admin.php deleted file mode 100644 index 1eefc32..0000000 --- a/Old Releases/Owncloud 7/files_w2g/admin.php +++ /dev/null @@ -1,8 +0,0 @@ -fetchPage(); - diff --git a/Old Releases/Owncloud 7/files_w2g/ajax/admin_db.php b/Old Releases/Owncloud 7/files_w2g/ajax/admin_db.php deleted file mode 100644 index fdd3aa5..0000000 --- a/Old Releases/Owncloud 7/files_w2g/ajax/admin_db.php +++ /dev/null @@ -1,18 +0,0 @@ -execute(); - echo "clear"; - break; - - case 'clearthis': - \OCP\DB::prepare("DELETE FROM *PREFIX*".app::table." WHERE name=?")->execute(array($_POST['lock'])); - echo "clear"; - break; -} - -?> \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/ajax/getcolor.php b/Old Releases/Owncloud 7/files_w2g/ajax/getcolor.php deleted file mode 100644 index 632c96e..0000000 --- a/Old Releases/Owncloud 7/files_w2g/ajax/getcolor.php +++ /dev/null @@ -1,8 +0,0 @@ -execute(array($_POST['type']))->fetchAll(); - -if(count($result)>=1) echo $result[0]['configvalue']; - -else echo ""; \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/ajax/update.php b/Old Releases/Owncloud 7/files_w2g/ajax/update.php deleted file mode 100644 index c5ad05b..0000000 --- a/Old Releases/Owncloud 7/files_w2g/ajax/update.php +++ /dev/null @@ -1,31 +0,0 @@ -execute(array($mode))->fetchAll(); - -if(count($result)<1)//Color already set? -{ - $query = \OCP\DB::prepare("INSERT INTO *PREFIX*appconfig(appid,configkey,configvalue) value('files_w2g',?,?)"); - $result = $query->execute(array($mode,$color)); - echo $l->t("Color has been set!"); -} -else -{ - $query = \OCP\DB::prepare("UPDATE *PREFIX*appconfig set configvalue=? WHERE appid='files_w2g' and configkey=?"); - $result = $query->execute(array($color,$mode)); - echo $l->t("Updated successfully!"); - - -} \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/ajax/workin2gether.php b/Old Releases/Owncloud 7/files_w2g/ajax/workin2gether.php deleted file mode 100644 index c3b827f..0000000 --- a/Old Releases/Owncloud 7/files_w2g/ajax/workin2gether.php +++ /dev/null @@ -1,88 +0,0 @@ - for -supporting me the whole development progress. -*/ -namespace OCA\files_w2g; - -//Init translations -$l = \OCP\Util::getL10N('files_w2g'); - -//Requirements check -\OCP\JSON::checkLoggedIn(); -\OCP\JSON::checkAppEnabled('files_w2g'); - -//Init Database table -$exist = \OCP\DB::prepare("SHOW TABLES LIKE '*PREFIX*".app::table."'")->execute()->fetchAll(); - - -if($exist==null) -{ - @$query = \OCP\DB::prepare("CREATE table *PREFIX*".app::table."(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255)) ".app::charset); - @$query->execute()->fetchAll(); -} -//<-End Init Database table - -//Vars -$path = stripslashes($_POST['path']) ; -@$safe = @$_POST['safe']; -@$owner = @$_POST['owner']; -@$id = @$_POST['id']; -$ppath = lockname($path); - -//Resolve the shared file -if(@$owner!="") -{ - $query = \OCP\DB::prepare("SELECT X.path, Y.id FROM *PREFIX*filecache X INNER JOIN *PREFIX*storages Y ON X.storage = Y.numeric_id where X.fileid = ".$id." LIMIT 1"); - $result = $query->execute()->fetchAll(); // ? with execute parameters weren't working, so I used it in prepare - - $original_path = $result[0]['path']; - $storage_id = str_replace("home::","",$result[0]['id']).'/'; - - $lockpath = $storage_id.$original_path; -} -else $lockpath = \OCP\USER::getUser()."/files".cleanPath($path); - -//Lock DB entry -$lockfile = lockname($lockpath); -$db_lock_state = \OCP\DB::prepare("SELECT * FROM *PREFIX*".app::table." WHERE name = ?")->execute(array($lockfile))->fetchAll(); - -if ($db_lock_state!=null) -{ - if(@$safe=="false") - { - \OCP\DB::prepare("DELETE FROM *PREFIX*".app::table." WHERE name=?")->execute(array($lockfile)); - echo $l->t("File not locked"); - } - else echo $l->t("Status: locked")." ".$l->t("by")." ".$db_lock_state[0]['locked_by']; -} -else -{ - if(@$safe=="false") - { - \OCP\DB::prepare("INSERT INTO *PREFIX*".app::table."(name,locked_by) VALUES(?,?)")->execute(array($lockfile,\OCP\User::getUser())); - echo $l->t("File is locked")." ".$l->t("by")." ".\OCP\User::getUser(); - } - else echo $l->t("Status: not locked"); -} - -function lockname($path) -{ - //Replace all '/' with $ for a filename for the lock file - $ppath = str_replace("/","$",cleanPath($path))."$"; - $ppath = str_replace(":","#",$ppath); - - //Remove double dollar char when exist - if ($ppath[0] == "$" and $ppath[1] == "$") $ppath = substr($ppath,1); - - return preg_replace('/\\\/','$',$ppath); -} - -function cleanPath($path) -{ - return preg_replace('{(/)\1+}', "/", urldecode(rtrim($path, "/"))); -} \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/appinfo/app.php b/Old Releases/Owncloud 7/files_w2g/appinfo/app.php deleted file mode 100644 index 4b001da..0000000 --- a/Old Releases/Owncloud 7/files_w2g/appinfo/app.php +++ /dev/null @@ -1,27 +0,0 @@ - - - files_w2g - Workin2gether - - Pseudo multiaccess-management feature for Owncloud. - You can lock files and disable the fileactions, leaving only the fileaction of unlocking a file. - Please leave your feedback and rate this app, if you like it! - - AGPL - Patrick Hoffmann - 0.7.2.1b - 6.00 - diff --git a/Old Releases/Owncloud 7/files_w2g/css/styles.css b/Old Releases/Owncloud 7/files_w2g/css/styles.css deleted file mode 100644 index b354deb..0000000 --- a/Old Releases/Owncloud 7/files_w2g/css/styles.css +++ /dev/null @@ -1,17 +0,0 @@ - -a.action.locked{ display:none !important; } - -a.action-getstate_file.locked, a.action-getstate_dir.locked{ display:inline !important; } - -a.statelock a.action[data-action!=getstate_dir&&data-action!=getstate_file]{ -pointer-events:none; -} -td.statelock:focus{pointer-events:none;} - -a.action-getstate_file, a.action-getstate_dir{ cursor:pointer !important;} - -a.name.statelock a.action{ color:#eee; opacity:1 !important; } - -a.name.statelock a.action:hover, a.name.statelock span.extension{ color:#fff; } - -.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled{ opacity:1.0;} \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/img/pattern.png b/Old Releases/Owncloud 7/files_w2g/img/pattern.png deleted file mode 100644 index 465261a..0000000 Binary files a/Old Releases/Owncloud 7/files_w2g/img/pattern.png and /dev/null differ diff --git a/Old Releases/Owncloud 7/files_w2g/img/w2g.svg b/Old Releases/Owncloud 7/files_w2g/img/w2g.svg deleted file mode 100644 index d677970..0000000 --- a/Old Releases/Owncloud 7/files_w2g/img/w2g.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/Old Releases/Owncloud 7/files_w2g/js/admin.js b/Old Releases/Owncloud 7/files_w2g/js/admin.js deleted file mode 100644 index f03bd46..0000000 --- a/Old Releases/Owncloud 7/files_w2g/js/admin.js +++ /dev/null @@ -1,52 +0,0 @@ -$(document).ready(function(){ - - $('#submitColor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { color: $('#multicolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('#submitfontcolor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { fontcolor: $('#multifontcolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('#clearall').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearall'}, - async: false, - success: function(data){ - if(data=="clear") $('#lockfield').html(t("files_w2g","There are no locked files at the moment"));}, - }); - }); - - $('#clearthis').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearthis',lock: $('#select_lock option:selected').val()}, - async: false, - success: function(data){ - if(data=="clear") $('#select_lock option:selected').remove(); - - if($.trim($('#select_lock').html())=="") - $('#lockfield').html(t("files_w2g","There are no locked files at the moment")); - - }, - }); - }); - -}); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/js/arrow.gif b/Old Releases/Owncloud 7/files_w2g/js/arrow.gif deleted file mode 100644 index 246478a..0000000 Binary files a/Old Releases/Owncloud 7/files_w2g/js/arrow.gif and /dev/null differ diff --git a/Old Releases/Owncloud 7/files_w2g/js/cross.gif b/Old Releases/Owncloud 7/files_w2g/js/cross.gif deleted file mode 100644 index 0ee9c7a..0000000 Binary files a/Old Releases/Owncloud 7/files_w2g/js/cross.gif and /dev/null differ diff --git a/Old Releases/Owncloud 7/files_w2g/js/hs.png b/Old Releases/Owncloud 7/files_w2g/js/hs.png deleted file mode 100644 index 3d94486..0000000 Binary files a/Old Releases/Owncloud 7/files_w2g/js/hs.png and /dev/null differ diff --git a/Old Releases/Owncloud 7/files_w2g/js/hv.png b/Old Releases/Owncloud 7/files_w2g/js/hv.png deleted file mode 100644 index 1c5e01f..0000000 Binary files a/Old Releases/Owncloud 7/files_w2g/js/hv.png and /dev/null differ diff --git a/Old Releases/Owncloud 7/files_w2g/js/jscolor.js b/Old Releases/Owncloud 7/files_w2g/js/jscolor.js deleted file mode 100644 index 6bb0c1f..0000000 --- a/Old Releases/Owncloud 7/files_w2g/js/jscolor.js +++ /dev/null @@ -1,997 +0,0 @@ -/** - * jscolor, JavaScript Color Picker - * - * @version 1.4.2 - * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html - * @author Jan Odvarko, http://odvarko.cz - * @created 2008-06-15 - * @updated 2013-11-25 - * @link http://jscolor.com - */ - - -var jscolor = { - - - dir : '', // location of jscolor directory (leave empty to autodetect) - bindClass : 'color', // class name - binding : true, // automatic binding via - preloading : true, // use image preloading? - - - install : function() { - jscolor.addEvent(window, 'load', jscolor.init); - }, - - - init : function() { - if(jscolor.binding) { - jscolor.bind(); - } - if(jscolor.preloading) { - jscolor.preload(); - } - }, - - - getDir : function() { - if(!jscolor.dir) { - var detected = jscolor.detectDir(); - jscolor.dir = detected!==false ? detected : 'jscolor/'; - } - return jscolor.dir; - }, - - - detectDir : function() { - var base = location.href; - - var e = document.getElementsByTagName('base'); - for(var i=0; i vs[a] ? - (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : - tp[a], - -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? - (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : - (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) - ]; - } - drawPicker(pp[a], pp[b]); - } - }; - - - this.importColor = function() { - if(!valueElement) { - this.exportColor(); - } else { - if(!this.adjust) { - if(!this.fromString(valueElement.value, leaveValue)) { - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - } - } else if(!this.required && /^\s*$/.test(valueElement.value)) { - valueElement.value = ''; - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - - } else if(this.fromString(valueElement.value)) { - // OK - } else { - this.exportColor(); - } - } - }; - - - this.exportColor = function(flags) { - if(!(flags & leaveValue) && valueElement) { - var value = this.toString(); - if(this.caps) { value = value.toUpperCase(); } - if(this.hash) { value = '#'+value; } - valueElement.value = value; - } - if(!(flags & leaveStyle) && styleElement) { - styleElement.style.backgroundImage = "none"; - styleElement.style.backgroundColor = - '#'+this.toString(); - styleElement.style.color = - 0.213 * this.rgb[0] + - 0.715 * this.rgb[1] + - 0.072 * this.rgb[2] - < 0.5 ? '#FFF' : '#000'; - } - if(!(flags & leavePad) && isPickerOwner()) { - redrawPad(); - } - if(!(flags & leaveSld) && isPickerOwner()) { - redrawSld(); - } - }; - - - this.fromHSV = function(h, s, v, flags) { // null = don't change - if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); } - if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); } - if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); } - - this.rgb = HSV_RGB( - h===null ? this.hsv[0] : (this.hsv[0]=h), - s===null ? this.hsv[1] : (this.hsv[1]=s), - v===null ? this.hsv[2] : (this.hsv[2]=v) - ); - - this.exportColor(flags); - }; - - - this.fromRGB = function(r, g, b, flags) { // null = don't change - if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); } - if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); } - if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); } - - var hsv = RGB_HSV( - r===null ? this.rgb[0] : r, - g===null ? this.rgb[1] : g, - b===null ? this.rgb[2] : b - ); - if(hsv[0] !== null) { - this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0])); - } - if(hsv[2] !== 0) { - this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1])); - } - this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2])); - - // update RGB according to final HSV, as some values might be trimmed - var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); - this.rgb[0] = rgb[0]; - this.rgb[1] = rgb[1]; - this.rgb[2] = rgb[2]; - - this.exportColor(flags); - }; - - - this.fromString = function(hex, flags) { - var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i); - if(!m) { - return false; - } else { - if(m[1].length === 6) { // 6-char notation - this.fromRGB( - parseInt(m[1].substr(0,2),16) / 255, - parseInt(m[1].substr(2,2),16) / 255, - parseInt(m[1].substr(4,2),16) / 255, - flags - ); - } else { // 3-char notation - this.fromRGB( - parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255, - parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255, - parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255, - flags - ); - } - return true; - } - }; - - - this.toString = function() { - return ( - (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1) - ); - }; - - - function RGB_HSV(r, g, b) { - var n = Math.min(Math.min(r,g),b); - var v = Math.max(Math.max(r,g),b); - var m = v - n; - if(m === 0) { return [ null, 0, v ]; } - var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); - return [ h===6?0:h, m/v, v ]; - } - - - function HSV_RGB(h, s, v) { - if(h === null) { return [ v, v, v ]; } - var i = Math.floor(h); - var f = i%2 ? h-i : 1-(h-i); - var m = v * (1 - s); - var n = v * (1 - s*f); - switch(i) { - case 6: - case 0: return [v,n,m]; - case 1: return [n,v,m]; - case 2: return [m,v,n]; - case 3: return [m,n,v]; - case 4: return [n,m,v]; - case 5: return [v,m,n]; - } - } - - - function removePicker() { - delete jscolor.picker.owner; - document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB); - } - - - function drawPicker(x, y) { - if(!jscolor.picker) { - jscolor.picker = { - box : document.createElement('div'), - boxB : document.createElement('div'), - pad : document.createElement('div'), - padB : document.createElement('div'), - padM : document.createElement('div'), - sld : document.createElement('div'), - sldB : document.createElement('div'), - sldM : document.createElement('div'), - btn : document.createElement('div'), - btnS : document.createElement('span'), - btnT : document.createTextNode(THIS.pickerCloseText) - }; - for(var i=0,segSize=4; i0) { - - //Initiate the FileAction for file - OCA.Files.fileActions.register( - 'file', - 'getstate_file', - OC.PERMISSION_UPDATE, - function(){ return OC.imagePath('files_w2g','w2g.svg') }, - function(filename,context) { getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false") }, t('files_w2g',text) - ); - - //Initiate the FileAction for dir - OCA.Files.fileActions.register( - 'dir', - 'getstate_dir', - OC.PERMISSION_UPDATE, - function(){ return OC.imagePath('files_w2g','w2g.svg') }, - function(filename,context) { getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false") }, t('files_w2g',text) - ); - - //Walk through all files in the active Filelist - $('#content').delegate('#fileList', 'fileActionsReady',function(ev){ - - var $fileList = ev.fileList.$fileList; - - $fileList.find('tr').each(function(){ - $filename = $(this).attr('data-file'); - $owner = $(this).attr('data-share-owner'); - $id = $(this).attr('data-id'); - getState($id,$filename,$owner,"true"); - }); - }); - } - - //Get the Background-color from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'color'}, - async: false, - success: function(data){if(data!=""){color = data;}}, - }); - - //Get the Fontcolor from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'fontcolor'}, - async: false, - success: function(data){if(data!=""){fontcolor = data;}}, - }); - - //Add dynamic CSS code - var cssrules = $("").appendTo("head"); - cssrules.append(".statelock{ background-color:#"+color+";color:#"+fontcolor+" !important;}"+ - ".statelock span.modified{color:#"+fontcolor+" !important;}"+ - "a.action-getstate_file.locked,a.action-getstate_dir.locked{color:#"+fontcolor+" !important;}"+ - "a.action-getstate_file.locked:hover,a.action-getstate_dir.locked:hover{color:#fff !important;}"); -}); - -//Switch the Lockstate -function toggle_control(filename) -{ - //Walk through the Filelists - $('#fileList tr').each(function() { - - var $tr = $(this); - var $_tr = $tr.html().replace(/^\s+|\s+$/g, '').replace('','').replace('',''); - - if($_tr.indexOf(filename)!=-1) - { - if($_tr.indexOf(lockedtext)==-1 && $_tr.indexOf(lockstate)==-1) - { //unlock - $tr.find('a.action[data-action!='+text+']').removeClass('locked'); - $tr.find('a.name').removeClass('statelock'); - $tr.find('td.filesize').removeClass('statelock'); - $tr.find('td.date').removeClass('statelock'); - $tr.find('td').removeClass('statelock'); - $tr.find('td').draggable('enable'); - } - else if($_tr.indexOf(lockedtext)!=-1||$_tr.indexOf(lockstate)!=-1) - { //lock - $tr.find('a.action[data-action!='+text+']').addClass('locked'); - $tr.find('a.name').addClass('statelock'); - $tr.find('td.filesize').addClass('statelock'); - $tr.find('td.date').addClass('statelock'); - $tr.find('td').addClass('statelock'); - $tr.find('td').draggable('disable'); - } - } - }); -} - -//Get the current state -function getState( _id, _filename, _owner, _safe) -{ - oc_dir = $('#dir').val(); - _filename = _filename.replace(/ /g, "%20"); - oc_path = oc_dir +'/'+_filename; - - $.ajax({ - url: OC.filePath('files_w2g','ajax','workin2gether.php'), - type: "post", - data: { path: oc_path, safe: _safe, owner: _owner, id: _id}, - success: function(data){postmode(_filename,data)}, - }); -} - -//Push the status -function postmode(filename,data) -{ - filename = filename.replace(/%20/g,' '); - - var html = ' '+''+data+''; - - //Push the status text to the file - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_file').html(html); - - //Push the status text to the dir - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_dir').html(html); - - toggle_control(filename); -} \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/de.php b/Old Releases/Owncloud 7/files_w2g/l10n/de.php deleted file mode 100644 index bee1491..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/de.php +++ /dev/null @@ -1,18 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/de_DE.php b/Old Releases/Owncloud 7/files_w2g/l10n/de_DE.php deleted file mode 100644 index bee1491..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/de_DE.php +++ /dev/null @@ -1,18 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/en@pirate.php b/Old Releases/Owncloud 7/files_w2g/l10n/en@pirate.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/en@pirate.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/en_GB.php b/Old Releases/Owncloud 7/files_w2g/l10n/en_GB.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/en_GB.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/fr.php b/Old Releases/Owncloud 7/files_w2g/l10n/fr.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/fr.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/fr_FR.php b/Old Releases/Owncloud 7/files_w2g/l10n/fr_FR.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/fr_FR.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/ja.php b/Old Releases/Owncloud 7/files_w2g/l10n/ja.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/ja.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/l10n/ja_JP.php b/Old Releases/Owncloud 7/files_w2g/l10n/ja_JP.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 7/files_w2g/l10n/ja_JP.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 7/files_w2g/templates/admin.php b/Old Releases/Owncloud 7/files_w2g/templates/admin.php deleted file mode 100644 index 1d1df22..0000000 --- a/Old Releases/Owncloud 7/files_w2g/templates/admin.php +++ /dev/null @@ -1,62 +0,0 @@ -execute()->fetchAll(); -if(count($result)>=1) - $value = $result[0]['configvalue']; - -//fontcolor -$query = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey='fontcolor' and appid='files_w2g' LIMIT 1"); -$result = $query->execute()->fetchAll(); -if(count($result)>=1) - $font_value = $result[0]['configvalue']; - -//Locked files -$exist = \OCP\DB::prepare("SHOW TABLES LIKE '*PREFIX*".app::table."'")->execute()->fetchAll(); -if($exist!=null) - $result = \OCP\DB::prepare("SELECT * FROM *PREFIX*".app::table)->execute()->fetchAll(); -//---------------------------------------------------------------------------------------------------------------------------- - -\OCP\Util::addscript(app::name, 'admin'); -\OCP\Util::addscript(app::name, 'jscolor'); -?> -
-
-

t('Manage multiaccess')) ?>

- - t("Here you can set the colors for the locked files.")); - - echo ' -

- '.$l->t("Background color").':
- # -  

- - '.$l->t("Font color").':
- # -  

- '; - - if(count($result)>0) - { - echo '
'.$l->t("Locked files").':
-
-
- '; - } - else - echo $l->t("There are no locked files at the moment"); - ?> -
\ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/admin.php b/Old Releases/Owncloud 8.1/admin.php deleted file mode 100644 index 088f885..0000000 --- a/Old Releases/Owncloud 8.1/admin.php +++ /dev/null @@ -1,9 +0,0 @@ -fetchPage(); - diff --git a/Old Releases/Owncloud 8.1/ajax/admin_db.php b/Old Releases/Owncloud 8.1/ajax/admin_db.php deleted file mode 100644 index 6e7511b..0000000 --- a/Old Releases/Owncloud 8.1/ajax/admin_db.php +++ /dev/null @@ -1,18 +0,0 @@ -execute(); - echo "clear"; - break; - - case 'clearthis': - \OCP\DB::prepare("DELETE FROM *PREFIX*".app::table." WHERE name=?")->execute(array($_POST['lock'])); - echo "clear"; - break; -} - -?> diff --git a/Old Releases/Owncloud 8.1/ajax/getcolor.php b/Old Releases/Owncloud 8.1/ajax/getcolor.php deleted file mode 100644 index 632c96e..0000000 --- a/Old Releases/Owncloud 8.1/ajax/getcolor.php +++ /dev/null @@ -1,8 +0,0 @@ -execute(array($_POST['type']))->fetchAll(); - -if(count($result)>=1) echo $result[0]['configvalue']; - -else echo ""; \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/ajax/update.php b/Old Releases/Owncloud 8.1/ajax/update.php deleted file mode 100644 index acd7866..0000000 --- a/Old Releases/Owncloud 8.1/ajax/update.php +++ /dev/null @@ -1,32 +0,0 @@ -execute(array($mode))->fetchAll(); - -if(count($result)<1)//Value already set? -{ - $query = \OCP\DB::prepare("INSERT INTO *PREFIX*appconfig(appid,configkey,configvalue) value('files_w2g',?,?)"); - $result = $query->execute(array($mode,$value)); - echo $l->t($mode)." ".$l->t("has been set!"); -} -else -{ - $query = \OCP\DB::prepare("UPDATE *PREFIX*appconfig set configvalue=? WHERE appid='files_w2g' and configkey=?"); - $result = $query->execute(array($value,$mode)); - echo $l->t("Updated successfully!"); - - -} diff --git a/Old Releases/Owncloud 8.1/ajax/workin2gether.php b/Old Releases/Owncloud 8.1/ajax/workin2gether.php deleted file mode 100644 index 2e4d21f..0000000 --- a/Old Releases/Owncloud 8.1/ajax/workin2gether.php +++ /dev/null @@ -1,150 +0,0 @@ -execute(array($id))->fetchAll(); - - $original_path = $result[0]['path']; - $storage_id = str_replace("home::", "", $result[0]['id']) . '/'; - - $lockpath = $storage_id.$original_path; -} -else $lockpath = \OCP\USER::getUser()."/files".cleanPath($path); - -//Lock DB entry -$lockfile = lockname($lockpath); -$db_lock_state = \OCP\DB::prepare("SELECT * FROM *PREFIX*" . app::table . " WHERE name = ?")->execute(array($lockfile))->fetchAll(); - -//If lock exist, unlock it, but check the safemode -if ($db_lock_state!=null) { - if($safe=="false") { - $lockedby_name = $db_lock_state[0]['locked_by']; - ShowUserName($lockedby_name); - - if( extended_precheck( $extended, $lockedby_name ) != 0 ){ - echo $l->t("No permission"); - return; - } - - \OCP\DB::prepare("DELETE FROM *PREFIX*" . app::table . " WHERE name=?")->execute(array($lockfile)); - echo $l->t("File not locked"); - } - else{ - $lockedby_name = $db_lock_state[0]['locked_by']; - ShowDisplayName($lockedby_name); - echo $l->t("Status: locked")." ".$l->t("by")." ".$lockedby_name; - } -} -//If not locked, lock it, but check the safemode -else { - if($safe=="false") { - $lockedby_name = \OCP\User::getUser(); - if($naming=="rule_displayname") { - $lockedby_name = \OCP\User::getDisplayName(); - $lockedby_name .= "|".\OCP\User::getUser(); - } - - \OCP\DB::prepare("INSERT INTO *PREFIX*".app::table."(name,locked_by) VALUES(?,?)")->execute(array($lockfile,$lockedby_name)); - - //For Compatibiliy reasons, support old Lockedby type <0.8 - - ShowDisplayName($lockedby_name); //Korrektur bei DisplayName - echo $l->t("File is locked")." ".$l->t("by")." ".$lockedby_name; - } - else echo $l->t("Status: not locked"); -} - -//Functions - -function lockname($path){ - //Replace all '/' with $ for a filename for the lock file - $ppath = str_replace("/","$",cleanPath($path))."$"; - $ppath = str_replace(":","#",$ppath); - - //Remove double dollar char when exist - if ($ppath[0] == "$" and $ppath[1] == "$") $ppath = substr($ppath,1); - - return preg_replace('/\\\/','$',$ppath); -} - -function cleanPath($path){ - return preg_replace('{(/)\1+}', "/", urldecode(rtrim($path, "/"))); -} - -function db_fetcher( &$configkey, $configtype ){ - $type = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey=? and appid='files_w2g' LIMIT 1")->execute(array($configtype))->fetchAll(); - - if (count($type) >= 1) - $configkey = $type[0]['configvalue']; -} - -function extended_precheck( $extended, $owner ){ - //Return 0 = allowed | Return 1 = Forbidden - if ( $extended == "0" ) - return 0; - elseif ( $extended == "1" ) - { - if( $owner == \OCP\User::getUser() ) - return 0; - } - - return 1; -} - -function ShowDisplayName(&$lockedby_name){ - if(strstr($lockedby_name,"|")){ - $temp_ln = explode("|",$lockedby_name); - $lockedby_name = $temp_ln[0]; - } -} - -function ShowUserName(&$lockedby_name){ - if(strstr($lockedby_name,"|")){ - $temp_ln = explode("|",$lockedby_name); - $lockedby_name = $temp_ln[1]; - } -} - diff --git a/Old Releases/Owncloud 8.1/appinfo/app.php b/Old Releases/Owncloud 8.1/appinfo/app.php deleted file mode 100644 index 53b53d6..0000000 --- a/Old Releases/Owncloud 8.1/appinfo/app.php +++ /dev/null @@ -1,41 +0,0 @@ -execute()->fetchAll(); - - if($db_exist==null){ - @$db_exist = \OCP\DB::prepare("CREATE table *PREFIX*" . app::table . "(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255)) " . app::charset); - @$db_exist->execute(); - } - - app::launch(); -} diff --git a/Old Releases/Owncloud 8.1/appinfo/info.xml b/Old Releases/Owncloud 8.1/appinfo/info.xml deleted file mode 100644 index 09412cb..0000000 --- a/Old Releases/Owncloud 8.1/appinfo/info.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - files_w2g - Workin2gether - - Pseudo multiaccess-management feature for Owncloud. - You can lock files and disable the fileactions, leaving only the fileaction of unlocking a file. - Please leave your feedback and rate this app, if you like it! - - - AGPL - Patrick Hoffmann - 6.00 - - - - 164016 - diff --git a/Old Releases/Owncloud 8.1/appinfo/routes.php b/Old Releases/Owncloud 8.1/appinfo/routes.php deleted file mode 100644 index 9512e8f..0000000 --- a/Old Releases/Owncloud 8.1/appinfo/routes.php +++ /dev/null @@ -1,19 +0,0 @@ -create('files_w2g_ajax_getcolor', 'ajax/getcolor.php') - ->actionInclude('files_w2g/ajax/getcolor.php'); - -$this->create('files_w2g_ajax_core', 'ajax/workin2gether.php') - ->actionInclude('files_w2g/ajax/workin2gether.php'); - -$this->create('files_w2g_ajax_update', 'ajax/update.php') - ->actionInclude('files_w2g/ajax/update.php'); - -$this->create('files_w2g_ajax_admin_db', 'ajax/admin_db.php') - ->actionInclude('files_w2g/ajax/admin_db.php'); - -$this->create('files_w2g_admin', 'admin.php') - ->actionInclude('files_w2g/admin.php'); diff --git a/Old Releases/Owncloud 8.1/appinfo/version b/Old Releases/Owncloud 8.1/appinfo/version deleted file mode 100644 index 639e31c..0000000 --- a/Old Releases/Owncloud 8.1/appinfo/version +++ /dev/null @@ -1 +0,0 @@ -0.8.1.0 diff --git a/Old Releases/Owncloud 8.1/css/styles.css b/Old Releases/Owncloud 8.1/css/styles.css deleted file mode 100644 index af0a9fe..0000000 --- a/Old Releases/Owncloud 8.1/css/styles.css +++ /dev/null @@ -1,24 +0,0 @@ - -a.action.locked{ display:none !important; } - -a.action-getstate_file.locked, a.action-getstate_dir.locked{ display:inline !important; } - -a.statelock a.action[data-action!=getstate_dir&&data-action!=getstate_file]{ -pointer-events:none; -} -a.namelock -{ -line-height: 50px; -padding: 0; -} -a.namelock .nametext{position:absolute !important;left:105px !important;} - -td.statelock:focus{pointer-events:none;} - -a.action-getstate_file, a.action-getstate_dir{ cursor:pointer !important;} - -a.name.statelock a.action{ color:#eee; opacity:1 !important; } - -a.name.statelock a.action:hover, a.name.statelock span.extension{ color:#fff; } - -.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled{ opacity:1.0;} \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/img/app.svg b/Old Releases/Owncloud 8.1/img/app.svg deleted file mode 100644 index 6cafe17..0000000 --- a/Old Releases/Owncloud 8.1/img/app.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/Old Releases/Owncloud 8.1/img/lock.png b/Old Releases/Owncloud 8.1/img/lock.png deleted file mode 100644 index 9b8c2ec..0000000 Binary files a/Old Releases/Owncloud 8.1/img/lock.png and /dev/null differ diff --git a/Old Releases/Owncloud 8.1/js/admin.js b/Old Releases/Owncloud 8.1/js/admin.js deleted file mode 100644 index 4047a4e..0000000 --- a/Old Releases/Owncloud 8.1/js/admin.js +++ /dev/null @@ -1,79 +0,0 @@ -$(document).ready(function(){ - - $('#submitColor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'color', value: $('#multicolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('#submitfontcolor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'fontcolor', value: $('#multifontcolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('input:radio[name="suffix"]').change(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'suffix', value: $("input:radio[name='suffix']:checked").attr('id')}, - async: false, - success: function(data){$("#suffixupdated").fadeTo(0,1.0).css("display","inline-block").fadeTo(3000,0.0);}, - }); - }); - - - $('#clearall').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearall'}, - async: false, - success: function(data){ - if(data=="clear") $('#lockfield').html(t("files_w2g","There are no locked files at the moment"));}, - }); - }); - - $('#clearthis').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearthis',lock: $('#select_lock option:selected').val()}, - async: false, - success: function(data){ - if(data=="clear") $('#select_lock option:selected').remove(); - - if($.trim($('#select_lock').html())=="") - $('#lockfield').html(t("files_w2g","There are no locked files at the moment")); - - }, - }); - }); - - $('#w2g_lpml').click(function(){ - $('#w2g_lock_permission_extended').click(); - }); - - $('#w2g_lock_permission_extended').click(function(){ - extended_checked = $('#w2g_lock_permission_extended').attr('checked')? 1 : 0; - - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'extended',value: extended_checked }, - async: false, - success: function(){}, - }); - }); - -}); diff --git a/Old Releases/Owncloud 8.1/js/arrow.gif b/Old Releases/Owncloud 8.1/js/arrow.gif deleted file mode 100644 index 246478a..0000000 Binary files a/Old Releases/Owncloud 8.1/js/arrow.gif and /dev/null differ diff --git a/Old Releases/Owncloud 8.1/js/cross.gif b/Old Releases/Owncloud 8.1/js/cross.gif deleted file mode 100644 index 0ee9c7a..0000000 Binary files a/Old Releases/Owncloud 8.1/js/cross.gif and /dev/null differ diff --git a/Old Releases/Owncloud 8.1/js/hs.png b/Old Releases/Owncloud 8.1/js/hs.png deleted file mode 100644 index 3d94486..0000000 Binary files a/Old Releases/Owncloud 8.1/js/hs.png and /dev/null differ diff --git a/Old Releases/Owncloud 8.1/js/hv.png b/Old Releases/Owncloud 8.1/js/hv.png deleted file mode 100644 index 1c5e01f..0000000 Binary files a/Old Releases/Owncloud 8.1/js/hv.png and /dev/null differ diff --git a/Old Releases/Owncloud 8.1/js/jscolor.js b/Old Releases/Owncloud 8.1/js/jscolor.js deleted file mode 100644 index 6bb0c1f..0000000 --- a/Old Releases/Owncloud 8.1/js/jscolor.js +++ /dev/null @@ -1,997 +0,0 @@ -/** - * jscolor, JavaScript Color Picker - * - * @version 1.4.2 - * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html - * @author Jan Odvarko, http://odvarko.cz - * @created 2008-06-15 - * @updated 2013-11-25 - * @link http://jscolor.com - */ - - -var jscolor = { - - - dir : '', // location of jscolor directory (leave empty to autodetect) - bindClass : 'color', // class name - binding : true, // automatic binding via - preloading : true, // use image preloading? - - - install : function() { - jscolor.addEvent(window, 'load', jscolor.init); - }, - - - init : function() { - if(jscolor.binding) { - jscolor.bind(); - } - if(jscolor.preloading) { - jscolor.preload(); - } - }, - - - getDir : function() { - if(!jscolor.dir) { - var detected = jscolor.detectDir(); - jscolor.dir = detected!==false ? detected : 'jscolor/'; - } - return jscolor.dir; - }, - - - detectDir : function() { - var base = location.href; - - var e = document.getElementsByTagName('base'); - for(var i=0; i vs[a] ? - (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : - tp[a], - -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? - (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : - (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) - ]; - } - drawPicker(pp[a], pp[b]); - } - }; - - - this.importColor = function() { - if(!valueElement) { - this.exportColor(); - } else { - if(!this.adjust) { - if(!this.fromString(valueElement.value, leaveValue)) { - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - } - } else if(!this.required && /^\s*$/.test(valueElement.value)) { - valueElement.value = ''; - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - - } else if(this.fromString(valueElement.value)) { - // OK - } else { - this.exportColor(); - } - } - }; - - - this.exportColor = function(flags) { - if(!(flags & leaveValue) && valueElement) { - var value = this.toString(); - if(this.caps) { value = value.toUpperCase(); } - if(this.hash) { value = '#'+value; } - valueElement.value = value; - } - if(!(flags & leaveStyle) && styleElement) { - styleElement.style.backgroundImage = "none"; - styleElement.style.backgroundColor = - '#'+this.toString(); - styleElement.style.color = - 0.213 * this.rgb[0] + - 0.715 * this.rgb[1] + - 0.072 * this.rgb[2] - < 0.5 ? '#FFF' : '#000'; - } - if(!(flags & leavePad) && isPickerOwner()) { - redrawPad(); - } - if(!(flags & leaveSld) && isPickerOwner()) { - redrawSld(); - } - }; - - - this.fromHSV = function(h, s, v, flags) { // null = don't change - if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); } - if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); } - if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); } - - this.rgb = HSV_RGB( - h===null ? this.hsv[0] : (this.hsv[0]=h), - s===null ? this.hsv[1] : (this.hsv[1]=s), - v===null ? this.hsv[2] : (this.hsv[2]=v) - ); - - this.exportColor(flags); - }; - - - this.fromRGB = function(r, g, b, flags) { // null = don't change - if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); } - if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); } - if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); } - - var hsv = RGB_HSV( - r===null ? this.rgb[0] : r, - g===null ? this.rgb[1] : g, - b===null ? this.rgb[2] : b - ); - if(hsv[0] !== null) { - this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0])); - } - if(hsv[2] !== 0) { - this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1])); - } - this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2])); - - // update RGB according to final HSV, as some values might be trimmed - var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); - this.rgb[0] = rgb[0]; - this.rgb[1] = rgb[1]; - this.rgb[2] = rgb[2]; - - this.exportColor(flags); - }; - - - this.fromString = function(hex, flags) { - var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i); - if(!m) { - return false; - } else { - if(m[1].length === 6) { // 6-char notation - this.fromRGB( - parseInt(m[1].substr(0,2),16) / 255, - parseInt(m[1].substr(2,2),16) / 255, - parseInt(m[1].substr(4,2),16) / 255, - flags - ); - } else { // 3-char notation - this.fromRGB( - parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255, - parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255, - parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255, - flags - ); - } - return true; - } - }; - - - this.toString = function() { - return ( - (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1) - ); - }; - - - function RGB_HSV(r, g, b) { - var n = Math.min(Math.min(r,g),b); - var v = Math.max(Math.max(r,g),b); - var m = v - n; - if(m === 0) { return [ null, 0, v ]; } - var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); - return [ h===6?0:h, m/v, v ]; - } - - - function HSV_RGB(h, s, v) { - if(h === null) { return [ v, v, v ]; } - var i = Math.floor(h); - var f = i%2 ? h-i : 1-(h-i); - var m = v * (1 - s); - var n = v * (1 - s*f); - switch(i) { - case 6: - case 0: return [v,n,m]; - case 1: return [n,v,m]; - case 2: return [m,v,n]; - case 3: return [m,n,v]; - case 4: return [n,m,v]; - case 5: return [v,m,n]; - } - } - - - function removePicker() { - delete jscolor.picker.owner; - document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB); - } - - - function drawPicker(x, y) { - if(!jscolor.picker) { - jscolor.picker = { - box : document.createElement('div'), - boxB : document.createElement('div'), - pad : document.createElement('div'), - padB : document.createElement('div'), - padM : document.createElement('div'), - sld : document.createElement('div'), - sldB : document.createElement('div'), - sldM : document.createElement('div'), - btn : document.createElement('div'), - btnS : document.createElement('span'), - btnT : document.createTextNode(THIS.pickerCloseText) - }; - for(var i=0,segSize=4; i0) { - - //Initiate the FileAction for file - OCA.Files.fileActions.register( - 'file', - 'getstate_file', - OC.PERMISSION_UPDATE, - function(){ return OC.imagePath('files_w2g','lock.png') }, - function(filename,context) { getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false") }, t('files_w2g',text) - ); - - //Initiate the FileAction for dir - OCA.Files.fileActions.register( - 'dir', - 'getstate_dir', - OC.PERMISSION_UPDATE, - function(){ return OC.imagePath('files_w2g','lock.png') }, - function(filename,context) { getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false") }, t('files_w2g',text) - ); - - //Walk through all files in the active Filelist - $('#content').delegate('#fileList', 'fileActionsReady',function(ev){ - - var $fileList = ev.fileList.$fileList; - - $fileList.find('tr').each(function(){ - $filename = $(this).attr('data-file'); - $owner = $(this).attr('data-share-owner'); - $id = $(this).attr('data-id'); - getState($id,$filename,$owner,"true"); - }); - }); - } - - //Get the Background-color from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'color'}, - async: false, - success: function(data){if(data!=""){color = data;}}, - }); - - //Get the Fontcolor from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'fontcolor'}, - async: false, - success: function(data){if(data!=""){fontcolor = data;}}, - }); - - //Add dynamic CSS code - var cssrules = $("").appendTo("head"); - cssrules.append(".statelock{ background-color:#"+color+";color:#"+fontcolor+" !important;}"+ - ".statelock span.modified{color:#"+fontcolor+" !important;}"+ - "a.action-getstate_file.locked,a.action-getstate_dir.locked{color:#"+fontcolor+" !important;}"+ - "a.action-getstate_file.locked:hover,a.action-getstate_dir.locked:hover{color:#fff !important;}"+ - "a.namelock,a.namelock span.extension {color:#"+fontcolor+";}"); -}); - -//Switch the Lockstate -function toggle_control(filename) -{ - //Walk through the Filelists - $('#fileList tr').each(function() { - var $tr = $(this); - var $_tr = $tr.html().replace(/^\s+|\s+$/g, '').replace('','').split('').join(''); - - if($_tr.indexOf(filename)!=-1) - { - if($_tr.indexOf(lockedtext)==-1 && $_tr.indexOf(lockstate)==-1) - { //unlock - $tr.find('a.action[data-action!='+text+']').removeClass('locked'); - $tr.find('a.namelock').addClass('name').removeClass('namelock'); - $tr.find('td.filesize').removeClass('statelock'); - $tr.find('td.date').removeClass('statelock'); - $tr.find('td').removeClass('statelock'); - $tr.find('a.statelock').addClass('name'); - } - else if($_tr.indexOf(lockedtext)!=-1||$_tr.indexOf(lockstate)!=-1) - { //lock - $tr.find('a.action[data-action!='+text+'][data-action!=favorite]').addClass('locked'); - //$tr.find('a.action').not("[data-action=='+text+']").addClass('locked'); - - $tr.find('a.name').addClass('namelock').removeClass('name'); - $tr.find('td.filesize').addClass('statelock'); - $tr.find('td.date').addClass('statelock'); - $tr.find('td').addClass('statelock'); - } - } - }); -} - -//Get the current state -function getState( _id, _filename, _owner, _safe) -{ - oc_dir = $('#dir').val(); - _filename = _filename.replace(/ /g, "%20"); - oc_path = oc_dir +'/'+_filename; - - $.ajax({ - url: OC.filePath('files_w2g','ajax','workin2gether.php'), - type: "post", - data: { path: oc_path, safe: _safe, owner: _owner, id: _id}, - success: function(data){postmode(_filename,data)}, - }); - -} - -//Push the status -function postmode(filename,data) -{ - filename = filename.replace(/%20/g,' '); - - var html = ' '+''+data+''; - - //Push the status text to the file - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_file').html(html); - - //Push the status text to the dir - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_dir').html(html); - - //Push the status text to the locked file - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.namelock').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_file').html(html); - - //Push the status text to the locked dir - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.namelock').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_dir').html(html); - - if(data!=t('files_w2g','No permission')) - toggle_control(filename); -} diff --git a/Old Releases/Owncloud 8.1/l10n/de.js b/Old Releases/Owncloud 8.1/l10n/de.js deleted file mode 100644 index cfe2dd7..0000000 --- a/Old Releases/Owncloud 8.1/l10n/de.js +++ /dev/null @@ -1,32 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Datei nicht gesperrt", - "File is locked" : "Datei ist gesperrt", - "Status: locked" : "Status: gesperrt", - "Status: not locked" : "Status: nicht gesperrt", - "filelock" : "Dateisperre", - "Manage multiaccess" : "Mehrfachzugriff konfigurieren", - "Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", - "Background color" : "Hintergrundfarbe", - "Font color" : "Vordergrundfarbe", - "Save" : "Speichern", - "There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", - "Locked files" : "Gesperrte Dateien", - "Unlock this file" : "Diese Datei entsperren", - "Unlock all files" : "Alle Dateien entsperren", - "by" : "von", - "'Locked by' suffix" : "'Gesperrt von'-Suffix", - "username" : "Benutzername", - "Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", - "display name" : "Anzeigename", - "Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", - "Suffix change has been saved" : "Der Suffix wurde aktualisiert", - "Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", - "Permission management" : "Berechtigungsverwaltung", - "Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", - "This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", - "The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", - "No permission" : "Keine Berechtigung" -}, -"nplurals=2; plural=(n != 1);"); diff --git a/Old Releases/Owncloud 8.1/l10n/de.json b/Old Releases/Owncloud 8.1/l10n/de.json deleted file mode 100644 index 7fc6991..0000000 --- a/Old Releases/Owncloud 8.1/l10n/de.json +++ /dev/null @@ -1,30 +0,0 @@ -{ "translations": { -"File not locked" : "Datei nicht gesperrt", -"File is locked" : "Datei ist gesperrt", -"Status: locked" : "Status: gesperrt", -"Status: not locked" : "Status: nicht gesperrt", -"filelock" : "Dateisperre", -"Manage multiaccess" : "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" : "Hintergrundfarbe", -"Font color" : "Vordergrundfarbe", -"Save" : "Speichern", -"There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", -"Locked files" : "Gesperrte Dateien", -"Unlock this file" : "Diese Datei entsperren", -"Unlock all files" : "Alle Dateien entsperren", -"by" : "von", -"'Locked by' suffix" : "'Gesperrt von'-Suffix", -"username" : "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" : "Anzeigename", -"Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" : "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" : "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" : "Keine Berechtigung" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/de.php b/Old Releases/Owncloud 8.1/l10n/de.php deleted file mode 100644 index ade3b44..0000000 --- a/Old Releases/Owncloud 8.1/l10n/de.php +++ /dev/null @@ -1,30 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -"'Locked by' suffix" => "'Gesperrt von'-Suffix", -"username" => "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" => "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" => "Anzeigename", -"Shows the full displayed name, i.e. John Doe" => "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" => "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" => "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" => "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" => "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" => "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" => "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" => "Keine Berechtigung" -); diff --git a/Old Releases/Owncloud 8.1/l10n/de_DE.js b/Old Releases/Owncloud 8.1/l10n/de_DE.js deleted file mode 100644 index cfe2dd7..0000000 --- a/Old Releases/Owncloud 8.1/l10n/de_DE.js +++ /dev/null @@ -1,32 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Datei nicht gesperrt", - "File is locked" : "Datei ist gesperrt", - "Status: locked" : "Status: gesperrt", - "Status: not locked" : "Status: nicht gesperrt", - "filelock" : "Dateisperre", - "Manage multiaccess" : "Mehrfachzugriff konfigurieren", - "Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", - "Background color" : "Hintergrundfarbe", - "Font color" : "Vordergrundfarbe", - "Save" : "Speichern", - "There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", - "Locked files" : "Gesperrte Dateien", - "Unlock this file" : "Diese Datei entsperren", - "Unlock all files" : "Alle Dateien entsperren", - "by" : "von", - "'Locked by' suffix" : "'Gesperrt von'-Suffix", - "username" : "Benutzername", - "Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", - "display name" : "Anzeigename", - "Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", - "Suffix change has been saved" : "Der Suffix wurde aktualisiert", - "Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", - "Permission management" : "Berechtigungsverwaltung", - "Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", - "This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", - "The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", - "No permission" : "Keine Berechtigung" -}, -"nplurals=2; plural=(n != 1);"); diff --git a/Old Releases/Owncloud 8.1/l10n/de_DE.json b/Old Releases/Owncloud 8.1/l10n/de_DE.json deleted file mode 100644 index 7fc6991..0000000 --- a/Old Releases/Owncloud 8.1/l10n/de_DE.json +++ /dev/null @@ -1,30 +0,0 @@ -{ "translations": { -"File not locked" : "Datei nicht gesperrt", -"File is locked" : "Datei ist gesperrt", -"Status: locked" : "Status: gesperrt", -"Status: not locked" : "Status: nicht gesperrt", -"filelock" : "Dateisperre", -"Manage multiaccess" : "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" : "Hintergrundfarbe", -"Font color" : "Vordergrundfarbe", -"Save" : "Speichern", -"There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", -"Locked files" : "Gesperrte Dateien", -"Unlock this file" : "Diese Datei entsperren", -"Unlock all files" : "Alle Dateien entsperren", -"by" : "von", -"'Locked by' suffix" : "'Gesperrt von'-Suffix", -"username" : "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" : "Anzeigename", -"Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" : "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" : "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" : "Keine Berechtigung" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/de_DE.php b/Old Releases/Owncloud 8.1/l10n/de_DE.php deleted file mode 100644 index ade3b44..0000000 --- a/Old Releases/Owncloud 8.1/l10n/de_DE.php +++ /dev/null @@ -1,30 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -"'Locked by' suffix" => "'Gesperrt von'-Suffix", -"username" => "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" => "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" => "Anzeigename", -"Shows the full displayed name, i.e. John Doe" => "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" => "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" => "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" => "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" => "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" => "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" => "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" => "Keine Berechtigung" -); diff --git a/Old Releases/Owncloud 8.1/l10n/en@pirate.js b/Old Releases/Owncloud 8.1/l10n/en@pirate.js deleted file mode 100644 index 1c3255b..0000000 --- a/Old Releases/Owncloud 8.1/l10n/en@pirate.js +++ /dev/null @@ -1,10 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/en@pirate.json b/Old Releases/Owncloud 8.1/l10n/en@pirate.json deleted file mode 100644 index c2e23cf..0000000 --- a/Old Releases/Owncloud 8.1/l10n/en@pirate.json +++ /dev/null @@ -1,8 +0,0 @@ -{ "translations": { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/en@pirate.php b/Old Releases/Owncloud 8.1/l10n/en@pirate.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 8.1/l10n/en@pirate.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 8.1/l10n/en_GB.js b/Old Releases/Owncloud 8.1/l10n/en_GB.js deleted file mode 100644 index 1c3255b..0000000 --- a/Old Releases/Owncloud 8.1/l10n/en_GB.js +++ /dev/null @@ -1,10 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/en_GB.json b/Old Releases/Owncloud 8.1/l10n/en_GB.json deleted file mode 100644 index c2e23cf..0000000 --- a/Old Releases/Owncloud 8.1/l10n/en_GB.json +++ /dev/null @@ -1,8 +0,0 @@ -{ "translations": { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/en_GB.php b/Old Releases/Owncloud 8.1/l10n/en_GB.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 8.1/l10n/en_GB.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 8.1/l10n/fr.js b/Old Releases/Owncloud 8.1/l10n/fr.js deleted file mode 100644 index 3a94645..0000000 --- a/Old Releases/Owncloud 8.1/l10n/fr.js +++ /dev/null @@ -1,28 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par", - "'Locked by' suffix" : "'verrouillé par'-suffixe", - "username" : "nom d'utilisateur", - "Shows the real username i.e. admin, or LDAP UUID" : "Affiche le vrai nom d'utilisateur, par exemple admin ou un UUID", - "display name" : "nom d'affichage", - "Shows the full displayed name, i.e. John Doe" : "Affiche le nom d'affichage, par exemple Jean Dupont", - "Suffix change has been saved" : "le changement de suffixe a été enregistré", - "Old file locks won't be affected by this" : "les anciens fichiers ne seront pas affectés par cette" - -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/fr.json b/Old Releases/Owncloud 8.1/l10n/fr.json deleted file mode 100644 index 0822878..0000000 --- a/Old Releases/Owncloud 8.1/l10n/fr.json +++ /dev/null @@ -1,25 +0,0 @@ -{ "translations": { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par", - "'Locked by' suffix" : "'verrouillé par'-suffixe", - "username" : "nom d'utilisateur", - "Shows the real username i.e. admin, or LDAP UUID" : "Affiche le vrai nom d'utilisateur, par exemple admin ou un UUID", - "display name" : "nom d'affichage", - "Shows the full displayed name, i.e. John Doe" : "Affiche le nom d'affichage, par exemple Jean Dupont", - "Suffix change has been saved" : "le changement de suffixe a été enregistré", - "Old file locks won't be affected by this" : "les anciens fichiers ne seront pas affectés par cette" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/fr.php b/Old Releases/Owncloud 8.1/l10n/fr.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 8.1/l10n/fr.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/fr_FR.js b/Old Releases/Owncloud 8.1/l10n/fr_FR.js deleted file mode 100644 index 52118de..0000000 --- a/Old Releases/Owncloud 8.1/l10n/fr_FR.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/fr_FR.json b/Old Releases/Owncloud 8.1/l10n/fr_FR.json deleted file mode 100644 index 5a7b206..0000000 --- a/Old Releases/Owncloud 8.1/l10n/fr_FR.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/fr_FR.php b/Old Releases/Owncloud 8.1/l10n/fr_FR.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 8.1/l10n/fr_FR.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/ja.js b/Old Releases/Owncloud 8.1/l10n/ja.js deleted file mode 100644 index cc99396..0000000 --- a/Old Releases/Owncloud 8.1/l10n/ja.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/ja.json b/Old Releases/Owncloud 8.1/l10n/ja.json deleted file mode 100644 index a0fb34e..0000000 --- a/Old Releases/Owncloud 8.1/l10n/ja.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/ja.php b/Old Releases/Owncloud 8.1/l10n/ja.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 8.1/l10n/ja.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/ja_JP.js b/Old Releases/Owncloud 8.1/l10n/ja_JP.js deleted file mode 100644 index cc99396..0000000 --- a/Old Releases/Owncloud 8.1/l10n/ja_JP.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/l10n/ja_JP.json b/Old Releases/Owncloud 8.1/l10n/ja_JP.json deleted file mode 100644 index a0fb34e..0000000 --- a/Old Releases/Owncloud 8.1/l10n/ja_JP.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.1/l10n/ja_JP.php b/Old Releases/Owncloud 8.1/l10n/ja_JP.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 8.1/l10n/ja_JP.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.1/templates/admin.php b/Old Releases/Owncloud 8.1/templates/admin.php deleted file mode 100644 index f604c6e..0000000 --- a/Old Releases/Owncloud 8.1/templates/admin.php +++ /dev/null @@ -1,98 +0,0 @@ -execute()->fetchAll(); -if($exist!=null) - $result = \OCP\DB::prepare("SELECT * FROM *PREFIX*".app::table)->execute()->fetchAll(); - -//---------------------------------------------------------------------------------------------------------------------------- - -\OCP\Util::addscript(app::name, 'admin'); -\OCP\Util::addscript(app::name, 'jscolor'); - -?> -
-
-

t('Manage multiaccess')) ?>

- - t("Here you can set the colors for the locked files.")); - echo $naming; - echo ' -

- '.$l->t("Background color").':
- # -  

- - '.$l->t("Font color").':
- # -  

- '; - - if(count($result)>0) - { - echo '
'.$l->t("Locked files").':
-
-
- '; - } - else - echo $l->t("There are no locked files at the moment"); - - //Permission section - echo ' -
'.$l->t("Permission management").':
-
-
'.$l->t("This feature allows unlocking only by the owner of the lock").'. '.$l->t("The upcoming release will add group based permissions").'. - '; - - - echo '
'; - //Suffix section - echo '
'.$l->t("'Locked by' suffix").':
-

('.$l->t("Old file locks won't be affected by this").')


-
-


'.$l->t("Shows the real username i.e. admin, or LDAP UUID").'

-


'.$l->t("Shows the full displayed name, i.e. John Doe").'

-
- '; - - echo '
-

- '.$l->t("Suffix change has been saved").' -

-
'; - - ?> -
- -execute(array($configtype))->fetchAll(); - - if (count($type) >= 1) - $configkey = $type[0]['configvalue']; -} - -?> diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/admin.php b/Old Releases/Owncloud 8.2.2/files_w2g/admin.php deleted file mode 100644 index 088f885..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/admin.php +++ /dev/null @@ -1,9 +0,0 @@ -fetchPage(); - diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/admin_db.php b/Old Releases/Owncloud 8.2.2/files_w2g/ajax/admin_db.php deleted file mode 100644 index 0aa7a1d..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/admin_db.php +++ /dev/null @@ -1,21 +0,0 @@ -execute(); - echo "clear"; - break; - - case 'clearthis': - \OCP\DB::prepare("DELETE FROM *PREFIX*".app::table." WHERE name=?")->execute(array($_POST['lock'])); - echo "clear"; - break; -} - -?> diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/getcolor.php b/Old Releases/Owncloud 8.2.2/files_w2g/ajax/getcolor.php deleted file mode 100644 index 1061442..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/getcolor.php +++ /dev/null @@ -1,11 +0,0 @@ -execute(array($_POST['type']))->fetchAll(); - -if(count($result)>=1) echo $result[0]['configvalue']; - -else echo ""; diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/update.php b/Old Releases/Owncloud 8.2.2/files_w2g/ajax/update.php deleted file mode 100644 index 8e125a5..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/update.php +++ /dev/null @@ -1,35 +0,0 @@ -execute(array($mode))->fetchAll(); - -if(count($result)<1)//Value already set? -{ - $query = \OCP\DB::prepare("INSERT INTO *PREFIX*appconfig(appid,configkey,configvalue) value('files_w2g',?,?)"); - $result = $query->execute(array($mode,$value)); - echo $l->t($mode)." ".$l->t("has been set!"); -} -else -{ - $query = \OCP\DB::prepare("UPDATE *PREFIX*appconfig set configvalue=? WHERE appid='files_w2g' and configkey=?"); - $result = $query->execute(array($value,$mode)); - echo $l->t("Updated successfully!"); - - -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/workin2gether.php b/Old Releases/Owncloud 8.2.2/files_w2g/ajax/workin2gether.php deleted file mode 100644 index 1138503..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/ajax/workin2gether.php +++ /dev/null @@ -1,151 +0,0 @@ -execute(array($id))->fetchAll(); - - $original_path = $result[0]['path']; - $storage_id = str_replace("home::", "", $result[0]['id']) . '/'; - - $lockpath = $storage_id.$original_path; -} -else $lockpath = \OCP\USER::getUser()."/files".cleanPath($path); - -//Lock DB entry -$lockfile = lockname($lockpath); -$db_lock_state = \OCP\DB::prepare("SELECT * FROM *PREFIX*" . app::table . " WHERE name = ?")->execute(array($lockfile))->fetchAll(); - -//If lock exist, unlock it, but check the safemode -if ($db_lock_state!=null) { - if($safe=="false") { - $lockedby_name = $db_lock_state[0]['locked_by']; - ShowUserName($lockedby_name); - - if( extended_precheck( $extended, $lockedby_name ) != 0 ){ - echo $l->t("No permission"); - return; - } - - \OCP\DB::prepare("DELETE FROM *PREFIX*" . app::table . " WHERE name=?")->execute(array($lockfile)); - echo $l->t("File not locked"); - } - else{ - $lockedby_name = $db_lock_state[0]['locked_by']; - ShowDisplayName($lockedby_name); - echo $l->t("Status: locked")." ".$l->t("by")." ".$lockedby_name; - } -} -//If not locked, lock it, but check the safemode -else { - if($safe=="false") { - $lockedby_name = \OCP\User::getUser(); - if($naming=="rule_displayname") { - $lockedby_name = \OCP\User::getDisplayName(); - $lockedby_name .= "|".\OCP\User::getUser(); - } - - \OCP\DB::prepare("INSERT INTO *PREFIX*".app::table."(name,locked_by) VALUES(?,?)")->execute(array($lockfile,$lockedby_name)); - - //For Compatibiliy reasons, support old Lockedby type <0.8 - - ShowDisplayName($lockedby_name); //Korrektur bei DisplayName - echo $l->t("File is locked")." ".$l->t("by")." ".$lockedby_name; - } - else echo $l->t("Status: not locked"); -} - -//Functions - -function lockname($path){ - //Replace all '/' with $ for a filename for the lock file - $ppath = str_replace("/","$",cleanPath($path))."$"; - $ppath = str_replace(":","#",$ppath); - - //Remove double dollar char when exist - if ($ppath[0] == "$" and $ppath[1] == "$") $ppath = substr($ppath,1); - - return preg_replace('/\\\/','$',$ppath); -} - -function cleanPath($path){ - return preg_replace('{(/)\1+}', "/", urldecode(rtrim($path, "/"))); -} - -function db_fetcher( &$configkey, $configtype ){ - $type = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey=? and appid='files_w2g' LIMIT 1")->execute(array($configtype))->fetchAll(); - - if (count($type) >= 1) - $configkey = $type[0]['configvalue']; -} - -function extended_precheck( $extended, $owner ){ - //Return 0 = allowed | Return 1 = Forbidden - if ( $extended == "0" ) - return 0; - elseif ( $extended == "1" ) - { - if( $owner == \OCP\User::getUser() ) - return 0; - } - - return 1; -} - -function ShowDisplayName(&$lockedby_name){ - if(strstr($lockedby_name,"|")){ - $temp_ln = explode("|",$lockedby_name); - $lockedby_name = $temp_ln[0]; - } -} - -function ShowUserName(&$lockedby_name){ - if(strstr($lockedby_name,"|")){ - $temp_ln = explode("|",$lockedby_name); - $lockedby_name = $temp_ln[1]; - } -} - diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/app.php b/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/app.php deleted file mode 100644 index 53b53d6..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/app.php +++ /dev/null @@ -1,41 +0,0 @@ -execute()->fetchAll(); - - if($db_exist==null){ - @$db_exist = \OCP\DB::prepare("CREATE table *PREFIX*" . app::table . "(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255)) " . app::charset); - @$db_exist->execute(); - } - - app::launch(); -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/info.xml b/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/info.xml deleted file mode 100644 index 0001b99..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/info.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - files_w2g - Workin2gether - - Pseudo multiaccess-management feature for Owncloud. - You can lock files and disable the fileactions, leaving only the fileaction of unlocking a file. - Please leave your feedback and rate this app, if you like it! - - - AGPL - Patrick Hoffmann - 8.00 - - - - 164016 - - mysql - - diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/routes.php b/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/routes.php deleted file mode 100644 index 9512e8f..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/routes.php +++ /dev/null @@ -1,19 +0,0 @@ -create('files_w2g_ajax_getcolor', 'ajax/getcolor.php') - ->actionInclude('files_w2g/ajax/getcolor.php'); - -$this->create('files_w2g_ajax_core', 'ajax/workin2gether.php') - ->actionInclude('files_w2g/ajax/workin2gether.php'); - -$this->create('files_w2g_ajax_update', 'ajax/update.php') - ->actionInclude('files_w2g/ajax/update.php'); - -$this->create('files_w2g_ajax_admin_db', 'ajax/admin_db.php') - ->actionInclude('files_w2g/ajax/admin_db.php'); - -$this->create('files_w2g_admin', 'admin.php') - ->actionInclude('files_w2g/admin.php'); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/version b/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/version deleted file mode 100644 index 5ef1b52..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/appinfo/version +++ /dev/null @@ -1 +0,0 @@ -0.8.2.3 diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/css/styles.css b/Old Releases/Owncloud 8.2.2/files_w2g/css/styles.css deleted file mode 100644 index d04782b..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/css/styles.css +++ /dev/null @@ -1,24 +0,0 @@ - -a.action.locked{ display:none !important; } - -a.action-getstate_w2g.locked{ display:inline !important; } - -a.statelock a.action[data-action!=getstate_dir&&data-action!=getstate_file]{ -pointer-events:none; -} -a.namelock -{ -line-height: 50px; -padding: 0; -} -a.namelock .nametext{position:absolute !important;left:105px !important;} - -td.statelock:focus{pointer-events:none;} - -a.action-getstate_w2g{ cursor:pointer !important;} - -a.name.statelock a.action{ color:#eee; opacity:1 !important; } - -a.name.statelock a.action:hover, a.name.statelock span.extension{ color:#fff; } - -.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled{ opacity:1.0;} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/img/app.svg b/Old Releases/Owncloud 8.2.2/files_w2g/img/app.svg deleted file mode 100644 index 6cafe17..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/img/app.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/img/lock.png b/Old Releases/Owncloud 8.2.2/files_w2g/img/lock.png deleted file mode 100644 index 9b8c2ec..0000000 Binary files a/Old Releases/Owncloud 8.2.2/files_w2g/img/lock.png and /dev/null differ diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/js/admin.js b/Old Releases/Owncloud 8.2.2/files_w2g/js/admin.js deleted file mode 100644 index 4047a4e..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/js/admin.js +++ /dev/null @@ -1,79 +0,0 @@ -$(document).ready(function(){ - - $('#submitColor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'color', value: $('#multicolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('#submitfontcolor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'fontcolor', value: $('#multifontcolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('input:radio[name="suffix"]').change(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'suffix', value: $("input:radio[name='suffix']:checked").attr('id')}, - async: false, - success: function(data){$("#suffixupdated").fadeTo(0,1.0).css("display","inline-block").fadeTo(3000,0.0);}, - }); - }); - - - $('#clearall').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearall'}, - async: false, - success: function(data){ - if(data=="clear") $('#lockfield').html(t("files_w2g","There are no locked files at the moment"));}, - }); - }); - - $('#clearthis').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearthis',lock: $('#select_lock option:selected').val()}, - async: false, - success: function(data){ - if(data=="clear") $('#select_lock option:selected').remove(); - - if($.trim($('#select_lock').html())=="") - $('#lockfield').html(t("files_w2g","There are no locked files at the moment")); - - }, - }); - }); - - $('#w2g_lpml').click(function(){ - $('#w2g_lock_permission_extended').click(); - }); - - $('#w2g_lock_permission_extended').click(function(){ - extended_checked = $('#w2g_lock_permission_extended').attr('checked')? 1 : 0; - - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { mode: 'extended',value: extended_checked }, - async: false, - success: function(){}, - }); - }); - -}); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/js/arrow.gif b/Old Releases/Owncloud 8.2.2/files_w2g/js/arrow.gif deleted file mode 100644 index 246478a..0000000 Binary files a/Old Releases/Owncloud 8.2.2/files_w2g/js/arrow.gif and /dev/null differ diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/js/cross.gif b/Old Releases/Owncloud 8.2.2/files_w2g/js/cross.gif deleted file mode 100644 index 0ee9c7a..0000000 Binary files a/Old Releases/Owncloud 8.2.2/files_w2g/js/cross.gif and /dev/null differ diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/js/hs.png b/Old Releases/Owncloud 8.2.2/files_w2g/js/hs.png deleted file mode 100644 index 3d94486..0000000 Binary files a/Old Releases/Owncloud 8.2.2/files_w2g/js/hs.png and /dev/null differ diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/js/hv.png b/Old Releases/Owncloud 8.2.2/files_w2g/js/hv.png deleted file mode 100644 index 1c5e01f..0000000 Binary files a/Old Releases/Owncloud 8.2.2/files_w2g/js/hv.png and /dev/null differ diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/js/jscolor.js b/Old Releases/Owncloud 8.2.2/files_w2g/js/jscolor.js deleted file mode 100644 index 6bb0c1f..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/js/jscolor.js +++ /dev/null @@ -1,997 +0,0 @@ -/** - * jscolor, JavaScript Color Picker - * - * @version 1.4.2 - * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html - * @author Jan Odvarko, http://odvarko.cz - * @created 2008-06-15 - * @updated 2013-11-25 - * @link http://jscolor.com - */ - - -var jscolor = { - - - dir : '', // location of jscolor directory (leave empty to autodetect) - bindClass : 'color', // class name - binding : true, // automatic binding via - preloading : true, // use image preloading? - - - install : function() { - jscolor.addEvent(window, 'load', jscolor.init); - }, - - - init : function() { - if(jscolor.binding) { - jscolor.bind(); - } - if(jscolor.preloading) { - jscolor.preload(); - } - }, - - - getDir : function() { - if(!jscolor.dir) { - var detected = jscolor.detectDir(); - jscolor.dir = detected!==false ? detected : 'jscolor/'; - } - return jscolor.dir; - }, - - - detectDir : function() { - var base = location.href; - - var e = document.getElementsByTagName('base'); - for(var i=0; i vs[a] ? - (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : - tp[a], - -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? - (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : - (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) - ]; - } - drawPicker(pp[a], pp[b]); - } - }; - - - this.importColor = function() { - if(!valueElement) { - this.exportColor(); - } else { - if(!this.adjust) { - if(!this.fromString(valueElement.value, leaveValue)) { - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - } - } else if(!this.required && /^\s*$/.test(valueElement.value)) { - valueElement.value = ''; - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - - } else if(this.fromString(valueElement.value)) { - // OK - } else { - this.exportColor(); - } - } - }; - - - this.exportColor = function(flags) { - if(!(flags & leaveValue) && valueElement) { - var value = this.toString(); - if(this.caps) { value = value.toUpperCase(); } - if(this.hash) { value = '#'+value; } - valueElement.value = value; - } - if(!(flags & leaveStyle) && styleElement) { - styleElement.style.backgroundImage = "none"; - styleElement.style.backgroundColor = - '#'+this.toString(); - styleElement.style.color = - 0.213 * this.rgb[0] + - 0.715 * this.rgb[1] + - 0.072 * this.rgb[2] - < 0.5 ? '#FFF' : '#000'; - } - if(!(flags & leavePad) && isPickerOwner()) { - redrawPad(); - } - if(!(flags & leaveSld) && isPickerOwner()) { - redrawSld(); - } - }; - - - this.fromHSV = function(h, s, v, flags) { // null = don't change - if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); } - if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); } - if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); } - - this.rgb = HSV_RGB( - h===null ? this.hsv[0] : (this.hsv[0]=h), - s===null ? this.hsv[1] : (this.hsv[1]=s), - v===null ? this.hsv[2] : (this.hsv[2]=v) - ); - - this.exportColor(flags); - }; - - - this.fromRGB = function(r, g, b, flags) { // null = don't change - if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); } - if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); } - if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); } - - var hsv = RGB_HSV( - r===null ? this.rgb[0] : r, - g===null ? this.rgb[1] : g, - b===null ? this.rgb[2] : b - ); - if(hsv[0] !== null) { - this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0])); - } - if(hsv[2] !== 0) { - this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1])); - } - this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2])); - - // update RGB according to final HSV, as some values might be trimmed - var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); - this.rgb[0] = rgb[0]; - this.rgb[1] = rgb[1]; - this.rgb[2] = rgb[2]; - - this.exportColor(flags); - }; - - - this.fromString = function(hex, flags) { - var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i); - if(!m) { - return false; - } else { - if(m[1].length === 6) { // 6-char notation - this.fromRGB( - parseInt(m[1].substr(0,2),16) / 255, - parseInt(m[1].substr(2,2),16) / 255, - parseInt(m[1].substr(4,2),16) / 255, - flags - ); - } else { // 3-char notation - this.fromRGB( - parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255, - parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255, - parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255, - flags - ); - } - return true; - } - }; - - - this.toString = function() { - return ( - (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1) - ); - }; - - - function RGB_HSV(r, g, b) { - var n = Math.min(Math.min(r,g),b); - var v = Math.max(Math.max(r,g),b); - var m = v - n; - if(m === 0) { return [ null, 0, v ]; } - var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); - return [ h===6?0:h, m/v, v ]; - } - - - function HSV_RGB(h, s, v) { - if(h === null) { return [ v, v, v ]; } - var i = Math.floor(h); - var f = i%2 ? h-i : 1-(h-i); - var m = v * (1 - s); - var n = v * (1 - s*f); - switch(i) { - case 6: - case 0: return [v,n,m]; - case 1: return [n,v,m]; - case 2: return [m,v,n]; - case 3: return [m,n,v]; - case 4: return [n,m,v]; - case 5: return [v,m,n]; - } - } - - - function removePicker() { - delete jscolor.picker.owner; - document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB); - } - - - function drawPicker(x, y) { - if(!jscolor.picker) { - jscolor.picker = { - box : document.createElement('div'), - boxB : document.createElement('div'), - pad : document.createElement('div'), - padB : document.createElement('div'), - padM : document.createElement('div'), - sld : document.createElement('div'), - sldB : document.createElement('div'), - sldM : document.createElement('div'), - btn : document.createElement('div'), - btnS : document.createElement('span'), - btnT : document.createTextNode(THIS.pickerCloseText) - }; - for(var i=0,segSize=4; i0) { - - //Initiate the FileAction for file - OCA.Files.fileActions.registerAction({ - name:'getstate_w2g', - displayName: t('files_w2g',text), - mime: 'all', - permissions: OC.PERMISSION_ALL, - type: OCA.Files.FileActions.TYPE_INLINE, - icon: function(){ return OC.imagePath('files_w2g','lock.png')}, - actionHandler: function(filename,context) - { - getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false"); - } - }); - - //Walk through all files in the active Filelist - $('#content').delegate('#fileList', 'fileActionsReady',function(ev){ - - var $fileList = ev.fileList.$fileList; - - $fileList.find('tr').each(function(){ - $filename = $(this).attr('data-file'); - $owner = $(this).attr('data-share-owner'); - $id = $(this).attr('data-id'); - getState($id,$filename,$owner,"true"); - }); - }); - } - - //Get the Background-color from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'color'}, - async: false, - success: function(data){if(data!=""){color = data;}}, - }); - - //Get the Fontcolor from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'fontcolor'}, - async: false, - success: function(data){if(data!=""){fontcolor = data;}}, - }); - - //Add dynamic CSS code - var cssrules = $("").appendTo("head"); - cssrules.append(".statelock{ background-color:#"+color+";color:#"+fontcolor+" !important;}"+ - ".statelock span.modified{color:#"+fontcolor+" !important;}"+ - "a.w2g_active{color:#"+fontcolor+" !important;display:inline !important;opacity:1.0 !important;}"+ - "a.w2g_active:hover{color:#fff !important;}"+ - "a.namelock,a.namelock span.extension {color:#"+fontcolor+";opacity:1.0!important;padding: 0 !important;}"); -}); - -//Switch the Lockstate -function toggle_control(filename) -{ - //Walk through the Filelists - $('#fileList tr').each(function() { - var $tr = $(this); - var $_tr = $tr.html().replace(/^\s+|\s+$/g, '').replace('','').split('').join(''); - var actionname = 'getstate_w2g'; - if($_tr.indexOf(filename)!=-1) - { - if($_tr.indexOf(lockedtext)==-1 && $_tr.indexOf(lockstate)==-1) - { //unlock - $tr.find('a.action[data-action!='+actionname+']').removeClass('locked'); - $tr.find('a.action[data-action!='+actionname+']').addClass('permanent'); - $tr.find('a.action[data-action='+actionname+']').removeClass('w2g_active'); - $tr.find('a.namelock').addClass('name').removeClass('namelock'); - $tr.find('td.filesize').removeClass('statelock'); - $tr.find('td.date').removeClass('statelock'); - $tr.find('td').removeClass('statelock'); - $tr.find('a.statelock').addClass('name'); - } - else if($_tr.indexOf(lockedtext)!=-1||$_tr.indexOf(lockstate)!=-1) - { //lock - $tr.find('a.permanent[data-action!='+actionname+']').removeClass('permanent'); - $tr.find('a.action[data-action='+actionname+']').addClass('w2g_active'); - $tr.find('a.action[data-action!='+actionname+']:not([class*=favorite])').addClass('locked'); - $tr.find('a.name').addClass('namelock').removeClass('name'); - $tr.find('td.filesize').addClass('statelock'); - $tr.find('td.date').addClass('statelock'); - $tr.find('td').addClass('statelock'); - } - } - }); -} - -//Get the current state -function getState(_id, _filename, _owner, _safe) -{ - oc_dir = $('#dir').val(); - _filename = _filename.replace(/ /g, "%20"); - oc_path = oc_dir +'/'+_filename; - - $.ajax({ - url: OC.filePath('files_w2g','ajax','workin2gether.php'), - type: "post", - data: { path: oc_path, safe: _safe, owner: _owner, id: _id}, - success: function(data){postmode(_filename,data)}, - }); -} - -//Push the status -function postmode(filename,data) -{ - filename = filename.replace(/%20/g,' '); - - var html = ' '+''+data+''; - - //Push the status - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_w2g').html(html); - - //Push the status text to the locked mime - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.namelock').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_w2g').html(html); - - if(data!=t('files_w2g','No permission')) - toggle_control(filename); -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.js deleted file mode 100644 index cfe2dd7..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.js +++ /dev/null @@ -1,32 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Datei nicht gesperrt", - "File is locked" : "Datei ist gesperrt", - "Status: locked" : "Status: gesperrt", - "Status: not locked" : "Status: nicht gesperrt", - "filelock" : "Dateisperre", - "Manage multiaccess" : "Mehrfachzugriff konfigurieren", - "Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", - "Background color" : "Hintergrundfarbe", - "Font color" : "Vordergrundfarbe", - "Save" : "Speichern", - "There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", - "Locked files" : "Gesperrte Dateien", - "Unlock this file" : "Diese Datei entsperren", - "Unlock all files" : "Alle Dateien entsperren", - "by" : "von", - "'Locked by' suffix" : "'Gesperrt von'-Suffix", - "username" : "Benutzername", - "Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", - "display name" : "Anzeigename", - "Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", - "Suffix change has been saved" : "Der Suffix wurde aktualisiert", - "Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", - "Permission management" : "Berechtigungsverwaltung", - "Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", - "This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", - "The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", - "No permission" : "Keine Berechtigung" -}, -"nplurals=2; plural=(n != 1);"); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.json deleted file mode 100644 index 7fc6991..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.json +++ /dev/null @@ -1,30 +0,0 @@ -{ "translations": { -"File not locked" : "Datei nicht gesperrt", -"File is locked" : "Datei ist gesperrt", -"Status: locked" : "Status: gesperrt", -"Status: not locked" : "Status: nicht gesperrt", -"filelock" : "Dateisperre", -"Manage multiaccess" : "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" : "Hintergrundfarbe", -"Font color" : "Vordergrundfarbe", -"Save" : "Speichern", -"There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", -"Locked files" : "Gesperrte Dateien", -"Unlock this file" : "Diese Datei entsperren", -"Unlock all files" : "Alle Dateien entsperren", -"by" : "von", -"'Locked by' suffix" : "'Gesperrt von'-Suffix", -"username" : "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" : "Anzeigename", -"Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" : "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" : "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" : "Keine Berechtigung" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.php deleted file mode 100644 index ade3b44..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de.php +++ /dev/null @@ -1,30 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -"'Locked by' suffix" => "'Gesperrt von'-Suffix", -"username" => "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" => "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" => "Anzeigename", -"Shows the full displayed name, i.e. John Doe" => "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" => "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" => "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" => "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" => "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" => "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" => "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" => "Keine Berechtigung" -); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.js deleted file mode 100644 index cfe2dd7..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.js +++ /dev/null @@ -1,32 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Datei nicht gesperrt", - "File is locked" : "Datei ist gesperrt", - "Status: locked" : "Status: gesperrt", - "Status: not locked" : "Status: nicht gesperrt", - "filelock" : "Dateisperre", - "Manage multiaccess" : "Mehrfachzugriff konfigurieren", - "Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", - "Background color" : "Hintergrundfarbe", - "Font color" : "Vordergrundfarbe", - "Save" : "Speichern", - "There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", - "Locked files" : "Gesperrte Dateien", - "Unlock this file" : "Diese Datei entsperren", - "Unlock all files" : "Alle Dateien entsperren", - "by" : "von", - "'Locked by' suffix" : "'Gesperrt von'-Suffix", - "username" : "Benutzername", - "Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", - "display name" : "Anzeigename", - "Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", - "Suffix change has been saved" : "Der Suffix wurde aktualisiert", - "Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", - "Permission management" : "Berechtigungsverwaltung", - "Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", - "This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", - "The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", - "No permission" : "Keine Berechtigung" -}, -"nplurals=2; plural=(n != 1);"); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.json deleted file mode 100644 index 7fc6991..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.json +++ /dev/null @@ -1,30 +0,0 @@ -{ "translations": { -"File not locked" : "Datei nicht gesperrt", -"File is locked" : "Datei ist gesperrt", -"Status: locked" : "Status: gesperrt", -"Status: not locked" : "Status: nicht gesperrt", -"filelock" : "Dateisperre", -"Manage multiaccess" : "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" : "Hintergrundfarbe", -"Font color" : "Vordergrundfarbe", -"Save" : "Speichern", -"There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", -"Locked files" : "Gesperrte Dateien", -"Unlock this file" : "Diese Datei entsperren", -"Unlock all files" : "Alle Dateien entsperren", -"by" : "von", -"'Locked by' suffix" : "'Gesperrt von'-Suffix", -"username" : "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" : "Anzeigename", -"Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" : "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" : "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" : "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" : "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" : "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" : "Keine Berechtigung" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.php deleted file mode 100644 index ade3b44..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/de_DE.php +++ /dev/null @@ -1,30 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -"'Locked by' suffix" => "'Gesperrt von'-Suffix", -"username" => "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" => "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" => "Anzeigename", -"Shows the full displayed name, i.e. John Doe" => "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" => "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" => "Bereits vorhandene Dateisperren sind davon nicht betroffen", -"Permission management" => "Berechtigungsverwaltung", -"Use the extended permission feature for managing locks" => "Erweiterte Berechtigungsfunktion verwenden", -"This feature allows unlocking only by the owner of the lock" => "Mit dieser Funktion können gesperrte Dateien nur von den Besitzern der Sperre entfernt werden", -"The upcoming release will add group based permissions" => "Das nächste Update beinhaltet gruppenbasierte Berechtigungen", -"No permission" => "Keine Berechtigung" -); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.js deleted file mode 100644 index 1c3255b..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.js +++ /dev/null @@ -1,10 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.json deleted file mode 100644 index c2e23cf..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.json +++ /dev/null @@ -1,8 +0,0 @@ -{ "translations": { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en@pirate.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.js deleted file mode 100644 index 1c3255b..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.js +++ /dev/null @@ -1,10 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.json deleted file mode 100644 index c2e23cf..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.json +++ /dev/null @@ -1,8 +0,0 @@ -{ "translations": { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/en_GB.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.js deleted file mode 100644 index 3a94645..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.js +++ /dev/null @@ -1,28 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par", - "'Locked by' suffix" : "'verrouillé par'-suffixe", - "username" : "nom d'utilisateur", - "Shows the real username i.e. admin, or LDAP UUID" : "Affiche le vrai nom d'utilisateur, par exemple admin ou un UUID", - "display name" : "nom d'affichage", - "Shows the full displayed name, i.e. John Doe" : "Affiche le nom d'affichage, par exemple Jean Dupont", - "Suffix change has been saved" : "le changement de suffixe a été enregistré", - "Old file locks won't be affected by this" : "les anciens fichiers ne seront pas affectés par cette" - -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.json deleted file mode 100644 index 0822878..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.json +++ /dev/null @@ -1,25 +0,0 @@ -{ "translations": { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par", - "'Locked by' suffix" : "'verrouillé par'-suffixe", - "username" : "nom d'utilisateur", - "Shows the real username i.e. admin, or LDAP UUID" : "Affiche le vrai nom d'utilisateur, par exemple admin ou un UUID", - "display name" : "nom d'affichage", - "Shows the full displayed name, i.e. John Doe" : "Affiche le nom d'affichage, par exemple Jean Dupont", - "Suffix change has been saved" : "le changement de suffixe a été enregistré", - "Old file locks won't be affected by this" : "les anciens fichiers ne seront pas affectés par cette" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.js deleted file mode 100644 index 52118de..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.json deleted file mode 100644 index 5a7b206..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/fr_FR.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.js deleted file mode 100644 index cc99396..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.json deleted file mode 100644 index a0fb34e..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.js b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.js deleted file mode 100644 index cc99396..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.json b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.json deleted file mode 100644 index a0fb34e..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.php b/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/l10n/ja_JP.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8.2.2/files_w2g/templates/admin.php b/Old Releases/Owncloud 8.2.2/files_w2g/templates/admin.php deleted file mode 100644 index f604c6e..0000000 --- a/Old Releases/Owncloud 8.2.2/files_w2g/templates/admin.php +++ /dev/null @@ -1,98 +0,0 @@ -execute()->fetchAll(); -if($exist!=null) - $result = \OCP\DB::prepare("SELECT * FROM *PREFIX*".app::table)->execute()->fetchAll(); - -//---------------------------------------------------------------------------------------------------------------------------- - -\OCP\Util::addscript(app::name, 'admin'); -\OCP\Util::addscript(app::name, 'jscolor'); - -?> -
-
-

t('Manage multiaccess')) ?>

- - t("Here you can set the colors for the locked files.")); - echo $naming; - echo ' -

- '.$l->t("Background color").':
- # -  

- - '.$l->t("Font color").':
- # -  

- '; - - if(count($result)>0) - { - echo '
'.$l->t("Locked files").':
-
-
- '; - } - else - echo $l->t("There are no locked files at the moment"); - - //Permission section - echo ' -
'.$l->t("Permission management").':
-
-
'.$l->t("This feature allows unlocking only by the owner of the lock").'. '.$l->t("The upcoming release will add group based permissions").'. - '; - - - echo '
'; - //Suffix section - echo '
'.$l->t("'Locked by' suffix").':
-

('.$l->t("Old file locks won't be affected by this").')


-
-


'.$l->t("Shows the real username i.e. admin, or LDAP UUID").'

-


'.$l->t("Shows the full displayed name, i.e. John Doe").'

-
- '; - - echo '
-

- '.$l->t("Suffix change has been saved").' -

-
'; - - ?> -
- -execute(array($configtype))->fetchAll(); - - if (count($type) >= 1) - $configkey = $type[0]['configvalue']; -} - -?> diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/admin.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/admin.php deleted file mode 100644 index 088f885..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/admin.php +++ /dev/null @@ -1,9 +0,0 @@ -fetchPage(); - diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/admin_db.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/admin_db.php deleted file mode 100644 index fdd3aa5..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/admin_db.php +++ /dev/null @@ -1,18 +0,0 @@ -execute(); - echo "clear"; - break; - - case 'clearthis': - \OCP\DB::prepare("DELETE FROM *PREFIX*".app::table." WHERE name=?")->execute(array($_POST['lock'])); - echo "clear"; - break; -} - -?> \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/getcolor.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/getcolor.php deleted file mode 100644 index 632c96e..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/getcolor.php +++ /dev/null @@ -1,8 +0,0 @@ -execute(array($_POST['type']))->fetchAll(); - -if(count($result)>=1) echo $result[0]['configvalue']; - -else echo ""; \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/update.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/update.php deleted file mode 100644 index 346f1dc..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/update.php +++ /dev/null @@ -1,36 +0,0 @@ -execute(array($mode))->fetchAll(); - -if(count($result)<1)//Value already set? -{ - $query = \OCP\DB::prepare("INSERT INTO *PREFIX*appconfig(appid,configkey,configvalue) value('files_w2g',?,?)"); - $result = $query->execute(array($mode,$value)); - echo $l->t($mode)." ".$l->t("has been set!"); -} -else -{ - $query = \OCP\DB::prepare("UPDATE *PREFIX*appconfig set configvalue=? WHERE appid='files_w2g' and configkey=?"); - $result = $query->execute(array($value,$mode)); - echo $l->t("Updated successfully!"); - - -} \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/workin2gether.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/workin2gether.php deleted file mode 100644 index da96c8a..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/ajax/workin2gether.php +++ /dev/null @@ -1,106 +0,0 @@ - - -11.08.2015 A. Jacques -PSR1, PSR2 -*/ - -namespace OCA\files_w2g; - -//Init translations -\OCP\Util::addTranslations('files_w2g'); -$l = \OCP\Util::getL10N('files_w2g'); - -//Requirements check -\OCP\JSON::checkLoggedIn(); -\OCP\JSON::checkAppEnabled('files_w2g'); - -//Init Database table -$exist = \OCP\DB::prepare("SHOW TABLES LIKE '*PREFIX*".app::table."'")->execute()->fetchAll(); -if($exist == null) { - @$query = \OCP\DB::prepare("CREATE table *PREFIX*" . app::table . "(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255)) " . app::charset); - @$query->execute()->fetchAll(); -} - -$naming = "rule_username"; -$naming_q = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey='suffix' and appid='files_w2g' LIMIT 1")->execute()->fetchAll(); -if (count($naming_q) >= 1) - $naming = $naming_q[0]['configvalue']; -//<-End Init Database table - -//Vars -$path = stripslashes($_POST['path']) ; -$safe = null; -$owner = null; -$id = null; - -if (isset($_POST['safe'])) { - $safe = $_POST['safe']; -} - -if (isset($_POST['owner'])) { - $owner = $_POST['owner']; -} - -if (isset($_POST['id'])) { - $id = $_POST['id']; -} - -$ppath = lockname($path); - -//Resolve the shared file -if (!is_null($owner) && $owner !== '') { - $query = \OCP\DB::prepare("SELECT X.path, Y.id FROM *PREFIX*filecache X INNER JOIN *PREFIX*storages Y ON X.storage = Y.numeric_id where X.fileid = ? LIMIT 1"); - $result = $query->execute(array($id))->fetchAll(); - - $original_path = $result[0]['path']; - $storage_id = str_replace("home::", "", $result[0]['id']) . '/'; - - $lockpath = $storage_id.$original_path; -} -else $lockpath = \OCP\USER::getUser()."/files".cleanPath($path); - -//Lock DB entry -$lockfile = lockname($lockpath); -$db_lock_state = \OCP\DB::prepare("SELECT * FROM *PREFIX*" . app::table . " WHERE name = ?")->execute(array($lockfile))->fetchAll(); - -if ($db_lock_state!=null) { - if($safe=="false") { - \OCP\DB::prepare("DELETE FROM *PREFIX*" . app::table . " WHERE name=?")->execute(array($lockfile)); - echo $l->t("File not locked"); - } - else echo $l->t("Status: locked")." ".$l->t("by")." ".$db_lock_state[0]['locked_by']; -} -else { - if($safe=="false") { - $lockedby_name = \OCP\User::getUser(); - if($naming=="rule_displayname") { - $lockedby_name = \OCP\User::getDisplayName(); - } - - \OCP\DB::prepare("INSERT INTO *PREFIX*".app::table."(name,locked_by) VALUES(?,?)")->execute(array($lockfile,$lockedby_name)); - echo $l->t("File is locked")." ".$l->t("by")." ".$lockedby_name; - } - else echo $l->t("Status: not locked"); -} - -function lockname($path) -{ - //Replace all '/' with $ for a filename for the lock file - $ppath = str_replace("/","$",cleanPath($path))."$"; - $ppath = str_replace(":","#",$ppath); - - //Remove double dollar char when exist - if ($ppath[0] == "$" and $ppath[1] == "$") $ppath = substr($ppath,1); - - return preg_replace('/\\\/','$',$ppath); -} - -function cleanPath($path) -{ - return preg_replace('{(/)\1+}', "/", urldecode(rtrim($path, "/"))); -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/app.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/app.php deleted file mode 100644 index 6c3a8a7..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/app.php +++ /dev/null @@ -1,31 +0,0 @@ - - - files_w2g - Workin2gether - - Pseudo multiaccess-management feature for Owncloud. - You can lock files and disable the fileactions, leaving only the fileaction of unlocking a file. - Please leave your feedback and rate this app, if you like it! - - - AGPL - Patrick Hoffmann - 6.00 - - - - 164016 - diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/routes.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/routes.php deleted file mode 100644 index 1fbd0ea..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/routes.php +++ /dev/null @@ -1,19 +0,0 @@ -create('files_w2g_ajax_getcolor', 'ajax/getcolor.php') - ->actionInclude('files_w2g/ajax/getcolor.php'); - -$this->create('files_w2g_ajax_core', 'ajax/workin2gether.php') - ->actionInclude('files_w2g/ajax/workin2gether.php'); - -$this->create('files_w2g_ajax_update', 'ajax/update.php') - ->actionInclude('files_w2g/ajax/update.php'); - -$this->create('files_w2g_ajax_admin_db', 'ajax/admin_db.php') - ->actionInclude('files_w2g/ajax/admin_db.php'); - -$this->create('files_w2g_admin', 'admin.php') - ->actionInclude('files_w2g/admin.php'); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/version b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/version deleted file mode 100644 index 197131f..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/appinfo/version +++ /dev/null @@ -1 +0,0 @@ -0.8.0.2 diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/css/styles.css b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/css/styles.css deleted file mode 100644 index af0a9fe..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/css/styles.css +++ /dev/null @@ -1,24 +0,0 @@ - -a.action.locked{ display:none !important; } - -a.action-getstate_file.locked, a.action-getstate_dir.locked{ display:inline !important; } - -a.statelock a.action[data-action!=getstate_dir&&data-action!=getstate_file]{ -pointer-events:none; -} -a.namelock -{ -line-height: 50px; -padding: 0; -} -a.namelock .nametext{position:absolute !important;left:105px !important;} - -td.statelock:focus{pointer-events:none;} - -a.action-getstate_file, a.action-getstate_dir{ cursor:pointer !important;} - -a.name.statelock a.action{ color:#eee; opacity:1 !important; } - -a.name.statelock a.action:hover, a.name.statelock span.extension{ color:#fff; } - -.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled{ opacity:1.0;} \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/img/app.svg b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/img/app.svg deleted file mode 100644 index 6cafe17..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/img/app.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/img/lock.png b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/img/lock.png deleted file mode 100644 index 9b8c2ec..0000000 Binary files a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/img/lock.png and /dev/null differ diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/admin.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/admin.js deleted file mode 100644 index 14f6056..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/admin.js +++ /dev/null @@ -1,63 +0,0 @@ -$(document).ready(function(){ - - $('#submitColor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { color: $('#multicolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('#submitfontcolor').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { fontcolor: $('#multifontcolor').val()}, - async: false, - success: function(data){text = data;}, - }); - alert(text); - }); - - $('input:radio[name="suffix"]').change(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','update.php'), - type: "post", - data: { suffix: $("input:radio[name='suffix']:checked").attr('id')}, - async: false, - success: function(data){$("#suffixupdated").fadeTo(0,1.0).css("display","inline-block").fadeTo(3000,0.0);}, - }); - }); - - - $('#clearall').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearall'}, - async: false, - success: function(data){ - if(data=="clear") $('#lockfield').html(t("files_w2g","There are no locked files at the moment"));}, - }); - }); - - $('#clearthis').click(function(){ - $.ajax({ - url: OC.filePath('files_w2g','ajax','admin_db.php'), - type: "post", - data: { action: 'clearthis',lock: $('#select_lock option:selected').val()}, - async: false, - success: function(data){ - if(data=="clear") $('#select_lock option:selected').remove(); - - if($.trim($('#select_lock').html())=="") - $('#lockfield').html(t("files_w2g","There are no locked files at the moment")); - - }, - }); - }); - -}); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/arrow.gif b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/arrow.gif deleted file mode 100644 index 246478a..0000000 Binary files a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/arrow.gif and /dev/null differ diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/cross.gif b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/cross.gif deleted file mode 100644 index 0ee9c7a..0000000 Binary files a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/cross.gif and /dev/null differ diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/hs.png b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/hs.png deleted file mode 100644 index 3d94486..0000000 Binary files a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/hs.png and /dev/null differ diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/hv.png b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/hv.png deleted file mode 100644 index 1c5e01f..0000000 Binary files a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/hv.png and /dev/null differ diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/jscolor.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/jscolor.js deleted file mode 100644 index 6bb0c1f..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/js/jscolor.js +++ /dev/null @@ -1,997 +0,0 @@ -/** - * jscolor, JavaScript Color Picker - * - * @version 1.4.2 - * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html - * @author Jan Odvarko, http://odvarko.cz - * @created 2008-06-15 - * @updated 2013-11-25 - * @link http://jscolor.com - */ - - -var jscolor = { - - - dir : '', // location of jscolor directory (leave empty to autodetect) - bindClass : 'color', // class name - binding : true, // automatic binding via - preloading : true, // use image preloading? - - - install : function() { - jscolor.addEvent(window, 'load', jscolor.init); - }, - - - init : function() { - if(jscolor.binding) { - jscolor.bind(); - } - if(jscolor.preloading) { - jscolor.preload(); - } - }, - - - getDir : function() { - if(!jscolor.dir) { - var detected = jscolor.detectDir(); - jscolor.dir = detected!==false ? detected : 'jscolor/'; - } - return jscolor.dir; - }, - - - detectDir : function() { - var base = location.href; - - var e = document.getElementsByTagName('base'); - for(var i=0; i vs[a] ? - (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : - tp[a], - -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? - (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : - (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) - ]; - } - drawPicker(pp[a], pp[b]); - } - }; - - - this.importColor = function() { - if(!valueElement) { - this.exportColor(); - } else { - if(!this.adjust) { - if(!this.fromString(valueElement.value, leaveValue)) { - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - } - } else if(!this.required && /^\s*$/.test(valueElement.value)) { - valueElement.value = ''; - styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; - styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; - styleElement.style.color = styleElement.jscStyle.color; - this.exportColor(leaveValue | leaveStyle); - - } else if(this.fromString(valueElement.value)) { - // OK - } else { - this.exportColor(); - } - } - }; - - - this.exportColor = function(flags) { - if(!(flags & leaveValue) && valueElement) { - var value = this.toString(); - if(this.caps) { value = value.toUpperCase(); } - if(this.hash) { value = '#'+value; } - valueElement.value = value; - } - if(!(flags & leaveStyle) && styleElement) { - styleElement.style.backgroundImage = "none"; - styleElement.style.backgroundColor = - '#'+this.toString(); - styleElement.style.color = - 0.213 * this.rgb[0] + - 0.715 * this.rgb[1] + - 0.072 * this.rgb[2] - < 0.5 ? '#FFF' : '#000'; - } - if(!(flags & leavePad) && isPickerOwner()) { - redrawPad(); - } - if(!(flags & leaveSld) && isPickerOwner()) { - redrawSld(); - } - }; - - - this.fromHSV = function(h, s, v, flags) { // null = don't change - if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); } - if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); } - if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); } - - this.rgb = HSV_RGB( - h===null ? this.hsv[0] : (this.hsv[0]=h), - s===null ? this.hsv[1] : (this.hsv[1]=s), - v===null ? this.hsv[2] : (this.hsv[2]=v) - ); - - this.exportColor(flags); - }; - - - this.fromRGB = function(r, g, b, flags) { // null = don't change - if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); } - if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); } - if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); } - - var hsv = RGB_HSV( - r===null ? this.rgb[0] : r, - g===null ? this.rgb[1] : g, - b===null ? this.rgb[2] : b - ); - if(hsv[0] !== null) { - this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0])); - } - if(hsv[2] !== 0) { - this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1])); - } - this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2])); - - // update RGB according to final HSV, as some values might be trimmed - var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); - this.rgb[0] = rgb[0]; - this.rgb[1] = rgb[1]; - this.rgb[2] = rgb[2]; - - this.exportColor(flags); - }; - - - this.fromString = function(hex, flags) { - var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i); - if(!m) { - return false; - } else { - if(m[1].length === 6) { // 6-char notation - this.fromRGB( - parseInt(m[1].substr(0,2),16) / 255, - parseInt(m[1].substr(2,2),16) / 255, - parseInt(m[1].substr(4,2),16) / 255, - flags - ); - } else { // 3-char notation - this.fromRGB( - parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255, - parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255, - parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255, - flags - ); - } - return true; - } - }; - - - this.toString = function() { - return ( - (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) + - (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1) - ); - }; - - - function RGB_HSV(r, g, b) { - var n = Math.min(Math.min(r,g),b); - var v = Math.max(Math.max(r,g),b); - var m = v - n; - if(m === 0) { return [ null, 0, v ]; } - var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); - return [ h===6?0:h, m/v, v ]; - } - - - function HSV_RGB(h, s, v) { - if(h === null) { return [ v, v, v ]; } - var i = Math.floor(h); - var f = i%2 ? h-i : 1-(h-i); - var m = v * (1 - s); - var n = v * (1 - s*f); - switch(i) { - case 6: - case 0: return [v,n,m]; - case 1: return [n,v,m]; - case 2: return [m,v,n]; - case 3: return [m,n,v]; - case 4: return [n,m,v]; - case 5: return [v,m,n]; - } - } - - - function removePicker() { - delete jscolor.picker.owner; - document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB); - } - - - function drawPicker(x, y) { - if(!jscolor.picker) { - jscolor.picker = { - box : document.createElement('div'), - boxB : document.createElement('div'), - pad : document.createElement('div'), - padB : document.createElement('div'), - padM : document.createElement('div'), - sld : document.createElement('div'), - sldB : document.createElement('div'), - sldM : document.createElement('div'), - btn : document.createElement('div'), - btnS : document.createElement('span'), - btnT : document.createTextNode(THIS.pickerCloseText) - }; - for(var i=0,segSize=4; i0) { - - //Initiate the FileAction for file - OCA.Files.fileActions.register( - 'file', - 'getstate_file', - OC.PERMISSION_UPDATE, - function(){ return OC.imagePath('files_w2g','lock.png') }, - function(filename,context) { getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false") }, t('files_w2g',text) - ); - - //Initiate the FileAction for dir - OCA.Files.fileActions.register( - 'dir', - 'getstate_dir', - OC.PERMISSION_UPDATE, - function(){ return OC.imagePath('files_w2g','lock.png') }, - function(filename,context) { getState(context.$file.attr('data-id'),filename,context.$file.attr('data-share-owner'),"false") }, t('files_w2g',text) - ); - - //Walk through all files in the active Filelist - $('#content').delegate('#fileList', 'fileActionsReady',function(ev){ - - var $fileList = ev.fileList.$fileList; - - $fileList.find('tr').each(function(){ - $filename = $(this).attr('data-file'); - $owner = $(this).attr('data-share-owner'); - $id = $(this).attr('data-id'); - getState($id,$filename,$owner,"true"); - }); - }); - } - - //Get the Background-color from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'color'}, - async: false, - success: function(data){if(data!=""){color = data;}}, - }); - - //Get the Fontcolor from the database - $.ajax({ - url: OC.filePath('files_w2g','ajax','getcolor.php'), - type: "post", - data: { type: 'fontcolor'}, - async: false, - success: function(data){if(data!=""){fontcolor = data;}}, - }); - - //Add dynamic CSS code - var cssrules = $("").appendTo("head"); - cssrules.append(".statelock{ background-color:#"+color+";color:#"+fontcolor+" !important;}"+ - ".statelock span.modified{color:#"+fontcolor+" !important;}"+ - "a.action-getstate_file.locked,a.action-getstate_dir.locked{color:#"+fontcolor+" !important;}"+ - "a.action-getstate_file.locked:hover,a.action-getstate_dir.locked:hover{color:#fff !important;}"+ - "a.namelock,a.namelock span.extension {color:#"+fontcolor+";}"); -}); - -//Switch the Lockstate -function toggle_control(filename) -{ - //Walk through the Filelists - $('#fileList tr').each(function() { - var $tr = $(this); - var $_tr = $tr.html().replace(/^\s+|\s+$/g, '').replace('','').split('').join(''); - - if($_tr.indexOf(filename)!=-1) - { - if($_tr.indexOf(lockedtext)==-1 && $_tr.indexOf(lockstate)==-1) - { //unlock - $tr.find('a.action[data-action!='+text+']').removeClass('locked'); - $tr.find('a.namelock').addClass('name').removeClass('namelock'); - $tr.find('td.filesize').removeClass('statelock'); - $tr.find('td.date').removeClass('statelock'); - $tr.find('td').removeClass('statelock'); - $tr.find('a.statelock').addClass('name'); - } - else if($_tr.indexOf(lockedtext)!=-1||$_tr.indexOf(lockstate)!=-1) - { //lock - $tr.find('a.action[data-action!='+text+'][data-action!=favorite]').addClass('locked'); - //$tr.find('a.action').not("[data-action=='+text+']").addClass('locked'); - - $tr.find('a.name').addClass('namelock').removeClass('name'); - $tr.find('td.filesize').addClass('statelock'); - $tr.find('td.date').addClass('statelock'); - $tr.find('td').addClass('statelock'); - } - } - }); -} - -//Get the current state -function getState( _id, _filename, _owner, _safe) -{ - oc_dir = $('#dir').val(); - _filename = _filename.replace(/ /g, "%20"); - oc_path = oc_dir +'/'+_filename; - - $.ajax({ - url: OC.filePath('files_w2g','ajax','workin2gether.php'), - type: "post", - data: { path: oc_path, safe: _safe, owner: _owner, id: _id}, - success: function(data){postmode(_filename,data)}, - }); - -} - -//Push the status -function postmode(filename,data) -{ - filename = filename.replace(/%20/g,' '); - - var html = ' '+''+data+''; - - //Push the status text to the file - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_file').html(html); - - //Push the status text to the dir - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.name').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_dir').html(html); - - //Push the status text to the locked file - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.namelock').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_file').html(html); - - //Push the status text to the locked dir - $('tr').filterAttr('data-file',filename).find('td.filename').find('a.namelock').find('span.fileactions').find("a.action").filterAttr('data-action','getstate_dir').html(html); - - toggle_control(filename); -} \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.js deleted file mode 100644 index 0da2980..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.js +++ /dev/null @@ -1,27 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Datei nicht gesperrt", - "File is locked" : "Datei ist gesperrt", - "Status: locked" : "Status: gesperrt", - "Status: not locked" : "Status: nicht gesperrt", - "filelock" : "Dateisperre", - "Manage multiaccess" : "Mehrfachzugriff konfigurieren", - "Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", - "Background color" : "Hintergrundfarbe", - "Font color" : "Vordergrundfarbe", - "Save" : "Speichern", - "There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", - "Locked files" : "Gesperrte Dateien", - "Unlock this file" : "Diese Datei entsperren", - "Unlock all files" : "Alle Dateien entsperren", - "by" : "von", - "'Locked by' suffix" : "'Gesperrt von'-Suffix", - "username" : "Benutzername", - "Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", - "display name" : "Anzeigename", - "Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", - "Suffix change has been saved" : "Der Suffix wurde aktualisiert", - "Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.json deleted file mode 100644 index a722202..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.json +++ /dev/null @@ -1,25 +0,0 @@ -{ "translations": { -"File not locked" : "Datei nicht gesperrt", -"File is locked" : "Datei ist gesperrt", -"Status: locked" : "Status: gesperrt", -"Status: not locked" : "Status: nicht gesperrt", -"filelock" : "Dateisperre", -"Manage multiaccess" : "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" : "Hintergrundfarbe", -"Font color" : "Vordergrundfarbe", -"Save" : "Speichern", -"There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", -"Locked files" : "Gesperrte Dateien", -"Unlock this file" : "Diese Datei entsperren", -"Unlock all files" : "Alle Dateien entsperren", -"by" : "von", -"'Locked by' suffix" : "'Gesperrt von'-Suffix", -"username" : "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" : "Anzeigename", -"Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" : "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.php deleted file mode 100644 index e7424a2..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de.php +++ /dev/null @@ -1,25 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -"'Locked by' suffix" => "'Gesperrt von'-Suffix", -"username" => "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" => "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" => "Anzeigename", -"Shows the full displayed name, i.e. John Doe" => "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" => "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" => "Bereits vorhandene Dateisperren sind davon nicht betroffen" -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.js deleted file mode 100644 index 0da2980..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.js +++ /dev/null @@ -1,27 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Datei nicht gesperrt", - "File is locked" : "Datei ist gesperrt", - "Status: locked" : "Status: gesperrt", - "Status: not locked" : "Status: nicht gesperrt", - "filelock" : "Dateisperre", - "Manage multiaccess" : "Mehrfachzugriff konfigurieren", - "Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", - "Background color" : "Hintergrundfarbe", - "Font color" : "Vordergrundfarbe", - "Save" : "Speichern", - "There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", - "Locked files" : "Gesperrte Dateien", - "Unlock this file" : "Diese Datei entsperren", - "Unlock all files" : "Alle Dateien entsperren", - "by" : "von", - "'Locked by' suffix" : "'Gesperrt von'-Suffix", - "username" : "Benutzername", - "Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", - "display name" : "Anzeigename", - "Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", - "Suffix change has been saved" : "Der Suffix wurde aktualisiert", - "Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.json deleted file mode 100644 index a722202..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.json +++ /dev/null @@ -1,25 +0,0 @@ -{ "translations": { -"File not locked" : "Datei nicht gesperrt", -"File is locked" : "Datei ist gesperrt", -"Status: locked" : "Status: gesperrt", -"Status: not locked" : "Status: nicht gesperrt", -"filelock" : "Dateisperre", -"Manage multiaccess" : "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." : "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" : "Hintergrundfarbe", -"Font color" : "Vordergrundfarbe", -"Save" : "Speichern", -"There are no locked files at the moment" : "Aktuell sind keine Dateien gesperrt", -"Locked files" : "Gesperrte Dateien", -"Unlock this file" : "Diese Datei entsperren", -"Unlock all files" : "Alle Dateien entsperren", -"by" : "von", -"'Locked by' suffix" : "'Gesperrt von'-Suffix", -"username" : "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" : "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" : "Anzeigename", -"Shows the full displayed name, i.e. John Doe" : "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" : "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" : "Bereits vorhandene Dateisperren sind davon nicht betroffen" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.php deleted file mode 100644 index e7424a2..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/de_DE.php +++ /dev/null @@ -1,25 +0,0 @@ - "Datei nicht gesperrt", -"File is locked" => "Datei ist gesperrt", -"Status: locked" => "Status: gesperrt", -"Status: not locked" => "Status: nicht gesperrt", -"filelock" => "Dateisperre", -"Manage multiaccess" => "Mehrfachzugriff konfigurieren", -"Here you can set the colors for the locked files." => "Hier können Sie die Standard Hintergrundfarbe für gesperrte Dateien festlegen.", -"Background color" => "Hintergrundfarbe", -"Font color" => "Vordergrundfarbe", -"Save" => "Speichern", -"There are no locked files at the moment" => "Aktuell sind keine Dateien gesperrt", -"Locked files" => "Gesperrte Dateien", -"Unlock this file" => "Diese Datei entsperren", -"Unlock all files" => "Alle Dateien entsperren", -"by" => "von", -"'Locked by' suffix" => "'Gesperrt von'-Suffix", -"username" => "Benutzername", -"Shows the real username i.e. admin, or LDAP UUID" => "Zeigt den echten Benutzernamen an, z.B. 'admin' oder eine UUID", -"display name" => "Anzeigename", -"Shows the full displayed name, i.e. John Doe" => "Zeigt den Anzeigename an, z.B. Max Mustermann", -"Suffix change has been saved" => "Der Suffix wurde aktualisiert", -"Old file locks won't be affected by this" => "Bereits vorhandene Dateisperren sind davon nicht betroffen" -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.js deleted file mode 100644 index 1c3255b..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.js +++ /dev/null @@ -1,10 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.json deleted file mode 100644 index c2e23cf..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.json +++ /dev/null @@ -1,8 +0,0 @@ -{ "translations": { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en@pirate.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.js deleted file mode 100644 index 1c3255b..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.js +++ /dev/null @@ -1,10 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.json deleted file mode 100644 index c2e23cf..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.json +++ /dev/null @@ -1,8 +0,0 @@ -{ "translations": { - "File not locked" : "File not locked", - "File is locked" : "File is locked", - "Status: locked" : "Status: locked", - "Status: not locked" : "Status: not locked", - "filelock" : "filelock" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.php deleted file mode 100644 index 7b6d0af..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/en_GB.php +++ /dev/null @@ -1,8 +0,0 @@ - "File not locked", -"File is locked" => "File is locked", -"Status: locked" => "Status: locked", -"Status: not locked" => "Status: not locked", -"filelock" => "filelock" -); diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.js deleted file mode 100644 index 3a94645..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.js +++ /dev/null @@ -1,28 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par", - "'Locked by' suffix" : "'verrouillé par'-suffixe", - "username" : "nom d'utilisateur", - "Shows the real username i.e. admin, or LDAP UUID" : "Affiche le vrai nom d'utilisateur, par exemple admin ou un UUID", - "display name" : "nom d'affichage", - "Shows the full displayed name, i.e. John Doe" : "Affiche le nom d'affichage, par exemple Jean Dupont", - "Suffix change has been saved" : "le changement de suffixe a été enregistré", - "Old file locks won't be affected by this" : "les anciens fichiers ne seront pas affectés par cette" - -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.json deleted file mode 100644 index 0822878..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.json +++ /dev/null @@ -1,25 +0,0 @@ -{ "translations": { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par", - "'Locked by' suffix" : "'verrouillé par'-suffixe", - "username" : "nom d'utilisateur", - "Shows the real username i.e. admin, or LDAP UUID" : "Affiche le vrai nom d'utilisateur, par exemple admin ou un UUID", - "display name" : "nom d'affichage", - "Shows the full displayed name, i.e. John Doe" : "Affiche le nom d'affichage, par exemple Jean Dupont", - "Suffix change has been saved" : "le changement de suffixe a été enregistré", - "Old file locks won't be affected by this" : "les anciens fichiers ne seront pas affectés par cette" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.js deleted file mode 100644 index 52118de..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.json deleted file mode 100644 index 5a7b206..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "Fichier non verrouillé ", - "File is locked" : " Fichier verrouillé ", - "Status: locked" : " Statut: verrouillé ", - "Status: not locked" : " Statut: non verrouillé ", - "filelock" : "fichier vérouillé", - "Manage multiaccess" : " Configuration des accès multiples", - "Here you can set the colors for the locked files." : " Vous pouvez définir les couleurs pour les fichiers verrouillés.", - "Background color" : " Couleur de fond ", - "Font color" : " Couleur de police ", - "Save" : "Sauvegarder", - "There are no locked files at the moment" : " Il n'y a pas de fichiers verrouillés actuellement", - "Locked files" : " Fichiers verrouillés", - "Unlock this file" : " Déverrouiller ce fichier ", - "Unlock all files" : " Déverrouiller tous les fichiers", - "by" : "par" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.php deleted file mode 100644 index 4076382..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/fr_FR.php +++ /dev/null @@ -1,18 +0,0 @@ - "Fichier non verrouillé ", -"File is locked" => " Fichier verrouillé ", -"Status: locked" => " Statut: verrouillé ", -"Status: not locked" => " Statut: non verrouillé ", -"filelock" => "fichier vérouillé", -"Manage multiaccess" => " Configuration des accès multiples", -"Here you can set the colors for the locked files." => " Vous pouvez définir les couleurs pour les fichiers verrouillés.", -"Background color" => " Couleur de fond ", -"Font color" => " Couleur de police ", -"Save" => "Sauvegarder", -"There are no locked files at the moment" => " Il n'y a pas de fichiers verrouillés actuellement", -"Locked files" => " Fichiers verrouillés", -"Unlock this file" => " Déverrouiller ce fichier ", -"Unlock all files" => " Déverrouiller tous les fichiers", -"by" => "par", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.js deleted file mode 100644 index cc99396..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.json deleted file mode 100644 index a0fb34e..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.js b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.js deleted file mode 100644 index cc99396..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.js +++ /dev/null @@ -1,20 +0,0 @@ -OC.L10N.register( - "files_w2g", - { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -}, -"nplurals=2; plural=(n != 1);"); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.json b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.json deleted file mode 100644 index a0fb34e..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.json +++ /dev/null @@ -1,18 +0,0 @@ -{ "translations": { - "File not locked" : "ファイルロック無し", - "File is locked" : "ファイルロック中", - "Status: locked" : "状態: ロック中", - "Status: not locked" : "状態: ロック無し", - "filelock" : "ファイルロック", - "Manage multiaccess" : "同時アクセス管理", - "Here you can set the colors for the locked files." : "ロックされたファイルのデフォルトの背景色を設定できます。", - "Background color" : "背景色", - "Font color" : "フォント色", - "Save" : "保存", - "There are no locked files at the moment" : "現在ロックされているファイルはありません", - "Locked files" : "このファイルをロック解除", - "Unlock this file" : "ロック中のファイル", - "Unlock all files" : "全てのファイルをロック解除", - "by" : "による" -},"pluralForm" :"nplurals=2; plural=(n != 1);" -} diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.php deleted file mode 100644 index c3aee44..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/l10n/ja_JP.php +++ /dev/null @@ -1,18 +0,0 @@ - "ファイルロック無し", -"File is locked" => "ファイルロック中", -"Status: locked" => "状態: ロック中", -"Status: not locked" => "状態: ロック無し", -"filelock" => "ファイルロック", -"Manage multiaccess" => "同時アクセス管理", -"Here you can set the colors for the locked files." => "ロックされたファイルのデフォルトの背景色を設定できます。", -"Background color" => "背景色", -"Font color" => "フォント色", -"Save" => "保存", -"There are no locked files at the moment" => "現在ロックされているファイルはありません", -"Locked files" => "このファイルをロック解除", -"Unlock this file" => "ロック中のファイル", -"Unlock all files" => "全てのファイルをロック解除", -"by" => "による", -); \ No newline at end of file diff --git a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/templates/admin.php b/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/templates/admin.php deleted file mode 100644 index 19322c1..0000000 --- a/Old Releases/Owncloud 8/files_w2g 0.8.2/files_w2g/templates/admin.php +++ /dev/null @@ -1,91 +0,0 @@ -execute()->fetchAll(); -if(count($result)>=1) - $value = $result[0]['configvalue']; - -//fontcolor -$query = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey='fontcolor' and appid='files_w2g' LIMIT 1"); -$result = $query->execute()->fetchAll(); -if(count($result)>=1) - $font_value = $result[0]['configvalue']; - - -//Lockey by name rule -$query = \OCP\DB::prepare("SELECT * FROM *PREFIX*appconfig where configkey='suffix' and appid='files_w2g' LIMIT 1"); -$result = $query->execute()->fetchAll(); -if(count($result)>=1) - $naming = $result[0]['configvalue']; - -//Locked files -$exist = \OCP\DB::prepare("SHOW TABLES LIKE '*PREFIX*".app::table."'")->execute()->fetchAll(); -if($exist!=null) - $result = \OCP\DB::prepare("SELECT * FROM *PREFIX*".app::table)->execute()->fetchAll(); - - - -//---------------------------------------------------------------------------------------------------------------------------- - -\OCP\Util::addscript(app::name, 'admin'); -\OCP\Util::addscript(app::name, 'jscolor'); - -?> -
-
-

t('Manage multiaccess')) ?>

- - t("Here you can set the colors for the locked files.")); - echo $naming; - echo ' -

- '.$l->t("Background color").':
- # -  

- - '.$l->t("Font color").':
- # -  

- '; - - if(count($result)>0) - { - echo '
'.$l->t("Locked files").':
-
-
- '; - } - else - echo $l->t("There are no locked files at the moment"); - - echo '
'. - $l->t("'Locked by' suffix").':

-
-


'.$l->t("Shows the real username i.e. admin, or LDAP UUID").'

-


'.$l->t("Shows the full displayed name, i.e. John Doe").'

-
- '; - - echo '
-

- '.$l->t("Suffix change has been saved").' -

- '; - - echo '

('.$l->t("Old file locks won't be affected by this").')

'; - - ?> -
\ No newline at end of file