You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
600 B
28 lines
600 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
/**
|
|
* Responses to AJAX calls
|
|
*/
|
|
|
|
require_once '../global.inc.php';
|
|
|
|
require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
|
|
|
|
$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
|
|
|
|
$is_allowed_to_edit = api_is_allowed_to_edit();
|
|
|
|
switch ($action) {
|
|
case 'delete_work':
|
|
if ($is_allowed_to_edit) {
|
|
$workList = explode(',', $_REQUEST['id']);
|
|
foreach ($workList as $workId) {
|
|
deleteDirWork($workId);
|
|
}
|
|
}
|
|
break;
|
|
default:
|
|
echo '';
|
|
break;
|
|
}
|
|
exit; |