-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
72 lines (65 loc) · 1.43 KB
/
setup.php
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
71
72
<?php /* HELPDESK $Id: setup.php,v 1.6.1 2007/08/22 1:21 PM arcos Exp $ */
/*
dotProject Module
Name: TimeCard
Directory: timecard
Version: 2.1
Class: user
UI Name: TimeCard
UI Icon: TimeCard.png
This file does no action in itself.
If it is accessed directly it will give a summary of the module parameters.
*/
// MODULE CONFIGURATION DEFINITION
$config = array();
$config['mod_name'] = 'TimeCard';
$config['mod_version'] = '2.1';
$config['mod_directory'] = 'timecard';
$config['mod_setup_class'] = 'CSetupTimeCard';
$config['mod_type'] = 'user';
$config['mod_ui_name'] = 'Time Card';
$config['mod_ui_icon'] = 'TimeCard.png';
$config['mod_description'] = 'Time Card allows easy access to a weekly timecard based on existing task logs.';
$config['mod_config'] = true;
if (@$a == 'setup') {
echo dPshowModuleConfig( $config );
}
require_once dPgetConfig( 'root_dir' ).'/modules/system/syskeys/syskeys.class.php';
/*
// MODULE SETUP CLASS
This class must contain the following methods:
install - creates the required db tables
remove - drop the appropriate db tables
upgrade - upgrades tables from previous versions
*/
class CSetupTimeCard
{
/*
Install routine
*/
function install()
{
return true;
}
/*
Removal routine
*/
function remove()
{
return true;
}
/*
Upgrade routine
*/
function upgrade()
{
return true;
}
function configure()
{
global $AppUI;
$AppUI->redirect("m=timecard&a=configure");
return true;
}
}
?>