root/trunk/gui/client/cronjobs_add.php

Revision 1327, 2.4 kB (checked in by rats, 4 months ago)

* Fixed: --scan-knownbad-files and --check-deleted are no longer supported by rkhunter
* Fixed #1471: chkrootkit should be in lenny / hardy
* Updated Chinese (simplified)
* Updated German
* Fixed #1475: typo on installation (ispcp-setup)
* Fixed: default user for rkhunter.log

Line 
1 <?php
2 /**
3  * ispCP ω (OMEGA) a Virtual Hosting Control System
4  *
5  * @copyright     2001-2006 by moleSoftware GmbH
6  * @copyright     2006-2008 by ispCP | http://isp-control.net
7  * @version     SVN: $Id$
8  * @link         http://isp-control.net
9  * @author         ispCP Team
10  *
11  * @license
12  *   This program is free software; you can redistribute it and/or modify it under
13  *   the terms of the MPL General Public License as published by the Free Software
14  *   Foundation; either version 1.1 of the License, or (at your option) any later
15  *   version.
16  *   You should have received a copy of the MPL Mozilla Public License along with
17  *   this program; if not, write to the Open Source Initiative (OSI)
18  *   http://opensource.org | osi@opensource.org
19  */
20
21 require '../include/ispcp-lib.php';
22
23 check_login(__FILE__);
24
25 $tpl = new pTemplate();
26 $tpl->define_dynamic('page', Config::get('CLIENT_TEMPLATE_PATH') . '/cronjobs_add.tpl');
27 $tpl->define_dynamic('page_message', 'page');
28 $tpl->define_dynamic('logged_from', 'page');
29
30 $theme_color = Config::get('USER_INITIAL_THEME');
31
32 $tpl->assign(
33     array('TR_CLIENT_CRONJOBS_TITLE' => tr('ispCP - Client/Cronjob Manager'),
34         'THEME_COLOR_PATH' => "../themes/$theme_color",
35         'THEME_CHARSET' => tr('encoding'),
36         'ISP_LOGO' => get_logo($_SESSION['user_id'])
37         )
38     );
39
40 /* TODO: Implement */
41 function add_cron_job(&$tpl, &$sql, $user_id) {
42
43 } // End of add_cron_job();
44
45 /*
46  *
47  * static page messages.
48  *
49  */
50
51 gen_client_mainmenu($tpl, Config::get('CLIENT_TEMPLATE_PATH') . '/main_menu_webtools.tpl');
52 gen_client_menu($tpl, Config::get('CLIENT_TEMPLATE_PATH') . '/menu_webtools.tpl');
53
54 gen_logged_from($tpl);
55
56 check_permissions($tpl);
57
58 add_cron_job($tpl, $sql, $_SESSION['user_id']);
59
60 $tpl->assign(
61     array('TR_CRON_MANAGER' => tr('Cronjob Manager'),
62         'TR_ADD_CRONJOB' => tr('Add Cronjob'),
63         'TR_NAME' => tr('Name'),
64         'TR_DESCRIPTION' => tr('Description'),
65         'TR_ACTIVE' => tr('Active'),
66         'YES' => tr('Yes'),
67         'NO' => tr('No'),
68         'TR_CRONJOB' => tr('Cronjob'),
69         'TR_COMMAND' => tr('Command to run:'),
70         'TR_MIN' => tr('Minute(s):'),
71         'TR_HOUR' => tr('Hour(s):'),
72         'TR_DAY' => tr('Day(s):'),
73         'TR_MONTHS' => tr('Month(s):'),
74         'TR_WEEKDAYS' => tr('Weekday(s):'),
75         'TR_ADD' => tr('Add'),
76         'TR_RESET' => tr('Reset'),
77         'TR_CANCEL' => tr('Cancel'),
78         )
79     );
80
81 gen_page_message($tpl);
82
83 $tpl->parse('PAGE', 'page');
84 $tpl->prnt();
85
86 if (Config::get('DUMP_GUI_DEBUG'))
87     dump_gui_debug();
88
89 unset_messages();
90
91 ?>
Note: See TracBrowser for help on using the browser.