Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
1f74e76d
Commit
1f74e76d
authored
13 years ago
by
Tom Needham
Browse files
Options
Downloads
Patches
Plain Diff
Implemented ace-edtior as an app. Basic file editing and saving supported.
parent
c6f78fbe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.htaccess
+4
-4
4 additions, 4 deletions
.htaccess
files/js/fileactions.js
+4
-1
4 additions, 1 deletion
files/js/fileactions.js
lib/filesystem.php
+4
-0
4 additions, 0 deletions
lib/filesystem.php
with
12 additions
and
5 deletions
.htaccess
+
4
−
4
View file @
1f74e76d
ErrorDocument
404
//owncloud
/core/templates/404.php
ErrorDocument
404 /core/templates/404.php
<
IfModule
mod_php5.c
>
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv
htaccessWorking true
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv
htaccessWorking true
</
IfModule
>
Options
-Indexes
This diff is collapsed.
Click to expand it.
files/js/fileactions.js
+
4
−
1
View file @
1f74e76d
...
...
@@ -135,6 +135,9 @@ FileActions.register('all','Delete',function(){return OC.imagePath('core','actio
FileActions
.
register
(
'
all
'
,
'
Rename
'
,
function
(){
return
OC
.
imagePath
(
'
core
'
,
'
actions/rename
'
)},
function
(
filename
){
FileList
.
rename
(
filename
);
});
FileActions
.
register
(
'
text
'
,
'
Edit
'
,
function
(){
return
OC
.
imagePath
(
'
core
'
,
'
actions/rename
'
)},
function
(
filename
){
window
.
location
=
'
/apps/editor/index.php?file=
'
+
filename
+
'
&dir=
'
+
$
(
'
#dir
'
).
val
();
});
//FileActions.setDefault('all','Download');
...
...
@@ -142,4 +145,4 @@ FileActions.register('dir','Open','',function(filename){
window
.
location
=
'
index.php?dir=
'
+
$
(
'
#dir
'
).
val
()
+
'
/
'
+
filename
;
});
FileActions
.
setDefault
(
'
dir
'
,
'
Open
'
);
FileActions
.
setDefault
(
'
dir
'
,
'
Open
'
);
This diff is collapsed.
Click to expand it.
lib/filesystem.php
+
4
−
0
View file @
1f74e76d
...
...
@@ -441,6 +441,10 @@ class OC_Filesystem{
return
$files
;
}
static
public
function
update_session_file_hash
(
$sessionname
,
$sessionvalue
){
$_SESSION
[
$sessionname
]
=
$sessionvalue
;
}
/**
* abstraction for running most basic operations
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment