Add perPage settings into config
[phorkie.git] / data / config.default.php
1 <?php
2 $GLOBALS['phorkie']['cfg'] = array(
3     'debug'         => false,
4     'gitdir'        => __DIR__ . '/../repos/git/',
5     'workdir'       => __DIR__ . '/../repos/work/',
6     'tpl'           => __DIR__ . '/templates/',
7     'baseurl'       => '/',
8     'css'           => '',
9     'iconpng'       => '',
10     'title'         => 'phorkie',
11     'topbar'        => '',
12     'setupcheck'    => true,
13     'elasticsearch' => null,
14     'geshi'         => 'MediaWiki/geshi/geshi/geshi.php',
15     'index'         => 'new',//"new" or "list"
16     'perPage'       => 10,
17 );
18 $GLOBALS['phorkie']['auth'] = array(
19     // 0 = public, no authentication, 1 = protect adds/edits/deletes,
20     // 2 = require authentication
21     'securityLevel'   => 0,
22     'listedUsersOnly' => false,
23     'users'           => array(),             // Array of OpenIDs that may login
24     'anonymousName'   => 'Anonymous',         // Email for non-authenticated commits
25     'anonymousEmail'  => 'anonymous@phorkie', // Email for non-authenticated commits
26 );
27 $GLOBALS['phorkie']['tools'] = array(
28     '\\phorkie\\Tool_Xmllint' => true,
29     '\\phorkie\\Tool_PHPlint' => true,
30 );
31 /**
32  * Array of supported file types / languages.
33  * Key is the file extension
34  */
35 $GLOBALS['phorkie']['languages'] = array(
36     'css' => array(
37         'title' => 'CSS',
38         'mime'  => 'text/css',
39         'geshi' => 'css'
40     ),
41     'diff' => array(
42         'title' => 'Diff',
43         'mime'  => 'text/diff',
44         'geshi' => 'diff'
45     ),
46     'htm' => array(
47         'title' => 'HTML',
48         'mime'  => 'text/html',
49         'geshi' => 'xml'
50     ),
51     'html' => array(
52         'title' => 'HTML',
53         'mime'  => 'text/html',
54         'geshi' => 'xml',
55         'show'  => false
56     ),
57     'jpg' => array(
58         'title' => 'JPEG image',
59         'mime'  => 'image/jpeg',
60         'show'  => false
61     ),
62     'ini' => array(
63         'title' => 'Ini',
64         'mime'  => 'text/ini',
65         'geshi' => 'ini'
66     ),
67     'js' => array(
68         'title' => 'Javascript',
69         'mime'  => 'application/javascript',
70         'geshi' => 'javascript'
71     ),
72     'json' => array(
73         'title' => 'Javascript',
74         'mime'  => 'application/javascript',
75         'geshi' => 'javascript',
76         'show'  => false
77     ),
78     'md' => array(
79         'title' => 'Markdown',
80         'mime'  => 'text/x-markdown',
81         'renderer' => '\\phorkie\\Renderer_Markdown'
82     ),
83     'pl' => array(
84         'title' => 'Perl',
85         'mime'  => 'application/x-perl',
86         'geshi' => 'pl'
87     ),
88     'php' => array(
89         'title' => 'PHP',
90         'mime'  => 'text/x-php',
91         'geshi' => 'php'
92     ),
93     'png' => array(
94         'title' => 'PNG image',
95         'mime'  => 'image/png',
96         'show'  => false
97     ),
98     'rb' => array(
99         'title' => 'Ruby/Rails',
100         'mime'  => 'text/x-ruby', /* Is this an acceptable mime type? */
101         'geshi' => 'rails'
102     ),
103     'rst' => array(
104         'title' => 'reStructuredText',
105         'mime'  => 'text/x-rst',
106         'geshi' => 'rst',
107         'renderer' => '\\phorkie\\Renderer_ReStructuredText',
108     ),
109     'sh' => array(
110         'title' => 'Shell script (Bash)',
111         'mime'  => 'text/x-shellscript',
112         'geshi' => 'bash'
113     ),
114     'sql' => array(
115         'title' => 'SQL',
116         'mime'  => 'text/x-sql',
117         'geshi' => 'sql'
118     ),
119     'svg' => array(
120         'title' => 'SVG image',
121         'mime'  => 'image/svg+xml',
122         'show'  => false
123     ),
124     'txt' => array(
125         'title' => 'Text (plain)',
126         'mime'  => 'text/plain',
127         'geshi' => 'txt'
128     ),
129     'ts' => array(
130         'title' => 'TypoScript',
131         'mime'  => 'text/x-typoscript',/* TODO: correct type */
132         'geshi' => 'typoscript'
133     ),
134     'xml' => array(
135         'title' => 'XML',
136         'mime'  => 'text/xml',
137         'geshi' => 'xml'
138     ),
139 );
140 ?>