| 10 |
10 |
if (!isset($NELTOOL['GET_VARS']['toolmode'])) $NELTOOL['GET_VARS']['toolmode'] = 'help';
|
| 11 |
11 |
$tool_menu_item = tool_admin_menu_get_item_from_key($NELTOOL['GET_VARS']['toolmode']);
|
| 12 |
12 |
|
| 13 |
|
$IE_CHECK = strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'], 'MSIE');
|
|
13 |
$IE_CHECK = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE');
|
| 14 |
14 |
|
| 15 |
15 |
$tpl->assign('tool_title', 'Administration / '. $tool_menu_item['title']);
|
| 16 |
16 |
$tpl->assign('tool_menu', tool_admin_menu_get_list($IE_CHECK)); //$tool_admin_menu); // defined in 'functions_tool_administration.php'
|
| ... | ... | |
| 42 |
42 |
$log_step = 30;
|
| 43 |
43 |
$num_logs = tool_admin_logs_get_count();
|
| 44 |
44 |
|
| 45 |
|
if (isset($HTTP_GET_VARS['page'])) $log_start = $HTTP_GET_VARS['page'];
|
|
45 |
if (isset($_GET['page'])) $log_start = $_GET['page'];
|
| 46 |
46 |
|
| 47 |
47 |
$tool_log_list = tool_admin_logs_get_list($log_start * $log_step, $log_step);
|
| 48 |
48 |
|
| ... | ... | |
| 76 |
76 |
if (!tool_admin_applications_check('tool_admin_user')) nt_common_redirect('index.php');
|
| 77 |
77 |
|
| 78 |
78 |
$tool_action = null;
|
| 79 |
|
if (isset($HTTP_POST_VARS['toolaction'])) $tool_action = $HTTP_POST_VARS['toolaction'];
|
| 80 |
|
elseif (isset($HTTP_GET_VARS['toolaction'])) $tool_action = $HTTP_GET_VARS['toolaction'];
|
|
79 |
if (isset($_POST['toolaction'])) $tool_action = $_POST['toolaction'];
|
|
80 |
elseif (isset($_GET['toolaction'])) $tool_action = $_GET['toolaction'];
|
| 81 |
81 |
|
| 82 |
82 |
switch ($tool_action)
|
| 83 |
83 |
{
|
| ... | ... | |
| 85 |
85 |
|
| 86 |
86 |
if ($tool_action == 'update applications')
|
| 87 |
87 |
{
|
| 88 |
|
$tool_user_update_id = $HTTP_POST_VARS['tool_form_user_id'];
|
| 89 |
|
$tool_user_update_appl_ids = $HTTP_POST_VARS['tool_form_application_ids'];
|
|
88 |
$tool_user_update_id = $_POST['tool_form_user_id'];
|
|
89 |
$tool_user_update_appl_ids = $_POST['tool_form_application_ids'];
|
| 90 |
90 |
|
| 91 |
91 |
tool_admin_users_applications_update($tool_user_update_id, $tool_user_update_appl_ids);
|
| 92 |
92 |
|
| 93 |
|
$HTTP_GET_VARS['user_id'] = $tool_user_update_id;
|
|
93 |
$_GET['user_id'] = $tool_user_update_id;
|
| 94 |
94 |
}
|
| 95 |
95 |
|
| 96 |
96 |
// break;
|
| ... | ... | |
| 99 |
99 |
|
| 100 |
100 |
if ($tool_action == 'update domains')
|
| 101 |
101 |
{
|
| 102 |
|
$tool_user_update_id = $HTTP_POST_VARS['tool_form_user_id'];
|
| 103 |
|
$tool_user_update_domain_ids = $HTTP_POST_VARS['tool_form_domain_ids'];
|
|
102 |
$tool_user_update_id = $_POST['tool_form_user_id'];
|
|
103 |
$tool_user_update_domain_ids = $_POST['tool_form_domain_ids'];
|
| 104 |
104 |
|
| 105 |
105 |
$tool_user_data = tool_admin_users_get_id($tool_user_update_id);
|
| 106 |
106 |
$tool_user_group_id = $tool_user_data['user_group_id'];
|
| 107 |
107 |
|
| 108 |
108 |
tool_admin_users_domains_update($tool_user_update_id, $tool_user_group_id, $tool_user_update_domain_ids);
|
| 109 |
109 |
|
| 110 |
|
$HTTP_GET_VARS['user_id'] = $tool_user_update_id;
|
|
110 |
$_GET['user_id'] = $tool_user_update_id;
|
| 111 |
111 |
}
|
| 112 |
112 |
|
| 113 |
113 |
//break;
|
| ... | ... | |
| 116 |
116 |
|
| 117 |
117 |
if ($tool_action == 'update shards')
|
| 118 |
118 |
{
|
| 119 |
|
$tool_user_update_id = $HTTP_POST_VARS['tool_form_user_id'];
|
| 120 |
|
$tool_user_update_shard_ids = $HTTP_POST_VARS['tool_form_shard_ids'];
|
|
119 |
$tool_user_update_id = $_POST['tool_form_user_id'];
|
|
120 |
$tool_user_update_shard_ids = $_POST['tool_form_shard_ids'];
|
| 121 |
121 |
|
| 122 |
122 |
$tool_user_data = tool_admin_users_get_id($tool_user_update_id);
|
| 123 |
123 |
$tool_user_group_id = $tool_user_data['user_group_id'];
|
| 124 |
124 |
|
| 125 |
125 |
tool_admin_users_shards_update($tool_user_update_id, $tool_user_group_id, $tool_user_update_shard_ids);
|
| 126 |
126 |
|
| 127 |
|
$HTTP_GET_VARS['user_id'] = $tool_user_update_id;
|
|
127 |
$_GET['user_id'] = $tool_user_update_id;
|
| 128 |
128 |
}
|
| 129 |
129 |
|
| 130 |
130 |
//break;
|
| ... | ... | |
| 138 |
138 |
|
| 139 |
139 |
if ($tool_action == 'update')
|
| 140 |
140 |
{
|
| 141 |
|
$tool_user_update_id = $HTTP_POST_VARS['tool_form_user_id'];
|
| 142 |
|
$tool_user_update_name = $HTTP_POST_VARS['tool_form_user_name'];
|
| 143 |
|
$tool_user_update_password = $HTTP_POST_VARS['tool_form_user_password'];
|
| 144 |
|
$tool_user_update_group = $HTTP_POST_VARS['tool_form_user_group'];
|
| 145 |
|
$tool_user_update_active = $HTTP_POST_VARS['tool_form_user_active'];
|
|
141 |
$tool_user_update_id = $_POST['tool_form_user_id'];
|
|
142 |
$tool_user_update_name = $_POST['tool_form_user_name'];
|
|
143 |
$tool_user_update_password = $_POST['tool_form_user_password'];
|
|
144 |
$tool_user_update_group = $_POST['tool_form_user_group'];
|
|
145 |
$tool_user_update_active = $_POST['tool_form_user_active'];
|
| 146 |
146 |
|
| 147 |
147 |
$tool_error = tool_admin_users_update($tool_user_update_id, $tool_user_update_name, $tool_user_update_password, $tool_user_update_group, $tool_user_update_active);
|
| 148 |
148 |
if ($tool_error != "")
|
| ... | ... | |
| 150 |
150 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 151 |
151 |
}
|
| 152 |
152 |
|
| 153 |
|
$HTTP_GET_VARS['user_id'] = $tool_user_update_id;
|
|
153 |
$_GET['user_id'] = $tool_user_update_id;
|
| 154 |
154 |
}
|
| 155 |
155 |
|
| 156 |
156 |
//break;
|
| ... | ... | |
| 162 |
162 |
* -------------------------------------------------------------------------------------------
|
| 163 |
163 |
*/
|
| 164 |
164 |
|
| 165 |
|
$tool_user_edit_id = $HTTP_GET_VARS['user_id'];
|
|
165 |
$tool_user_edit_id = $_GET['user_id'];
|
| 166 |
166 |
$tool_user_edit_data = tool_admin_users_get_id($tool_user_edit_id);
|
| 167 |
167 |
$tool_user_group_id = $tool_user_edit_data['user_group_id'];
|
| 168 |
168 |
|
| ... | ... | |
| 199 |
199 |
* -------------------------------------------------------------------------------------------
|
| 200 |
200 |
*/
|
| 201 |
201 |
|
| 202 |
|
$tool_user_delete_id = $HTTP_POST_VARS['tool_form_user_id'];
|
|
202 |
$tool_user_delete_id = $_POST['tool_form_user_id'];
|
| 203 |
203 |
if (!($tool_user_delete_id > 0))
|
| 204 |
204 |
{
|
| 205 |
205 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid user!");
|
| ... | ... | |
| 222 |
222 |
* -------------------------------------------------------------------------------------------
|
| 223 |
223 |
*/
|
| 224 |
224 |
|
| 225 |
|
$tool_user_create_name = $HTTP_POST_VARS['tool_form_user_name'];
|
| 226 |
|
$tool_user_create_password = $HTTP_POST_VARS['tool_form_user_password'];
|
| 227 |
|
$tool_user_create_group = $HTTP_POST_VARS['tool_form_user_group'];
|
| 228 |
|
$tool_user_create_active = $HTTP_POST_VARS['tool_form_user_active'];
|
|
225 |
$tool_user_create_name = $_POST['tool_form_user_name'];
|
|
226 |
$tool_user_create_password = $_POST['tool_form_user_password'];
|
|
227 |
$tool_user_create_group = $_POST['tool_form_user_group'];
|
|
228 |
$tool_user_create_active = $_POST['tool_form_user_active'];
|
| 229 |
229 |
|
| 230 |
230 |
$tool_error = tool_admin_users_add($tool_user_create_name, $tool_user_create_password, $tool_user_create_group, $tool_user_create_active);
|
| 231 |
231 |
if ($tool_error != "")
|
| ... | ... | |
| 255 |
255 |
if (!tool_admin_applications_check('tool_admin_group')) nt_common_redirect('index.php');
|
| 256 |
256 |
|
| 257 |
257 |
$tool_action = null;
|
| 258 |
|
if (isset($HTTP_POST_VARS['toolaction'])) $tool_action = $HTTP_POST_VARS['toolaction'];
|
| 259 |
|
elseif (isset($HTTP_GET_VARS['toolaction'])) $tool_action = $HTTP_GET_VARS['toolaction'];
|
|
258 |
if (isset($_POST['toolaction'])) $tool_action = $_POST['toolaction'];
|
|
259 |
elseif (isset($_GET['toolaction'])) $tool_action = $_GET['toolaction'];
|
| 260 |
260 |
|
| 261 |
261 |
switch ($tool_action)
|
| 262 |
262 |
{
|
| ... | ... | |
| 264 |
264 |
|
| 265 |
265 |
if ($tool_action == 'update applications')
|
| 266 |
266 |
{
|
| 267 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 268 |
|
$tool_group_update_appl_ids = $HTTP_POST_VARS['tool_form_application_ids'];
|
|
267 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
268 |
$tool_group_update_appl_ids = $_POST['tool_form_application_ids'];
|
| 269 |
269 |
|
| 270 |
270 |
tool_admin_groups_applications_update($tool_group_update_id, $tool_group_update_appl_ids);
|
| 271 |
271 |
|
| 272 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
272 |
$_GET['group_id'] = $tool_group_update_id;
|
| 273 |
273 |
}
|
| 274 |
274 |
|
| 275 |
275 |
// break;
|
| ... | ... | |
| 278 |
278 |
|
| 279 |
279 |
if ($tool_action == 'update domains')
|
| 280 |
280 |
{
|
| 281 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 282 |
|
$tool_group_update_domain_ids = $HTTP_POST_VARS['tool_form_domain_ids'];
|
|
281 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
282 |
$tool_group_update_domain_ids = $_POST['tool_form_domain_ids'];
|
| 283 |
283 |
|
| 284 |
284 |
tool_admin_groups_domains_update($tool_group_update_id, $tool_group_update_domain_ids);
|
| 285 |
285 |
|
| 286 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
286 |
$_GET['group_id'] = $tool_group_update_id;
|
| 287 |
287 |
}
|
| 288 |
288 |
|
| 289 |
289 |
//break;
|
| ... | ... | |
| 292 |
292 |
|
| 293 |
293 |
if ($tool_action == 'update shards')
|
| 294 |
294 |
{
|
| 295 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 296 |
|
$tool_group_update_shard_ids = $HTTP_POST_VARS['tool_form_shard_ids'];
|
|
295 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
296 |
$tool_group_update_shard_ids = $_POST['tool_form_shard_ids'];
|
| 297 |
297 |
|
| 298 |
298 |
tool_admin_groups_shards_update($tool_group_update_id, $tool_group_update_shard_ids);
|
| 299 |
299 |
|
| 300 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
300 |
$_GET['group_id'] = $tool_group_update_id;
|
| 301 |
301 |
}
|
| 302 |
302 |
|
| 303 |
303 |
//break;
|
| ... | ... | |
| 311 |
311 |
|
| 312 |
312 |
if ($tool_action == 'update')
|
| 313 |
313 |
{
|
| 314 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 315 |
|
$tool_group_update_name = $HTTP_POST_VARS['tool_form_group_name'];
|
| 316 |
|
$tool_group_update_level = $HTTP_POST_VARS['tool_form_group_level'];
|
| 317 |
|
$tool_group_update_default = $HTTP_POST_VARS['tool_form_group_default'];
|
| 318 |
|
$tool_group_update_active = $HTTP_POST_VARS['tool_form_group_active'];
|
|
314 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
315 |
$tool_group_update_name = $_POST['tool_form_group_name'];
|
|
316 |
$tool_group_update_level = $_POST['tool_form_group_level'];
|
|
317 |
$tool_group_update_default = $_POST['tool_form_group_default'];
|
|
318 |
$tool_group_update_active = $_POST['tool_form_group_active'];
|
| 319 |
319 |
|
| 320 |
320 |
$tool_error = tool_admin_groups_update($tool_group_update_id, $tool_group_update_name, $tool_group_update_level, $tool_group_update_default, $tool_group_update_active);
|
| 321 |
321 |
if ($tool_error != "")
|
| ... | ... | |
| 323 |
323 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 324 |
324 |
}
|
| 325 |
325 |
|
| 326 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
326 |
$_GET['group_id'] = $tool_group_update_id;
|
| 327 |
327 |
}
|
| 328 |
328 |
|
| 329 |
329 |
//break;
|
| ... | ... | |
| 337 |
337 |
|
| 338 |
338 |
if ($tool_action == 'update default domain')
|
| 339 |
339 |
{
|
| 340 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 341 |
|
$tool_group_default_domain = $HTTP_POST_VARS['tool_form_domain_default'];
|
|
340 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
341 |
$tool_group_default_domain = $_POST['tool_form_domain_default'];
|
| 342 |
342 |
|
| 343 |
343 |
$tool_error = tool_admin_groups_update_default_domain($tool_group_update_id, $tool_group_default_domain);
|
| 344 |
344 |
if ($tool_error != "")
|
| ... | ... | |
| 346 |
346 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 347 |
347 |
}
|
| 348 |
348 |
|
| 349 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
349 |
$_GET['group_id'] = $tool_group_update_id;
|
| 350 |
350 |
}
|
| 351 |
351 |
|
| 352 |
352 |
//break;
|
| ... | ... | |
| 360 |
360 |
|
| 361 |
361 |
if ($tool_action == 'update default shard')
|
| 362 |
362 |
{
|
| 363 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 364 |
|
$tool_group_default_shard = $HTTP_POST_VARS['tool_form_shard_default'];
|
|
363 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
364 |
$tool_group_default_shard = $_POST['tool_form_shard_default'];
|
| 365 |
365 |
|
| 366 |
366 |
$tool_error = tool_admin_groups_update_default_shard($tool_group_update_id, $tool_group_default_shard);
|
| 367 |
367 |
if ($tool_error != "")
|
| ... | ... | |
| 369 |
369 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 370 |
370 |
}
|
| 371 |
371 |
|
| 372 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
372 |
$_GET['group_id'] = $tool_group_update_id;
|
| 373 |
373 |
}
|
| 374 |
374 |
|
| 375 |
375 |
//break;
|
| ... | ... | |
| 383 |
383 |
|
| 384 |
384 |
if ($tool_action == 'update default application')
|
| 385 |
385 |
{
|
| 386 |
|
$tool_group_update_id = $HTTP_POST_VARS['tool_form_group_id'];
|
| 387 |
|
$tool_group_default_application = $HTTP_POST_VARS['tool_form_application_default'];
|
|
386 |
$tool_group_update_id = $_POST['tool_form_group_id'];
|
|
387 |
$tool_group_default_application = $_POST['tool_form_application_default'];
|
| 388 |
388 |
|
| 389 |
389 |
$tool_error = tool_admin_groups_update_default_application($tool_group_update_id, $tool_group_default_application);
|
| 390 |
390 |
if ($tool_error != "")
|
| ... | ... | |
| 392 |
392 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 393 |
393 |
}
|
| 394 |
394 |
|
| 395 |
|
$HTTP_GET_VARS['group_id'] = $tool_group_update_id;
|
|
395 |
$_GET['group_id'] = $tool_group_update_id;
|
| 396 |
396 |
}
|
| 397 |
397 |
|
| 398 |
398 |
//break;
|
| ... | ... | |
| 404 |
404 |
* -------------------------------------------------------------------------------------------
|
| 405 |
405 |
*/
|
| 406 |
406 |
|
| 407 |
|
$tool_group_edit_id = $HTTP_GET_VARS['group_id'];
|
|
407 |
$tool_group_edit_id = $_GET['group_id'];
|
| 408 |
408 |
$tool_group_edit_data = tool_admin_groups_get_id($tool_group_edit_id);
|
| 409 |
409 |
$tpl->assign('tool_group_edit_data', $tool_group_edit_data);
|
| 410 |
410 |
|
| ... | ... | |
| 439 |
439 |
* -------------------------------------------------------------------------------------------
|
| 440 |
440 |
*/
|
| 441 |
441 |
|
| 442 |
|
$tool_group_delete_id = $HTTP_POST_VARS['tool_form_group_id'];
|
|
442 |
$tool_group_delete_id = $_POST['tool_form_group_id'];
|
| 443 |
443 |
if (!($tool_group_delete_id > 0))
|
| 444 |
444 |
{
|
| 445 |
445 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid group!");
|
| ... | ... | |
| 462 |
462 |
* -------------------------------------------------------------------------------------------
|
| 463 |
463 |
*/
|
| 464 |
464 |
|
| 465 |
|
$tool_group_create_name = $HTTP_POST_VARS['tool_form_group_name'];
|
| 466 |
|
$tool_group_create_level = $HTTP_POST_VARS['tool_form_group_level'];
|
| 467 |
|
$tool_group_create_default = $HTTP_POST_VARS['tool_form_group_default'];
|
| 468 |
|
$tool_group_create_active = $HTTP_POST_VARS['tool_form_group_active'];
|
|
465 |
$tool_group_create_name = $_POST['tool_form_group_name'];
|
|
466 |
$tool_group_create_level = $_POST['tool_form_group_level'];
|
|
467 |
$tool_group_create_default = $_POST['tool_form_group_default'];
|
|
468 |
$tool_group_create_active = $_POST['tool_form_group_active'];
|
| 469 |
469 |
|
| 470 |
470 |
$tool_error = tool_admin_groups_add($tool_group_create_name, $tool_group_create_level, $tool_group_create_default, $tool_group_create_active);
|
| 471 |
471 |
if ($tool_error != "")
|
| ... | ... | |
| 492 |
492 |
if (!tool_admin_applications_check('tool_admin_application')) nt_common_redirect('index.php');
|
| 493 |
493 |
|
| 494 |
494 |
$tool_action = null;
|
| 495 |
|
if (isset($HTTP_POST_VARS['toolaction'])) $tool_action = $HTTP_POST_VARS['toolaction'];
|
| 496 |
|
elseif (isset($HTTP_GET_VARS['toolaction'])) $tool_action = $HTTP_GET_VARS['toolaction'];
|
|
495 |
if (isset($_POST['toolaction'])) $tool_action = $_POST['toolaction'];
|
|
496 |
elseif (isset($_GET['toolaction'])) $tool_action = $_GET['toolaction'];
|
| 497 |
497 |
|
| 498 |
498 |
switch ($tool_action)
|
| 499 |
499 |
{
|
| ... | ... | |
| 504 |
504 |
* -------------------------------------------------------------------------------------------
|
| 505 |
505 |
*/
|
| 506 |
506 |
|
| 507 |
|
$tool_application_update_id = $HTTP_POST_VARS['tool_form_application_id'];
|
| 508 |
|
$tool_application_update_name = $HTTP_POST_VARS['tool_form_application_name'];
|
| 509 |
|
$tool_application_update_uri = $HTTP_POST_VARS['tool_form_application_uri'];
|
| 510 |
|
$tool_application_update_restriction = $HTTP_POST_VARS['tool_form_application_restriction'];
|
| 511 |
|
$tool_application_update_icon = $HTTP_POST_VARS['tool_form_application_icon'];
|
| 512 |
|
$tool_application_update_order = $HTTP_POST_VARS['tool_form_application_order'];
|
| 513 |
|
$tool_application_update_visible = $HTTP_POST_VARS['tool_form_application_visible'];
|
|
507 |
$tool_application_update_id = $_POST['tool_form_application_id'];
|
|
508 |
$tool_application_update_name = $_POST['tool_form_application_name'];
|
|
509 |
$tool_application_update_uri = $_POST['tool_form_application_uri'];
|
|
510 |
$tool_application_update_restriction = $_POST['tool_form_application_restriction'];
|
|
511 |
$tool_application_update_icon = $_POST['tool_form_application_icon'];
|
|
512 |
$tool_application_update_order = $_POST['tool_form_application_order'];
|
|
513 |
$tool_application_update_visible = $_POST['tool_form_application_visible'];
|
| 514 |
514 |
|
| 515 |
515 |
$tool_error = tool_admin_applications_update($tool_application_update_id, $tool_application_update_name, $tool_application_update_uri, $tool_application_update_restriction, $tool_application_update_icon, $tool_application_update_order, $tool_application_update_visible);
|
| 516 |
516 |
if ($tool_error != "")
|
| ... | ... | |
| 518 |
518 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 519 |
519 |
}
|
| 520 |
520 |
|
| 521 |
|
$HTTP_GET_VARS['application_id'] = $tool_application_update_id;
|
|
521 |
$_GET['application_id'] = $tool_application_update_id;
|
| 522 |
522 |
|
| 523 |
523 |
//break;
|
| 524 |
524 |
|
| ... | ... | |
| 529 |
529 |
* -------------------------------------------------------------------------------------------
|
| 530 |
530 |
*/
|
| 531 |
531 |
|
| 532 |
|
$tool_application_edit_id = $HTTP_GET_VARS['application_id'];
|
|
532 |
$tool_application_edit_id = $_GET['application_id'];
|
| 533 |
533 |
$tool_application_edit_data = tool_admin_applications_get_id($tool_application_edit_id);
|
| 534 |
534 |
$tpl->assign('tool_application_edit_data', $tool_application_edit_data);
|
| 535 |
535 |
|
| ... | ... | |
| 542 |
542 |
* -------------------------------------------------------------------------------------------
|
| 543 |
543 |
*/
|
| 544 |
544 |
|
| 545 |
|
$tool_application_delete_id = $HTTP_POST_VARS['tool_form_application_id'];
|
|
545 |
$tool_application_delete_id = $_POST['tool_form_application_id'];
|
| 546 |
546 |
if (!($tool_application_delete_id > 0))
|
| 547 |
547 |
{
|
| 548 |
548 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid application!");
|
| ... | ... | |
| 561 |
561 |
* -------------------------------------------------------------------------------------------
|
| 562 |
562 |
*/
|
| 563 |
563 |
|
| 564 |
|
$tool_application_create_name = $HTTP_POST_VARS['tool_form_application_name'];
|
| 565 |
|
$tool_application_create_uri = $HTTP_POST_VARS['tool_form_application_uri'];
|
| 566 |
|
$tool_application_create_restriction = $HTTP_POST_VARS['tool_form_application_restriction'];
|
| 567 |
|
$tool_application_create_icon = $HTTP_POST_VARS['tool_form_application_icon'];
|
| 568 |
|
$tool_application_create_order = $HTTP_POST_VARS['tool_form_application_order'];
|
| 569 |
|
$tool_application_create_visible = $HTTP_POST_VARS['tool_form_application_visible'];
|
|
564 |
$tool_application_create_name = $_POST['tool_form_application_name'];
|
|
565 |
$tool_application_create_uri = $_POST['tool_form_application_uri'];
|
|
566 |
$tool_application_create_restriction = $_POST['tool_form_application_restriction'];
|
|
567 |
$tool_application_create_icon = $_POST['tool_form_application_icon'];
|
|
568 |
$tool_application_create_order = $_POST['tool_form_application_order'];
|
|
569 |
$tool_application_create_visible = $_POST['tool_form_application_visible'];
|
| 570 |
570 |
|
| 571 |
571 |
$tool_error = tool_admin_applications_add($tool_application_create_name, $tool_application_create_uri, $tool_application_create_restriction, $tool_application_create_icon, $tool_application_create_order, $tool_application_create_visible);
|
| 572 |
572 |
if ($tool_error != "")
|
| ... | ... | |
| 592 |
592 |
if (!tool_admin_applications_check('tool_admin_domain')) nt_common_redirect('index.php');
|
| 593 |
593 |
|
| 594 |
594 |
$tool_action = null;
|
| 595 |
|
if (isset($HTTP_POST_VARS['toolaction'])) $tool_action = $HTTP_POST_VARS['toolaction'];
|
| 596 |
|
elseif (isset($HTTP_GET_VARS['toolaction'])) $tool_action = $HTTP_GET_VARS['toolaction'];
|
|
595 |
if (isset($_POST['toolaction'])) $tool_action = $_POST['toolaction'];
|
|
596 |
elseif (isset($_GET['toolaction'])) $tool_action = $_GET['toolaction'];
|
| 597 |
597 |
|
| 598 |
598 |
switch ($tool_action)
|
| 599 |
599 |
{
|
| ... | ... | |
| 604 |
604 |
* -------------------------------------------------------------------------------------------
|
| 605 |
605 |
*/
|
| 606 |
606 |
|
| 607 |
|
$tool_domain_update_id = $HTTP_POST_VARS['tool_form_domain_id'];
|
| 608 |
|
$tool_domain_update_name = $HTTP_POST_VARS['tool_form_domain_name'];
|
| 609 |
|
$tool_domain_update_application = $HTTP_POST_VARS['tool_form_domain_application'];
|
| 610 |
|
$tool_domain_update_as_host = $HTTP_POST_VARS['tool_form_domain_as_host'];
|
| 611 |
|
$tool_domain_update_as_port = $HTTP_POST_VARS['tool_form_domain_as_port'];
|
| 612 |
|
$tool_domain_update_mfs_web = $HTTP_POST_VARS['tool_form_domain_mfs_web'];
|
| 613 |
|
$tool_domain_update_rrd_path = $HTTP_POST_VARS['tool_form_domain_rrd_path'];
|
| 614 |
|
$tool_domain_update_las_admin_path = $HTTP_POST_VARS['tool_form_domain_las_admin_path'];
|
| 615 |
|
$tool_domain_update_las_local_path = $HTTP_POST_VARS['tool_form_domain_las_local_path'];
|
| 616 |
|
$tool_domain_update_sql_string = $HTTP_POST_VARS['tool_form_domain_sql_string'];
|
| 617 |
|
$tool_domain_update_cs_sql_string = $HTTP_POST_VARS['tool_form_domain_cs_sql_string'];
|
| 618 |
|
$tool_domain_update_hd_check = $HTTP_POST_VARS['tool_form_domain_hd_check'];
|
|
607 |
$tool_domain_update_id = $_POST['tool_form_domain_id'];
|
|
608 |
$tool_domain_update_name = $_POST['tool_form_domain_name'];
|
|
609 |
$tool_domain_update_application = $_POST['tool_form_domain_application'];
|
|
610 |
$tool_domain_update_as_host = $_POST['tool_form_domain_as_host'];
|
|
611 |
$tool_domain_update_as_port = $_POST['tool_form_domain_as_port'];
|
|
612 |
$tool_domain_update_mfs_web = $_POST['tool_form_domain_mfs_web'];
|
|
613 |
$tool_domain_update_rrd_path = $_POST['tool_form_domain_rrd_path'];
|
|
614 |
$tool_domain_update_las_admin_path = $_POST['tool_form_domain_las_admin_path'];
|
|
615 |
$tool_domain_update_las_local_path = $_POST['tool_form_domain_las_local_path'];
|
|
616 |
$tool_domain_update_sql_string = $_POST['tool_form_domain_sql_string'];
|
|
617 |
$tool_domain_update_cs_sql_string = $_POST['tool_form_domain_cs_sql_string'];
|
|
618 |
$tool_domain_update_hd_check = $_POST['tool_form_domain_hd_check'];
|
| 619 |
619 |
|
| 620 |
620 |
$tool_error = tool_admin_domains_update($tool_domain_update_id, $tool_domain_update_name, $tool_domain_update_application,
|
| 621 |
621 |
$tool_domain_update_as_host, $tool_domain_update_as_port, $tool_domain_update_rrd_path,
|
| ... | ... | |
| 627 |
627 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 628 |
628 |
}
|
| 629 |
629 |
|
| 630 |
|
$HTTP_GET_VARS['domain_id'] = $tool_domain_update_id;
|
|
630 |
$_GET['domain_id'] = $tool_domain_update_id;
|
| 631 |
631 |
|
| 632 |
632 |
//break;
|
| 633 |
633 |
|
| ... | ... | |
| 638 |
638 |
* -------------------------------------------------------------------------------------------
|
| 639 |
639 |
*/
|
| 640 |
640 |
|
| 641 |
|
if (isset($HTTP_POST_VARS['tool_form_domain_nel_id']))
|
|
641 |
if (isset($_POST['tool_form_domain_nel_id']))
|
| 642 |
642 |
{
|
| 643 |
|
$tool_domain_nel_update_id = $HTTP_POST_VARS['tool_form_domain_nel_id'];
|
| 644 |
|
$tool_domain_nel_update_name = $HTTP_POST_VARS['tool_form_domain_nel_name'];
|
| 645 |
|
$tool_domain_nel_update_status = $HTTP_POST_VARS['tool_form_domain_nel_status'];
|
| 646 |
|
//$tool_domain_nel_update_version = $HTTP_POST_VARS['tool_form_domain_nel_version'];
|
|
643 |
$tool_domain_nel_update_id = $_POST['tool_form_domain_nel_id'];
|
|
644 |
$tool_domain_nel_update_name = $_POST['tool_form_domain_nel_name'];
|
|
645 |
$tool_domain_nel_update_status = $_POST['tool_form_domain_nel_status'];
|
|
646 |
//$tool_domain_nel_update_version = $_POST['tool_form_domain_nel_version'];
|
| 647 |
647 |
|
| 648 |
648 |
//tool_admin_domains_update_nel($tool_domain_nel_update_id, $tool_domain_nel_update_name, $tool_domain_nel_update_version, $tool_domain_nel_update_status);
|
| 649 |
649 |
tool_admin_domains_update_nel($tool_domain_nel_update_id, $tool_domain_nel_update_name, $tool_domain_nel_update_status);
|
| 650 |
650 |
|
| 651 |
|
$HTTP_GET_VARS['domain_id'] = $HTTP_POST_VARS['tool_form_domain_id'];
|
|
651 |
$_GET['domain_id'] = $_POST['tool_form_domain_id'];
|
| 652 |
652 |
}
|
| 653 |
653 |
|
| 654 |
654 |
// break;
|
| ... | ... | |
| 660 |
660 |
* -------------------------------------------------------------------------------------------
|
| 661 |
661 |
*/
|
| 662 |
662 |
|
| 663 |
|
$tool_domain_edit_id = $HTTP_GET_VARS['domain_id'];
|
|
663 |
$tool_domain_edit_id = $_GET['domain_id'];
|
| 664 |
664 |
$tool_domain_edit_data = tool_admin_domains_get_id($tool_domain_edit_id);
|
| 665 |
665 |
$tpl->assign('tool_domain_edit_data', $tool_domain_edit_data);
|
| 666 |
666 |
|
| ... | ... | |
| 682 |
682 |
* -------------------------------------------------------------------------------------------
|
| 683 |
683 |
*/
|
| 684 |
684 |
|
| 685 |
|
$tool_domain_delete_id = $HTTP_POST_VARS['tool_form_domain_id'];
|
|
685 |
$tool_domain_delete_id = $_POST['tool_form_domain_id'];
|
| 686 |
686 |
if (!($tool_domain_delete_id > 0))
|
| 687 |
687 |
{
|
| 688 |
688 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid domain!");
|
| ... | ... | |
| 701 |
701 |
* -------------------------------------------------------------------------------------------
|
| 702 |
702 |
*/
|
| 703 |
703 |
|
| 704 |
|
$tool_domain_create_name = $HTTP_POST_VARS['tool_form_domain_name'];
|
| 705 |
|
$tool_domain_create_application = $HTTP_POST_VARS['tool_form_domain_application'];
|
| 706 |
|
$tool_domain_create_as_host = $HTTP_POST_VARS['tool_form_domain_as_host'];
|
| 707 |
|
$tool_domain_create_as_port = $HTTP_POST_VARS['tool_form_domain_as_port'];
|
| 708 |
|
$tool_domain_create_mfs_web = $HTTP_POST_VARS['tool_form_domain_mfs_web'];
|
| 709 |
|
$tool_domain_create_rrd_path = $HTTP_POST_VARS['tool_form_domain_rrd_path'];
|
| 710 |
|
$tool_domain_create_las_admin_path = $HTTP_POST_VARS['tool_form_domain_las_admin_path'];
|
| 711 |
|
$tool_domain_create_las_local_path = $HTTP_POST_VARS['tool_form_domain_las_local_path'];
|
| 712 |
|
$tool_domain_create_sql_string = $HTTP_POST_VARS['tool_form_domain_sql_string'];
|
| 713 |
|
$tool_domain_create_cs_sql_string = $HTTP_POST_VARS['tool_form_domain_cs_sql_string'];
|
| 714 |
|
$tool_domain_create_hd_check = $HTTP_POST_VARS['tool_form_domain_hd_check'];
|
|
704 |
$tool_domain_create_name = $_POST['tool_form_domain_name'];
|
|
705 |
$tool_domain_create_application = $_POST['tool_form_domain_application'];
|
|
706 |
$tool_domain_create_as_host = $_POST['tool_form_domain_as_host'];
|
|
707 |
$tool_domain_create_as_port = $_POST['tool_form_domain_as_port'];
|
|
708 |
$tool_domain_create_mfs_web = $_POST['tool_form_domain_mfs_web'];
|
|
709 |
$tool_domain_create_rrd_path = $_POST['tool_form_domain_rrd_path'];
|
|
710 |
$tool_domain_create_las_admin_path = $_POST['tool_form_domain_las_admin_path'];
|
|
711 |
$tool_domain_create_las_local_path = $_POST['tool_form_domain_las_local_path'];
|
|
712 |
$tool_domain_create_sql_string = $_POST['tool_form_domain_sql_string'];
|
|
713 |
$tool_domain_create_cs_sql_string = $_POST['tool_form_domain_cs_sql_string'];
|
|
714 |
$tool_domain_create_hd_check = $_POST['tool_form_domain_hd_check'];
|
| 715 |
715 |
|
| 716 |
716 |
$tool_error = tool_admin_domains_add( $tool_domain_create_name, $tool_domain_create_application, $tool_domain_create_as_host,
|
| 717 |
717 |
$tool_domain_create_as_port, $tool_domain_create_rrd_path,
|
| ... | ... | |
| 741 |
741 |
if (!tool_admin_applications_check('tool_admin_shard')) nt_common_redirect('index.php');
|
| 742 |
742 |
|
| 743 |
743 |
$tool_action = null;
|
| 744 |
|
if (isset($HTTP_POST_VARS['toolaction'])) $tool_action = $HTTP_POST_VARS['toolaction'];
|
| 745 |
|
elseif (isset($HTTP_GET_VARS['toolaction'])) $tool_action = $HTTP_GET_VARS['toolaction'];
|
|
744 |
if (isset($_POST['toolaction'])) $tool_action = $_POST['toolaction'];
|
|
745 |
elseif (isset($_GET['toolaction'])) $tool_action = $_GET['toolaction'];
|
| 746 |
746 |
|
| 747 |
747 |
switch ($tool_action)
|
| 748 |
748 |
{
|
| ... | ... | |
| 753 |
753 |
* -------------------------------------------------------------------------------------------
|
| 754 |
754 |
*/
|
| 755 |
755 |
|
| 756 |
|
$tool_shard_update_id = $HTTP_POST_VARS['tool_form_shard_id'];
|
| 757 |
|
$tool_shard_update_name = $HTTP_POST_VARS['tool_form_shard_name'];
|
| 758 |
|
$tool_shard_update_as_id = $HTTP_POST_VARS['tool_form_shard_as_id'];
|
| 759 |
|
$tool_shard_update_domain_id = $HTTP_POST_VARS['tool_form_shard_domain_id'];
|
| 760 |
|
$tool_shard_update_language = $HTTP_POST_VARS['tool_form_shard_language'];
|
|
756 |
$tool_shard_update_id = $_POST['tool_form_shard_id'];
|
|
757 |
$tool_shard_update_name = $_POST['tool_form_shard_name'];
|
|
758 |
$tool_shard_update_as_id = $_POST['tool_form_shard_as_id'];
|
|
759 |
$tool_shard_update_domain_id = $_POST['tool_form_shard_domain_id'];
|
|
760 |
$tool_shard_update_language = $_POST['tool_form_shard_language'];
|
| 761 |
761 |
|
| 762 |
762 |
$tool_error = tool_admin_shards_update($tool_shard_update_id, $tool_shard_update_name, $tool_shard_update_as_id, $tool_shard_update_domain_id, $tool_shard_update_language);
|
| 763 |
763 |
if ($tool_error != "")
|
| ... | ... | |
| 765 |
765 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 766 |
766 |
}
|
| 767 |
767 |
|
| 768 |
|
$HTTP_GET_VARS['shard_id'] = $tool_shard_update_id;
|
|
768 |
$_GET['shard_id'] = $tool_shard_update_id;
|
| 769 |
769 |
|
| 770 |
770 |
//break;
|
| 771 |
771 |
|
| ... | ... | |
| 776 |
776 |
* -------------------------------------------------------------------------------------------
|
| 777 |
777 |
*/
|
| 778 |
778 |
|
| 779 |
|
$tool_shard_edit_id = $HTTP_GET_VARS['shard_id'];
|
|
779 |
$tool_shard_edit_id = $_GET['shard_id'];
|
| 780 |
780 |
$tool_shard_edit_data = tool_admin_shards_get_id($tool_shard_edit_id);
|
| 781 |
781 |
$tpl->assign('tool_shard_edit_data', $tool_shard_edit_data);
|
| 782 |
782 |
|
| ... | ... | |
| 789 |
789 |
* -------------------------------------------------------------------------------------------
|
| 790 |
790 |
*/
|
| 791 |
791 |
|
| 792 |
|
$tool_shard_delete_id = $HTTP_POST_VARS['tool_form_shard_id'];
|
|
792 |
$tool_shard_delete_id = $_POST['tool_form_shard_id'];
|
| 793 |
793 |
if (!($tool_shard_delete_id > 0))
|
| 794 |
794 |
{
|
| 795 |
795 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid shard!");
|
| ... | ... | |
| 808 |
808 |
* -------------------------------------------------------------------------------------------
|
| 809 |
809 |
*/
|
| 810 |
810 |
|
| 811 |
|
$tool_shard_create_name = $HTTP_POST_VARS['tool_form_shard_name'];
|
| 812 |
|
$tool_shard_create_as_id = $HTTP_POST_VARS['tool_form_shard_as_id'];
|
| 813 |
|
$tool_shard_create_domain_id = $HTTP_POST_VARS['tool_form_shard_domain_id'];
|
| 814 |
|
$tool_shard_create_language = $HTTP_POST_VARS['tool_form_shard_language'];
|
|
811 |
$tool_shard_create_name = $_POST['tool_form_shard_name'];
|
|
812 |
$tool_shard_create_as_id = $_POST['tool_form_shard_as_id'];
|
|
813 |
$tool_shard_create_domain_id = $_POST['tool_form_shard_domain_id'];
|
|
814 |
$tool_shard_create_language = $_POST['tool_form_shard_language'];
|
| 815 |
815 |
|
| 816 |
816 |
$tool_error = tool_admin_shards_add($tool_shard_create_name, $tool_shard_create_as_id, $tool_shard_create_domain_id, $tool_shard_create_language);
|
| 817 |
817 |
if ($tool_error != "")
|
| ... | ... | |
| 842 |
842 |
if (!tool_admin_applications_check('tool_admin_restart')) nt_common_redirect('index.php');
|
| 843 |
843 |
|
| 844 |
844 |
$tool_action = null;
|
| 845 |
|
if (isset($HTTP_POST_VARS['toolaction'])) $tool_action = $HTTP_POST_VARS['toolaction'];
|
| 846 |
|
elseif (isset($HTTP_GET_VARS['toolaction'])) $tool_action = $HTTP_GET_VARS['toolaction'];
|
|
845 |
if (isset($_POST['toolaction'])) $tool_action = $_POST['toolaction'];
|
|
846 |
elseif (isset($_GET['toolaction'])) $tool_action = $_GET['toolaction'];
|
| 847 |
847 |
|
| 848 |
848 |
switch ($tool_action)
|
| 849 |
849 |
{
|
| ... | ... | |
| 854 |
854 |
* -------------------------------------------------------------------------------------------
|
| 855 |
855 |
*/
|
| 856 |
856 |
|
| 857 |
|
$tool_restart_update_id = $HTTP_POST_VARS['tool_form_restart_id'];
|
| 858 |
|
$tool_restart_update_name = $HTTP_POST_VARS['tool_form_restart_name'];
|
| 859 |
|
$tool_restart_update_services = $HTTP_POST_VARS['tool_form_restart_services'];
|
| 860 |
|
$tool_restart_update_order = $HTTP_POST_VARS['tool_form_restart_order'];
|
|
857 |
$tool_restart_update_id = $_POST['tool_form_restart_id'];
|
|
858 |
$tool_restart_update_name = $_POST['tool_form_restart_name'];
|
|
859 |
$tool_restart_update_services = $_POST['tool_form_restart_services'];
|
|
860 |
$tool_restart_update_order = $_POST['tool_form_restart_order'];
|
| 861 |
861 |
|
| 862 |
862 |
$tool_error = tool_admin_restarts_update($tool_restart_update_id, $tool_restart_update_name, $tool_restart_update_services, $tool_restart_update_order);
|
| 863 |
863 |
if ($tool_error != "")
|
| ... | ... | |
| 865 |
865 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 866 |
866 |
}
|
| 867 |
867 |
|
| 868 |
|
$HTTP_GET_VARS['restart_id'] = $tool_restart_update_id;
|
|
868 |
$_GET['restart_id'] = $tool_restart_update_id;
|
| 869 |
869 |
|
| 870 |
870 |
//break;
|
| 871 |
871 |
|
| ... | ... | |
| 876 |
876 |
* -------------------------------------------------------------------------------------------
|
| 877 |
877 |
*/
|
| 878 |
878 |
|
| 879 |
|
$tool_restart_edit_id = $HTTP_GET_VARS['restart_id'];
|
|
879 |
$tool_restart_edit_id = $_GET['restart_id'];
|
| 880 |
880 |
$tool_restart_edit_data = tool_admin_restarts_get_id($tool_restart_edit_id);
|
| 881 |
881 |
$tpl->assign('tool_restart_edit_data', $tool_restart_edit_data);
|
| 882 |
882 |
|
| ... | ... | |
| 889 |
889 |
* -------------------------------------------------------------------------------------------
|
| 890 |
890 |
*/
|
| 891 |
891 |
|
| 892 |
|
$tool_restart_delete_id = $HTTP_POST_VARS['tool_form_restart_id'];
|
|
892 |
$tool_restart_delete_id = $_POST['tool_form_restart_id'];
|
| 893 |
893 |
if (!($tool_restart_delete_id > 0))
|
| 894 |
894 |
{
|
| 895 |
895 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid restart group!");
|
| ... | ... | |
| 908 |
908 |
* -------------------------------------------------------------------------------------------
|
| 909 |
909 |
*/
|
| 910 |
910 |
|
| 911 |
|
$tool_restart_create_name = $HTTP_POST_VARS['tool_form_restart_name'];
|
| 912 |
|
$tool_restart_create_services = $HTTP_POST_VARS['tool_form_restart_services'];
|
| 913 |
|
$tool_restart_create_order = $HTTP_POST_VARS['tool_form_restart_order'];
|
|
911 |
$tool_restart_create_name = $_POST['tool_form_restart_name'];
|
|
912 |
$tool_restart_create_services = $_POST['tool_form_restart_services'];
|
|
913 |
$tool_restart_create_order = $_POST['tool_form_restart_order'];
|
| 914 |
914 |
|
| 915 |
915 |
$tool_error = tool_admin_restarts_add($tool_restart_create_name, $tool_restart_create_services, $tool_restart_create_order);
|
| 916 |
916 |
if ($tool_error != "")
|
| ... | ... | |
| 927 |
927 |
* -------------------------------------------------------------------------------------------
|
| 928 |
928 |
*/
|
| 929 |
929 |
|
| 930 |
|
$tool_message_update_id = $HTTP_POST_VARS['tool_form_message_id'];
|
| 931 |
|
$tool_message_update_name = $HTTP_POST_VARS['tool_form_message_name'];
|
| 932 |
|
$tool_message_update_value = $HTTP_POST_VARS['tool_form_message_value'];
|
| 933 |
|
$tool_message_update_lang = $HTTP_POST_VARS['tool_form_message_lang'];
|
|
930 |
$tool_message_update_id = $_POST['tool_form_message_id'];
|
|
931 |
$tool_message_update_name = $_POST['tool_form_message_name'];
|
|
932 |
$tool_message_update_value = $_POST['tool_form_message_value'];
|
|
933 |
$tool_message_update_lang = $_POST['tool_form_message_lang'];
|
| 934 |
934 |
|
| 935 |
935 |
$tool_error = tool_admin_restart_messages_update($tool_message_update_id, $tool_message_update_name, $tool_message_update_value, $tool_message_update_lang);
|
| 936 |
936 |
if ($tool_error != "")
|
| ... | ... | |
| 938 |
938 |
$tpl->assign('tool_alert_message', $tool_error);
|
| 939 |
939 |
}
|
| 940 |
940 |
|
| 941 |
|
$HTTP_GET_VARS['msg_id'] = $tool_message_update_id;
|
|
941 |
$_GET['msg_id'] = $tool_message_update_id;
|
| 942 |
942 |
|
| 943 |
943 |
//break;
|
| 944 |
944 |
|
| ... | ... | |
| 949 |
949 |
* -------------------------------------------------------------------------------------------
|
| 950 |
950 |
*/
|
| 951 |
951 |
|
| 952 |
|
$tool_message_edit_id = $HTTP_GET_VARS['msg_id'];
|
|
952 |
$tool_message_edit_id = $_GET['msg_id'];
|
| 953 |
953 |
$tool_message_edit_data = tool_admin_restart_messages_get_id($tool_message_edit_id);
|
| 954 |
954 |
$tpl->assign('tool_message_edit_data', $tool_message_edit_data);
|
| 955 |
955 |
|
| ... | ... | |
| 962 |
962 |
* -------------------------------------------------------------------------------------------
|
| 963 |
963 |
*/
|
| 964 |
964 |
|
| 965 |
|
$tool_message_delete_id = $HTTP_POST_VARS['tool_form_message_id'];
|
|
965 |
$tool_message_delete_id = $_POST['tool_form_message_id'];
|
| 966 |
966 |
if (!($tool_message_delete_id > 0))
|
| 967 |
967 |
{
|
| 968 |
968 |
$tpl->assign('tool_alert_message', "/!\ Error: invalid restart message!");
|
| ... | ... | |
| 982 |
982 |
* -------------------------------------------------------------------------------------------
|
| 983 |
983 |
*/
|
| 984 |
984 |
|
| 985 |
|
$tool_message_create_name = $HTTP_POST_VARS['tool_form_message_name'];
|
| 986 |
|
$tool_message_create_value = $HTTP_POST_VARS['tool_form_message_value'];
|
| 987 |
|
$tool_message_create_lang = $HTTP_POST_VARS['tool_form_message_lang'];
|
|
985 |
$tool_message_create_name = $_POST['tool_form_message_name'];
|
|
986 |
$tool_message_create_value = $_POST['tool_form_message_value'];
|
|
987 |
$tool_message_create_lang = $_POST['tool_form_message_lang'];
|
| 988 |
988 |
|
| 989 |
989 |
$tool_error = tool_admin_restart_messages_add($tool_message_create_name, $tool_message_create_value, $tool_message_create_lang);
|
| 990 |
990 |
if ($tool_error != "")
|