-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
60 lines (44 loc) · 1.98 KB
/
index.php
File metadata and controls
60 lines (44 loc) · 1.98 KB
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
<?php
// Initialize F3 Framework + Components
$f3=require('lib/base.php');
require("lib/db/jig.php");
require("lib/web.php");
require("lib/template.php");
// Load Configuration
$f3->config('config.ini');
require('functions.php');
require('ui_functions.php');
require('app.php');
// Define routes
// Calendar Routes
$f3->route('POST|GET @monthView: /month/@date', 'App->monthView');
$f3->route('POST|GET @currentMonth: /month', 'App->monthView');
$f3->route('GET @dayView: /day/@date', 'App->dayView');
$f3->route('GET @today: /today', 'App->dayView');
$f3->route('GET @details: /details/@id', 'App->details');
$f3->route('GET @editEntry: /edit/@id', 'App->editEntry');
$f3->route('GET @newEntryD: /new/@date', 'App->newEntry');
$f3->route('GET @newEntry: /new', 'App->newEntry');
$f3->route('POST @actionEntry: /action', 'App->actionEntry');
// Notes
$f3->route('GET @notes: /notes', 'App->notesView');
$f3->route('GET @newNote: /newnote', 'App->newNote');
$f3->route('GET @newNoteD: /newnote/@date', 'App->newNote');
$f3->route('GET @editNote: /editnote/@id', 'App->editNote');
$f3->route('GET|POST @actionNote: /actionnote', 'App->actionNote');
$f3->route('GET|POST @searchVeranst: /searchveranst', 'App->searchVeranst');
// Todos
$f3->route('GET @todos: /todos', 'App->todosView');
$f3->route('GET @newTodo: /newntodo', 'App->newTodo');
$f3->route('GET @newTodoD: /newtodo/@date', 'App->newTodo');
$f3->route('GET @editTodo: /edittodo/@id', 'App->editTodo');
$f3->route('GET|POST @actionTodo: /actiontodo', 'App->actionTodo');
// General routes
$f3->route('POST|GET @search: /search', 'App->search');
$f3->route('GET @backup: /backup', 'App->backup');
$f3->route('GET @backup_download: /backup/download', 'App->downloadBackup');
$f3->route('GET @about: /about', 'App->about');
$f3->route('GET @login: /', 'AppInit->login');
$f3->route('GET @logout: /logout', 'App->logout');
$f3->run();
?>