root/tags/omega-1.0.0-rc3/gui/client/cronjobs_edit.php

Revision 767, 2.9 KB (checked in by raphael, 17 months ago)

Fixed #586: deleting domain-alias does not work when domain has ftp accounts
Fixed #589: wrong image names
Added comments support to the tr() function
Replaced all ISPCP with ispCP
Fixed #417: Add gender field
Fixed a missing double percent sign
Fixed #594: Blank page on Add Admin
Fixed #588: $rs not always defined
Added missing user_gui_props entry for primary administrator
Added postgrey, AMaViS and spamassassin to the server_ports list
Updated es_ES.po (thanks to Albert Garcia)

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