Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
1ce2cd73
Commit
1ce2cd73
authored
12 years ago
by
Jakob Sack
Browse files
Options
Downloads
Patches
Plain Diff
Add first version of backgroundjobs settings
parent
889f0a1c
Branches
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
settings/ajax/setbackgroundjobsmode.php
+28
-0
28 additions, 0 deletions
settings/ajax/setbackgroundjobsmode.php
settings/js/admin.js
+7
-1
7 additions, 1 deletion
settings/js/admin.js
settings/templates/admin.php
+13
-0
13 additions, 0 deletions
settings/templates/admin.php
with
48 additions
and
1 deletion
settings/ajax/setbackgroundjobsmode.php
0 → 100644
+
28
−
0
View file @
1ce2cd73
<?php
/**
* ownCloud
*
* @author Jakob Sack
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
OC_Util
::
checkAdminUser
();
OCP\JSON
::
callCheck
();
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob_mode'
,
$_POST
[
'mode'
]
);
echo
'true'
;
This diff is collapsed.
Click to expand it.
settings/js/admin.js
+
7
−
1
View file @
1ce2cd73
...
...
@@ -3,5 +3,11 @@ $(document).ready(function(){
$
.
post
(
OC
.
filePath
(
'
settings
'
,
'
ajax
'
,
'
setloglevel.php
'
),
{
level
:
$
(
this
).
val
()
},
function
(){
OC
.
Log
.
reload
();
}
);
})
});
$
(
'
#backgroundjobs input
'
).
change
(
function
(){
if
(
$
(
this
).
attr
(
'
checked
'
)){
$
.
post
(
OC
.
filePath
(
'
settings
'
,
'
ajax
'
,
'
setbackgroundjobsmode.php
'
),
{
mode
:
$
(
this
).
val
()
});
}
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
settings/templates/admin.php
+
13
−
0
View file @
1ce2cd73
...
...
@@ -24,6 +24,19 @@ if(!$_['htaccessworking']) {
<?php
foreach
(
$_
[
'forms'
]
as
$form
){
echo
$form
;
};
?>
<fieldset
class=
"personalblock"
id=
"backgroundjobs"
>
<legend><strong>
<?php
echo
$l
->
t
(
'Cron'
);
?>
</strong></legend>
<input
type=
"radio"
name=
"mode"
value=
"none"
id=
"backgroundjobs_none"
>
<label
for=
"backgroundjobs_none"
>
None
</label><br
/>
<input
type=
"radio"
name=
"mode"
value=
"ajax"
id=
"backgroundjobs_ajax"
>
<label
for=
"backgroundjobs_ajax"
>
AJAX
</label><br
/>
<input
type=
"radio"
name=
"mode"
value=
"webcron"
id=
"backgroundjobs_webcron"
>
<label
for=
"backgroundjobs_webcron"
>
Webcron
</label><br
/>
<input
type=
"radio"
name=
"mode"
value=
"cron"
id=
"backgroundjobs_cron"
>
<label
for=
"backgroundjobs_cron"
>
Cron
</label><br
/>
</fieldset>
<fieldset
class=
"personalblock"
>
<legend><strong>
<?php
echo
$l
->
t
(
'Log'
);
?>
</strong></legend>
Log level:
<select
name=
'loglevel'
id=
'loglevel'
>
...
...
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