summaryrefslogtreecommitdiff
path: root/lib/conf/apps.php
blob: d8cb1c246c3affcac2c5dc23c4eaac6c16052722 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php

$homepage = "notes";

$apps = array(
	
	// Image upload application
	"image" => array(
		"index" => 1,
		"delete" => 1,
		"upload" => 0,
	),

	// Account application
	"account" => array(
		"new" => 0,
	),

	// Notebook application
	"notes" => array(
		"index" => 0,
		"user" => 0,
		"view" => 0,
		"new" => 1,
		"edit" => 1,
		"delete" => 1,
		"move" => 1,
		"source" => 0,
	),

	// Studies application
	"deck" => array(
		"index" => 0,
		"new" => 1,
		"view" => 0,
		// function called for editing
		"edit" => 1,		// change title, comment
		"addent" => 1,		// add card
		"rment" => 1,		// remove card
		"edent" => 1,		// edit card
		"mvent" => 1,		// move card
	),
	"list" => array(
		"index" => 0,
		"view" => 0,
		"new" => 1,
		"edit" => 1,		// edit global info = name, desc, ...

		"addbatch" => 1,
		"edbatch" => 1,
		"rmbatch" => 1,
	),

	"study" => array (
		"index" => 1,
		"deckadd" => 1,
		"deck" => 1,
		"deckrm" => 1,
		"setrate" => 1,
		"setcard" => 1,

		"listadd" => 1,		// create list_study
		"list" => 1,		// !!!!!! show global progress for a list_study
		"listrm" => 1,		// delete list_study
		"batch" => 1,		// (JS) shows progress for a batch_study
		"batchreview" => 1,	// (JS) batch review app
		"brresults" => 1,
	),

);