Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
owncloud-prm /
core /
js /
Delete
Unzip
Name
Size
Permission
Date
Action
files
[ DIR ]
drwxr-xr-x
2018-04-19 18:15
systemtags
[ DIR ]
drwxr-xr-x
2018-04-19 18:15
apps.js
2.77
KB
-rw-r--r--
2018-04-19 18:15
backgroundjobs.js
912
B
-rw-r--r--
2018-04-19 18:15
browser-update.js
827
B
-rw-r--r--
2018-04-19 18:15
config.js
1.49
KB
-rw-r--r--
2018-04-19 18:15
config.php
8.69
KB
-rw-r--r--
2018-04-19 18:15
core.json
1.42
KB
-rw-r--r--
2018-04-19 18:15
eventsource.js
4.16
KB
-rw-r--r--
2018-04-19 18:15
installation.js
115
B
-rw-r--r--
2018-04-19 18:15
integritycheck-failed-notification.js
1.07
KB
-rw-r--r--
2018-04-19 18:15
jquery-showpassword.js
3.16
KB
-rw-r--r--
2018-04-19 18:15
jquery.avatar.js
4.21
KB
-rw-r--r--
2018-04-19 18:15
jquery.ocdialog.js
4.88
KB
-rw-r--r--
2018-04-19 18:15
js.js
58.83
KB
-rw-r--r--
2018-04-19 18:15
l10n.js
7.38
KB
-rw-r--r--
2018-04-19 18:15
login.js
787
B
-rw-r--r--
2018-04-19 18:15
lostpassword.js
3.99
KB
-rw-r--r--
2018-04-19 18:15
maintenance-check.js
487
B
-rw-r--r--
2018-04-19 18:15
mimetype.js
3.51
KB
-rw-r--r--
2018-04-19 18:15
mimetypelist.js
4.97
KB
-rw-r--r--
2018-04-19 18:15
multiselect.js
11.29
KB
-rw-r--r--
2018-04-19 18:15
oc-backbone-webdav.js
13.39
KB
-rw-r--r--
2018-04-19 18:15
oc-backbone.js
252
B
-rw-r--r--
2018-04-19 18:15
oc-dialogs.js
25.89
KB
-rw-r--r--
2018-04-19 18:15
oc-requesttoken.js
209
B
-rw-r--r--
2018-04-19 18:15
octemplate.js
3.01
KB
-rw-r--r--
2018-04-19 18:15
placeholder.js
4.08
KB
-rw-r--r--
2018-04-19 18:15
select2-toggleselect.js
1.44
KB
-rw-r--r--
2018-04-19 18:15
setup.js
3.62
KB
-rw-r--r--
2018-04-19 18:15
setupchecks.js
11.67
KB
-rw-r--r--
2018-04-19 18:15
share.js
14.22
KB
-rw-r--r--
2018-04-19 18:15
shareconfigmodel.js
2.53
KB
-rw-r--r--
2018-04-19 18:15
sharedialogexpirationview.js
5.31
KB
-rw-r--r--
2018-04-19 18:15
sharedialoglinklistview.js
8.4
KB
-rw-r--r--
2018-04-19 18:15
sharedialoglinkshareview.js
11.75
KB
-rw-r--r--
2018-04-19 18:15
sharedialoglinksocialview.js
3.1
KB
-rw-r--r--
2018-04-19 18:15
sharedialogmailview.js
7.47
KB
-rw-r--r--
2018-04-19 18:15
sharedialogresharerinfoview.js
2.56
KB
-rw-r--r--
2018-04-19 18:15
sharedialogshareelistview.js
10.95
KB
-rw-r--r--
2018-04-19 18:15
sharedialogview.js
14.38
KB
-rw-r--r--
2018-04-19 18:15
shareitemmodel.js
18.28
KB
-rw-r--r--
2018-04-19 18:15
sharemodel.js
2.8
KB
-rw-r--r--
2018-04-19 18:15
sharescollection.js
617
B
-rw-r--r--
2018-04-19 18:15
singleselect.js
2.6
KB
-rw-r--r--
2018-04-19 18:15
tags.js
9.44
KB
-rw-r--r--
2018-04-19 18:15
update.js
4.63
KB
-rw-r--r--
2018-04-19 18:15
visitortimezone.js
385
B
-rw-r--r--
2018-04-19 18:15
Save
Rename
/* * Copyright (c) 2015 * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ /* global moment */ (function() { if (!OC.Share) { OC.Share = {}; } var TEMPLATE = '<div id="linkPass-{{cid}}" class="public-link-modal--item">' + '<label class="public-link-modal--label" for="expirationDate-{{cid}}" value="{{expirationDate}}">{{expirationLabel}} {{#if isExpirationEnforced}}<span class="required-indicator">*</span>{{/if}}</label>' + '<input class="public-link-modal--input datepicker expirationDate" id="linkPassText-{{cid}}" type="text" placeholder="{{expirationDatePlaceholder}}" value="{{expirationValue}}" />' + '<span class="error-message hidden"></span>' + '{{#if isExpirationEnforced}}' + // originally the expire message was shown when a default date was set, however it never had text '<em id="defaultExpireMessage" class="defaultExpireMessage">{{defaultExpireMessage}}</em>' + '{{/if}}' + '</div>' ; /** * @class OCA.Share.ShareDialogExpirationView * @member {OC.Share.ShareItemModel} model * @member {jQuery} $el * @memberof OCA.Sharing * @classdesc * * Represents the expiration part in the GUI of the share dialogue * */ var ShareDialogExpirationView = OC.Backbone.View.extend({ /** @type {string} **/ id: 'shareDialogExpirationView', /** @type {OC.Share.ShareConfigModel} **/ configModel: undefined, /** @type {Function} **/ _template: undefined, className: 'shareDialogExpirationView', events: { 'change .expirationCheckbox': '_onToggleExpiration', 'change .datepicker': '_onChangeExpirationDate' }, initialize: function(options) { if(!_.isUndefined(options.itemModel)) { this.itemModel = options.itemModel; this.configModel = this.itemModel.configModel; } else { throw 'missing OC.Share.ShareItemModel'; } var view = this; this.configModel.on('change:isDefaultExpireDateEnforced', function() { view.render(); }); }, _onToggleExpiration: function(event) { var $checkbox = $(event.target); var state = $checkbox.prop('checked'); // TODO: slide animation this.$el.find('.expirationDateContainer').toggleClass('hidden', !state); if (!state) { // discard expiration date this.model.unset('expireDate'); } }, _onChangeExpirationDate: function(event) { var $target = $(event.target); $target.tooltip('hide'); $target.removeClass('error'); var expiration = moment($target.val(), 'DD-MM-YYYY').format('YYYY-MM-DD'); this.model.set('expireDate', expiration); }, render: function() { var defaultExpireMessage = ''; var defaultExpireDays = this.configModel.get('defaultExpireDate'); var isExpirationEnforced = this.configModel.get('isDefaultExpireDateEnforced'); if( (this.itemModel.isFolder() || this.itemModel.isFile()) && isExpirationEnforced) { defaultExpireMessage = t( 'core', 'The public link will expire no later than {days} days after it is created', {'days': defaultExpireDays } ); } var isExpirationSet = !!this.model.get('expireDate') || isExpirationEnforced; var expiration; if (isExpirationSet) { expiration = moment(this.model.get('expireDate'), 'YYYY-MM-DD').format('DD-MM-YYYY'); } this.$el.html(this.template({ cid: this.cid, setExpirationLabel: t('core', 'Set expiration date'), expirationLabel: t('core', 'Expiration'), expirationDatePlaceholder: t('core', 'Choose an expiration date'), defaultExpireMessage: defaultExpireMessage, isExpirationSet: isExpirationSet, isExpirationEnforced: isExpirationEnforced, disableCheckbox: isExpirationEnforced && isExpirationSet, expirationValue: expiration })); // what if there is another date picker on that page? var minDate = new Date(); var maxDate = null; // min date should always be the next day minDate.setDate(minDate.getDate()+1); if(isExpirationSet) { if(isExpirationEnforced) { // TODO: hack: backend returns string instead of integer var shareTime = this.model.get('stime'); if (_.isNumber(shareTime)) { shareTime = new Date(shareTime * 1000); } if (!shareTime) { shareTime = new Date(); // now } shareTime = OC.Util.stripTime(shareTime).getTime(); maxDate = new Date(shareTime + defaultExpireDays * 24 * 3600 * 1000); } } $.datepicker.setDefaults({ minDate: minDate, maxDate: maxDate }); this.$('.datepicker').datepicker({dateFormat : 'dd-mm-yy'}); this.$field = this.$('.expirationDate'); this.delegateEvents(); return this; }, getValue: function() { return this.$field.val().trim(); }, validate: function() { this.$field.removeClass('error'); this.$field.next('.error-message').addClass('hidden'); if (this.configModel.get('isDefaultExpireDateEnforced') && !this.getValue()) { this.$field.addClass('error'); this.$field.next('.error-message').removeClass('hidden').text(t('core', 'Expiration date is required')); return false; } return true; }, /** * @returns {Function} from Handlebars * @private */ template: function (data) { if (!this._template) { this._template = Handlebars.compile(TEMPLATE); } return this._template(data); } }); OC.Share.ShareDialogExpirationView = ShareDialogExpirationView; })();